/* ===== BASE & RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: linear-gradient(180deg,
        #000000 0%,
        #020408 10%,
        #030609 20%,
        #04070c 30%,
        #050810 40%,
        #04070c 60%,
        #030609 80%,
        #020408 90%,
        #000000 100%
    );
    font-family: 'Outfit', sans-serif;
    position: relative;
    height: auto;
}

/* Ensure blob container spans full page height */
html, body {
    height: auto;
}

/* Wrapper to constrain background elements */
body > *:not(nav):not(footer) {
    position: relative;
}

footer {
    background: #000000;
    position: relative;
    z-index: 50;
    margin: 0;
}


body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    opacity: 0;
    pointer-events: none;
    max-height: 100vh;
}

/* Dot Grid Overlay */
.dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: radial-gradient(circle, rgba(148, 163, 184, 0.15) 1px, transparent 1px);
    background-size: 25px 25px;
    z-index: -2;
    opacity: 0.5;
    pointer-events: none;
}


/* Blob Container - Contains all blobs and prevents overflow */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

/* Animated Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    will-change: transform;
}

.bg-blob:nth-child(odd) {
    animation: floatAround1 20s ease-in-out infinite;
}

.bg-blob:nth-child(even) {
    animation: floatAround2 25s ease-in-out infinite;
}

/* Top blobs more transparent */
.bg-blob-1, .bg-blob-11, .bg-blob-17 {
    opacity: 0.1;
}

/* Mid-top blobs */
.bg-blob-2, .bg-blob-3, .bg-blob-9, .bg-blob-13, .bg-blob-22 {
    opacity: 0.12;
}

/* Mid blobs */
.bg-blob-4, .bg-blob-15, .bg-blob-18, .bg-blob-23 {
    opacity: 0.14;
}

/* Mid-bottom blobs */
.bg-blob-5, .bg-blob-6, .bg-blob-7, .bg-blob-19, .bg-blob-21 {
    opacity: 0.16;
}

/* Bottom blobs less transparent */
.bg-blob-8, .bg-blob-10, .bg-blob-12, .bg-blob-16 {
    opacity: 0.18;
}

/* Very bottom blobs most opaque */
.bg-blob-14, .bg-blob-20 {
    opacity: 0.2;
}

.bg-blob-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #1a2a4a, #0d1a2a);
    top: 300px;
    left: 5%;
    animation-delay: 0s;
}

.bg-blob-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #1d2f4d, #1a2a4a);
    top: 800px;
    right: 8%;
    animation-delay: -5s;
}

.bg-blob-3 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #253857, #1d2f4d);
    top: 1500px;
    left: 15%;
    animation-delay: -10s;
}

.bg-blob-4 {
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, #1a2540, #0d1525);
    top: 2200px;
    right: 20%;
    animation-delay: -3s;
}

.bg-blob-5 {
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, #1f2e45, #0f1e2c);
    top: 3000px;
    left: 50%;
    animation-delay: -8s;
}

.bg-blob-6 {
    width: 456px;
    height: 456px;
    background: radial-gradient(circle, #1c2a3e, #0c1a28);
    top: 3800px;
    left: 10%;
    animation-delay: -12s;
}

.bg-blob-7 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #1e2d48, #0e1d2a);
    top: 4600px;
    right: 15%;
    animation-delay: -6s;
}

