/* ==========================================================================
   Advanced Aesthetics: Aurora, Claymorphism, Glassmorphism
   Accessible & Semantic Color System (60-30-10 Rule)
   ========================================================================== */
:root {
    /* 60% Dominant: Linear/Vercel #0A0A0A */
    --color-dominant: #0A0A0A;
    --color-surface: #1A1A1A;
    --color-surface-solid: #111111;

    /* 30% Secondary: Support colors, blobs */
    --color-secondary: #4C1D95; /* Deep purple */
    --color-secondary-light: #7C3AED; 
    
    /* 10% Accent: Primary calls to action */
    --color-accent: #00E6F0; /* Bright Cyan */

    /* Semantic Tokens */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    /* Text Colors */
    --text-primary: #FFFFFF;    
    --text-inverse: #0A0A0A;    
    --text-secondary: #EBEBEB;  
    --text-muted: #888888;      

    /* Borders: Subtle 1px Vercel Aesthetic */
    --border-glass: #333333;

    /* Typography: Space Grotesk for Heading, IBM Plex Sans for Body */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-padding: 2rem;
    --section-gap: 1.5rem;
}

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

html { scroll-behavior: smooth; font-size: 16px; background: var(--color-dominant); }

body {
    background-color: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; 
}

/* Hide global scrollbar to prevent any right-edge borders/track lines */
::-webkit-scrollbar {
    display: none;
    width: 0;
    background: transparent;
}

/* ==========================================================================
   Loading States (Pro Max)
   ========================================================================== */
#initial-loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--color-dominant);
    display: flex; flex-direction: column; align-items: center; justify-content: center;gap: 2rem;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#initial-loader.hidden { opacity: 0; visibility: hidden; }

/* Spinner */
.pro-spinner {
    width: 60px; height: 60px; border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--color-accent) 100%);
    animation: spin 1s linear infinite;
    padding: 3px;
    box-shadow: 0 0 20px rgba(0,230,240,0.3);
}
.pro-spinner-inner {
    width: 100%; height: 100%; border-radius: 50%; background: var(--color-dominant);
}

/* Indeterminate Progress */
.loader-progress-bar {
    width: 200px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,0.1);
    position: relative; overflow: hidden;
}
.loader-progress-bar::after {
    content: ''; position: absolute; left: 0; top: 0; height: 100%;
    width: 30%; background: var(--color-accent);
    animation: progress-indeterminate 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px var(--color-accent);
}

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, #111 25%, #222 50%, #111 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite ease-in-out;
    border-radius: 8px;
}
.skeleton-text { height: 1em; width: 100%; margin-bottom: 0.5rem; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes progress-indeterminate {
    0% { left: -30%; width: 30%; }
    50% { width: 50%; }
    100% { left: 100%; width: 30%; }
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: transparent;
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 100ms linear;
    box-shadow: 0 0 10px var(--color-accent);
}

::selection { background-color: var(--color-accent); color: var(--text-inverse); }

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.glow-text {
    color: var(--text-primary);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
p { color: var(--text-secondary); font-size: 1.125rem; font-weight: 400; }
a { color: inherit; text-decoration: none; transition: all var(--transition-fast); }

/* Liquid Text Effect */
.liquid-text {
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary-light), var(--color-info));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }


/* ==========================================================================
   Layouts & Utility
   ========================================================================== */
.container { max-width: 1300px; margin: 0 auto; padding: 0 var(--container-padding); }
.section-padding { padding: var(--section-gap) 0; }
.text-center { text-align: center; }
.section-header { margin-bottom: 2rem; }

/* Tags */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    margin-bottom: 2rem;
}
.section-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.8rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600; text-transform: capitalize;
    letter-spacing: 0.5px;
    cursor: none; transition: all var(--transition-fast);
}

.btn-lg { font-size: 1.125rem; }

/* Primary Accent Button */
.btn-primary {
    background: var(--color-accent);
    color: var(--text-inverse);
    border: none;
    border-radius: 100px;
    box-shadow: 0 0 20px rgba(0, 230, 240, 0.2);
}
.btn-primary:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 230, 240, 0.5), 0 0 15px rgba(0, 230, 240, 0.8);
}

/* Secondary/Outline Button */
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
}
.btn-outline:hover {
    transform: scale(1.02) translateY(-2px);
    background: rgba(0, 230, 240, 0.05);
    border-color: var(--color-accent);
    box-shadow: 0 5px 20px rgba(0, 230, 240, 0.2);
}

