:root {
    --bg-color: #030712;
    /* Deep dark blue, almost black */
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --accent: #c2d326;
    /* Subtle vibrant blue */
    --card-bg: rgba(17, 24, 39, 0.6);
    --border-color: rgba(255, 255, 255, 0.05);
    --orange-light: #EAE6DD;
    --orange-main: #c2d326;
    --orange-dark: #b1c400;
    --gradient-orange: linear-gradient(180deg, var(--orange-light) 0%, var(--orange-light) 70%, var(--orange-main) 100%, var(--orange-dark) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    max-width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    animation: bodyFadeIn 0.8s ease-out forwards;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Lenis Smooth Scroll Boilerplate */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Typography Aesthetics */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 100;
    background-color: var(--orange-light);
    /* Solid match from the start */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s ease, padding 0.4s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: rgba(234, 230, 221, 0.98);
    /* Solid off-white feel */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1.2rem 3rem;
}

/* Texture Grain Overlay for Scrolled Navbar */
.navbar.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: -1;
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* Airy spacing between links */
    align-items: center;
    justify-content: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.nav-logo img {
    height: 48px;
    /* Impactful size like BK logo */
    width: auto;
    object-fit: contain;
    filter: brightness(0);
    /* Ensure solid black logo */
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-links a {
    text-decoration: none;
    color: #111111;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    transition: color 0.3s ease, opacity 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: #b1c400;
    opacity: 1;
}

.nav-mobile-toggle {
    display: none;
}

/* Let's Talk Button Styles */
.nav-talk-btn {
    justify-self: end;
    /* Position to the far right of the grid */
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #111111;
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* .nav-profile-img removed as requested */

.nav-talk-btn:hover {
    transform: translateY(-2px);
    background: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 1 !important;
    /* Override the default link hover opacity */
}

/* SECTION 1: HERO */
.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    background-color: var(--orange-light);
}

.hero-bg {
    display: none;
}

.hero-content {
    z-index: 2;
    position: relative;
    text-align: center;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: 9vw;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.01em;
    color: #111111;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-highlight {
    color: #c3D809;
    display: inline-block;
    position: relative;
    z-index: 10;
}

.tagline {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 650px;
    margin: 0 auto;
}

/* FOOTER BAR FOR TAGLINES */
.hero-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 4rem;
    z-index: 20;
    pointer-events: none;
}

.tagline-left,
.tagline-right {
    font-size: 0.95rem;
    color: #111111;
    font-weight: 500;
    line-height: 1.4;
    max-width: 380px;
}

.tagline-left {
    text-align: left;
}

.tagline-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-align: right;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.scroll-mouse {
    width: 22px;
    height: 38px;
    border: 2px solid #111111;
    border-radius: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: #111111;
    border-radius: 4px;
    animation: scrollMove 2s infinite ease-in-out;
}

@keyframes scrollMove {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.2;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}



/* SECTION 3: SERVICES (REDESIGNED) */
.services {
    min-height: 100vh;
    padding: 0 5%;
    background: #030712;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
}

.services-content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.services-fade-text {
    width: 100%;
    margin-bottom: 2rem;
}

.services-label {
    display: inline-block;
    color: #c3D809;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    margin-bottom: 2rem;
    opacity: 1;
}

.services-main-heading {
    font-family: 'Anton SC', 'Anton', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Much bigger as requested */
    line-height: 1.15;
    margin-bottom: 4rem;
    /* Significantly enlarged gap */
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 0.02em;
    max-width: 1400px;
    /* Expanded so that the large text still fits on 3 lines */
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
}

.services-visual-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glowing Media Frame */
.media-glow-frame {
    width: clamp(240px, 25vw, 350px);
    /* Much smaller initially as requested */
    max-width: 90%;
    aspect-ratio: 16/10;
    background: #000000;
    border-radius: 20px;
    position: relative;
    z-index: 5;
    /* Neon Glow Effect */
    box-shadow:
        0 0 15px rgba(195, 216, 9, 0.4),
        0 0 30px rgba(195, 216, 9, 0.2),
        0 0 60px rgba(195, 216, 9, 0.1);
    padding: 5px;
    overflow: hidden;
}

.media-inner {
    width: 100%;
    height: 100%;
    background: #111111;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.services-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-controls {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 6px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10;
    opacity: 0.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.media-inner:hover .video-controls {
    opacity: 1;
    transform: translateY(-1px);
}

.vid-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.vid-btn:hover {
    color: #c3d809;
    transform: scale(1.15);
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.coming-soon-text {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1rem, 2.2vw, 1.8rem);
    /* Proportional scaling */
    color: #ffffff;
    /* Swapped to pure white */
    letter-spacing: 0.2em;
    opacity: 0.6;
    animation: comingSoonPulse 3s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    user-select: none;
}

@keyframes comingSoonPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.97);
        filter: blur(1px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.03);
        filter: blur(0px);
    }
}