.bg-blob-8 {
    width: 504px;
    height: 504px;
    background: radial-gradient(circle, #1b2843, #0b1821);
    top: 5400px;
    left: 25%;
    animation-delay: -15s;
}

.bg-blob-9 {
    width: 336px;
    height: 336px;
    background: radial-gradient(circle, #202f4c, #101f2d);
    top: 1100px;
    right: 35%;
    animation-delay: -2s;
}

.bg-blob-10 {
    width: 432px;
    height: 432px;
    background: radial-gradient(circle, #1d2b46, #0d1b29);
    top: 6200px;
    left: 18%;
    animation-delay: -18s;
}

.bg-blob-11 {
    width: 372px;
    height: 372px;
    background: radial-gradient(circle, #1a2642, #0a1626);
    top: 600px;
    right: 12%;
    animation-delay: -4s;
}

.bg-blob-12 {
    width: 468px;
    height: 468px;
    background: radial-gradient(circle, #1f2f4a, #0f1f2b);
    top: 7000px;
    left: 45%;
    animation-delay: -10s;
}

.bg-blob-13 {
    width: 324px;
    height: 324px;
    background: radial-gradient(circle, #1c2941, #0c1927);
    top: 1800px;
    left: 65%;
    animation-delay: -7s;
}

.bg-blob-14 {
    width: 408px;
    height: 408px;
    background: radial-gradient(circle, #1e2c47, #0e1c2c);
    top: 7800px;
    right: 25%;
    animation-delay: -13s;
}

.bg-blob-15 {
    width: 492px;
    height: 492px;
    background: radial-gradient(circle, #1b2744, #0b1721);
    top: 2600px;
    right: 5%;
    animation-delay: -1s;
}

.bg-blob-16 {
    width: 348px;
    height: 348px;
    background: radial-gradient(circle, #212e4e, #111e2e);
    top: 5000px;
    left: 55%;
    animation-delay: -16s;
}

.bg-blob-17 {
    width: 396px;
    height: 396px;
    background: radial-gradient(circle, #1d2a45, #0d1a28);
    top: 900px;
    left: 70%;
    animation-delay: -9s;
}

.bg-blob-18 {
    width: 444px;
    height: 444px;
    background: radial-gradient(circle, #1a2741, #0a1725);
    top: 3400px;
    left: 35%;
    animation-delay: -14s;
}

.bg-blob-19 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #1f2e49, #0f1e2b);
    top: 4200px;
    right: 18%;
    animation-delay: -11s;
}

.bg-blob-20 {
    width: 384px;
    height: 384px;
    background: radial-gradient(circle, #1c2842, #0c1827);
    top: 8600px;
    left: 40%;
    animation-delay: -17s;
}

.bg-blob-21 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, #1e2d46, #0e1d2a);
    top: 3700px;
    left: 8%;
    animation-delay: -5s;
}

.bg-blob-22 {
    width: 456px;
    height: 456px;
    background: radial-gradient(circle, #1b2945, #0b1921);
    top: 1600px;
    right: 30%;
    animation-delay: -19s;
}

.bg-blob-23 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, #202f4b, #101f2d);
    top: 2900px;
    right: 40%;
    animation-delay: -3s;
}

@keyframes floatAround1 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    15% {
        transform: translate(200px, -150px) scale(1.3) rotate(60deg);
    }
    30% {
        transform: translate(-180px, 120px) scale(0.7) rotate(120deg);
    }
    45% {
        transform: translate(150px, 180px) scale(1.2) rotate(200deg);
    }
    60% {
        transform: translate(-120px, -160px) scale(0.8) rotate(280deg);
    }
    75% {
        transform: translate(160px, 100px) scale(1.1) rotate(340deg);
    }
    90% {
        transform: translate(-100px, -120px) scale(0.9) rotate(380deg);
    }
}

@keyframes floatAround2 {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    20% {
        transform: translate(-180px, 170px) scale(1.25) rotate(-80deg);
    }
    40% {
        transform: translate(190px, -130px) scale(0.75) rotate(-160deg);
    }
    60% {
        transform: translate(-140px, -180px) scale(1.15) rotate(-240deg);
    }
    80% {
        transform: translate(120px, 140px) scale(0.85) rotate(-320deg);
    }
}

/* Background Shapes and Effects */
.bg-shape {
    position: absolute;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.05), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: shoot 3s ease-in-out infinite;
}

.shooting-star-1 {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.shooting-star-2 {
    top: 40%;
    right: 30%;
    animation-delay: 2s;
}

.shooting-star-3 {
    top: 70%;
    left: 50%;
    animation-delay: 4s;
}

.shooting-star-4 {
    top: 25%;
    right: 15%;
    animation-delay: 6s;
}

.shooting-star-5 {
    bottom: 30%;
    left: 35%;
    animation-delay: 8s;
}

@keyframes shoot {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.05;
    }
    100% {
        transform: translateX(300px) translateY(300px);
        opacity: 0;
    }
}

/* Floating Dots */
.float-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(148, 163, 184, 0.05);
    border-radius: 50%;
    animation: floatDot 8s ease-in-out infinite;
}

.float-dot-1 {
    top: 10%;
    left: 25%;
    animation-delay: 0s;
}

.float-dot-2 {
    top: 35%;
    right: 20%;
    animation-delay: 1s;
}

.float-dot-3 {
    bottom: 25%;
    left: 40%;
    animation-delay: 2s;
}

.float-dot-4 {
    top: 60%;
    right: 35%;
    animation-delay: 3s;
}

.float-dot-5 {
    bottom: 15%;
    right: 45%;
    animation-delay: 4s;
}

@keyframes floatDot {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.05;
    }
    50% {
        transform: translateY(-40px);
        opacity: 0.05;
    }
}

/* Circles */
.bg-circle {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, 0.05);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
}

.bg-circle-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 30%;
    right: 25%;
    animation-delay: 2s;
}

.bg-circle-3 {
    width: 120px;
    height: 120px;
    top: 55%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.05;
    }
}

/* Triangles */
.bg-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    opacity: 0.05;
    animation: rotate 15s linear infinite;
}

.bg-triangle-1 {
    border-width: 0 30px 52px 30px;
    border-color: transparent transparent rgba(148, 163, 184, 0.05) transparent;
    top: 30%;
    right: 40%;
}

.bg-triangle-2 {
    border-width: 0 25px 43px 25px;
    border-color: transparent transparent rgba(148, 163, 184, 0.05) transparent;
    bottom: 40%;
    left: 30%;
    animation-delay: -5s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Squares */
.bg-square {
    position: absolute;
    background: rgba(148, 163, 184, 0.05);
    animation: drift 12s ease-in-out infinite;
}

.bg-square-1 {
    width: 40px;
    height: 40px;
    top: 45%;
    left: 20%;
    animation-delay: 0s;
}

.bg-square-2 {
    width: 30px;
    height: 30px;
    bottom: 35%;
    right: 30%;
    animation-delay: -4s;
}

@keyframes drift {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -30px) rotate(180deg);
    }
}

/* Lines */
.bg-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.05), transparent);
    opacity: 0.05;
    animation: lineGlow 4s ease-in-out infinite;
}

