﻿/* Google Fonts Import */
/* Google Fonts Import Removed (Loaded in HTML for performance) */

:root {
    /* Color Palette */
    --color-bg-void: #0a0a0f;
    --color-bg-midnight: #0f172a;
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;

    /* Neon Accents */
    --color-neon-cyan: #00f3ff;
    --color-neon-purple: #d055ff;
    --color-neon-green: #00ff9d;
    --color-neon-gold: #fbbf24;

    /* Borders & Glass */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-blur: blur(12px);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg-void);
    color: var(--color-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

:focus-visible {
    outline: 2px solid var(--color-neon-cyan);
    outline-offset: 4px;
    border-radius: 4px;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gradient {
    background: linear-gradient(to right, var(--color-neon-cyan), var(--color-neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.neon-glow {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    transition: var(--transition-fast);
}

.btn-primary {
    background: transparent;
    color: var(--color-neon-cyan);
    border: 1px solid var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-neon-cyan);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-primary:hover {
    color: var(--color-bg-void);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
}

.btn-primary:hover::before {
    transform: scaleX(1);
}

.site-footer {
    padding: var(--spacing-lg) 0;
    margin-top: 0;
    /* Removed border-top here to avoid double lines if CTA has one */
}

/* Tech Blocks (Visual Motif) */
.tech-block-bg {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.1);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: background 0.3s;
}

.main-header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-neon-cyan);
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-neon-purple);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-neon-cyan);
}

/* Mobile Nav Trigger */
.burger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger-bar {
    width: 100%;
    height: 2px;
    background: var(--color-neon-cyan);
    position: absolute;
    transition: var(--transition-fast);
}

.burger-bar:nth-child(1) {
    top: 0;
}

.burger-bar:nth-child(2) {
    top: 9px;
    width: 70%;
    right: 0;
}

.burger-bar:nth-child(3) {
    top: 18px;
}

/* Burger Animation State */
.burger-menu.active .burger-bar:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.burger-menu.active .burger-bar:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Mobile Overlay */
/* Mobile Overlay - Glassmorphism */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Close Button */
.mobile-close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 2001;
}

.mobile-close-btn:hover {
    color: var(--color-neon-cyan);
    transform: rotate(90deg);
}

/* Mobile Menu Header */
.mobile-menu-header {
    position: absolute;
    top: 40px;
    left: 30px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease 0.2s;
}

.mobile-nav-overlay.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
}

/* Links Container */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Animated Links */
.mobile-link {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-nav-overlay.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-link:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-overlay.active .mobile-link:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.mobile-link:hover {
    color: var(--color-neon-cyan);
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transform: scale(1.1) !important;
    /* Override the slide-up transform */
    letter-spacing: 2px;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-glass {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-glass:hover {
    color: var(--color-bg-void);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-glass:hover::before {
    transform: scaleX(1);
}

.mobile-nav-overlay .nav-link {
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   Interactive Logo Effects
   ========================================= */
.interactive-logo {
    display: flex;
    align-items: center;
    position: relative;
    /* Remove default gap to allow manual overlap */
    gap: 0;
}

.mascot-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    /* Initial Position: Hovering slightly UP and LEFT */
    margin-right: -3px;
    /* Moved left 5px (was -8px) */
    margin-bottom: 8px;
    /* Lifted up initially */
    z-index: 2;
    transform-origin: bottom right;
    /* Pivot from feet/body */
    filter: drop-shadow(0 0 15px rgba(0, 243, 255, 0.15));
    /* The Master Sync Animation */
    animation: mascot-place 4s infinite ease-in-out;
}

/* Hover over logo triggers a little extra excitement */
.interactive-logo:hover .mascot-img {
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.4));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    z-index: 1;
    padding-top: 5px;
}

.brand-main {
    font-size: 2rem;
    letter-spacing: 1px;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    position: relative;
}

.powered-p {
    display: inline-block;
    position: relative;
    color: #fff;
    /* Synced Pulse */
    animation: power-pulse 4s infinite ease-in-out;
}

/* The Energy Spark at Contact Point */
.powered-p::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-neon-cyan), 0 0 20px var(--color-neon-cyan);
    opacity: 0;
    /* Synced Spark */
    animation: electric-spark 4s infinite ease-in-out;
    z-index: 3;
}

