/* CSS Variables */
:root {
    --bg-color: #000000;
    --primary-accent: #FFFFFF;
    --secondary-accent: #B0B0B0;
    --text-primary: #FFFFFF;
    --text-muted: #D1D1D1;
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);

    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-accent: 'Space Mono', monospace;

    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.animated-view-btn {
    cursor: pointer;
    font-size: 1.5rem !important; /* Made it bigger */
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 4px;
    transition: var(--transition-smooth);
    display: inline-block;
    user-select: none;
    position: relative;
    padding: 10px 20px;
    animation: pulseViewBtn 3s ease-in-out infinite;
}

.animated-view-btn:hover {
    letter-spacing: 6px;
    transform: scale(1.05);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes pulseViewBtn {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* ====== PREMIUM PRELOADER ====== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.8s;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.glow-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-accent);
    border-bottom-color: var(--secondary-accent);
    animation: spinRing 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    position: relative;
}

.glow-ring::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: rgba(255, 255, 255, 0.1);
    border-right-color: rgba(255, 255, 255, 0.3);
    animation: spinRingReverse 2s linear infinite;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinRingReverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#preloader .logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: pulseText 2s ease-in-out infinite;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 0.5;
        filter: blur(1px);
    }

    50% {
        opacity: 1;
        filter: blur(0px);
    }
}

.loading-bar {
    width: 250px;
    height: 4px;
    background: #111;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
    border-radius: 4px;
    box-shadow: 0 0 15px var(--primary-accent);
}

.loading-percentage {
    color: #666;
    font-family: var(--font-accent);
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    overscroll-behavior-y: none; /* Prevent rubber banding which causes flickering */
}

body {
    background-color: #050505;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -3;
    pointer-events: none;
    transform: scale(1.05) translate3d(0, 0, 0); 
    /* Reduced scale to 1.05 for less GPU load while still preventing white slivers */
    transform-origin: center center;
    backface-visibility: hidden;
    pointer-events: none;
    content-visibility: auto;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 5, 0.75);
    /* Dark overlay so video provides motion but text remains highly readable */
    z-index: -2;
    pointer-events: none;
}


/* Nav Toggle Button */
.nav-toggle {
    display: none;
    position: absolute;
    top: 24px;
    right: 5%;
    width: 45px;
    height: 45px;
    background: rgba(2, 2, 9, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    /* Reduced from 10px to improve scroll performance significantly */
    transition: background-color 0.3s, border-color 0.3s;
    pointer-events: auto;
    cursor: pointer !important;
}

body.nav-collapsed .nav-toggle {
    background: rgba(2, 2, 9, 0.8);
}

.nav-toggle:hover {
    border-color: var(--primary-accent);
}

.hamburger {
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
    display: block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

body:not(.nav-collapsed) .nav-toggle .hamburger {
    background: transparent;
}

body:not(.nav-collapsed) .nav-toggle .hamburger::before {
    transform: rotate(45deg);
}

body:not(.nav-collapsed) .nav-toggle .hamburger::after {
    transform: rotate(-45deg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    width: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-accent);
}

/* Reusable Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 120px 0;
}

.glass-panel {
    background: rgba(10, 10, 10, 0.85);
    /* Solidified to prevent video showthrough and eliminate heavy GPU blur */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff 0%, #b0b0b0 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #D4D4D4;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    color: #FFFFFF;
}

/* ====== CUSTOM ANIMATED BUTTON ====== */
.btn-animated {
    padding-left: 1.2rem;
    padding-right: 1.5rem;
}

.btn-animated span {
    display: block;
    margin-left: 0.5rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-animated svg {
    display: block;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-animated:hover .svg-wrapper {
    animation: fly-1 0.6s ease-in-out infinite alternate !important;
}

.btn-animated:hover svg {
    transform: translateX(2rem) rotate(45deg) scale(1.1);
}

.btn-animated:hover span {
    transform: translateX(30rem);
}

.btn-animated:active {
    transform: scale(0.95);
}

@keyframes fly-1 {
    from {
        transform: translateY(0.1em);
    }

    to {
        transform: translateY(-0.1em);
    }
}

/* Scroll Animation Utility */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: content;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: content;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    contain: content;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ====== NAVBAR ====== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    align-items: center;
}

nav.collapsed {
    transform: translateY(-100%);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 0 40px;
    width: 100%;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-accent);
}

.logo:hover {
    text-shadow: 0 0 15px rgba(229, 231, 235, 0.5);
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 40px;
    width: auto;
    margin-bottom: 0;
    align-items: center;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-container .btn {
    width: auto;
    margin-top: 0;
    padding: 12px 28px;
}

/* ====== HERO SECTION ====== */
#home {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: 0;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

.hero-orbs {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    z-index: 0;
    opacity: 0.4;
    animation: pulse-orb 10s infinite alternate;
    will-change: transform;
}

.hero-orb-1 {
    position: absolute;
    top: 0;
    left: 20%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--primary-accent) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-orb-2 {
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes pulse-orb {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(45deg);
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-45deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(229, 231, 235, 0.1);
    border: 1px solid rgba(229, 231, 235, 0.3);
    border-radius: 50px;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--primary-accent);
    margin-bottom: 30px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: revealChar 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease 1s forwards;
}

.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSlideUp 0.8s ease 1.2s forwards;
}

@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Abstract 3D Orbiting Ring */
.abstract-ring {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid rgba(229, 231, 235, 0.3);
    border-top: 2px solid var(--primary-accent);
    border-bottom: 2px solid var(--secondary-accent);
    z-index: 1;
    transform-style: preserve-3d;
    animation: rotate3d 15s linear infinite;
}

.abstract-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%) rotateX(60deg);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