.bg-line-1 {
    width: 200px;
    top: 25%;
    left: 30%;
}

.bg-line-2 {
    width: 150px;
    bottom: 40%;
    right: 20%;
    animation-delay: -2s;
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.05;
    }
}

/* Plus Signs */
.bg-plus {
    position: absolute;
    width: 20px;
    height: 20px;
    opacity: 0.05;
    animation: spin 10s linear infinite;
}

.bg-plus::before,
.bg-plus::after {
    content: '';
    position: absolute;
    background: rgba(148, 163, 184, 0.05);
}

.bg-plus::before {
    width: 20px;
    height: 2px;
    top: 9px;
    left: 0;
}

.bg-plus::after {
    width: 2px;
    height: 20px;
    top: 0;
    left: 9px;
}

.bg-plus-1 {
    top: 35%;
    left: 45%;
}

.bg-plus-2 {
    bottom: 45%;
    right: 25%;
    animation-delay: -5s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== FONT STYLES ===== */
/* Franklin Gothic Heavy for Logo */
@font-face {
    font-family: 'Franklin Gothic Heavy';
    src: local('Franklin Gothic Heavy'), local('Franklin-Gothic-Heavy');
    font-weight: 900;
    font-style: normal;
}

/* Lexend Medium for Headers */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
}

/* Outfit for body text */
body, p, a, span, div {
    font-family: 'Outfit', sans-serif;
}

/* ===== CSS VARIABLES ===== */
:root {
    --blue-accent: #3b82f6;
    --blue-subtle: rgba(59, 130, 246, 0.08);
    --blue-border: rgba(59, 130, 246, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --bg-card: rgba(16, 16, 16, 0.98);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 50%, #60a5fa 100%);
    width: 0%;
    transition: width 0.1s linear;
    z-index: 100;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* ===== NAVIGATION CONTAINER ===== */
#main-nav {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

.nav-container {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-nav.scrolled .nav-container {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-medium);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ===== LOGO STYLING ===== */
.nav-logo-container {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo-container:hover {
    transform: translateX(2px);
}

.nav-logo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    font-family: 'Franklin Gothic Heavy', 'Arial Black', sans-serif;
}

.logo-subtitle {
    font-size: 0.625rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

/* Logo hover animation */
.nav-logo:hover .logo-text {
    background: linear-gradient(90deg,
        #2563eb 0%,
        #3b82f6 25%,
        #2563eb 50%,
        #3b82f6 75%,
        #2563eb 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Navigation Links */
.nav-link-advanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.625rem 1rem;
    padding-left: 1rem;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: 'Outfit', sans-serif;
    overflow: visible;
}

.nav-link-advanced:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

.nav-link-advanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    background-size: 200% 100%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform-origin: center;
    border-radius: 2px;
}

.nav-link-advanced:hover::after {
    transform: translateX(-50%) scaleX(1) !important;
    animation: shimmer 2s ease-in-out infinite !important;
}

/* Underline for regular nav links (non-dropdown) */
a.nav-link-advanced::after {
    bottom: 0;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Arrow Icon */
.nav-arrow {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease !important;
    color: #64748b;
}

.nav-dropdown:hover .nav-arrow,
.nav-dropdown.active .nav-arrow {
    transform: rotate(180deg) !important;
    color: #3b82f6 !important;
}

/* CTA Button */
.nav-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.nav-cta-button:hover {
    border-color: rgba(59, 130, 246, 0.6) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25) !important;
    transform: translateY(-2px) !important;
}

.nav-cta-button:hover::before {
    opacity: 1 !important;
}

.nav-cta-button:active {
    transform: translateY(0);
}

.nav-cta-button span {
    position: relative;
    z-index: 1;
}

.nav-cta-button svg {
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: arrowPulse 2s ease-in-out infinite;
}

.nav-cta-button:hover svg {
    transform: translateX(3px);
    animation: none;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(4px);
    }
}

/* ===== MEGA MENU ===== */
.nav-dropdown {
    position: relative;
}

.nav-mega-menu {
    position: absolute;
    top: calc(100% + 26px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px) scale(0.98);
    min-width: 920px;
    background: rgba(5, 5, 10, 1);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(59, 130, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
}

/* Add inner blur effect */
.nav-mega-menu::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.03), transparent 50%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.02), transparent 50%);
    border-radius: 1rem;
    pointer-events: none;
    z-index: 0;
}