/* Connecting Beam */
.powered-p::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -14px;
    width: 14px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-neon-cyan));
    opacity: 0;
    transform-origin: right center;
    transform: rotate(-15deg);
    /* Synced Beam */
    animation: energy-beam 4s infinite ease-in-out;
}

.stack-highlight {
    color: var(--color-neon-cyan);
    position: relative;
    display: inline-block;
}

/* Subtle glow reflection on STACK */
.stack-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-neon-cyan);
    filter: blur(20px);
    opacity: 0;
    animation: stack-glow 4s infinite ease-in-out;
}

.brand-sub {
    font-size: 0.8rem;
    letter-spacing: 3px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-left: 2px;
    margin-top: 4px;
    animation: sub-pulse 4s infinite ease-in-out;
}

/* --- MASTER SYNCHRONIZATION KEYFRAMES (4s Loop) --- */

/* 
   Timeline:
   0% - 45%: Idle (Hovering)
   45% - 50%: Placing Down (Contact at 50%)
   50% - 55%: Solid Contact (Energy Flows)
   55% - 60%: Retracting (Lifting Up)
   60% - 100%: Idle
*/

@keyframes mascot-place {

    0%,
    45% {
        transform: translateY(0) rotate(0deg);
        /* Holding High */
    }

    50%,
    53% {
        /* Finalizing:
           TranslateY(10px): Deeper drop (was 8px).
           TranslateX(2px): Shift RIGHT (was 0px).
           Rotate(5deg): Steady. */
        transform: translateY(10px) translateX(2px) rotate(5deg);
    }

    60%,
    100% {
        transform: translateY(0) rotate(0deg);
        /* Lifting Back */
    }
}

@keyframes power-pulse {

    0%,
    48% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        color: #fff;
    }

    50% {
        /* IMPACT MOMENT */
        text-shadow: 0 0 30px var(--color-neon-cyan), 0 0 50px var(--color-neon-cyan);
        color: #e0ffff;
    }

    55% {
        text-shadow: 0 0 15px var(--color-neon-cyan);
    }

    60%,
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        color: #fff;
    }
}

@keyframes electric-spark {

    0%,
    48% {
        opacity: 0;
        transform: scale(0.5);
    }

    49% {
        opacity: 1;
        transform: scale(1.5);
    }

    /* FLASH right before impact solidifies */
    51% {
        opacity: 0.8;
        transform: scale(1);
    }

    53% {
        opacity: 0;
        transform: scale(0.2);
    }

    100% {
        opacity: 0;
    }
}

@keyframes energy-beam {

    0%,
    48% {
        opacity: 0;
        width: 0;
    }

    50% {
        opacity: 1;
        width: 16px;
    }

    /* Beam connects */
    53% {
        opacity: 0.8;
        width: 14px;
    }

    55% {
        opacity: 0;
        width: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes stack-glow {

    0%,
    50% {
        opacity: 0;
    }

    52% {
        opacity: 0.5;
    }

    /* Slight delay reaction */
    60% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

@keyframes sub-pulse {

    0%,
    50% {
        color: rgba(255, 255, 255, 0.7);
        text-shadow: none;
        letter-spacing: 3px;
    }

    52% {
        color: #fff;
        text-shadow: 0 0 10px var(--color-neon-cyan);
        letter-spacing: 4px;
    }

    60%,
    100% {
        color: rgba(255, 255, 255, 0.7);
        text-shadow: none;
        letter-spacing: 3px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: block;
    }
}

/* ==================
   Homepage Specifics
   ================== */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Hero Background Animation */
.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) scale(2);
    transform-origin: top center;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) scale(2) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) scale(2) translateY(50px);
    }
}

/* Story Section */
.story-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-card {
    padding: 2rem;
    position: relative;
}

.story-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-neon-purple), transparent, var(--color-neon-cyan));
    z-index: -1;
    border-radius: 18px;
    opacity: 0.5;
}

/* 3D Image Wrapper */
.image-wrapper-3d {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: var(--glass-bg);
}

.image-wrapper-3d:hover {
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: 0 30px 60px rgba(0, 243, 255, 0.2);
    border-color: var(--color-neon-cyan);
}