@keyframes rotate3d {
    0% {
        transform: perspective(800px) rotateX(45deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: perspective(800px) rotateX(45deg) rotateY(360deg) rotateZ(360deg);
    }
}

/* 3D Minimal & Sleek Android Animation */
.robot-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
    z-index: 1;
    overflow: hidden;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(5, 5, 12, 0.9) 0%, rgba(0, 0, 0, 1) 100%);
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.robot-container::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 70% 60%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 150px 150px;
    animation: driftDust 20s linear infinite;
    opacity: 0.3;
    z-index: -1;
}

@keyframes driftDust {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-100px) translateX(-30px);
    }
}

.robot-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: levitateSmooth 4s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes levitateSmooth {
    0% {
        transform: translateY(-15px) rotateX(2deg) scale(0.85);
    }

    100% {
        transform: translateY(15px) rotateX(-2deg) scale(0.85);
    }
}

.android-head {
    width: 150px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #bbbbbb 100%);
    border-radius: 45% 45% 55% 55%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), inset 0 8px 15px #ffffff, inset 0 -15px 25px rgba(50, 50, 50, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    margin: 0 auto;
}

.glass-visor {
    width: 110px;
    height: 40px;
    background: #000000;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.visor-scanner {
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    box-shadow: 0 0 25px #ffffff;
    position: absolute;
    left: -40px;
    animation: scanVisorSmooth 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scanVisorSmooth {

    0%,
    15% {
        left: -40px;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    85%,
    100% {
        left: 110px;
        opacity: 0;
    }
}

.neck-joint {
    width: 50px;
    height: 8px;
    background: #555;
    border-radius: 10px;
    margin: 6px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: pulseGlow 4s infinite alternate;
}

.neck-joint.small {
    width: 35px;
    height: 6px;
    margin: 4px auto 10px;
}

.android-chassis {
    width: 130px;
    height: 90px;
    background: radial-gradient(circle at 50% 0%, #f0f0f0 0%, #8a8a8a 100%);
    border-radius: 30px 30px 60px 60%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 5px 20px rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
}

.core-glow {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle, #ffffff 0%, rgba(200, 200, 200, 0.5) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 40px #ffffff, inset 0 0 20px #ffffff;
    animation: breatheCoreSmooth 3s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes breatheCoreSmooth {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

.floating-hand {
    width: 45px;
    height: 65px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(200, 200, 200, 0.7));
    border-radius: 20px;
    position: absolute;
    z-index: 4;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 3px 8px #fff;
}

.floating-hand.left-hand {
    left: -50px;
    top: 130px;
    animation: floatLeftHand 5s ease-in-out infinite alternate;
}

.floating-hand.right-hand {
    right: -60px;
    top: 80px;
    animation: elegantWave 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes floatLeftHand {
    0% {
        transform: translateY(0) rotate(15deg);
    }

    100% {
        transform: translateY(-15px) rotate(5deg);
    }
}

@keyframes elegantWave {

    0%,
    100% {
        transform: rotate(-10deg) translateY(0);
    }

    50% {
        transform: rotate(15deg) translateY(-8px);
    }
}

/* Disappearing to Text Magic */
.elegant-hi {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 1.3rem;
    /* Scaled down slightly */
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9);
    z-index: 20;
    pointer-events: none;
    display: inline-block;
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #ffffff;
    /* Step timing creates the stuttering typing effect */
    animation: typeWriterReveal 6s steps(22, end) infinite, blinkCursor 0.8s step-end infinite;
}

@keyframes typeWriterReveal {

    0%,
    10% {
        width: 0;
        opacity: 0;
    }

    12% {
        opacity: 1;
    }

    40%,
    80% {
        width: 100%;
        opacity: 1;
    }

    85%,
    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes blinkCursor {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: #ffffff;
    }
}

.ambient-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg);
    animation: rotateAmbient 15s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.ambient-ring-2 {
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(255, 255, 255, 0.03);
    animation: rotateAmbient 25s linear infinite reverse;
}

@keyframes rotateAmbient {
    0% {
        transform: translate(-50%, -50%) rotateX(65deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(65deg) rotateZ(360deg);
    }
}

/* ====== ABOUT SECTION ====== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    padding: 20px;
    aspect-ratio: 1 / 1;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 20px;
}

.about-abstract {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(229, 231, 235, 0.1), rgba(156, 163, 175, 0.05)),
        radial-gradient(circle at top right, rgba(229, 231, 235, 0.2), transparent 50%),
        radial-gradient(circle at bottom left, rgba(156, 163, 175, 0.2), transparent 50%);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.about-abstract::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: conic-gradient(from 0deg at 50% 50%, transparent, var(--primary-accent), var(--secondary-accent), transparent);
    filter: blur(25px);
    /* Reduced from 40px for better framerate during spin animation */
    opacity: 0.3;
    animation: spin 10s linear infinite;
}

.about-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--glass-border);
    padding: 20px 30px;
    border-radius: 15px;
    z-index: 2;
    text-align: center;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-list {
    margin-bottom: 30px;
    list-style: none;
    padding-left: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-primary);
}

/* ====== SERVICES SECTION ====== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 25px;
    color: #ffffff; /* Ensure 'What We' is visible */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ====== 3D CAROUSEL WRAPPER (Replaces Grid) ====== */
.carousel-wrapper {
    width: 100%;
    height: 600px;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 50px 0;
    cursor: grab;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-inner {
    --w: 280px;
    --h: 360px;
    --translateZ: 380px;
    --rotateX: -5deg;
    --perspective: 1500px;
    position: absolute;
    width: var(--w);
    height: var(--h);
    z-index: 2;
    transform-style: preserve-3d;
    transform: perspective(var(--perspective)) rotateX(var(--rotateX)) rotateY(0deg);
    transition: transform 0.1s;
    /* smooth drag */
}

/* Initially STACKED directly on top of each other */
.carousel-card {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateY(0deg) translateZ(0px);
    /* Stacked at center */
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform;
}

/* Stylized beautiful angled stack overlapping using rotateZ to fan out 
   and strict Z spacing to mathematically block any 3D clipping! */
.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(1) {
    transform: translateZ(50px) rotateZ(-12deg) translateX(-80px) translateY(15px);
    z-index: 6;
}

.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(2) {
    transform: translateZ(40px) rotateZ(-7deg) translateX(-45px) translateY(8px);
    z-index: 5;
}

.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(3) {
    transform: translateZ(30px) rotateZ(-2deg) translateX(-15px) translateY(0px);
    z-index: 4;
}

.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(4) {
    transform: translateZ(20px) rotateZ(3deg) translateX(15px) translateY(0px);
    z-index: 3;
}

.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(5) {
    transform: translateZ(10px) rotateZ(8deg) translateX(45px) translateY(8px);
    z-index: 2;
}

.carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(6) {
    transform: translateZ(0px) rotateZ(13deg) translateX(75px) translateY(15px);
    z-index: 1;
}

/* When wrapper gets .carousel-active, they shoot outwards into a ring! */
.carousel-wrapper.carousel-active .carousel-card {
    transform: rotateY(calc((360deg / var(--quantity)) * var(--index))) translateZ(var(--translateZ));
}

/* Tap to spread prompt */
.tap-to-spread {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--primary-accent);
    letter-spacing: 2px;
    pointer-events: none;
    animation: pulse 2s infinite;
    z-index: 20;
    transition: opacity 0.5s;
}

.carousel-wrapper.carousel-active .tap-to-spread {
    opacity: 0;
}

/* Stack Reverter Button */
.revert-stack-btn {
    position: relative;
    margin: 40px auto 0;
    display: inline-block;
    opacity: 0.5; /* Always visible but subtle */
    pointer-events: auto;
    transition: all 0.4s ease;
    z-index: 50;
    min-width: 180px;
}

.carousel-wrapper.carousel-active .revert-stack-btn {
    opacity: 1;
    transform: translateY(-10px);
}

/* Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease;
    z-index: 25;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-wrapper.carousel-active .carousel-nav-btn {
    opacity: 1;
    pointer-events: auto;
}

.carousel-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn.prev-btn {
    left: 20px;
}

.carousel-nav-btn.next-btn {
    right: 20px;
}

/* ====== MOBILE RESPONSIVENESS FOR CAROUSEL ====== */
@media (max-width: 991px) {
    .carousel-inner {
        --translateZ: 300px;
        /* Reduced spread to avoid clipping */
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        height: 550px;
        /* Give more vertical breathing room */
    }

    .carousel-inner {
        --w: 260px;
        --h: 340px;
        --translateZ: 210px;
        /* Highly compressed spread */
        --perspective: 1200px;
    }

    .carousel-nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .carousel-nav-btn.prev-btn {
        left: 5px;
    }

    .carousel-nav-btn.next-btn {
        right: 5px;
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(1) {
        transform: translateZ(30px) rotateZ(-12deg) translateX(-40px) translateY(10px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(2) {
        transform: translateZ(24px) rotateZ(-7deg) translateX(-25px) translateY(5px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(3) {
        transform: translateZ(18px) rotateZ(-2deg) translateX(-10px) translateY(0px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(4) {
        transform: translateZ(12px) rotateZ(3deg) translateX(10px) translateY(0px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(5) {
        transform: translateZ(6px) rotateZ(8deg) translateX(25px) translateY(5px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(6) {
        transform: translateZ(0px) rotateZ(13deg) translateX(40px) translateY(10px);
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        height: 500px;
    }

    .carousel-inner {
        --w: 220px;
        --h: 300px;
        --translateZ: 170px;
        /* Micro-screen constraint protection */
        --perspective: 1000px;
    }

    .flip-card-front,
    .flip-card-back {
        padding: 20px !important;
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(1) {
        transform: translateZ(25px) rotateZ(-12deg) translateX(-25px) translateY(8px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(2) {
        transform: translateZ(20px) rotateZ(-7deg) translateX(-15px) translateY(4px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(3) {
        transform: translateZ(15px) rotateZ(-2deg) translateX(-5px) translateY(0px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(4) {
        transform: translateZ(10px) rotateZ(3deg) translateX(5px) translateY(0px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(5) {
        transform: translateZ(5px) rotateZ(8deg) translateX(15px) translateY(4px);
    }

    .carousel-wrapper:not(.carousel-active) .carousel-card:nth-child(6) {
        transform: translateZ(0px) rotateZ(13deg) translateX(25px) translateY(8px);
    }
}

/* Service Flip Cards (Replacing old static cards) */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 360px;
    /* Fixed height required for absolute positioning of front/back */
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    /* Extra smooth, premium long-tail ease-out physics */
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    border-radius: 20px;
    padding: 20px;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.flip-card-front {
    background-color: #070707;
    /* Force solid base to prevent bleeding */
    background-image: linear-gradient(145deg, rgba(30, 30, 30, 0.98), rgba(10, 10, 10, 1));
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateZ(1px) rotateY(0deg);
}

.flip-card:hover .flip-card-front {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.flip-card-back {
    background-color: #050505;
    /* Force solid base */
    background-image: linear-gradient(135deg, rgba(20, 20, 20, 1), rgba(5, 5, 5, 1));
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transform: rotateY(180deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: clamp(1.2rem, 4vw, 1.4rem);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    word-break: break-word;
    max-width: 100%;
    text-align: center;
}

.service-desc {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Service small button style inside back card */
.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* ====== WHY CHOOSE US ====== */
.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    transition: background 0.3s ease;
}

.feature-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.feature-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #FFFFFF, #B0B0B0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-accent);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-suffix {
    font-size: 2rem;
    margin-left: 5px;
}

.stat-label {
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ====== PROCESS SECTION ====== */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 40px;
    margin-top: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-accent), var(--secondary-accent));
    width: 0;
    transition: width 1.5s ease-out;
}

.timeline-step {
    width: 22%;
    position: relative;
}

.step-number {
    position: absolute;
    top: -50px;
    left: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 2px solid var(--primary-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-accent);
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(229, 231, 235, 0.5);
    transition: transform 0.3s;
}

.timeline-step:hover .step-number {
    transform: scale(1.5);
    background: var(--primary-accent);
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: var(--font-accent);
    color: var(--primary-accent);
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ====== TESTIMONIALS ====== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.founder-card {
    height: 480px;
    /* Taller height specifically for founder quotes */
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.social-icon-btn:hover {
    background: var(--text-primary);
    color: var(--bg-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
    border-color: var(--text-primary);
}

.stars {
    color: var(--primary-accent);
    font-size: 1.2rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
    flex-grow: 1;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--glass-bg), rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: bold;
    color: var(--primary-accent);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s;
    flex-shrink: 0;
}

.testimonial-card:hover .client-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--primary-accent);
}

.client-avatar img {
    width: 70px;
    height: 70px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.client-name {
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.client-position {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ====== CTA BANNER ====== */
.cta-banner {
    padding: 100px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(45deg, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.7));
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, rgba(229, 231, 235, 0.1) 0deg, rgba(156, 163, 175, 0.1) 90deg, transparent 180deg, rgba(229, 231, 235, 0.1) 360deg);
    animation: spin 20s linear infinite;
    z-index: -1;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.cta-banner h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ====== CONTACT SECTION ====== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(229, 231, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-accent);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.contact-form {
    padding: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid var(--glass-border);
    padding: 18px 20px;
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(255, 255, 255, 0.08);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    cursor: pointer;
}

select.form-control option {
    background-color: #0d0d0d;
    color: #ffffff;
    padding: 15px;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

/* ====== FOOTER ====== */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.footer-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
    animation: shimmer 5s infinite;
}

@keyframes shimmer {
    100% {
        left: 200%;
    }
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-link {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex !important;
        transition: top 0.3s;
    }

    nav.collapsed {
        transform: translateY(0);
        background: transparent;
        box-shadow: none;
        padding: 24px 0;
        border: none;
    }

    nav.collapsed.scrolled {
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid var(--glass-border);
        padding: 16px 0;
    }

    nav.scrolled .nav-toggle {
        top: 16px;
    }

    nav:not(.collapsed) {
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        overflow-y: auto;
        padding-top: 80px;
    }

    nav.collapsed .nav-links,
    nav.collapsed .btn {
        display: none;
    }

    nav {
        background: rgba(10, 10, 10, 0.98);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        padding: 40px 0;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    nav:not(.collapsed) .nav-container {
        align-items: center;
    }

    .logo {
        align-self: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        width: 100%;
    }

    .about-container,
    .why-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }

    .timeline {
        flex-direction: column;
        gap: 40px;
    }

    .timeline::before,
    .timeline-line {
        width: 2px;
        height: 100%;
        left: 10px;
        top: 0;
    }

    .timeline-line {
        width: 2px;
        height: 0;
        transition: height 1.5s ease-out;
    }

    .timeline-step {
        width: 100%;
        padding-left: 50px;
    }

    .step-number {
        top: 0;
        left: 0;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        margin-top: 40px;
        font-size: clamp(2.5rem, 10vw, 4.5rem);
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title,
    .why-title,
    .about-content h2,
    .contact-info h3 {
        text-align: center;
    }

    .about-content,
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-info .info-item {
        flex-direction: column;
        gap: 5px;
    }

    .why-title {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .about-badge {
        right: 50%;
        transform: translateX(50%);
        width: 80%;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ====== CUSTOM MODAL FOR TEAM MEMBERS ====== */
.custom-modal {
    display: none; 
    position: fixed; 
    z-index: 999999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-content {
    background: rgba(10, 10, 10, 0.95);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--glass-border);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: modalContentFadeIn 0.4s ease forwards;
}

@keyframes modalContentFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-modal-close {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.custom-modal-close:hover,
.custom-modal-close:focus {
    color: var(--primary-accent);
    text-decoration: none;
    cursor: pointer;
}

.team-card-image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 2px solid var(--primary-accent);
}