.mega-menu-content {
    position: relative;
    z-index: 1;
}

.nav-dropdown:hover .nav-mega-menu,
.nav-dropdown.active .nav-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: all;
}

.mega-menu-content {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    min-width: 900px;
}

.mega-menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

/* Third column separator */
.mega-menu-separated {
    border-left: 1px solid rgba(148, 163, 184, 0.15);
    padding-left: 2rem;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 80px;
    height: 80px;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 0;
    transform: translateY(8px) translateX(0);
}

/* Stagger animation for dropdown items */
.nav-dropdown.active .mega-menu-item,
.nav-dropdown:hover .mega-menu-item {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.nav-dropdown.active .mega-menu-item:nth-child(1),
.nav-dropdown:hover .mega-menu-item:nth-child(1) {
    transition-delay: 0.03s;
}

.nav-dropdown.active .mega-menu-item:nth-child(2),
.nav-dropdown:hover .mega-menu-item:nth-child(2) {
    transition-delay: 0.06s;
}

.nav-dropdown.active .mega-menu-item:nth-child(3),
.nav-dropdown:hover .mega-menu-item:nth-child(3) {
    transition-delay: 0.09s;
}

.nav-dropdown.active .mega-menu-item:nth-child(4),
.nav-dropdown:hover .mega-menu-item:nth-child(4) {
    transition-delay: 0.12s;
}

/* Individual item hover - must come after dropdown state */
.nav-dropdown:hover .mega-menu-item:hover,
.nav-dropdown.active .mega-menu-item:hover {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    transform: translateY(0) translateX(6px) !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15) !important;
}

.mega-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(96, 165, 250, 0.08));
    border-radius: 0.625rem;
    color: #60a5fa;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mega-item-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mega-menu-item:hover .mega-item-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(96, 165, 250, 0.15)) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
}

.mega-menu-item:hover .mega-item-icon svg {
    transform: scale(1.1) rotate(5deg) !important;
}

/* Custom icon colors for each service */
a[href="#talent"] .mega-item-icon {
    background: linear-gradient(135deg, rgba(44, 51, 117, 0.2), rgba(44, 51, 117, 0.1));
    color: #2C3375;
}

a[href="#talent"]:hover .mega-item-icon {
    background: linear-gradient(135deg, rgba(44, 51, 117, 0.3), rgba(44, 51, 117, 0.15)) !important;
    box-shadow: 0 0 20px rgba(44, 51, 117, 0.3) !important;
}

a[href="#enterprise"] .mega-item-icon {
    background: linear-gradient(135deg, rgba(49, 158, 149, 0.2), rgba(49, 158, 149, 0.1));
    color: #319E95;
}

a[href="#enterprise"]:hover .mega-item-icon {
    background: linear-gradient(135deg, rgba(49, 158, 149, 0.3), rgba(49, 158, 149, 0.15)) !important;
    box-shadow: 0 0 20px rgba(49, 158, 149, 0.3) !important;
}

a[href="#training"] .mega-item-icon {
    background: linear-gradient(135deg, rgba(198, 153, 52, 0.2), rgba(198, 153, 52, 0.1));
    color: #C69934;
}

a[href="#training"]:hover .mega-item-icon {
    background: linear-gradient(135deg, rgba(198, 153, 52, 0.3), rgba(198, 153, 52, 0.15)) !important;
    box-shadow: 0 0 20px rgba(198, 153, 52, 0.3) !important;
}

a[href="#solutions"] .mega-item-icon {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.2), rgba(158, 158, 158, 0.1));
    color: #9E9E9E;
}