.side-callout-wrapper {
    position: absolute;
    left: 8%;
    /* Pushed back to the left to create a huge gap with the video */
    top: 50%;
    transform: translateY(-50%);
}

.side-callout {
    text-align: left;
    max-width: max-content;
    /* Now strictly scales to natural text width to guarantee exactly 2 lines */
}

.side-callout p {
    font-family: 'Amatic SC', cursive;
    font-size: 1.8rem;
    /* Scaled up because Amatic SC is naturally a very small font */
    line-height: 1.2;
    color: #c3D809;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.curvy-arrow {
    width: 80px;
    height: auto;
    transform: rotate(10deg);
}

/* SECTION 4: WHAT WE PROVIDE */
.provide {
    min-height: 100vh;
    background: #030712;
    padding: 120px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 3;
}

.provide-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.provide-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #ffffff;
    margin-bottom: 5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.provide-title .highlight {
    color: #c3D809;
}

.provide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem 2rem;
}

.provide-card {
    background: rgba(25, 25, 25, 0.4);
    padding: 3.5rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    position: relative;
    overflow: hidden;
}

.provide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(195, 216, 9, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.provide-card:hover {
    background: rgba(25, 25, 25, 0.8);
    transform: translateY(-15px);
    border-color: rgba(195, 216, 9, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.provide-card:hover::before {
    opacity: 1;
}

.provide-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.provide-accent-bar {
    width: 80px;
    height: 4px;
    background: #c3D809;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.provide-card:hover .provide-accent-bar {
    width: 140px;
}

.provide-card p {
    font-size: 1.05rem;
    color: #9ca3af;
    line-height: 1.8;
    font-weight: 400;
}

@media (max-width: 900px) {
    .provide-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem; /* Tighter gap */
        align-items: stretch; /* Ensure equal height */
    }
    
    .provide-card {
        padding: 1.5rem 1rem;
        gap: 1rem;
        display: flex;
        flex-direction: column;
    }

    .provide-card h3 {
        font-size: 0.9rem; /* Slightly smaller for flexibility */
        line-height: 1.2;
        min-height: 3.6em; /* Force 3-line height for alignment */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .provide-card p {
        font-size: 0.78rem; /* Further reduced */
        line-height: 1.4;
        color: rgba(156, 163, 175, 0.9);
    }

    .provide-accent-bar {
        width: 30px;
        height: 2px;
        margin-bottom: 0.2rem;
    }
}

@media (max-width: 480px) {
    .provide-grid {
        gap: 0.6rem;
    }
    
    .provide-card {
        padding: 1.25rem 0.85rem;
    }
    
    .provide-card h3 {
        font-size: 0.85rem;
    }
}

#ribbons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* 👈 vw not % */
    height: 100vh;
    /* 👈 vh not % */
    z-index: 0;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.25);
}

.service-card:hover h3::after {
    width: 60px;
}

/* SECTION 4: SHOWCASE (GTA HORIZONTAL SCROLL) */
.showcase-wrap {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #222022;
    /* Updated background color */
    z-index: 4;
    position: relative;
}

.showcase-container {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    align-items: center;
}

.showcase-item {
    flex: 0 0 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #222022;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.project-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    color: #c3D809;
    text-transform: uppercase;
    position: absolute;
    top: 9vh;
    letter-spacing: 0.02em;
    z-index: 10;
}

.title-white {
    color: #ffffff;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 30px 4vw;
    width: 100%;
    max-width: 1400px;
    height: 75vh;
    margin-top: 8vh;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.sub-card {
    gap: 8px;
}

.main-card {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.card-label {
    display: flex;
    align-items: flex-end;
    margin-left: 10%;
}

.label-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding-bottom: 12px;
}

.project-img-container {
    background-color: #1a1a1a;
    border-radius: 12px;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img-container:hover {
    transform: scale(1.02);
    border-color: rgba(195, 216, 9, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-img,
.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-img-container:hover .project-img,
.project-img-container:hover .project-video {
    transform: scale(1.05);
}

.main-img-container {
    height: 75%;
    max-height: 420px;
    width: 100%;
    border-radius: 20px;
    margin-top: 50px;
}

.view-project-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #c3D809;
    color: #000000;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.view-project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(195, 216, 9, 0.6);
}

.see-more-btn {
    display: none; /* Hidden by default (Desktop) */
}

/* SECTION 5: ABOUT (REDESIGNED) */
.about {
    min-height: auto;
    padding: 8rem 5% 2rem 5%;
    background: #030712;
    position: relative;
    overflow: hidden;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-bg-text-wrap {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}

.about-bg-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 18vw, 14rem);
    color: #c3d809;
    line-height: 0.8;
    margin: 0;
    opacity: 1;
    letter-spacing: -0.02em;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    margin-top: 5rem;
}

.about-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-description {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.5rem);
    line-height: 1.8;
    color: #ffffff;
    font-weight: 400;
    max-width: 1100px;
    text-align: left;
}

.reveal-item {
    position: relative;
    display: block;
    /* Changed to block for full-line container */
    overflow: hidden;
    width: 100%; /* Fill the container width */
}

.reveal-content {
    opacity: 0;
    display: block;
    width: 100%;
    text-align: inherit; /* Inherit justification from parent */
    white-space: pre-wrap;
    /* Preserve spaces during splitting */
}

.reveal-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #c3d809;
    z-index: 10;
    transform-origin: left;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 5rem;
    gap: 2rem;
    width: 100%;
    z-index: 2;
    position: relative;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number-wrap {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 5vw, 5rem);
    color: #c3d809;
    line-height: 1;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.stat-label {
    font-family: 'Anton SC', 'Anton', sans-serif;
    font-size: clamp(0.7rem, 1vw, 1.1rem);
    color: #ffffff;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

@media (max-width: 900px) {
    .about-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
        margin-top: 3rem;
        align-items: flex-start;
    }

    .stat-item {
        flex: 1;
    }

    .stat-number-wrap {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 0.5rem;
    }

    .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
    }
}

.about-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.model-container {
    width: 100%;
    height: clamp(500px, 60vw, 850px);
    position: relative;
    transform: translateY(-120px);
    transform-origin: center;
}

model-viewer {
    width: 100%;
    height: 100%;
    background-color: transparent;
    --poster-color: transparent;
}

@media (max-width: 900px) {
    .about {
        padding-top: 6rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 8rem;
        text-align: center;
    }

    .about-left {
        order: 2;
        align-items: stretch; /* Force children to take full width */
    }

    .about-right {
        order: 1;
    }

    .about-description {
        text-align: left; /* Aligned left to right as requested */
        width: 100%;
        max-width: 100%;
        font-size: clamp(0.95rem, 4.4vw, 1.15rem); 
        line-height: 1.6;
        padding: 0;
        margin: 0; /* Align to the start of the container */
        letter-spacing: -0.01em; 
    }

    .about-bg-title {
        font-size: 15vw; /* Reduced from 25vw */
        top: 0%;
        opacity: 0.6;
        width: 100%;
        text-align: center;
        left: 0;
    }

    .model-container {
        height: 350px;
        transform: translateY(0);
        margin-bottom: -20px;
    }
}

/* SECTION 6: CONTACT (REDESIGNED based on Image) */
.cta {
    position: relative;
    min-height: 100vh;
    padding: 8rem 5%;
    background: #030712;
    z-index: 6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 1200px;
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-left {
    display: flex;
    flex-direction: column;
}

.contact-heading {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.contact-subtext {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e5e7eb;
}

.input-group input,
.input-group textarea,
.country-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    transition: all 0.3s ease;
}

.input-group textarea {
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus,
.country-select:focus {
    outline: none;
    border-color: #c3d809;
    background: rgba(195, 216, 9, 0.05);
}

.error-msg {
    color: #fd5151;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    margin-top: 0.3rem;
    display: none;
    /* Hidden by default */
    font-weight: 500;
    transition: all 0.3s ease;
}

.invalid-input {
    border-color: #fd5151 !important;
    background: rgba(255, 68, 68, 0.05) !important;
}

.phone-input-wrapper {
    display: block;
    width: 100%;
}

.phone-group {
    position: relative;
    z-index: 10;
    /* Ensure the phone group stacking context is above the submit button */
}

.iti {
    width: 100%;
}

.iti__country-list {
    background-color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    z-index: 1000 !important;
    /* Force it to the top level */
    max-height: 300px;
    overflow-y: auto;
}

/* Custom Scrollbar for Country List */
.iti__country-list::-webkit-scrollbar {
    width: 6px;
}

.iti__country-list::-webkit-scrollbar-track {
    background: #030712;
}

.iti__country-list::-webkit-scrollbar-thumb {
    background: rgba(195, 216, 9, 0.3);
    border-radius: 10px;
}

.iti__country-list::-webkit-scrollbar-thumb:hover {
    background: #c3d809;
}

.iti__country:hover,
.iti__country.iti__highlight {
    color: #c3d809;
}

.iti__search-input {
    width: 100%;
    background-color: #111827 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px !important;
    border-radius: 4px !important;
    margin-bottom: 5px !important;
    font-family: 'Outfit', sans-serif !important;
}

.iti__search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Remove default white dividers and borders */
.iti__dropdown-content,
.iti__search-container,
.iti__search-input,
.iti__country-list,
.iti__search-divider {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background-color: #111827 !important;
    background: #111827 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.iti__search-container {
    padding: 8px !important;
}

.country-select {
    width: auto;
    min-width: 90px;
    cursor: pointer;
    padding: 0.9rem 0.5rem;
}

.country-select option {
    background: #111827;
    color: #fff;
}

.contact-btn {
    width: 100%;
    background: #c3d809;
    color: #030712;
    border: none;
    border-radius: 8px;
    padding: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(195, 216, 9, 0.4);
    background: #d4ea0a;
}

.contact-right {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 0;
    border: none;
    overflow: visible;
}

.contact-hub {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    perspective: 1000px;
}

.hub-visual-box {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, rgba(195, 216, 9, 0.05) 0%, transparent 70%);
}

.pedestal-glow {
    position: absolute;
    bottom: 20%;
    width: 200px;
    height: 20px;
    background: #c3d809;
    filter: blur(40px);
    opacity: 0.3;
    border-radius: 50%;
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

.hub-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
}

.hub-section-title {
    grid-column: 1 / -1;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    color: #c3d809;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(195, 216, 9, 0.2);
}

.hub-card {
    background: rgba(255, 255, 255, 0.05);
    /* Increased slightly */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* More defined */
    border-radius: 20px;
    padding: 1.5rem;
    /* Reduced padding to give long text more room to stay on one line */
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    text-decoration: none;
    /* For link cards */
    display: block;
    color: inherit;
}

.hub-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: rgba(195, 216, 9, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-status-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #c3d809;
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #c3d809;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 0.4rem;
    letter-spacing: 0.05em;
}

.card-value {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(0.85rem, 1vw, 1.05rem);
    /* Scaled down slightly to ensure single-line fit */
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    /* Force 1 row as requested */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Professional fallback if still too long */
    display: block;
    margin-top: 0.2rem;
}

.card-corner-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(195, 216, 9, 0.2);
    transition: color 0.3s ease;
}

.hub-card:hover .card-corner-icon {
    color: rgba(195, 216, 9, 1);
}

.highlight-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(195, 216, 9, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-unit {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem;
    color: #c3d809;
    line-height: 1;
}

.stat-lab {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1200px) {
    .hub-info-grid {
        grid-template-columns: 1fr;
    }
}

.hub-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: #9ca3af;
    letter-spacing: 0.2em;
}

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

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #c3d809;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: #c3d809;
    color: #030712;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(195, 216, 9, 0.2);
}

