html {
    scroll-behavior: smooth; /* Makes anchor links glide elegantly */
}

/* Hide the mobile decoy on Desktop */
.mobile-only-title {
    display: none;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --black: #050505;
    --gray: #111111;
    --accent: #00f2ff;
    --text-main: #ffffff;
    --text-dim: #a1a1a1;
}

/* --- 1. Premium Global Polish --- */

/* Custom Cyber-Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; /* Deep dark background */
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 255, 0.3); /* Dimmed Cyan */
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 255, 0.8); /* Brightens when you grab it */
}

/* Custom Text Highlight */
::selection {
    background: var(--accent); /* Your Cyan color */
    color: #000; /* Black text for contrast */
}
body {
    background-color: var(--black);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    /* We REMOVED display: flex from here so it stops squishing sections! */
}

/* We specifically tell ONLY the navigation to use the side-by-side flex layout */
nav.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    backdrop-filter: blur(10px); /* The expensive glass effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2.5rem;      
    align-items: center; 
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7); /* Brighter grey/white */
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active { 
    color: #ffffff; /* Pure white on hover */
}
.btn-glow {
    background: var(--text-main);
    color: var(--black);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.3s;
}

/* Update your existing button styles with this smooth transition */
.btn-primary, .btn-glow {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Gives a slight 'bounce' */
}

.btn-primary:hover, .btn-glow:hover {
    transform: translateY(-4px); /* Lifts the button up slightly */
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.4); /* Casts a glowing shadow beneath it */
    filter: brightness(1.2);
}


.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -5%; left: -5%; width: 110%; height: 110%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); /* Darkens the image for text readability */
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* The Magic Blend: Radial darkens the corners, Linear fades the bottom into solid black */
    background: 
        linear-gradient(to bottom, transparent 60%, var(--black) 100%),
        radial-gradient(circle at center, transparent 20%, var(--black) 100%);
    z-index: -1;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05; /* This pulls the lines closer together */
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em; /* This gives it that sleek, modern 'Apple' look */
}

.line-accent {
    display: block;
    /* We make the gradient wider and add a 3rd color to loop it */
    background: linear-gradient(90deg, var(--accent), #0055ff, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* This creates the continuous flowing animation */
    animation: shine 4s linear infinite; 
}

/* Add this animation rule right below it */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-lead {
    color: rgba(255, 255, 255, 0.95); /* Much brighter white */
    max-width: 650px;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Dark shadow to lift it off the image */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centers the buttons and text block */
    text-align: center;  /* Centers the text inside the block */
    max-width: 900px;
    z-index: 1;
    margin: 0 auto; /* Centers the container on the screen */
    margin-top: 5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--black);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: 0.3s;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* --- Services Section --- */
.services-section {
    padding: 100px 0;
    background-color: var(--black);
    position: relative;
    z-index: 10; /* Ensures it sits above the hero parallax */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-inline: auto; /* Perfectly centers the block */
}

/* Let's also soften that neon glow so it looks more professional */
.text-glow {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4); /* Thinner, softer glow */
}
.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

.text-glow {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* The Grid Layout */
.services-grid {
    display: grid;
    /* This makes it automatically responsive for mobile! */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
}

/* The Glassmorphism Cards */
.service-card {
    /* Keep your backgrounds and borders */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    
    /* THE FIX: Stop using "all". Only transition the glow effects! */
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; 
}
/* The Hover Glow Effect */
.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black); /* Hides the square edges of your jpgs */
    border-radius: 50%;
}

.icon-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    mix-blend-mode: screen; /* This magically removes the black background from your icons! */
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.6)); /* Extra neon glow */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* 1. The Card Itself (Added a bouncy transition) */
.service-card {
    /* Keep your backgrounds and borders */
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    
    /* THE FIX: Stop using "all". Only transition the glow effects! */
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease; 
}

/* 2. The Card Hover (Lifts higher, zooms slightly, stronger glow) */
.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* 3. The Icon Wrapper Base */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-radius: 50%;
    transition: all 0.4s ease; /* Prepares it to animate */
}

/* 4. THE MAGIC: Animate the Icon when the Card is hovered! */
.service-card:hover .icon-wrapper {
    transform: translateY(-10px) scale(1.15); /* Icon floats up and gets bigger */
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.3); /* Ring glows */
}