a[href="#solutions"]:hover .mega-item-icon {
    background: linear-gradient(135deg, rgba(158, 158, 158, 0.3), rgba(158, 158, 158, 0.15)) !important;
    box-shadow: 0 0 20px rgba(158, 158, 158, 0.3) !important;
}

.mega-item-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-item:hover .mega-item-title {
    color: #60a5fa;
}

.mega-item-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.4;
    font-weight: 400;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mega-menu-item:hover .mega-item-desc {
    color: #cbd5e1;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-bar {
    width: 24px;
    height: 2px;
    background: #94a3b8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover .menu-bar {
    background: #ffffff;
}

.mobile-menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 5, 0.98) 0%, rgba(10, 10, 20, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
    overflow-y: auto;
}

.mobile-menu.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.mobile-menu-inner {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 32px 40px;
    gap: 40px;
}

.mobile-menu-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu-section:nth-child(1) {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-menu-section:nth-child(2) {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-menu-section:nth-child(3) {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition-delay: 0.3s;
}

.mobile-menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    padding-left: 4px;
}

.mobile-menu-link {
    padding: 18px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.75rem;
    font-weight: 400;
    font-family: 'Lexend', sans-serif;
    border-radius: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    transform: scaleY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-link:active {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.1) !important;
    transform: translateX(8px) !important;
}

.mobile-menu-link:active::before {
    transform: scaleY(1) !important;
}

.mobile-menu-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Lexend', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 20px;
}

.mobile-menu-cta:active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2)) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
    box-shadow: 0 12px 30px -8px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-4px) !important;
}

.mobile-menu-cta svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-cta:active svg {
    transform: translateX(6px) !important;
}

/* ===== DROPDOWN KEEP ACTIVE STATE ===== */
.nav-dropdown:hover .nav-link-advanced,
.nav-dropdown.active .nav-link-advanced {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown:hover .nav-link-advanced::after,
.nav-dropdown.active .nav-link-advanced::after {
    transform: translateX(-50%) scaleX(1) !important;
    animation: shimmer 2s ease-in-out infinite !important;
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 1024px) {
    .mega-menu-content {
        grid-template-columns: 1fr;
        min-width: 320px;
    }
}

/* CTA Ripple Effect */
.nav-cta-button,
.mobile-menu-cta {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: background-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    position: relative;
    overflow: visible;
}

/* Radial gradient background effect from center */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--card-color, rgba(255, 255, 255, 0.1)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    pointer-events: none;
    z-index: 0;
    border-radius: 1rem;
}

/* Outer glow effect */
.service-card::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--card-color, rgba(255, 255, 255, 0.1));
    border-radius: 1.25rem;
    opacity: 0;
    filter: blur(24px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    pointer-events: none;
    z-index: -1;
}

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

.service-card:hover::after {
    opacity: 0.6;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Service icons - colored by default using CSS variables */
.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--card-color, rgba(148, 163, 184, 0.15)), rgba(0, 0, 0, 0.2));
    color: var(--icon-color, #9ca3af);
    transition: box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    z-index: 1;
    transform: rotate(0deg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.service-icon svg {
    width: 36px;
    height: 36px;
}

/* Initial non-hover state for each icon - no tilt */
.service-icon-talent,
.service-icon-training,
.service-icon-enterprise,
.service-icon-solutions,
.service-icon-marketing,
.service-icon-ai,
.service-icon-platform,
.service-icon-consulting {
    transform: rotate(0deg);
}

/* Unique rotation for each icon on hover - base styles */
.service-card:hover .service-icon {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
    animation-name: iconBounce;
    animation-duration: 0.8s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

/* Test simple bounce */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0px) scale(1) rotate(0deg);
    }
    50% {
        transform: translateY(-1.5px) scale(1.03) rotate(3deg);
    }
}

