/* Main CSS for SpaceFix Theme */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&family=Inter:wght@100..900&display=swap');

:root {
    --color-base: #050505;
    --color-accent-primary: #FF5722;
    --color-accent-secondary: #00D4FF;
    --color-silver-dark: #8E8E93;
    --color-silver-light: #E5E5E7;
    --font-headline: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;

    --gradient-metallic: linear-gradient(135deg, var(--color-silver-dark), var(--color-silver-light));
    --border-metallic: 1px solid rgba(192, 192, 192, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-base);
    color: #ffffff;
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-metallic {
    background: var(--gradient-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-accent-blue {
    color: var(--color-accent-secondary);
}

/* Navbar Styles */
.spacefix-navbar {
    position: absolute;
    /* Embedded atop hero */
    top: 30px;
    left: 0;
    width: 100%;
    max-width: none;
    transform: none;
    z-index: 100;
    padding: 30px 40px;
    background: transparent;
    /* No background */
    border: none;
    box-shadow: none;
    /* Remove floating shadow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.desktop-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 10px;
    /* Reduced gap for pills */
    margin: 0;
    padding: 0;
}

/* NAV LIGHT (Dark Backgrounds - Default) */
.spacefix-navbar.nav-light .nav-links li a {
    color: var(--color-silver-light);
}

.spacefix-navbar.nav-light .navbar-logo img {
    filter: none;
}

.spacefix-navbar.nav-light .mobile-toggle .bar {
    background: white;
}

/* NAV DARK (Light Backgrounds - Homepage) */
.spacefix-navbar.nav-dark .nav-links li a {
    color: #111;
}

.spacefix-navbar.nav-dark .navbar-logo img {
    filter: invert(1);
    /* Invert white logo to black */
}

.spacefix-navbar.nav-dark .mobile-toggle .bar {
    background: #111;
}

.spacefix-navbar.nav-dark .cta-button {
    background: #111;
    /* Dark button on light mode */
    color: white;
}

/* General Link Styling */
.nav-links li a {
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 50px;
    /* Pill shape */
    border: 1px solid transparent;
    /* Reserve space for border */
    transition: 0.3s;
}

/* Active State - Encircled Neutral Color */
.spacefix-navbar.nav-light .nav-links li.current-menu-item a,
.spacefix-navbar.nav-light .nav-links li a:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.spacefix-navbar.nav-dark .nav-links li.current-menu-item a,
.spacefix-navbar.nav-dark .nav-links li a:hover {
    border-color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
}

.cta-button {
    background-color: var(--color-accent-primary);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    color: white;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-nav-list li a {
    font-size: 2rem;
    font-weight: 700;
    color: #8E8E93;
}

.mobile-nav-list li a:hover {
    color: white;
    transform: scale(1.1);
}

.mobile-cta {
    font-size: 1.5rem !important;
    color: var(--color-accent-primary) !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }
}

/* Footer Styles */
.site-footer {
    background: #0a0a0a;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-headline);
}

.footer-brand p {
    color: #8E8E93;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #8E8E93;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    color: #555;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

/* HERO SECTIONS (Specific) */
.hero-page-wrapper {
    background-color: #F8F9FA;
    color: #111;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 90px;
    padding-bottom: 5vh;
}

.headline-container {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.headline-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.word-block {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0.05em;
    color: #111;
    display: inline-block;
}

.word-block.sub {
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #555;
    font-family: var(--font-body);
}

.neon-teardrop {
    width: 120px;
    height: 120px;
    background: #000;
    border-radius: 50% 50% 0 50%;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.neon-teardrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    align-items: center;
}

.story-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.play-btn-overlay {
    position: absolute;
    top: -25px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    color: #111;
}

.col-center {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.geometric-d-blob {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 0 125px 125px 0;
    position: relative;
    overflow: hidden;
}

.jigsaw-cta {
    position: absolute;
    right: -20px;
    top: 50%;
    top: 50%;
    /* transform handled by GSAP */
    background: #111;
    color: white;
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 50px;
    border: 8px solid #F8F9FA;
    box-shadow: 0 0 0 1px #F8F9FA;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jigsaw-ok {
    background: white;
    color: black;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.col-right-stats {
    text-align: right;
}

.stat-item {
    margin-bottom: 30px;
}

.stat-item h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #111;
}

.stat-item p {
    color: #555;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .hero-main {
        padding-top: 100px;
        /* Reset padding for mobile */
        padding-bottom: 50px;
    }

    .hero-footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
        padding: 0 20px;
    }

    .story-stack {
        align-items: center;
        margin: 0 auto;
        text-align: center;
    }

    .story-stack p {
        max-width: 100% !important;
        /* Allow full width text */
        padding: 0 20px;
    }

    .col-right-stats {
        text-align: center;
        display: flex;
        justify-content: center;
        gap: 40px;
        flex-wrap: wrap;
    }

    .word-block {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
}

@media (max-width: 600px) {
    .headline-row {
        gap: 10px;
    }

    .neon-teardrop {
        width: 80px;
        height: 80px;
    }

    .word-block {
        font-size: 2.5rem;
        /* Fixed size for very small screens */
    }

    .col-right-stats {
        gap: 20px;
    }

    .stat-item h2 {
        font-size: 2rem;
    }
}

/* IMPACT SECTION */
.impact-section {
    height: 100vh;
    width: 100vw;
    position: relative;
    background: #050505;
    overflow: hidden;
}

.impact-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    z-index: 1;
    opacity: 0;
}

.impact-grid-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: #050505;
}

.impact-img-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 10;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.impact-img-bot-left {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 25%;
    height: 35%;
    z-index: 5;
    border-right: 1px solid rgba(0, 212, 255, 0.2);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.impact-img-bot-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 35%;
    z-index: 5;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

@media (max-width: 768px) {
    .impact-section {
        height: auto !important;
        padding: 100px 0 50px 0;
        overflow-y: visible !important;
        display: flex !important;
        flex-direction: column;
    }

    .impact-text {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        padding: 0 20px 40px 20px !important;
        opacity: 1 !important;
        transform: none !important;
        text-align: center;
        order: 1;
    }

    .impact-grid-container {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        clip-path: none !important;
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        order: 2;
    }

    .impact-img-top,
    .impact-img-bot-left,
    .impact-img-bot-right {
        position: relative !important;
        width: 100% !important;
        height: 250px !important;
        border: 1px solid rgba(0, 212, 255, 0.2) !important;
        border-radius: 12px;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

/* Page Headers & Common */
.page-bg {
    background: #050505;
    min-height: 100vh;
    color: white;
    padding-top: 120px;
}

/* =========================================
   NEW HOMEPAGE SECTIONS
   ========================================= */

/* Client Logos */
.client-logos-section {
    padding: 60px 0;
    border-bottom: 1px solid rgba(142, 142, 147, 0.1);
    background: rgba(5, 5, 5, 0.8);
}

.client-logos-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.client-logo-item {
    border: 1px solid rgba(192, 192, 192, 0.2);
    padding: 15px 30px;
    border-radius: 4px;
    color: #E5E5E7;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.02);
}

/* Services Snippet */
.services-snippet-section {
    padding: 100px 0;
    background: #050505;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card-snippet {
    background: #111;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: 0.3s;
    display: block;
}

.service-card-snippet:hover {
    transform: translateY(-10px);
}

/* Testimonials */
.testimonials-section {
    padding: 100px 0;
    background: #F8F9FA;
    overflow: hidden;
}

.testimonials-slider {
    display: flex;
    width: 200%;
    gap: 40px;
}

.testimonial-card {
    flex: 0 0 400px;
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Blog Snippet */
.blog-snippet-section {
    padding: 100px 0;
    background: #050505;
}

/* Blog Page Specifics */
.featured-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    margin-bottom: 40px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: 0.3s;
}

.featured-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    width: 100%;
    z-index: 2;
}

.featured-tag {
    background: white;
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.featured-card h2 {
    font-size: 3rem;
    margin: 15px 0;
    max-width: 800px;
    line-height: 1.1;
}

.bento-item {
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
    background-size: cover;
    background-position: center;
}

.bento-item:hover {
    transform: translateY(-5px);
}

.bento-snippet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* SERVICES STACKING CARDS */
.service-card-stack {
    /* Base styles extracted from inline */
    position: sticky;
    background: #111;
    padding: 60px 40px;
    margin-bottom: 60px;
    border-radius: 24px;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
    transform-origin: top center;
    overflow: hidden;
}

.service-card-stack h2 {
    font-size: 3rem;
    margin: 0 0 20px;
    color: white;
}

.service-card-stack p {
    font-size: 1.2rem;
    color: #8E8E93;
    max-width: 600px;
}

@media (max-width: 768px) {
    .service-card-stack {
        padding: 40px 20px;
        min-height: 300px;
        margin-bottom: 40px;
        border-radius: 16px;
    }

    .service-card-stack h2 {
        font-size: 2rem;
    }

    .service-card-stack p {
        font-size: 1rem;
    }
}

.bento-snippet-item {
    padding: 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
    transition: 0.3s;
    text-decoration: none;
}

.col-span-1 {
    grid-column: span 1;
}

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .bento-snippet-grid {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }
}

/* Newsletter */
.newsletter-section {
    padding: 100px 20px;
    background: #050505;
    position: relative;
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    min-width: 250px;
    font-size: 0.9rem;
}

.newsletter-btn {
    padding: 15px 30px;
    border-radius: 50px;
    background: #00D4FF;
    color: black;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.newsletter-btn:hover {
    transform: scale(1.05);
}