/* Input Focus States */
input, textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    border-radius: 12px;
    outline: none;
    transition: all var(--transition-base);
}
input:focus, textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(0, 230, 240, 0.3), 0 0 0 3px rgba(0, 230, 240, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 6px; height: 6px; background-color: var(--color-accent); box-shadow: 0 0 10px var(--color-accent); }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,0.5); transition: width 0.2s, height 0.2s; }
.cursor-hover { width: 70px; height: 70px; background-color: rgba(255, 255, 255, 0.1); border-color: transparent; backdrop-filter: blur(4px); }


/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed; 
    top: 1.5rem; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    z-index: 100;
    padding: 0.5rem 1.25rem; 
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: none;
}
.glass-effect.scrolled {
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.35rem; font-weight: 700; text-transform: capitalize; letter-spacing: -0.5px; color: var(--text-primary); }
.logo span { font-weight: 400; color: var(--color-accent); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-family: var(--font-body); font-size: 0.9rem; font-weight: 500; text-transform: capitalize; letter-spacing: 0.2px; color: #ffffff; transition: all var(--transition-base); }
.nav-links a:hover { color: var(--color-accent); }
.menu-hire-btn { display: none !important; } /* Hidden on desktop to prevent duplication */
.mobile-menu-toggle { display: none; } /* Hidden on desktop view */

/* Dedicated sophisticated header button */
.navbar .btn-primary {
    font-size: 0.8rem;
    padding: 0.5rem 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #ffffff;
    color: #000000;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: none;
}
.navbar .btn-primary:hover {
    background: rgba(255,255,255,0.85);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}


.glass-effect, .navbar.scrolled {
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Sophisticated thin border */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Global Page Aurora — Fixed behind ALL sections
   ========================================================================== */
.page-aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-aurora-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    mix-blend-mode: screen;
}

/* Soft purple — anchored top-left, drifts slowly */
.pa-1 {
    width: 900px; height: 900px;
    top: -200px; left: -250px;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.35) 0%, rgba(76, 29, 149, 0.18) 45%, transparent 70%);
    filter: blur(80px);
    animation: pa-drift-1 25s ease-in-out infinite alternate;
}

/* Cyan — lower right, opposing drift */
.pa-2 {
    width: 800px; height: 800px;
    bottom: 5%; right: -200px;
    background: radial-gradient(circle at center, rgba(0, 200, 220, 0.28) 0%, rgba(8, 145, 178, 0.14) 45%, transparent 70%);
    filter: blur(90px);
    animation: pa-drift-2 30s ease-in-out infinite alternate;
}

/* Indigo center accent — subtle depth in the middle */
.pa-3 {
    width: 600px; height: 600px;
    top: 40%; left: 35%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.2) 0%, transparent 65%);
    filter: blur(100px);
    animation: pa-drift-1 40s ease-in-out infinite alternate-reverse;
    animation-delay: -15s;
}

@keyframes pa-drift-1 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(60px, -80px) scale(1.05); }
    100% { transform: translate(-40px, 60px) scale(0.97); }
}
@keyframes pa-drift-2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-70px, 50px) scale(1.08); }
    100% { transform: translate(50px, -40px) scale(0.95); }
}

/* Ensure all sections sit above the fixed aurora layer and are transparent */
.hero, .services, .work, .process, .footer {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Dark surface sections keep their color but add subtle transparency */
.process { background: transparent !important; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: transparent;
}

.mesh-bg {
    position: absolute; inset: 0; z-index: 0;
    background: #0A0A0A;
    display: none; /* Legacy — replaced by aurora-bg */
}

/* Multi-color gradient mesh blobs — vibrant, luminous aurora effect */
.mesh-blob {
    position: absolute;
    border-radius: 50%;
    animation: mesh-float 20s ease-in-out infinite alternate;
    mix-blend-mode: screen;
}
/* Purple blob — top left */
.mesh-1 {
    width: 80vw; height: 80vw;
    background: radial-gradient(circle at center, #7C3AED 0%, #4C1D95 40%, transparent 75%);
    top: -30%; left: -20%;
    filter: blur(60px);
    opacity: 0.85;
    animation-duration: 22s;
}
/* Cyan blob — bottom right */
.mesh-2 {
    width: 70vw; height: 70vw;
    background: radial-gradient(circle at center, #00E6F0 0%, #0891B2 40%, transparent 75%);
    bottom: -20%; right: -15%;
    filter: blur(50px);
    opacity: 0.8;
    animation-direction: reverse;
    animation-duration: 18s;
}
/* Blue mid accent */
.mesh-3 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle at center, #3B82F6 0%, #1D4ED8 30%, transparent 65%);
    top: 20%; left: 25%;
    filter: blur(70px);
    opacity: 0.7;
    animation-duration: 28s;
}

@keyframes mesh-float {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(4%, -6%) scale(1.05); }
    66%  { transform: translate(-3%, 5%) scale(0.97); }
    100% { transform: translate(2%, -2%) scale(1.02); }
}

/* Aurora Gradient (Clean, Reliable Implementation)
   Blobs sit behind content via z-index layering.          */
.aurora-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* PURPLE — top-left */
.aurora-1 {
    width: 750px; height: 750px;
    top: -200px; left: -200px;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.22) 0%, rgba(76, 29, 149, 0.1) 45%, transparent 70%);
    filter: blur(80px);
    animation: aurora-drift 18s ease-in-out infinite alternate;
}