/* Individual pulse animations for each icon with unique rotations */
.service-card:hover .service-icon-talent {
    animation: iconPulseTalent 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-training {
    animation: iconPulseTraining 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-enterprise {
    animation: iconPulseEnterprise 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-solutions {
    animation: iconPulseSolutions 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-marketing {
    animation: iconPulseMarketing 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-ai {
    animation: iconPulseAI 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-platform {
    animation: iconPulsePlatform 1.5s ease-in-out infinite !important;
}

.service-card:hover .service-icon-consulting {
    animation: iconPulseConsulting 1.5s ease-in-out infinite !important;
}

/* Keyframe animations for each icon */
@keyframes iconPulseTalent {
    0%, 100% {
        transform: scale(1) rotate(-8deg);
    }
    50% {
        transform: scale(1.03) rotate(-8deg);
    }
}

@keyframes iconPulseTraining {
    0%, 100% {
        transform: scale(1) rotate(6deg);
    }
    50% {
        transform: scale(1.03) rotate(6deg);
    }
}

@keyframes iconPulseEnterprise {
    0%, 100% {
        transform: scale(1) rotate(-5deg);
    }
    50% {
        transform: scale(1.03) rotate(-5deg);
    }
}

@keyframes iconPulseSolutions {
    0%, 100% {
        transform: scale(1) rotate(7deg);
    }
    50% {
        transform: scale(1.03) rotate(7deg);
    }
}

@keyframes iconPulseMarketing {
    0%, 100% {
        transform: scale(1) rotate(-6deg);
    }
    50% {
        transform: scale(1.03) rotate(-6deg);
    }
}

@keyframes iconPulseAI {
    0%, 100% {
        transform: scale(1) rotate(8deg);
    }
    50% {
        transform: scale(1.03) rotate(8deg);
    }
}

@keyframes iconPulsePlatform {
    0%, 100% {
        transform: scale(1) rotate(-7deg);
    }
    50% {
        transform: scale(1.03) rotate(-7deg);
    }
}

@keyframes iconPulseConsulting {
    0%, 100% {
        transform: scale(1) rotate(5deg);
    }
    50% {
        transform: scale(1.03) rotate(5deg);
    }
}

.service-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 0.9375rem;
    color: #9ca3af;
    line-height: 1.6;
    transition: color 0.4s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-desc {
    color: #d1d5db;
}

/* Service card link wrapper */
.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== PILLAR CARDS ===== */
.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 3.5rem 2.5rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    transition: background-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Radial gradient background effect from center */
.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--pillar-color, rgba(255, 255, 255, 0.1)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    pointer-events: none;
    z-index: 0;
    border-radius: 1.5rem;
}

/* Outer glow effect for pillar cards */
.pillar-card::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--pillar-glow, rgba(255, 255, 255, 0.2));
    border-radius: 1.75rem;
    opacity: 0;
    filter: blur(24px);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    pointer-events: none;
    z-index: -1;
}

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

.pillar-card:hover::after {
    opacity: 0.6;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--pillar-glow, #ffffff);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.pillar-icon svg {
    width: 40px;
    height: 40px;
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.pillar-title {
    font-family: 'Lexend', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    transition: color 0.4s ease;
}

.pillar-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    transition: color 0.4s ease;
}

.pillar-card:hover .pillar-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Pillar card link wrapper */
.pillar-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== PLATFORM ACCORDION ===== */
.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.accordion-item.active {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-icon-left {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.accordion-item[data-color="blue"] .accordion-icon-left {
    color: rgba(78, 89, 201, 0.9);
}

.accordion-item[data-color="green"] .accordion-icon-left {
    color: rgba(49, 158, 149, 0.9);
}

.accordion-item[data-color="yellow"] .accordion-icon-left {
    color: rgba(198, 153, 52, 0.9);
}

.accordion-item[data-color="gray"] .accordion-icon-left {
    color: rgba(158, 158, 158, 0.9);
}

.accordion-item.active .accordion-icon-left {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.accordion-title {
    flex: 1;
    font-family: 'Lexend', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
    transition: color 0.3s ease;
}

.accordion-item.active .accordion-title {
    color: #ffffff;
}

.accordion-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-chevron {
    transform: rotate(180deg);
    color: #e2e8f0;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-item.active .accordion-body {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.accordion-description {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    padding-left: 4rem;
}

/* Platform Image Container */
.platform-image-container {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    min-height: 500px;
    overflow: hidden;
}

.platform-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 3rem;
}

.platform-image.active {
    opacity: 1;
}

.platform-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #60a5fa;
}

.platform-image-placeholder p {
    font-size: 1.125rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS CAROUSEL ===== */
.testimonial-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    display: flex;
    padding: 10px 0;
    margin: -10px 0;
}

.testimonial-carousel {
    display: flex;
    gap: 2rem;
    flex-shrink: 0;
    will-change: transform;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    width: 450px;
    min-width: 450px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.testimonial-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.testimonial-quote-icon {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.3);
}

.testimonial-quote-icon svg {
    width: 100%;
    height: 100%;
}

.testimonial-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #d1d5db;
    margin: 0;
    flex: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-name {
    font-family: 'Lexend', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.author-role {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.testimonial-rating svg {
    width: 16px;
    height: 16px;
    color: #fbbf24;
}

/* ===== SECTION BADGE ===== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid transparent;
    border-radius: 9999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: visible;
    font-size: 0.875rem;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 1;
}

.section-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4)
    );
    background-size: 200% 100%;
    animation: badgeBorderFlow 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.section-badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 9999px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0.3;
    z-index: -2;
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeBorderFlow {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

@keyframes badgeGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ===== SECTIONS AUTO HEIGHT ===== */
section {
    height: auto;
    position: relative;
}

/* All sections are transparent to show gradient background */
section {
    background: transparent;
    z-index: 1;
}

/* Grid Overlay only for Hero Section */
#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
}

/* ===== PARTNER LOGOS ===== */
.partner-logo {
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 0.8 !important;
}

.partner-logo-img {
    height: 40px;
    width: 120px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.partner-logo-img:hover {
    opacity: 0.8 !important;
    transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    animation: heroGradientShift 20s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Hero Background Animations */
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.hero-bg-orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, #2563eb);
    top: 20%;
    left: 10%;
    animation: heroFloat1 20s ease-in-out infinite;
}

.hero-bg-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, #6366f1);
    bottom: 20%;
    right: 15%;
    animation: heroFloat2 25s ease-in-out infinite;
}

.hero-bg-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #1e3a8a, #1e40af);
    top: 50%;
    right: 30%;
    animation: heroFloat3 18s ease-in-out infinite;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(148, 163, 184, 0.4);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-particle-1 {
    top: 30%;
    left: 20%;
    animation: particleFloat 8s ease-in-out infinite;
}

.hero-particle-2 {
    top: 60%;
    left: 70%;
    animation: particleFloat 10s ease-in-out infinite 2s;
}

.hero-particle-3 {
    top: 80%;
    left: 40%;
    animation: particleFloat 12s ease-in-out infinite 4s;
}

.hero-particle-4 {
    top: 40%;
    right: 25%;
    animation: particleFloat 9s ease-in-out infinite 1s;
}

.hero-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.3), transparent);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.hero-line-1 {
    width: 300px;
    top: 35%;
    left: 15%;
    animation: lineGlow 4s ease-in-out infinite;
}

.hero-line-2 {
    width: 200px;
    bottom: 30%;
    right: 20%;
    animation: lineGlow 5s ease-in-out infinite 2s;
}

@keyframes heroFloat1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }
}

@keyframes heroFloat2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-50px, 30px) scale(1.15);
    }
    66% {
        transform: translate(40px, -40px) scale(0.85);
    }
}