/* Reverse grid hover effect tilts opposite way */
.reverse-grid .image-wrapper-3d:hover {
    transform: perspective(1000px) rotateY(5deg);
}

.story-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

.image-wrapper-3d:hover .story-img {
    transform: scale(1.1);
}

/* Problem Solution Grid */
.problem-solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.problem-card {
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
}

.card-image-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.problem-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.problem-card:hover .problem-image {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-neon-cyan);
}

.card-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Highlight Card (The Guarantee) */
.highlight-card {
    border-color: rgba(0, 255, 157, 0.3);
    background: rgba(0, 255, 157, 0.05);
}

.highlight-card:hover {
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.2);
}

/* Services Section */
.services-section {
    padding: var(--spacing-xl) 0;
    background: radial-gradient(circle at center, #0f172a 0%, #0a0a0f 70%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Tech Monolith Design (Solid, Premium, Heavy) */
.service-card {
    position: relative;
    width: 100%;
    height: 420px;
    /* Increased height for breathing room */
    margin-top: 2rem;
    perspective: none;
    transform-style: flat;
    cursor: pointer;
    overflow: hidden;
    /* Ensure spotlight doesn't spill */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The Monolith Slab */
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /* Solid Dark Matte Finish */
    background: #0e0e12;
    border-radius: 12px;
    /* Subtle Surface Texture */
    background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    /* Distinct Borders */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* The "Monolith" Base - Thick Neon Line */
    border-bottom: 4px solid #00f3ff;
    /* Deep Shadow for Weight */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    /* Fix Alignment: Start from top */
    justify-content: flex-start;
    align-items: center;
    padding: 3rem 2rem;
    /* More top padding for breathing room */
    transition: all 0.4s ease;
}

/* Specific Base Colors */
.service-card:nth-child(1) .service-card-inner {
    border-bottom-color: #bd00ff;
}

/* Web Dev - Purple */
.service-card:nth-child(2) .service-card-inner {
    border-bottom-color: #00f3ff;
}

/* AI - Cyan */
.service-card:nth-child(3) .service-card-inner {
    border-bottom-color: #00ff9d;
}

/* Arch - Green */

/* Clean Up Unused Layers from HTML */
.card-layer-1,
.card-layer-2 {
    display: none;
}

.service-card::before,
.service-card::after,
.service-card-inner::before,
.service-card-inner::after {
    content: none;
}

/* Remove holographic markers */

/* Content Styling */
.card-content {
    /* Reset */
    position: relative;
    transform: none;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 2;
    /* Sit above spotlight */
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    /* Circle backing for icon */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy pop */
    flex-shrink: 0;
    /* Don't squash icon */
}

.service-card h3 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    transition: all 0.3s;
    /* Enforce strict height so text starts at same level */
    min-height: 3.4rem;
    /* Enough for 2 lines */
    display: flex;
    align-items: center;
    /* Center single lines vertically in that space */
    text-align: center;
    background-clip: text;
    -webkit-background-clip: text;
}

.service-card p {
    font-size: 0.95rem;
    color: #a0a0a0;
    /* Standard readable grey */
    line-height: 1.6;
    text-align: center;
    max-width: 100%;
    font-weight: 400;
    /* Ensure text doesn't overflow */
    margin-bottom: 1rem;
    transition: color 0.3s;
}

/* Hover Interaction - "Power Up" (Desktop) */
.service-card:hover {
    transform: translateY(-8px);
}

.service-card:hover .service-card-inner {
    background: #111116;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Base Glows & Top Border on Hover (Desktop) */
.service-card:nth-child(1):hover .service-card-inner {
    box-shadow: 0 15px 40px rgba(189, 0, 255, 0.25);
    border-top-color: #bd00ff;
}

.service-card:nth-child(2):hover .service-card-inner {
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.25);
    border-top-color: #00f3ff;
}

.service-card:nth-child(3):hover .service-card-inner {
    box-shadow: 0 15px 40px rgba(0, 255, 157, 0.25);
    border-top-color: #00ff9d;
}

/* Icon Pop & Glow (Desktop) */
.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1) rotate(5deg);
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Gradient Text Reveal (Desktop) */
.service-card:nth-child(1):hover h3 {
    color: transparent;
    background-image: linear-gradient(to right, #fff, #bd00ff);
}

.service-card:nth-child(2):hover h3 {
    color: transparent;
    background-image: linear-gradient(to right, #fff, #00f3ff);
}

.service-card:nth-child(3):hover h3 {
    color: transparent;
    background-image: linear-gradient(to right, #fff, #00ff9d);
}

.service-card:hover p {
    color: #e0e0e0;
}


/* MOBILE ONLY: Automate the effects on scroll */
@media (max-width: 768px) {
    .service-card.active {
        transform: translateY(-8px);
    }

    .service-card.active .service-card-inner {
        background: #111116;
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.7),
            0 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .service-card:nth-child(1).active .service-card-inner {
        box-shadow: 0 15px 40px rgba(189, 0, 255, 0.25);
        border-top-color: #bd00ff;
    }

    .service-card:nth-child(2).active .service-card-inner {
        box-shadow: 0 15px 40px rgba(0, 243, 255, 0.25);
        border-top-color: #00f3ff;
    }

    .service-card:nth-child(3).active .service-card-inner {
        box-shadow: 0 15px 40px rgba(0, 255, 157, 0.25);
        border-top-color: #00ff9d;
    }

    .service-card.active .service-icon {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1) rotate(5deg);
        border-color: #fff;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }

    .service-card:nth-child(1).active h3 {
        color: transparent;
        background-image: linear-gradient(to right, #fff, #bd00ff);
    }

    .service-card:nth-child(2).active h3 {
        color: transparent;
        background-image: linear-gradient(to right, #fff, #00f3ff);
    }

    .service-card:nth-child(3).active h3 {
        color: transparent;
        background-image: linear-gradient(to right, #fff, #00ff9d);
    }

    .service-card.active p {
        color: #e0e0e0;
    }
}


/* Featured Projects */
.projects-section {
    padding: var(--spacing-xl) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: var(--glass-border);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        /* Was 4rem */
        --spacing-xl: 4rem;
        /* Was 8rem - HUGE reduction */
        --spacing-md: 1.5rem;
        /* Tighter internal gaps */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Center Hero Content on Mobile */
    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================
   Portfolio & Modal Styles
   ================== */
.filter-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
    border-color: var(--color-neon-cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.project-card-3d {
    position: relative;
    height: 400px;
    border-radius: 20px;
    transform-style: preserve-3d;
    transform: rotateX(0) rotateY(0);
    transition: transform 0.1s ease-out;
    /* Smooth follow */
    cursor: pointer;
}

.project-card-inner {
    position: absolute;
    inset: 0;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Fallback border */
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Glass effect */
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Dynamic Border Glow */
.project-card-3d::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(45deg, var(--color-neon-cyan), var(--color-neon-purple), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card-3d:hover::before {
    opacity: 1;
}

.project-image {
    width: 100%;
    height: 60%;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s;
}

.project-card-3d:hover .project-image {
    transform: scale(1.05);
    /* Internal zoom */
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateZ(20px);
    /* Pop out text */
}

.project-category {
    font-size: 0.8rem;
    color: var(--color-neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* =========================================
   About Page - Circuit Timeline & Architects
   ========================================= */

.circuit-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Central Circuit Line */
.circuit-line-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
}

.circuit-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.circuit-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.circuit-pulse {
    fill: none;
    stroke: var(--color-neon-cyan);
    stroke-width: 2;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.5s ease-out;
}

/* Timeline Node */
.timeline-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 8rem;
    z-index: 1;
    opacity: 0;
    /* Hidden initially */
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-node.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-node.left .node-content {
    order: 1;
    text-align: right;
}

.timeline-node.left .node-visual {
    order: 2;
}

.timeline-node.right .node-visual {
    order: 1;
}

.timeline-node.right .node-content {
    order: 2;
    text-align: left;
}

.timeline-node.center {
    flex-direction: column;
    text-align: center;
}

/* Node Connector Dot */
.node-connector {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--color-bg-void);
    border: 2px solid var(--color-neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-neon-cyan);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-node.charged .node-connector {
    background: var(--color-neon-cyan);
    box-shadow: 0 0 20px var(--color-neon-cyan), 0 0 40px var(--color-neon-cyan);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.3);
}

.bg-connector {
    top: 0;
    /* For the video node, line connects to top */
}

/* Enhanced Node Content Panel */
/* Enhanced Node Content Panel */
.node-content {
    width: 45%;
    padding: 2rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle default border all around */
    border-radius: 12px;
}

.timeline-node.left .node-content {
    text-align: right;
}

.timeline-node.active .node-content {
    border-color: var(--color-neon-purple);
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.15);
}

/* Hover Effect for Text Panels (Move like images) */
.node-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 40px rgba(189, 0, 255, 0.3);
    border-color: var(--color-neon-cyan);
    z-index: 10;
    background: rgba(20, 20, 30, 0.8);
}

.node-visual {
    width: 45%;
    position: relative;
    /* Context for scanner line */
}

.video-panel {
    width: 80%;
    border: 1px solid var(--color-neon-purple);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.2);
    position: relative;
    z-index: 2;
    background: #000;
}

/* Architects Section */
.architects-section {
    padding: 6rem 0;
    position: relative;
}

.architects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
}

.founder-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s, box-shadow 0.4s;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 243, 255, 0.2);
    border-color: var(--color-neon-cyan);
}

.founder-img-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--color-neon-cyan);
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.2);
    transition: filter 0.4s;
}

.founder-card:hover .founder-img {
    filter: grayscale(0%) contrast(1);
}

/* Sci-fi Scanner Line (Generic for Timeline + Founders) */
.scanner-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--color-neon-cyan), transparent);
    opacity: 0.5;
    animation: scan 4s infinite linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 200%;
    }
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.founder-role {
    color: var(--color-neon-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Stats Bars */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.stat-bar {
    width: 60%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-neon-cyan), var(--color-neon-purple));
    width: 0;
    /* Animates in */
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.founder-card.active .stat-fill {
    opacity: 1;
    /* Controlled via JS, ensuring visibility */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .circuit-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .circuit-line-wrapper {
        left: 20px;
        /* Move line to left side on mobile */
    }

    .timeline-node {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px;
        /* Increased space for visual separation */
        margin-bottom: 4rem;
        width: calc(100% - 60px);
        /* Explicit width calculation */
    }

    .timeline-node.active {
        /* Force active state CSS */
        opacity: 1;
        transform: translateY(0);
    }

    .timeline-node.left .node-content,
    .timeline-node.right .node-content {
        order: 1;
        text-align: left;
        width: 100%;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(189, 0, 255, 0.3);
        /* Ensure visible border on mobile */
        border-right: none;
        border-left: 4px solid var(--color-neon-purple);
        /* Strong accent */
    }

    .timeline-node.left .node-visual,
    .timeline-node.right .node-visual {
        order: 2;
        width: 100%;
    }

    .video-panel {
        width: 100%;
        /* Full width on mobile */
        margin-left: 0;
    }

    .timeline-node.center {
        margin-left: 0;
        width: 100%;
    }

    .node-connector {
        left: 20px;
        /* Align with line */
        transform: translate(-50%, -50%);
    }

    .bg-connector {
        left: 20px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    background: #111;
    border: 1px solid var(--color-neon-purple);
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.9) translateY(50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(189, 0, 255, 0.2);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    /* Keep absolute for now to overlay image */
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.5rem;
    /* Slightly smaller icon font */
    cursor: pointer;
    z-index: 50;
    /* Ensure on top of image */
    background: rgba(0, 0, 0, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.close-modal:hover {
    background: var(--color-neon-purple);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2.5rem;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    /* Remove inline spacing gaps */
}

@media (max-width: 768px) {
    .modal-content {
        max-height: 85vh;
        overflow-y: hidden;
        /* Handle scrolling in body */
        width: 90%;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
    }

    .modal-scroll-area {
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-image {
        height: 220px;
        /* Even smaller for better fit */
    }

    .close-modal {
        position: absolute;
        /* Relative to modal-content now */
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        z-index: 100;
        background: rgba(0, 0, 0, 0.8);
        border-color: var(--color-neon-purple);
    }
}

/* Comparison Grid Layout */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: stretch;
    /* Equal height */
}

.modal-media-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .modal-media-container {
        height: 250px;
    }
}

/* Base Card Style (inherits glass-panel but overrides) */
.comparison-card {
    background: #0e0e12;
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle dark border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card 1: The Problem (Red) */
.comparison-card.problem {
    border-bottom: 4px solid #ff003c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-card.problem:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 0, 60, 0.2);
}

.comparison-card.problem .card-headline {
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.4);
}

/* Card 2: The Solution (Green/Cyan) */
.comparison-card.solution {
    border-bottom: 4px solid #00f3ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-card.solution:hover {
    transform: translateY(-5px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(0, 243, 255, 0.2);
}

.comparison-card.solution .card-headline {
    color: #00f3ff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

/* Typography */
.card-headline {
    font-size: 1.6rem;
    text-transform: uppercase;
    font-weight: 800;
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: 1px;
}

.card-subhead {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    max-width: 90%;
}

/* Image Wrapper Override - Floating Icon Effect */
.comparison-card .card-image-wrapper {
    width: 140px;
    /* Slightly larger */
    height: 140px;
    margin-bottom: 1rem;
    /* Remove the container look */
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-card .card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* "Hologram" Hack: Make black background transparent */
    mix-blend-mode: screen;
    /* Fix: Crush near-blacks and fade edges to hide the square box */
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1)) contrast(1.2) brightness(0.9);
    -webkit-mask-image: radial-gradient(circle, black 50%, transparent 90%);
    mask-image: radial-gradient(circle, black 50%, transparent 90%);
}

/* Mobile Stack */
@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Global CTA Section - The Neon Horizon */
.global-cta-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    margin-top: var(--spacing-lg);
    text-align: center;
    background: #000;
    /* Deep black base */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Animated Grid */
.global-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridScroll 20s linear infinite;
    z-index: 0;
    opacity: 0.5;
}

@keyframes gridScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50px);
    }
}