.icon-wrapper img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    mix-blend-mode: screen; 
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.6));
    transition: all 0.4s ease;
}

/* Make the icon image itself glow brighter on hover */
.service-card:hover .icon-wrapper img {
    filter: drop-shadow(0 0 15px rgba(0, 242, 255, 1)); 
}

body {
    padding-bottom: 500px; /* Forces the page to be scrollable */
}

/* --- Achievements Section --- */
.achievements-section {
    padding: 150px 0;
    background-color: var(--gray); 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden; /* Prevents the screen from stretching when text zooms */
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.relative-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The Text Layer (Sits on top, z-index: 5) */
.zoom-text-wrapper {
    position: absolute;
    z-index: 5;
    text-align: center;
    width: 100%;
    pointer-events: none; /* Stops the text from blocking mouse clicks */
}

.giant-text {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
}

/* The Cards Layer (Sits behind, z-index: 1) */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
    z-index: 1;
}

.stat-card {
    padding: 2.5rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    transition: 0.4s;
}

.stat-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-number .counter { color: var(--text-main); }
.stat-number .plus { color: var(--accent); margin-left: 4px; }
.stat-card p { color: var(--text-dim); font-size: 1.1rem; font-weight: 500; }

/* --- Trust Proof Section --- */
.trust-section {
    padding: 40px 0;
    background-color: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    /* This creates a cinematic fade-to-black on the left and right edges! */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: inline-flex;
    gap: 6rem;
    align-items: center;
    /* This is the animation command: slide for 25 seconds, perfectly smooth, forever */
    animation: scrollMarquee 25s linear infinite;
}

/* Bonus: Pause the sliding if the client hovers their mouse over it */
.marquee-track:hover {
    animation-play-state: paused;
}

.trust-logo {
    height: 45px; 
    object-fit: contain;
    /* This filter makes ANY logo look like premium, dim grey agency partners */
    filter: grayscale(100%) opacity(0.4); 
    transition: 0.4s ease;
}

/* When hovered, the logo lights up and glows cyan */
.trust-logo:hover {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 15px rgba(0, 242, 255, 0.6));
    transform: scale(1.1);
}

/* The actual infinite scrolling math */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    /* We shift it exactly 50% so the duplicated second set replaces the first set invisibly */
    100% { transform: translateX(-50%); } 
}

/* --- AI Automation Section --- */
.automation-section {
    padding: 120px 0;
    background-color: var(--black);
    overflow: hidden;
}

.automation-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

/* Left Side Copy */
.automation-content {
    flex: 1;
}

