/*
Theme Name: North Animation
Theme URI: https://northanimation.com
Description: Premium, highly creative custom theme for North Animation 3D agency.
Version: 1.0
Author: Antigravity
Author URI: https://gemini.google.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: north-animation
*/

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (LIGHT THEME)
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark-raw: 248, 250, 252;        /* #f8fafc - Soft off-white */
    --bg-card-raw: 255, 255, 255;        /* #ffffff - Pure white */
    --accent-cyan: #0ea5e9;              /* Vibrant electric blue/cyan */
    --accent-teal: #0d9488;              /* Premium teal */
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-teal) 100%);
    --text-white: #0f172a;               /* Primary text color (slate-900) */
    --text-muted: #475569;               /* Muted text color (slate-600) */
    --text-dark: #ffffff;                /* Text color inside dark elements */
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
    
    /* Glassmorphism (Light Theme) */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.06);
    --glass-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04);
    --glass-blur: blur(16px);
}

/* ==========================================================================
   RESET & GLOBAL STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: rgb(var(--bg-dark-raw));
    color: var(--text-white);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-dark);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(14, 165, 233, 0.1);
}

/* Glassmorphism Card style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(14, 165, 233, 0.25);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    transform: translateY(-5px);
}

/* Background glows */
.glow-spot {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-dark-raw), 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(var(--bg-dark-raw), 0.92);
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
    color: var(--accent-cyan);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
    background-color: rgb(var(--bg-dark-raw));
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 10;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tagline::before {
    content: '';
    width: 20px;
    height: 2px;
    background-color: var(--accent-cyan);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-visual img {
    max-width: 90%;
    filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
    animation: floatAnimation 6s ease-in-out infinite;
}

/* Floating animation */
@keyframes floatAnimation {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}


/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.section-label {
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 2rem;
    color: #0f172a;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    border-left: 2px solid var(--accent-cyan);
    padding-left: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #0f172a;
}

.stat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.about-visual {
    position: relative;
}

.about-visual img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   CAPABILITIES SECTION
   ========================================================================== */
.capabilities-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(180deg, rgba(var(--bg-dark-raw),0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(var(--bg-dark-raw),0) 100%);
}

.capabilities-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.capabilities-header .section-title {
    margin-bottom: 1rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.capability-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.capability-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    aspect-ratio: 16/10;
}

.capability-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.capability-card:hover .capability-img-wrapper img {
    transform: scale(1.08);
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.capability-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(14, 165, 233, 0.12);
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.contact-section {
    padding: 8rem 0;
    position: relative;
    background-color: #ffffff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.contact-info-panel h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.contact-info-panel p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.info-icon {
    background: rgba(14, 165, 233, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.12);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.info-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    color: #0f172a;
}

.form-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: #0f172a;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(15, 23, 42, 0.35);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
    background: #ffffff;
}

textarea.form-input {
    resize: none;
    min-height: 150px;
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: 1rem;
}

/* Form success panel */
.form-success-message {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px;
    padding: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(14, 165, 233, 0.25);
    z-index: 10;
}

.form-success-message.active {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   FOOTER (STRIKING DEEP NAVY FOR PREMIUM CONTRAST)
   ========================================================================== */
.site-footer {
    background: #0b0f19;                 /* High-contrast deep slate footer */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 3rem 0;
    position: relative;
    z-index: 10;
    color: #94a3b8;
}

.site-footer h4, .site-footer a:hover {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand img {
    height: 45px;
    margin-bottom: 1.5rem;
    /* Optional filter to make logo text white on dark background if necessary, 
       but our saved logo.png works fine since we saved it with transparent BG */
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
    max-width: 300px;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-cyan);
    color: #0b0f19;
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: #64748b;
}

.footer-legal-links a:hover {
    color: #ffffff;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .site-logo img {
        height: 80px; /* Scale logo down slightly for tablet */
    }
    .hero-title {
        font-size: 3rem;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .hero-visual {
        min-height: 380px; /* Tablet height for canvas */
    }
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .about-grid, .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 991px) {
    /* Stack grids slightly earlier to prevent tight layout columns on portrait tablets */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .about-visual, .contact-form-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .site-logo img {
        height: 60px; /* Compact logo size for mobile screens */
    }
    
    .nav-container {
        padding: 0.75rem 1.5rem;
    }
    
    .mobile-nav-toggle {
        display: block;
        color: #0f172a;
    }
    
    .main-navigation {
        position: fixed;
        top: 90px; /* Exactly sits below the mobile header navbar height */
        left: 0;
        width: 100%;
        height: calc(100vh - 90px);
        background: #ffffff;
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        padding: 3rem;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        border-top: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }
    
    .main-navigation.active {
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .nav-menu a {
        font-size: 1.25rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-section {
        padding-top: 140px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        min-height: 280px; /* Mobile height for canvas */
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Contact Form Stacking & Padding Adjustments for Mobile */
    .contact-form-wrapper.glass-card {
        padding: 1.5rem;
    }
    .contact-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .contact-form .btn {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem; /* Maximize margins on very narrow screens */
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .stat-number {
        font-size: 2rem;
    }
    .contact-form-wrapper.glass-card {
        padding: 1.25rem; /* Even tighter padding on small phones */
    }
}