/* CYAN — bottom-right */
.aurora-2 {
    width: 650px; height: 650px;
    bottom: -150px; right: -150px;
    background: radial-gradient(circle at center, rgba(0, 230, 240, 0.18) 0%, rgba(8, 145, 178, 0.08) 45%, transparent 70%);
    filter: blur(75px);
    animation: aurora-drift 22s ease-in-out infinite alternate-reverse;
}

/* INDIGO — center accent */
.aurora-3 {
    width: 600px; height: 600px;
    top: 10%; left: 30%;
    background: radial-gradient(circle at center, rgba(79, 70, 229, 0.12) 0%, rgba(30, 27, 75, 0.05) 50%, transparent 70%);
    filter: blur(100px);
    animation: aurora-drift 28s ease-in-out infinite alternate;
    animation-delay: -8s;
}

@keyframes aurora-drift {
    0%   { transform: translate(0px, 0px) scale(1); }
    33%  { transform: translate(40px, -60px) scale(1.08); }
    66%  { transform: translate(-30px, 50px) scale(0.95); }
    100% { transform: translate(20px, -20px) scale(1.03); }
}

/* ==========================================================================
   Web Dev UI Background Objects
   ========================================================================== */
.hero-objects {
    position: absolute;
    inset: 0;
    z-index: 1; /* Above aurora, below content */
    perspective: 1200px;
    pointer-events: none;
    overflow: hidden;
}