@media (max-width: 900px) {
    .cta {
        padding: 4rem 5%;
    }

    .contact-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-heading {
        font-size: 2.2rem;
        text-align: center;
    }

    .contact-subtext {
        text-align: center;
        margin-bottom: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hub-visual-box {
        display: none; /* Removed 3D element on mobile as requested */
    }

    .hub-card {
        padding: 1.2rem;
    }

    .card-value {
        font-size: 0.9rem;
    }
}

/* SECTION 7: FOOTER */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 2.5rem;
    background: #010206;
    position: relative;
    z-index: 1;
    /* Revealed from under CTA */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    width: 45px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-copyright {
    font-size: 0.95rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar,
    .navbar.scrolled {
        padding: 0.8rem 1rem !important; /* Move items more to the sides */
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        width: 100%;
        background-color: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }

    .nav-links {
        display: none;
    }

    .nav-brand {
        display: flex;
        justify-self: start;
    }

    .nav-mobile-toggle {
        display: flex;
        justify-self: center;
    }

    .nav-talk-btn {
        display: flex !important;
        justify-self: end;
        white-space: nowrap;
    }

    .nav-logo {
        display: inline-block;
        height: 36px;
        width: 60px; /* Approximate width for the logo mask */
        position: relative;
    }

    .nav-logo img {
        height: 100%;
        width: auto;
        opacity: 0; /* Hide original black image */
    }

    .nav-logo::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #C3D809;
        -webkit-mask-image: url("assets/without\ bg.png");
        mask-image: url("assets/without\ bg.png");
        -webkit-mask-size: contain;
        mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-position: left center;
        mask-position: left center;
    }

    /* Primary Navbar Specific Button Styles */
    .navbar .nav-menu-btn {
        background-color: #C3D809;
        color: #222022;
    }

    .navbar .hamburger-icon .line {
        background-color: #222022;
    }

    .menu-btn-text {
        display: none !important; /* Globally hide 'MENU' text labels on mobile */
    }

    .nav-talk-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.68rem;
        background: #C3D809 !important;
        color: #222022 !important;
    }

    .nav-talk-btn:hover {
        background: #C3D809 !important; /* Keep yellow on mobile hover/tap */
        transform: translateY(-2px);
    }

    .nav-talk-btn span {
        display: inline-block !important; /* Re-enable text label */
    }

    .nav-profile-img {
        width: 28px;
        height: 28px;
        border-radius: 4px;
    }

    .nav-menu-btn {
        padding: 0.6rem; /* Square button on mobile */
        gap: 0;
    }

    .hero-title {
        font-size: clamp(2.2rem, 12vw, 3.8rem) !important;
        white-space: normal !important; /* CRITICAL FIX: Allow wrapping on mobile */
        line-height: 1.1;
        width: 110%; /* Compensate for tight columns */
        margin-left: -5%; /* Center it across the wider width slightly */
        margin-bottom: 2rem;
    }

    .hero-footer {
        padding: 0 1rem;
        bottom: 1.5rem;
        width: 100%;
    }

    .tagline-left,
    .tagline-right {
        font-size: 0.9rem;
        max-width: 100%;
        text-align: center;
    }

    .tagline-right {
        justify-content: center;
    }

    /* Services Mobile Fixes */
    .services {
        padding: 6rem 5%;
        height: auto;
        min-height: 100vh;
    }

    .services-main-heading {
        font-size: clamp(1.6rem, 7.5vw, 2.2rem); /* Slightly smaller as requested */
        line-height: 1.05;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0;
        letter-spacing: -0.01em; 
    }

    .services-main-heading br {
        display: none; /* Hide explicit line breaks to allow natural wrapping */
    }

    .services-visual-container {
        flex-direction: column; /* Stack text and video vertically */
        gap: 0;
    }

    .side-callout-wrapper {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        margin-top: 1.5rem; /* Space from heading */
        margin-bottom: 2rem; /* Space from video below */
        display: flex;
        justify-content: center;
        width: 100%;
        order: 1; /* Ensure text is above video */
    }

    .media-glow-frame {
        width: 100%;
        max-width: 420px; /* Slightly tighter for mobile ergonomics */
        aspect-ratio: 16/10;
        margin: 0 auto;
        order: 2; /* Video below text */
    }

    .side-callout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .side-callout p {
        font-size: 1.5rem;
    }

    .curvy-arrow {
        display: none !important; /* Remove arrow from mobile view */
    }

    /* Showcase Section Mobile Overhaul - Vertical Stack instead of Horizontal */
    .showcase-wrap {
        height: auto; /* Remove 100vh restriction */
        overflow: visible;
    }

    .showcase-container {
        flex-direction: column; /* Stack projects vertically */
        height: auto;
        flex-wrap: nowrap;
    }

    .showcase-item {
        flex: 0 0 auto;
        width: 100%; /* Changed from 100vw for stability */
        height: auto;
        min-height: 100vh;
        padding: 100px 5% 60px 5%; 
        justify-content: flex-start;
        overflow-x: hidden;
    }

    .project-title {
        position: relative;
        top: 0;
        font-size: clamp(2rem, 8vw, 3.5rem);
        margin-bottom: 2rem;
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
        height: auto;
        margin-top: 0;
    }

    .project-card {
        height: auto;
    }

    .sub-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between; /* Balanced distribution */
        gap: 20px;
        background: rgba(255, 255, 255, 0.04);
        padding: 24px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .sub-card .placeholder {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .card-label {
        margin-left: 0;
        padding-bottom: 0;
    }

    .card-label svg {
        display: none; /* Hide curvy arrow on mobile for cleaner look */
    }

    .label-text {
        padding-bottom: 0;
        font-size: 0.75rem;
    }

    .main-card {
        grid-column: 1;
        grid-row: 1; /* Move main card to top */
        gap: 15px;
        margin-bottom: 10px;
    }

    .main-placeholder {
        margin-top: 0;
        height: 220px;
        width: 100%;
    }

    .view-project-btn {
        width: 100%;
        padding: 15px;
        font-size: 1rem;
    }

    /* SEE MORE PROJECTS BUTTON (Mobile Only) */
    .see-more-btn {
        display: block;
        margin: 40px auto 60px;
        width: 90%;
        max-width: 320px;
        padding: 18px;
        background-color: #c3D809;
        color: #030712;
        border: none;
        border-radius: 6px;
        font-family: 'Anton', sans-serif;
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 11;
        position: relative;
        text-transform: uppercase;
    }

    .see-more-btn:active {
        transform: scale(0.95);
    }

    /* Custom Hide/Show logic for 3rd project on mobile */
    .showcase-container .showcase-item:nth-of-type(3) {
        display: none !important;
    }
    
    .showcase-container.show-all-projects .showcase-item:nth-of-type(3) {
        display: flex !important;
    }

    .showcase-container.show-all-projects .see-more-btn {
        display: none !important;
    }
}