/* The "Warp Speed" Gradient Burst */
.global-cta-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Wider for impact */
    margin: 0 auto;
    padding: var(--spacing-lg);
    /* Glassmorphism Removal -> Go bold instead */
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid var(--color-neon-cyan);
    border-radius: 30px;
    box-shadow:
        0 0 30px rgba(0, 243, 255, 0.2),
        inset 0 0 50px rgba(0, 243, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.cta-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 0 60px rgba(0, 243, 255, 0.4),
        inset 0 0 50px rgba(0, 243, 255, 0.1);
}

.cta-title {
    font-size: 3.5rem;
    /* Massive Text */
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: white;
    /* Ensure visible on dark background */
}

.cta-btn {
    font-size: 1.5rem;
    /* Massive Button */
    padding: 1.5rem 4rem;
    background: var(--color-neon-cyan);
    color: #000;
    font-weight: 900;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.7);
    display: inline-block;
    text-decoration: none;
    position: relative;
    /* Ensure stacking context */
    z-index: 1;
}

.cta-btn:hover {
    background: #fff !important;
    color: #000 !important;
    /* Force BLACK text for max contrast */
    box-shadow: 0 0 40px rgba(0, 243, 255, 1);
    transform: scale(1.1);
}

.cta-text {
    position: relative;
    z-index: 10;
    /* Text always on top */
}