.web-obj {
    position: absolute;
    background: rgba(26, 26, 30, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 20px rgba(255,255,255,0.05);
}

/* 1. Floating IDE/Code Window */
.code-window {
    top: 15%; left: 50%; /* Back to the exact midpoint split line to avoid the image */
    margin-left: -160px; /* Counter-offset its width to center perfectly in the gap */
    width: 320px;
    padding: 1rem;
    border-radius: 16px;
    transform: rotateX(15deg) rotateY(25deg) rotateZ(-5deg);
    animation: float-code 12s ease-in-out infinite alternate;
}
.cw-header {
    display: flex; gap: 6px; margin-bottom: 1.2rem;
}
.cw-dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.8;}
.cw-dot.r { background: #FF5F56; }
.cw-dot.y { background: #FFBD2E; }
.cw-dot.g { background: #27C93F; }
.cw-body {
    font-family: monospace; font-size: 0.9rem; line-height: 1.8;
}
.cw-line.indent { padding-left: 1.5rem; }
.c-kwd { color: #C678DD; }
.c-func { color: #61AFEF; }
.c-obj { color: #E5C07B; }

/* 2. Floating UI Widget */
.ui-widget { display: none !important; }

@keyframes float-code {
    0%   { transform: translateY(0) rotateX(15deg) rotateY(25deg) rotateZ(-5deg); }
    100% { transform: translateY(-40px) rotateX(20deg) rotateY(15deg) rotateZ(5deg); }
}
@keyframes float-ui {
    0%   { transform: translateY(0) rotateX(-15deg) rotateY(-20deg) rotateZ(10deg) scale(1); }
    100% { transform: translateY(50px) rotateX(-5deg) rotateY(-10deg) rotateZ(0deg) scale(1.05); }
}

/* ==========================================================================
   Hero Perspective Wireframe Grid
   ========================================================================== */
.perspective-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70vh;
    z-index: 1;
    background-image: 
        linear-gradient(to right, rgba(0, 230, 240, 0.08) 1px, transparent 1px),
        linear-gradient(to top, rgba(0, 230, 240, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(1000px) rotateX(75deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px; z-index: 2; position: relative;
}
.hero-top-split {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Reverted to perfectly equal columns */
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
    text-align: left;
}
.hero-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-image-col {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-main-img {
    max-width: 100%;
    height: auto;
}

.y2k-badge {
    display: inline-block; padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px; font-family: var(--font-body);
    font-size: 0.75rem; letter-spacing: 0.2em;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px); margin-bottom: 2rem;
    color: var(--text-primary);
}
.hero-title { 
    margin-bottom: 1rem; 
    text-shadow: 0 10px 30px rgba(0,0,0,0.5); 
    font-size: clamp(3rem, 5.5vw, 4.8rem) !important; /* Extremely large while safely remaining inside the 1fr container without overlapping */
    line-height: 1.1;
    white-space: nowrap; /* GUARANTEES 2 lines explicitly by blocking natural text-wrap, relies solely on the <br> */
}
@media (max-width: 900px) {
    .hero-title { white-space: normal !important; text-wrap: balance; } /* Allow wrapping on mobile */
}
.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-subtitle { margin: 0 auto 2rem; font-size: 1.15rem; color: var(--text-primary); text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

/* Hero Stats & Tech Stack */
.hero-stats-row {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}
.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-num {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-accent);
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}
.hero-tech {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.tech-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.tech-icons {
    display: flex;
    gap: 1rem;
}
.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}
.tech-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(0, 230, 240, 0.4);
}
.tech-badge i {
    color: var(--color-accent);
    font-size: 1.2rem;
}

/* ==========================================================================
   Services / Bento Grid
   ========================================================================== */
.services { padding: 3rem 0; position: relative; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 24px; /* Strict 24px gap */
    margin-top: 2rem;
}

/* Border Beams (Vercel Style) for specific featured cards */
.beam-card {
    position: relative;
    border: none; /* remove standard border */
    padding: calc(3rem + 1px); /* compensate for border */
}
.beam-card::after {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: var(--color-surface);
    border-radius: 20px;
}
.beam-card::before {
    content: ''; position: absolute; inset: -1px; z-index: -3;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    background-size: 200% 100%;
    animation: beam 3s infinite linear;
    border-radius: 21px;
}

@keyframes beam {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Flat Elegant Card */
.flat-card {
    background: var(--color-surface);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 3rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.flat-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateY(-6px) scale(1.01);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,230,240,0.1);
}
.flat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 230, 240, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.flat-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem; margin-bottom: 1.5rem;
    display: inline-flex; padding: 1rem; border-radius: 20px;
}
.gradient-icon { background: linear-gradient(135deg, var(--color-accent), var(--color-secondary-light)); color: var(--text-inverse); box-shadow: 0 10px 20px rgba(76, 29, 149, 0.3); }
.chrome-icon { background: linear-gradient(135deg, #E2E8F0, #94A3B8); color: var(--color-dominant); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }

.bento-item h3 { margin-bottom: 1rem; font-size: 1.75rem; }
.large-card { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }

.ui-mockup {
    margin-top: auto; height: 180px;
    border-radius: 16px; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    position: relative; overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
}
.medium-card { grid-column: span 1; }
.wide-card { grid-column: span 3; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.wide-content { flex: 1; }

.seo-stats { display: flex; gap: 3rem; }
.glass-box { border: 1px solid var(--border-glass); padding: 1.5rem 2rem; border-radius: 16px; background: var(--color-dominant); position: relative; }
.neon-text { font-family: var(--font-heading); font-size: 3.5rem; color: var(--color-accent); letter-spacing: -0.05em; display: block; line-height: 1; }

/* ==========================================================================
   Horizontal Scroll Work Gallery
   ========================================================================== */
.work {
    padding: 3rem 0 5rem !important; position: relative; overflow: hidden;
}
.work-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; }
.work-nav { display: flex; gap: 1rem; }

.btn-icon {
    width: 60px; height: 60px; border-radius: 50%;
    border: 1px solid var(--border-glass); background: var(--color-surface); color: var(--text-primary);
    font-size: 1.5rem; cursor: none; transition: all var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}
.btn-icon:hover {
    background: var(--color-accent); color: var(--text-inverse); border-color: var(--color-accent);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 230, 240, 0.4);
}

.gallery-wrapper { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 1rem; margin-bottom: 0; }
.gallery-wrapper::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 4rem; padding: 0 var(--container-padding); width: max-content; }
.gallery-item { width: 550px; flex-shrink: 0; }

.project-card { width: 100%; height: 650px; position: relative; border-radius: 20px; overflow: hidden; }
.project-image { width: 100%; height: 100%; position: relative; transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.project-card:hover .project-image { transform: scale(1.05); }

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,10,14,0.9) 0%, transparent 100%);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 3rem;
    transform: translateY(20px); transition: transform 0.4s; z-index: 2;
}
.project-card:hover .project-info { transform: translateY(0); }
.project-info h3 { font-size: 2.5rem; margin-bottom: 0.5rem; text-shadow: 0 4px 10px rgba(0,0,0,0.8); }
.project-info p { color: var(--text-primary); font-size: 1.125rem; opacity: 0.9; }

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    padding: 0 0 6rem 0 !important; background: transparent; 
}
.process-timeline {
    position: relative; max-width: 900px; margin: 1.5rem auto 0;
}
.fluid-line {
    position: absolute; left: 40px; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-secondary), var(--color-secondary-light));
    border-radius: 4px; opacity: 0.5; filter: blur(2px);
}
.process-step { display: flex; gap: 2rem; margin-bottom: 2rem; padding: 2rem; position: relative; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--border-glass); }
.process-step:last-child { margin-bottom: 4rem !important; }