@keyframes heroFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, 50px) scale(1.2);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-60px);
        opacity: 0.8;
    }
}

/* Hero Shooting Stars */
.hero-shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.hero-shooting-star::before {
    content: '';
    position: absolute;
    top: 0;
    right: 2px;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
}

.hero-shooting-star-1 {
    top: 20%;
    left: 10%;
    animation: shootingStar 3s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-shooting-star-2 {
    top: 50%;
    right: 20%;
    animation: shootingStar 3s ease-in-out infinite;
    animation-delay: 4s;
}

.hero-shooting-star-3 {
    top: 70%;
    left: 60%;
    animation: shootingStar 3s ease-in-out infinite;
    animation-delay: 7s;
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(300px, 300px) rotate(-45deg);
        opacity: 0;
    }
}

/* Hero Content Animation */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 9999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-glow {
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    padding: 2px;
    background: linear-gradient(90deg,
        rgba(59, 130, 246, 0.5),
        rgba(139, 92, 246, 0.5),
        rgba(236, 72, 153, 0.5),
        rgba(59, 130, 246, 0.5)
    );
    background-size: 300% 100%;
    animation: badgeGlowRotate 4s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.6;
}

.badge-text {
    color: #e2e8f0;
    font-weight: 500;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: #3b82f6;
    position: relative;
    z-index: 1;
    animation: iconGlow 2s ease-in-out infinite;
}

@keyframes badgeGlowRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

@keyframes iconGlow {
    0%, 100% {
        opacity: 1;
        filter: drop-shadow(0 0 3px rgba(59, 130, 246, 0.6));
    }
    50% {
        opacity: 0.8;
        filter: drop-shadow(0 0 8px rgba(59, 130, 246, 1));
    }
}

.hero-image-container {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    max-width: 440px;
    width: 100%;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Member Avatars */
.member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease;
}

.member-avatar:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10;
}