/* Shine Animation */
.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    /* Slightly stronger shine */
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 0;
    /* Behind text */
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cta-title {
        font-size: 2rem;
    }

    .cta-content {
        padding: 2rem;
        margin: 0 1rem;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }
}

/* Robot Peeking Icon */
.cta-robot-wrapper {
    position: absolute;
    /* Desktop: Feet on bottom line, slightly smaller to avoid text overlap (240px) */
    bottom: -2px;
    right: 0px;
    width: 240px;
    height: 240px;
    z-index: 5;
    pointer-events: none;
}

.cta-robot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .global-cta-section {
        padding-top: 140px;
        /* Space for robot */
        overflow: visible;
        /* Prevent clipping */
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-content {
        padding: 3rem 1.5rem 2rem 1.5rem;
        /* Extra top padding for robot */
        margin: 0 1rem;
    }

    .cta-btn {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    /* Mobile Robot: Top Center Peek */
    .cta-robot-wrapper {
        top: -110px;
        bottom: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 160px;
        height: 160px;
    }

    /* Fix Horizontal Overflow caused by animated background */
    .global-cta-section::before {
        width: 100%;
        animation: none;
        /* Disable heavy animation on mobile */
        background-size: 20px 20px;
    }

    /* Disable heavy blur on mobile for performance */
    .mobile-nav-overlay {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}