.automation-content h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.automation-content > p {
    color: var(--text-dim);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    background: rgba(0, 242, 255, 0.05);
    color: var(--accent);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.feature-list h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-list p {
    color: var(--text-dim);
    line-height: 1.5;
}

/* Right Side: Glass Terminal */
.automation-visual {
    flex: 1;
}

.glass-terminal {
    background: rgba(15, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 255, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-left: 10px;
    font-family: monospace;
}

.terminal-body {
    padding: 2.5rem;
    font-family: monospace;
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 2.5;
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */

 body {
    overflow-x: hidden; 
    width: 100%;
}

/* --- Case Studies Section --- */
.case-studies-section {
    padding: 100px 0;
    background-color: var(--black);
}

.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.case-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    /* THE FIX: Only transition specific hover effects, not 'all' */
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* The hidden top neon line that appears on hover */
.case-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: 0.4s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.case-card:hover::before {
    opacity: 1;
}

.case-metric h3 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.case-metric span {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.case-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

.case-content p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.case-link span {
    color: var(--accent);
    transition: 0.3s;
}

.case-link:hover {
    color: var(--accent);
}

.case-link:hover span {
    transform: translateX(5px); /* Makes the arrow slide to the right */
}
/* --- Final CTA Section --- */
.final-cta {
    padding: 100px 0 150px 0;
    text-align: center;
    background-color: var(--black);
}

.cta-glass-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
    padding: 6rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    max-width: 900px;
    margin: 0 auto;
    transition: 0.4s ease;
}

.cta-glass-card:hover {
    border-color: rgba(0, 242, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 242, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-glass-card h2 {
    margin-bottom: 1.5rem;
}

.cta-glass-card p {
    color: var(--text-dim);
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

/* --- Footer Section --- */
.main-footer {
    padding: 80px 0 30px;
    background: #050505; /* Super dark, grounds the site beautifully */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-dim);
    margin-top: 1.5rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

/* Cool hover effect for footer links */
.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px); 
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    /* 1. Hide Desktop Links on mobile to stop the overlap */
    .nav-links { display: none; }
    
    /* 2. Reduce massive padding */
    section { padding: 60px 0 !important; }
    
    /* 3. Scale down text */
    .hero-title { font-size: 2.5rem; }
    .section-header h2 { font-size: 2.2rem; }
    .giant-text { font-size: 3rem; }

    /* 4. Force Services Grid to stack into 1 column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* 5. Fix the Terminal/AI Section */
    .automation-container {
        flex-direction: column;
        gap: 2rem;
    }
    .automation-visual { width: 100%; }

    /* 6. Fix Bento Cards */
    .bento-grid {
        display: flex; 
        flex-direction: column;
        height: auto;
    }
    .bento-card {
        padding: 1.5rem;
        width: 100%; 
        box-sizing: border-box;
    }

    /* 7. Fix Achievements Grid (2 columns on mobile looks best) */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat-number { font-size: 2rem; }
}
/* 8. Fix Case Studies Grid */
    .case-grid { grid-template-columns: 1fr; }
    .case-card { padding: 2rem; }
    .case-metric h3 { font-size: 3rem; }

/* --- Projects Bento Box Section --- */
.projects-section {
    padding: 100px 0;
    background-color: var(--black);
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: 1fr 1fr;    /* Two equal rows */
    gap: 1.5rem;
    height: 600px;
}

/* Make the first card span both rows on the left */
.bento-large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.bento-small {
    /* These automatically fill the right side */
}

.bento-card {
    /* Subtle dark gradient instead of flat color */
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* The Magic: Adds a tiny white highlight to the top inside edge of the glass */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-radius: 24px; /* Slightly softer corners */
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bento-card:hover {
    border-color: rgba(0, 242, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 40px rgba(0, 242, 255, 0.1);
    transform: translateY(-5px);
}
.bento-badge {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.bento-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    z-index: 2;
    position: relative;
}

.bento-content p {
    color: var(--text-dim);
    line-height: 1.6;
    z-index: 2;
    position: relative;
}

/* --- Mock UI Elements (The Hover Magic) --- */
.mock-ui {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.5s ease;
    transform: translateY(10px);
    opacity: 0.7;
}

/* When the user hovers the card, the UI inside jumps up and glows! */
.bento-card:hover .mock-ui {
    transform: translateY(-5px);
    opacity: 1;
    border-color: rgba(0, 242, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

/* Mini Chat UI */
.chat-bubble {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* The Bot's Messages */
.chat-bubble.bot { 
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.15), rgba(0, 242, 255, 0.05)); 
    border: 1px solid rgba(0, 242, 255, 0.2);
    color: #ffffff; /* Brighter text for readability */
    border-bottom-left-radius: 4px; 
}

/* The Client's Messages */
.chat-bubble.user { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim); 
    margin-left: auto; 
    border-bottom-right-radius: 4px; 
}
/* Mini Code UI */
.code-ui code { display: block; font-family: monospace; color: var(--text-dim); margin-bottom: 0.5rem; }

/* Mini Visual UI */
.wireframe-box { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 8px; margin-bottom: 1rem; }
.wireframe-line { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; margin-bottom: 0.5rem; }
.wireframe-line.short { width: 60%; }

/* Mobile Fix */
@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .bento-large { grid-column: 1; grid-row: auto; }
}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */

/* 1. Prevent screen from shifting left/right */
 body {
    overflow-x: hidden; 
    width: 100%;
}


/* --- Case Study Article Page --- */
.case-article-section {
    padding: 150px 0 100px 0;
    background-color: var(--black);
    min-height: 100vh;
}

.article-container {
    max-width: 800px; /* Constrains the width for perfect readability */
    flex-direction: column;
    align-items: flex-start;
}

.back-link {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    transition: 0.3s;
}

.back-link:hover { color: var(--accent); }

.article-header {
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
}

.article-header h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 1.5rem 0;
}

.article-body h3 {
    font-size: 1.8rem;
    color: white;
    margin: 2.5rem 0 1rem 0;
}

.article-body p {
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-body ul {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-body li { margin-bottom: 0.8rem; }
.article-body strong { color: white; }

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.mini-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.mini-metric h4 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.article-cta {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(145deg, rgba(0, 242, 255, 0.1) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 16px;
    text-align: center;
}

.article-cta h3 { margin: 0 0 1.5rem 0; }

/* --- Process Timeline Section --- */
.process-section {
    padding: 120px 0;
    background-color: var(--gray); /* Slightly lighter black for contrast */
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 40px; /* Space for the vertical line */
}

/* The vertical background line */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-step {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* The Glowing Dots */
.timeline-dot {
    position: absolute;
    left: -45px; /* Pulls it perfectly over the line */
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
    z-index: 2;
    transition: 0.3s;
}

/* Reusable Glass Card class (Saves code!) */
/* Reusable Glass Card class */
.glass-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.4) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    /* THE FIX: Only transition the hover effects */
    transition: border-color 0.4s ease, transform 0.4s ease;
}
.glass-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateX(10px); /* Slides right slightly on hover */
}

.step-badge {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 0.8rem;
}

.timeline-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.timeline-card p {
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- Process Timeline Walking Dot CSS --- */

/* Add more space to the container for the dot to start/finish */
.timeline-container {
    padding: 100px 0 100px 40px; 
}

/* 1. Static Background Line */
.timeline-line {
    top: 100px;
    bottom: 100px; /* Aligns with container padding */
}

/* 2. The Dynamic Filling Line (Invisible initially) */
.active-line {
    position: absolute;
    left: 0;
    top: 100px; /* Starts at the static line top */
    width: 2px;
    background: var(--accent);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    height: 0%; /* Fills dynamically with GSAP */
    z-index: 1;
    opacity: 0; /* Hidden initially */
    transition: opacity 0.3s;
}

/* 3. The Moving Dot ( Invisible initially) */
.moving-dot {
    position: absolute;
    left: -4px; /* Perfectly overlaps background line */
    top: 0; /* Positioned by GSAP */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 1);
    z-index: 3;
    opacity: 0; /* Hidden initially */
    transition: opacity 0.3s;
}

/* The existing dot inside the card (lights up when active) */
.timeline-dot {
    left: -44px; /* Pull it perfectly over the line */
    top: 15px;
    border-color: rgba(255, 255, 255, 0.1);
    background: var(--black);
    box-shadow: none;
    transition: 0.4s ease;
}

/* We create a temporary active state for the static dots */
.timeline-step.active .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);
}

/* Mobile Fix adjustment */
@media (max-width: 768px) {
    .timeline-container { padding: 60px 0 60px 30px; }
    .timeline-line { top: 60px; bottom: 60px; }
    .active-line { top: 60px; }
    .timeline-dot { left: -35px; top: 15px; }
    .moving-dot { left: -4px; }
}
/* 2. Rules applied ONLY to Mobile Phones & Small Tablets */

/* --- Founder Section --- */
.founder-section {
    padding: 120px 0;
    background-color: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.founder-container {
    display: flex;
    align-items: center;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Signature Image Wrapper */
.founder-image-wrapper {
    flex: 1;
    position: relative;
}

.founder-img {
    width: 100%;
    /* Creates a fixed, premium vertical aspect ratio */
    min-height: 450px; 
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2; /* Sits over the glow */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle dark glass finish */
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.8) 0%, rgba(10, 10, 15, 1) 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* The ambient backlight behind the photo (we will animate this in JS) */
.founder-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.15; /* Subdued initial state */
    z-index: 1;
}

/* The Text Content */
.founder-content {
    flex: 1;
}

.founder-content .section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.founder-content p {
    color: var(--text-dim);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* The Signature Block */
.founder-signature {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.founder-signature h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.founder-signature span {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

/* Step 3.5: Mobile Overrides (Keep it stacked on mobile!) */
@media (max-width: 768px) {
    .founder-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    .founder-img { min-height: 350px; }
    .founder-content .section-title { font-size: 2.5rem; }
}


/* --- Contact Page Styles --- */
.contact-form-section {
    padding: 150px 0 100px 0;
    background-color: var(--black);
    min-height: 100vh;
}

.contact-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.contact-content { flex: 1; }
.contact-visual { flex: 1; }

.contact-content h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin: 1.5rem 0;
}

.contact-content p {
    color: var(--text-dim);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Glassmorphism Form */
/* Glassmorphism Form */
.glass-form {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.6) 0%, rgba(10, 10, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 255, 0.05);
    transition: all 0.5s ease; /* Prepares it for animation */
}

/* The Premium Hover State */
.glass-form:hover {
    border-color: rgba(0, 242, 255, 0.5); 
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.7) 0%, rgba(10, 10, 15, 0.95) 100%);
    transform: translateY(-2px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 255, 0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(0, 242, 255, 0.5);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Make placeholders dim and elegant */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

/* Mobile Overrides (keep it stacked on mobile) */
@media (max-width: 960px) {
    .contact-container { flex-direction: column; gap: 3rem; }
    .glass-form { padding: 2rem; }
}


/* --- Mobile Menu Styles --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: 0.3s;
}

/* The Full-Screen Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden off-screen */
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-overlay.active { right: 0; }

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li { margin: 2rem 0; }

.mobile-nav-links a {
    font-size: 2rem;
    color: white;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; } /* Hide desktop nav */
    .menu-toggle { display: flex; } /* Show hamburger */
}


@media (max-width: 768px) {
    
    /* Reduce massive desktop padding */
    section {
        padding: 60px 0 !important; 
    }
    
    /* Scale down giant text */
    .hero-title { font-size: 3rem; }
    .section-header h2 { font-size: 2.2rem; }
    .giant-text { font-size: 3.5rem; }

    /* Fix the Terminal/AI Section */
    .automation-container {
        flex-direction: column;
        gap: 3rem;
    }
    .automation-visual { width: 100%; }
    .glass-terminal { font-size: 0.85rem; }
    .terminal-body { padding: 1.5rem; line-height: 2; }

    /* Fix the Bento Cards so they stack and don't cut off text */
    .bento-grid {
        display: flex; 
        flex-direction: column;
        height: auto;
    }
    .bento-card {
        padding: 1.5rem;
        width: 100%; 
        box-sizing: border-box; /* Keeps padding inside the box limits */
    }
    .bento-content h3 {
        font-size: 1.5rem;
        word-wrap: break-word; /* Forces long words to wrap instead of breaking the box */
    }
    .chat-bubble { font-size: 0.85rem; padding: 0.8rem; }

    /* Stack the Impact/Number Cards neatly (2 columns instead of 4) */
    .achievements-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-number { font-size: 2.5rem; }
} 

/* ==========================================================
   THE 4 AM MOBILE OVERRIDE PATCH (MAX-WIDTH: 767PX)
   ========================================================== */
@media (max-width: 767px) {
    
    /* 1. ASSASSINATE HORIZONTAL SCROLLING */
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .container {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    /* 2. FIX HERO TEXT OVERFLOW */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
        line-height: 1.1;
        word-wrap: break-word;
    }

    /* 3. FIX "OUR IMPACT" COLLISION (THE FINAL STATIC OVERRIDE) */
    .achievements-section .relative-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .zoom-text-wrapper {
        position: static !important; /* Rips it out of 3D absolute space */
        transform: none !important;  /* Kills GSAP transforms */
        translate: none !important;  /* Kills new CSS translates */
        scale: none !important;      /* Kills GSAP scaling */
        width: 100% !important;
        margin: 0 0 30px 0 !important;
        display: block !important;
        opacity: 1 !important;
    }

    .giant-text {
        font-size: 2.8rem !important; 
        line-height: 1.1 !important;
        text-align: center !important;
        width: 100% !important;
        display: block !important;
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .achievements-grid {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; 
        gap: 15px !important;
        opacity: 1 !important;
    }
    .stat-card {
        padding: 20px;
    }

    /* 4. FIX THE BROKEN CTA BUTTON */
    .cta-glass-card {
        padding: 40px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .final-cta .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
        white-space: nowrap; /* Stops the text from stacking weirdly */
    }

    /* 5. FIX THE FOUNDER SECTION TEXT OVERFLOW */
    .founder-content h2 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }
}

/* ==========================================================
   4 AM LAUNCH FIXES: ALIGNMENT & VISIBILITY OVERRIDES
   ========================================================== */

/* 1. TIMELINE DEAD-CENTER ALIGNMENT FIX (ALL DEVICES) */
.timeline-line, 
.active-line,
.moving-dot,
.timeline-dot {
    /* This mathematically forces ALL timeline elements onto the exact same vertical center line */
    left: 20px !important; 
    transform: translateX(-50%) !important;
}

/* 2. MOBILE-ONLY NUCLEAR OVERRIDES */
@media (max-width: 767px) {
    
    /* FIX "OUR IMPACT" SHIFTING LEFT */
    .zoom-text-wrapper {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate(0, 0) !important; /* Kills the GSAP shifting */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .giant-text {
        font-size: 2.5rem !important; /* Safe size for all phones */
        text-align: center !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* BRING BACK THE CTA SECTION */
    .final-cta {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 50 !important;
        height: auto !important;
        min-height: 250px !important; /* Forces the browser to give it physical space */
        padding: 60px 0 !important;
    }
    
    .cta-glass-card {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(0,0) !important;
        display: block !important;
    }
}

/* Assassinate the broken GSAP title on mobile */
    .desktop-only-title {
        display: none !important;
    }

    /* Show the pristine, untouched decoy title on mobile */
    .mobile-only-title {
        display: block !important;
        font-size: 2.8rem !important;
        text-align: center !important;
        margin: 0 auto 30px auto !important;
        position: relative !important;
        width: 100% !important;
        font-weight: 800;
    }
/* ==========================================================
   4 AM LAUNCH FIXES: ALIGNMENT & VISIBILITY OVERRIDES
   ========================================================== */

/* 1. TIMELINE DEAD-CENTER ALIGNMENT FIX (ALL DEVICES) */
.timeline-line, 
.active-line,
.moving-dot,
.timeline-dot {
    left: 20px !important; 
    transform: translateX(-50%) !important;
}

/* 2. MOBILE-ONLY NUCLEAR OVERRIDES (EVERYTHING INSIDE HERE!) */
@media (max-width: 767px) {
    
    /* FIX "OUR IMPACT" SHIFTING LEFT */
    .zoom-text-wrapper {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        transform: translate(0, 0) !important; 
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    .giant-text {
        font-size: 2.5rem !important; 
        text-align: center !important;
        position: static !important;
        transform: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* BRING BACK THE CTA SECTION */
    .final-cta {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        z-index: 50 !important;
        height: auto !important;
        min-height: 250px !important; 
        padding: 60px 0 !important;
    }
    
    .cta-glass-card {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translate(0,0) !important;
        display: block !important;
    }

    /* Assassinate the broken GSAP title on mobile */
    .desktop-only-title {
        display: none !important;
    }

    /* Show the pristine, untouched decoy title on mobile */
    .mobile-only-title {
        display: block !important;
        font-size: 2.8rem !important;
        text-align: center !important;
        margin: 0 auto 30px auto !important;
        position: relative !important;
        width: 100% !important;
        font-weight: 800;
    }

    /* 4 AM LAUNCH FIXES: CONTACT FORM OVERFLOW */
    .form-row, 
    .form-group, 
    .input-row { 
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    form input, 
    form textarea, 
    form select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .contact-form-wrapper,
    form {
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 4 AM LAUNCH FIXES: GLOBAL BUTTON OVERFLOW */
    .btn-primary, 
    .btn-secondary, 
    .magnetic-btn, 
    .btn-glow,
    a[class*="btn"] {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        min-height: 55px !important; 
        white-space: normal !important; 
        word-wrap: break-word !important;
        line-height: 1.3 !important;
        padding: 15px 20px !important;
        box-sizing: border-box !important;
    }

} /* <--- THIS IS THE MASTER SHIELD. NOTHING GETS PAST THIS BRACKET. */