#pricing { padding-top: 2rem !important; }
.gradient-circle {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: var(--color-accent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 2rem; color: var(--text-inverse); font-weight: 800;
    z-index: 1;
}
.step-content h3 { font-size: 2rem; margin-bottom: 1rem; }

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials { padding: 0.5rem 0 5rem 0; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--transition-base);
}
.testimonial-card:hover {
    border-color: rgba(0, 230, 240, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.tc-stars { color: var(--color-accent); font-size: 1rem; letter-spacing: 2px; }
.tc-quote {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    font-style: italic;
}
.tc-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.25rem;
}
.tc-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tc-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}
.tc-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing { padding: 8rem 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    align-items: start;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    transition: all var(--transition-base);
}
.pricing-card:hover {
    border-color: rgba(0, 230, 240, 0.2);
    transform: translateY(-4px);
}

.pricing-featured {
    border-color: rgba(0, 230, 240, 0.4);
    background: rgba(0, 230, 240, 0.04);
    box-shadow: 0 0 60px rgba(0,230,240,0.08), 0 30px 60px rgba(0,0,0,0.4);
    transform: scale(1.03);
}
.pricing-featured:hover { transform: scale(1.03) translateY(-4px); }

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 1.2rem;
    border-radius: 100px;
    font-family: var(--font-heading);
}

.plan-header { display: flex; flex-direction: column; gap: 0.75rem; }
.plan-name {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 600;
}
.plan-price {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.price-currency {
    font-size: 1.75rem;
    vertical-align: top;
    margin-top: 0.5rem;
    display: inline-block;
    color: var(--text-secondary);
}
.plan-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.plan-features li i {
    color: var(--color-accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plan-best-for {
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1.25rem;
    font-style: italic;
}

.btn-full {
    width: 100%;
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faqs { padding: 0.5rem 0; }

.faq-list {
    margin-top: 2rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    overflow: hidden;
    transition: border-color var(--transition-base);
}
.faq-item.open { border-color: rgba(0, 230, 240, 0.25); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--color-accent);
    transition: transform var(--transition-base);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 2rem;
}
.faq-answer.open {
    max-height: 400px;
    padding: 0 2rem 1.5rem;
}
.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* Huge Footer Block */
.massive-cta {
    background: var(--color-accent);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-inverse);
}

.footer {
    padding: 3rem 0 2rem;
}
.footer-bottom { display: flex; justify-content: space-between; padding-bottom: 2rem; border-bottom: none; margin-top: 2rem;}
.footer-links { display: flex; gap: 5rem; }
.link-group h4 { font-size: 1.125rem; margin-bottom: 1.5rem; color: var(--text-primary); }

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.reveal-text { opacity: 0; transform: translateY(20px); animation: fadeUp 600ms ease-out forwards; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays (100ms increments) */
.delay-1 { animation-delay: 100ms; transition-delay: 100ms; }
.delay-2 { animation-delay: 200ms; transition-delay: 200ms; }
.delay-3 { animation-delay: 300ms; transition-delay: 300ms; }
.delay-4 { animation-delay: 400ms; transition-delay: 400ms; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .large-card, .wide-card { grid-column: span 2; }
    .wide-card { flex-direction: column; align-items: flex-start; }
    .gallery-item { width: 400px; }
    /* Hero desktop-small tweaks */
    .code-window { width: 240px; top: 12%; left: 3%; }
    .ui-widget { width: 160px; right: 3%; bottom: 30%; }
    .tech-icons { flex-wrap: wrap; justify-content: center; }
    /* New sections */
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
    /* .nav-links { display: none; } Removed to fix mobile menu visibility conflict */
    .bento-grid { grid-template-columns: 1fr; }
    .large-card, .wide-card, .medium-card { grid-column: span 1; }
    .process-step { flex-direction: column; gap: 2rem; padding: 2rem; }
    .fluid-line { display: none; }
    .footer-bottom { flex-direction: column; gap: 3rem; }
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }

    /* Hero Section — Mobile Responsive */
    .hero { padding-top: 7rem; padding-bottom: 1rem; min-height: 100svh; }
    h1 { font-size: clamp(2.2rem, 7vw, 3.5rem); }
    .y2k-badge { font-size: 0.6rem; padding: 0.35rem 1rem; margin-bottom: 1rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-actions { flex-direction: column; gap: 0.75rem; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; padding: 0.85rem 1.5rem; font-size: 0.95rem; }
    .hero-stats-row { margin-top: 1.5rem; gap: 1rem; }
    .hero-stats { padding: 0.75rem 1.5rem; gap: 1.5rem; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-divider { height: 30px; }
    .tech-icons { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .tech-badge { font-size: 0.75rem; padding: 0.35rem 0.75rem; }
    /* Hide floating objects on mobile for cleanliness */
    .code-window, .ui-widget { display: none; }
    .perspective-grid { height: 40vh; }

    /* Testimonials — single col */
    .testimonials-grid { grid-template-columns: 1fr; }

    /* Pricing — single col, no scale */
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-featured { transform: scale(1); }
    .pricing-featured:hover { transform: translateY(-4px); }
    .plan-price { font-size: 3rem; }

    /* FAQ */
    .faq-question { font-size: 0.9rem; padding: 1.25rem 1.5rem; }
    .faq-answer { padding: 0 1.5rem; }
    .faq-answer.open { padding: 0 1.5rem 1.25rem; }
}

/* ==========================================================================
   Split Timeline Approach (Restored Original Design)
   ========================================================================== */
.split-process {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}
.split-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: flex-start;
}
.process-visual-col {
    position: sticky;
    top: 8rem; /* Sticks below navbar */
}
.process-shaped-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.process-shaped-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: transform 0.5s ease;
}
.process-shaped-frame:hover img {
    transform: scale(1.05);
}
.frame-glass-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(0, 230, 240, 0.1) 100%);
    pointer-events: none;
}
.frame-border-glow {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
    pointer-events: none;
}

/* Timeline Column */
.process-timeline-col {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.vertical-connector-track {
    position: absolute;
    left: 17px;
    top: 2rem;
    bottom: 4rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
.vertical-connector-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%; /* Could be animated with JS on scroll */
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

.v-step-item {
    position: relative;
    padding-left: 4.5rem;
    margin-bottom: 5rem;
}
.v-step-item:last-child {
    margin-bottom: 0;
}
.v-step-node {
    position: absolute;
    left: 0;
    top: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    z-index: 2;
}
.v-step-item:hover .v-step-node {
    border-color: var(--color-accent);
    background: rgba(0,230,240,0.1);
    box-shadow: 0 0 20px rgba(0, 230, 240, 0.4);
    transform: scale(1.1);
}
.v-step-node::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.v-step-item:hover .v-step-node::after {
    opacity: 1;
}

.v-step-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}
.v-step-num {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-accent);
}
.v-step-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 90%;
}