/* Secondary Navbar */
.navbar-secondary {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: transparent;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-secondary-left,
.nav-secondary-right {
    flex: 1;
    display: flex;
}

.nav-secondary-right {
    justify-content: flex-end;
}

.nav-secondary-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}


.navbar-secondary.nav-hidden {
    transform: translateY(-100%);
}

.nav-logo-secondary {
    display: inline-block;
    height: 48px;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-logo-secondary:hover {
    transform: scale(1.02);
}

.secondary-logo-img {
    height: 100%;
    width: auto;
    opacity: 0;
}

.nav-logo-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #C3D809;
    -webkit-mask-image: url("assets/without\ bg.png");
    mask-image: url("assets/without\ bg.png");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    mask-position: left center;
}

.nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #C3D809;
    color: #222022;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-menu-btn:hover {
    transform: translateY(-2px);
    background-color: #b1c400;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hamburger-icon .line {
    width: 20px;
    height: 2px;
    background-color: #222022;
    transition: width 0.3s ease;
}

.nav-menu-btn:hover .hamburger-icon .line:nth-child(2) {
    width: 24px;
}

.nav-talk-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #C3D809;
    color: #222022 !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-talk-btn-secondary:hover {
    transform: translateY(-2px);
    background: #b1c400;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .navbar-secondary {
        padding: 0.8rem 1rem !important; /* Move items more to the sides */
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: center;
        background-color: transparent !important;
        backdrop-filter: none !important;
        width: 100%;
        box-shadow: none !important;
    }

    .nav-secondary-left, 
    .nav-secondary-center, 
    .nav-secondary-right {
        display: flex;
        align-items: center;
    }

    .nav-secondary-left {
        justify-content: flex-start;
    }

    .nav-secondary-center {
        justify-content: center;
    }

    .nav-secondary-right {
        justify-content: flex-end;
    }

    .nav-talk-btn-secondary {
        padding: 0.5rem 0.8rem;
        font-size: 0.68rem;
        white-space: nowrap;
    }
}