.hero-gradient {
    background:
        radial-gradient(ellipse at top left, rgba(148, 163, 184, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at top right, rgba(148, 163, 184, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 0, 0, 1) 0%, transparent 50%);
}

.bg-grid {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientFlow 4s ease-in-out infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* ===== HERO BUTTONS - FRESH START ===== */

/* Primary Button */
.hero-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-cta-primary,
.hero-cta-primary *,
.hero-cta-primary span,
.hero-cta-primary svg {
    color: #ffffff;
}

.hero-cta-primary svg {
    stroke: #ffffff;
    fill: none;
}

.hero-cta-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 8px 28px rgba(59, 130, 246, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.hero-cta-primary:hover,
.hero-cta-primary:hover *,
.hero-cta-primary:hover span,
.hero-cta-primary:hover svg {
    color: #ffffff;
}

.hero-cta-primary:hover svg {
    stroke: #ffffff;
    transform: translateX(4px);
}

.hero-cta-primary:active {
    transform: translateY(0) scale(0.98);
}

/* ===== TIMELINE STYLES ===== */
.timeline-container {
    position: relative;
    padding: 2rem 1rem;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        rgba(148, 163, 184, 0.1) 0%,
        rgba(148, 163, 184, 0.3) 50%,
        rgba(148, 163, 184, 0.1) 100%);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 3px solid rgba(148, 163, 184, 0.5);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-dot {
    background: rgba(148, 163, 184, 0.3);
    border-color: rgba(148, 163, 184, 0.8);
    box-shadow: 0 0 20px rgba(148, 163, 184, 0.3);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem;
    width: calc(50% - 2.5rem);
    text-align: left;
    transition: all 0.3s ease;
}

.timeline-step:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-left: calc(50% + 2.5rem);
}

.timeline-step:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-right: calc(50% + 2.5rem);
}

.timeline-step:hover .timeline-content {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.timeline-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.timeline-description {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.5;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-line {
        left: 2rem;
    }

    .timeline-dot {
        left: 2rem;
    }

    .timeline-content {
        width: calc(100% - 5rem);
        margin-left: 5rem !important;
        margin-right: 0 !important;
    }

    .timeline-step:nth-child(odd) .timeline-content {
        margin-left: 5rem !important;
    }
}

/* ===== COMMUNITY CARDS ===== */
.community-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.community-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    height: 220px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.community-card-icon {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.community-card-icon svg {
    width: 64px;
    height: 64px;
    color: rgba(158, 158, 158, 0.3);
    transition: all 0.3s ease;
}

.community-card:hover .community-card-icon svg {
    color: rgba(158, 158, 158, 0.5);
    transform: scale(1.1);
}

.community-card-content {
    flex: 0 0 60%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.community-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
}

.community-card-description {
    font-size: 0.95rem;
    color: #9ca3af;
    line-height: 1.6;
}

.community-card-arrow {
    display: none;
}

/* Responsive Community Cards */
@media (max-width: 768px) {
    .community-card {
        flex-direction: column;
        height: auto;
    }

    .community-card-icon {
        flex: 0 0 180px;
    }

    .community-card-content {
        text-align: center;
        padding: 2rem;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
}

/* Secondary Button */
.hero-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.hero-cta-secondary,
.hero-cta-secondary *,
.hero-cta-secondary span {
    color: #ffffff;
}

.hero-cta-secondary:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:hover *,
.hero-cta-secondary:hover span {
    color: #ffffff;
}

.hero-cta-secondary:active {
    transform: translateY(0) scale(0.98);
}

/* Scroll Indicator */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: linear-gradient(to bottom, #3b82f6, #60a5fa);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== ABOUT VISUAL CARD ===== */
.about-visual-card {
    padding: 2rem;
    background: rgba(10, 10, 25, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}


/* ===== FAQ SECTION ===== */
.faq-item {
    background: rgba(10, 10, 25, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #60a5fa;
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
    color: #9ca3af;
    line-height: 1.7;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .nav-mega-menu {
        min-width: 500px;
    }

    .pillar-card {
        padding: 2rem;
    }

    .pillar-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-mega-menu {
        left: 1rem;
        right: 1rem;
        min-width: auto;
        transform: translateX(0) translateY(-10px);
    }

    .nav-mega-menu.active,
    .nav-dropdown:hover .nav-mega-menu {
        transform: translateX(0) translateY(0);
    }

    .mega-menu-content {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-subtitle {
        font-size: 0.5625rem;
    }

    .pillar-card {
        padding: 1.5rem;
    }

    .pillar-number {
        font-size: 2rem;
        top: 1.5rem;
        right: 1.5rem;
    }

    .pillar-icon {
        width: 56px;
        height: 56px;
    }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2563eb, #3b82f6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b82f6, #60a5fa);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.4);
    color: white;
}

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== SERVICES ACCORDION ===== */
.services-accordion {
    display: flex;
    flex-direction: column;
}


/* Service Image Container */
.service-image-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.service-image-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: rgba(10, 10, 25, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.05);
}

.service-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.service-image-wrapper:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-image-container {
        position: relative;
        top: 0;
    }

    .accordion-header {
        padding: 1.25rem;
    }

    .accordion-icon {
        width: 40px;
        height: 40px;
    }

    .accordion-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