@media (max-width: 1024px) {
    .split-container { grid-template-columns: 1fr; gap: 4rem; }
    .process-visual-col { position: relative; top: 0; margin-bottom: 2rem; }
    .process-shaped-frame { aspect-ratio: 4 / 5; } /* Changed to vertical to prevent over-cropping */
}
@media (max-width: 768px) {
    .v-step-title { font-size: 1.5rem; }
    .v-step-content p { font-size: 1.05rem; max-width: 100%; }
    .v-step-item { padding-left: 3.5rem; }
    .vertical-connector-track { left: 17px; }
}

/* ==========================================================================
   Mobile Optimization Core Overrides
   ========================================================================== */

@media (max-width: 900px) {
    :root {
        --section-gap: 4rem; /* Reduced from 8rem for tighter mobile feel */
    }
    
    .section-padding { padding: 4rem 0; }

    /* Full-width sections on mobile */
    .container { padding: 0 1rem !important; }

    /* Force all body text white on mobile */
    p, .text-secondary, .hero-subtitle, .step-content p, .faq-answer p,
    .bento-item p, .testimonial-text, .v-step-content p {
        color: #ffffff !important;
    }
    
    /* Pull the mobile pill header up to a clean gap */
    .navbar { top: 1rem !important; }

    /* Hero Section Responsive Refinement */
    .hero { padding-top: 8rem !important; }
    .hero-content { text-align: center !important; }
    .hero-top-split {
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 2.5rem !important;
    }
    .hero-text-col {
        align-items: center !important;
    }
    
    /* Hero Title & Subtitle Optimization */
    .hero-title { 
        font-size: clamp(2rem, 8vw, 2.6rem) !important; 
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
        max-width: 15ch !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-wrap: balance;
    }
    .hero-subtitle { 
        font-size: 0.9rem !important; 
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
        max-width: 350px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0;
    }
    .hero-main-img {
        max-width: 90% !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /* Hero Stats - Force Single Line */
    .hero-stats {
        flex-direction: row !important;
        gap: 1rem !important;
        padding: 0.75rem 1.5rem !important;
        overflow-x: auto;
        width: 100%;
        justify-content: center;
        white-space: nowrap;
        scrollbar-width: none;
    }
    .hero-stats::-webkit-scrollbar { display: none; }
    .stat-num { font-size: 1.25rem !important; }
    .stat-label { font-size: 0.6rem !important; }
    .stat-divider { height: 25px !important; }

    /* Tech Stack - Wrap better or scale down */
    .tech-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem !important;
    }
    .tech-badge {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    /* Section Header Padding & Mobile Bento */
    .section-header { margin-bottom: 1.5rem !important; }
    .section-header h2 { font-size: 2.25rem !important; white-space: normal; }
    
    .bento-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        margin-top: 1rem !important;
    }
    .bento-item {
        grid-column: span 1 !important; /* Overrides inline styles */
        width: 100% !important;
        padding: 2rem 1.5rem !important; /* Gives cards more breathing room globally on mobile */
    }
    
    /* Safely override aggressive inline paddings and giant headers (Why Us, etc) */
    [style*="padding: 6rem"], [style*="padding: 5rem"], [style*="padding: 4rem"] {
        padding: 3rem 1.25rem !important; /* Forces 6rem paddings into mobile-safe dimensions */
    }
    h2[style*="font-size: 3.5rem"], h2[style*="font-size: 3rem"], h2[style*="font-size: 2.5rem"] {
        font-size: clamp(2rem, 8vw, 2.3rem) !important;
        line-height: 1.2 !important;
    }
    h3[style*="font-size: 2.5rem"], h3[style*="font-size: 2.25rem"] {
        font-size: clamp(1.6rem, 6vw, 1.8rem) !important;
        line-height: 1.3 !important;
    }
    .btn-lg {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: 100%;
        text-align: center;
    }
    
    /* About Us overrides for hardcoded layout constructs */
    [style*="grid-template-columns: 1fr 1.5fr"] {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    [style*="gap: 4rem"][style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 3rem !important;
    }
    div[style*="font-size: 6rem"] {
        font-size: 4rem !important;
    }
    span[style*="font-size: 3rem"] {
        font-size: 2rem !important;
    }
    [style*="gap: 3rem"][style*="padding: 3rem"] {
        flex-direction: column !important;
        gap: 1.25rem !important;
        padding: 2.25rem 1.75rem !important;
    }
    
    /* Portfolio pages text wrapping and grid collapsing */
    h1[style*="font-size: 5rem"], h1[style*="font-size: 6rem"] {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        white-space: normal !important;
        word-wrap: break-word !important; /* Crucial for long words like Collagen not breaking the screen width */
        margin-bottom: 1.5rem !important;
    }
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    /* Reduce huge space between portfolio hero button and the screenshot image */
    .hero[style*="padding-bottom: 5rem"] {
        padding-bottom: 1rem !important;
        min-height: auto !important;
    }
    .section-padding[style*="padding-top: 2rem"] {
        padding-top: 0 !important;
    }
    
    /* Make subtitle pill borders white on mobile */
    .section-tag { border-color: rgba(255, 255, 255, 0.5) !important; }
    
    /* Specific Fix for "Our Recent Work" and Arrows alignment */
    .work-header {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-end !important;
        margin-bottom: 2rem !important;
    }
    .work-header .section-header {
        text-align: left !important;
        margin-bottom: 0 !important;
    }
    .work-header .section-tag { 
        white-space: nowrap !important; 
        display: inline-flex !important;
        align-items: center;
        gap: 0.75rem !important;
        margin-bottom: 0.5rem;
    }
    .work-header .section-tag::before {
        content: '' !important;
        display: block !important;
        width: 8px !important;
        height: 8px !important;
        min-width: 8px !important;
        border-radius: 50% !important;
        background: var(--color-accent) !important;
        box-shadow: 0 0 10px var(--color-accent) !important;
        flex-shrink: 0;
    }
    .work-header h2 { 
        white-space: nowrap !important; 
        font-size: clamp(1.3rem, 5vw, 1.8rem) !important; /* Scaled down to fit next to arrows */
    }

    /* Hero CTA Button Fixes for Mobile */
    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    .hero-actions .btn {
        width: 100% !important;
        max-width: 300px !important;
        justify-content: center !important;
        margin-bottom: 1rem !important; /* Explicit hard margin fallback to stop collision */
    }
    .hero-actions .btn:last-child { margin-bottom: 0 !important; }
    
    /* Guarantee outline buttons stay crisp and white on dark backgrounds */
    .btn-outline {
        border-color: rgba(255, 255, 255, 0.4) !important;
        color: #ffffff !important;
    }

    /* Gap Reductions */
    .work { padding-bottom: 2rem !important; }
    .split-process { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .pricing { padding-top: 2rem !important; }

    /* Service Card Stats Optimization */
    .seo-stats {
        gap: 1.5rem !important;
        justify-content: center;
        width: 100%;
    }
    .seo-stats .neon-text { font-size: 2rem !important; }
    .seo-stats .label { font-size: 0.7rem !important; }

    /* Premium Navigation / Mobile Menu Rebuild */
    .mobile-menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        gap: 6px;
        background: transparent !important; /* Removed background */
        border: none !important; /* Removed border */
        cursor: pointer;
        z-index: 2100 !important; /* Above the 2000 z-index nav-links */
        padding: 5px; /* Reduced since no border */
        width: 44px;
        height: 44px;
        backdrop-filter: none !important; /* Removed blur */
    }
    .mobile-menu-toggle .bar {
        width: 20px;
        height: 2px;
        background: #ffffff !important; /* Forced to white */
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 4px;
    }
    .mobile-menu-toggle .bar:nth-child(2) { width: 14px; }
    
    .mobile-menu-toggle.active {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .mobile-menu-toggle.active .bar { background: #ffffff !important; }
    
    /* Animated Hamburger to X */
    .mobile-menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); width: 20px; }
    .mobile-menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 20px; }

    /* ==========================================================================
       Awwwards-Level Elite Mobile Navigation (Winner Tier)
       ========================================================================== */
    .nav-links {
        position: fixed;
        top: -1rem !important; /* Offsets the 1rem top padding of the .navbar container */
        left: 50% !important; /* Centers within the offset parent */
        width: 100vw !important;
        height: 100vh !important;
        background: #030305 !important; /* Deep dark background */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important; /* Stretch allows the button to be full width */
        padding: 6rem 2rem 2.5rem !important;
        transform: translate(-50%, -100%) !important; /* Elegant curtain slide and horizontal fix */
        transition: transform 0.6s cubic-bezier(0.75, 0, 0.25, 1) !important;
        z-index: 2000 !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        border: none !important;
        border-radius: 0 !important;
    }
    .nav-links.active { transform: translate(-50%, 0) !important; }

    /* Add counter for the staggered numbers */
    .nav-links { counter-reset: nav-item; }

    /* The "// NAVIGATION" Slashed Header — REMOVED per user request */
    .nav-links::before {
        display: none !important;
    }

    /* Style the standard links to look elite */
    .nav-links a:not(.menu-hire-btn) {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #fff !important;
        opacity: 0;
        transform: translateY(20px);
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        transition-delay: calc(var(--i, 0) * 0.08s + 0.3s);
        width: 100%;
        
        font-family: var(--font-heading);
        font-size: 1.8rem !important; /* Reduced from 2.6rem */
        font-weight: 700 !important;
        line-height: 1.1;
        letter-spacing: -0.5px;
        margin-bottom: 0.2rem; /* Reduced space between links */
        position: relative;
        padding-left: 2.2rem; /* Make room for the number */
    }
    .nav-links.active a:not(.menu-hire-btn) { opacity: 1; transform: translateY(0); }

    /* The cyan number indices via ::before */
    .nav-links a:not(.menu-hire-btn)::before {
        counter-increment: nav-item;
        content: "0" counter(nav-item);
        position: absolute;
        left: 0;
        font-family: var(--font-heading);
        font-size: 1rem;
        font-weight: 700;
        color: var(--color-accent);
        top: 50%;
        transform: translateY(-50%);
    }

    /* The Full-Width Centered Hire Button */
    .nav-links .menu-hire-btn { display: none !important; }
    
    /* Hide the primary button that's naturally in the navbar on mobile */
    .navbar > .btn-primary { display: none !important; }

    /* Scroll Lock Fix */
    body.menu-open, html.menu-open { overflow: hidden !important; height: 100% !important; }
    
    /* Disable Horizontal Scroll */
    body, html { overflow-x: hidden !important; width: 100%; position: relative; }
    body.menu-open, html.menu-open { overflow: hidden !important; height: 100vh !important; }
    
    /* Fix floating objects causing overflow */
    .hero-objects { display: none; }

    /* Massive CTA Mobile Optimization */
    .massive-cta { padding: 4rem 1.5rem !important; }
    .massive-cta h2 { 
        font-size: 1.85rem !important; 
        line-height: 1.3 !important; 
        margin-bottom: 2rem !important;
        text-align: center;
        max-width: 100%;
    }
    .massive-cta .btn { width: 100%; max-width: 320px; }
}

@media (max-width: 480px) {
    .hero { padding-top: 5rem !important; }
    .y2k-badge { margin-top: 0.5rem !important; margin-bottom: 1rem !important; }
    .hero-title { font-size: 1.75rem !important; }
}