/* Full Screen Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #030712;
    z-index: 95;
    /* Just below the secondary navbar */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    overflow: hidden;
}

.menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.menu-link {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.8rem, 6vw, 5.5rem);
    color: #C3D809;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
    will-change: transform, opacity;
}

.menu-link:hover {
    color: transparent;
    -webkit-text-stroke: 2px #C3D809;
}

.menu-footer {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    width: 100%;
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: rgba(195, 216, 9, 0.7);
    will-change: opacity;
}

@media (max-width: 768px) {
    .menu-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 2rem;
    }
}

/* Open Menu Button State */
body.menu-open .nav-menu-btn {
    background-color: #C3D809 !important;
    color: #222022 !important;
}

body.menu-open .hamburger-icon .line {
    background-color: #222022 !important;
}

body.menu-open .hamburger-icon .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    width: 24px;
}

body.menu-open .hamburger-icon .line:nth-child(2) {
    opacity: 0;
}

body.menu-open .hamburger-icon .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

/* Ensure navbar blends with overlay when menu is open */
body.menu-open .navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

body.menu-open .navbar::before {
    display: none;
}

body.menu-open .nav-logo img {
    filter: invert(1) brightness(100); /* Make logo white on dark overlay */
}

body.menu-open .nav-logo-secondary::after {
    background-color: #ffffff;
}

/* SECTION 5.5: REVIEWS */
.reviews {
    min-height: 100vh;
    padding: 8rem 5%;
    background: #030712;
    position: relative;
    overflow: hidden;
    z-index: 6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
}

.reviews-bg-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Anton', sans-serif;
    font-size: clamp(4rem, 25vw, 20rem);
    color: rgba(195, 216, 9, 0.03);
    line-height: 0.8;
    margin: 0;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.book-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    perspective: 2000px;
}

.book {
    width: 100%;
    aspect-ratio: 1.6 / 1;
    background: #111;
    border-radius: 4px;
    position: relative;
    transform-style: preserve-3d;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .book {
        aspect-ratio: 1 / 1.2;
    }
}

.book-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.book-page.current {
    z-index: 2;
    /* Masking variable for burn effect */
    --burn-progress: 0%;
    -webkit-mask-image: linear-gradient(to left, transparent var(--burn-progress), black calc(var(--burn-progress) + 15%));
    mask-image: linear-gradient(to left, transparent var(--burn-progress), black calc(var(--burn-progress) + 15%));
    /* Apply the rough edge filter */
    filter: url(#burn-roughness);
}

.book-page.reveal {
    z-index: 1;
}

.page-inner {
    width: 100%;
    max-width: 600px;
}

.review-card {
    text-align: center;
}

.review-quote {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    color: #c3d809;
    line-height: 1;
    margin-bottom: -1rem;
    opacity: 0.5;
}

.review-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #f3f4f6;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.review-author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.author-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    color: #c3d809;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.author-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    color: #9ca3af;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Burning Edge Effect */
.burn-edge {
    position: absolute;
    top: 0;
    right: 0;
    /* Animated with JS */
    width: 10px;
    height: 100%;
    background: #ff5500;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    box-shadow:
        0 0 20px #ff5500,
        0 0 40px #ffaa00,
        0 0 60px #ff0000;
    filter: blur(4px) url(#burn-roughness);
}

/* Navigation Styles */
.reviews-nav {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.rev-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.rev-btn span {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: #ffffff;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.btn-line {
    width: 60px;
    height: 2px;
    background: #c3d809;
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rev-btn:hover .btn-line {
    width: 100px;
}

.rev-btn:hover span {
    color: #c3d809;
}

.rev-counter {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
}

.current-idx {
    color: #c3d809;
}

.sep {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
}

.total-idx {
    color: rgba(255, 255, 255, 0.4);
}


/* SECTION 5.5: REVIEWS */
.reviews {
    min-height: auto;
    padding: 2rem 0 100px 0;
    background: #030712;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.reviews-title-container {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 5%;
}

.reviews-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.reviews-title .highlight {
    color: var(--accent);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: reviews-marquee 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.review-card {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    width: 400px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.review-card:hover {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(195, 216, 9, 0.3);
    transform: translateY(-10px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.user-role {
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.star-rating {
    margin-top: 5px;
    display: flex;
    gap: 3px;
}

.star {
    color: #c3d809;
    font-size: 0.9rem;
}

.review-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

@keyframes reviews-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
        /* -50% because we duplicated the items, -15px for half gap */
    }
}

@media (max-width: 768px) {
    .review-card {
        width: 320px;
        padding: 2rem;
    }

    .reviews-title {
        font-size: 2.5rem;
    }

    .marquee-track {
        gap: 20px;
        animation-duration: 30s;
    }

    @keyframes reviews-marquee {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-50% - 10px));
        }
    }
}

/* SECTION 6.5: CUSTOM MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px;
    padding: 3.5rem 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon-container {
    width: 85px;
    height: 85px;
    background: rgba(195, 216, 9, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.8rem;
    color: #c3d809;
    box-shadow: 0 0 40px rgba(195, 216, 9, 0.25);
}

.modal-content h3 {
    font-family: 'Anton', sans-serif;
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.modal-btn {
    width: 100%;
    background: #c3d809;
    color: #030712;
    border: none;
    border-radius: 14px;
    padding: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-btn:hover {
    background: #d4ea0a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(195, 216, 9, 0.4);
}

.modal-content.error .modal-icon-container {
    background: rgba(253, 81, 81, 0.1);
    color: #fd5151;
    box-shadow: 0 0 40px rgba(253, 81, 81, 0.25);
}

.modal-content.success .modal-icon-container {
    background: rgba(195, 216, 9, 0.1);
    color: #c3d809;
    box-shadow: 0 0 40px rgba(195, 216, 9, 0.25);
}

.modal-content.success .modal-btn {
    background: #c3d809;
    color: #030712;
}

.modal-content.error .modal-btn {
    background: #fd5151;
    color: #fff;
}

.modal-content.success .modal-btn:hover {
    box-shadow: 0 15px 30px rgba(195, 216, 9, 0.4);
}

.modal-content.error .modal-btn:hover {
    box-shadow: 0 15px 30px rgba(253, 81, 81, 0.4);
}
