:root {
    --bg-color: #000a1f;
    /* Deep Brand Blue */
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Brand Colors (Blue Scale) */
    --accent-blue: #0066FF;
    --accent-dark: #003380;
    --accent-light: #4D94FF;
    --accent-yellow: #FFCC00;
    /* Bold Media Yellow */

    --gradient-main: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-dark) 100%);
    --gradient-glow: linear-gradient(90deg, var(--accent-blue), var(--accent-light), var(--accent-blue));

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    --container-width: 1600px;
    --gutter: 40px;
    --radius-lg: 24px;
    --radius-md: 12px;
}

/* ... existing code ... */

/* --- Brand Composition Visual --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    perspective: 1200px;
}

.brand-visual {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: visual-float 6s ease-in-out infinite;
}

/* 1. The Bold Cube (Structure) */
.brand-cube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%) rotateX(20deg) rotateY(45deg);
    transform-style: preserve-3d;
    animation: cube-rotate 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-dark));
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.9;
}

.cube-face:nth-child(1) {
    transform: rotateY(0deg) translateZ(90px);
}

.cube-face:nth-child(2) {
    transform: rotateY(90deg) translateZ(90px);
}

.cube-face:nth-child(3) {
    transform: rotateY(180deg) translateZ(90px);
}

.cube-face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(90px);
}

.cube-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(90px);
}

.cube-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(90px);
}

/* 2. The Accent Sphere (Creativity/Yellow) */
.brand-sphere {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #FFFF00, var(--accent-yellow));
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.4);
    transform: translateZ(150px);
    animation: sphere-orbit 8s ease-in-out infinite;
}

/* 3. The Media Ring (Digital/Glass) */
.brand-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 350px;
    height: 350px;
    border: 20px solid rgba(255, 255, 255, 0.05);
    border-top: 20px solid var(--accent-light);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(70deg);
    filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
    animation: ring-spin-slow 15s linear infinite;
}

@keyframes visual-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes cube-rotate {
    0% {
        transform: translate(-50%, -50%) rotateX(20deg) rotateY(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(20deg) rotateY(360deg);
    }
}

@keyframes sphere-orbit {

    0%,
    100% {
        transform: translateZ(120px) translateY(0);
    }

    50% {
        transform: translateZ(120px) translateY(-40px);
    }
}

@keyframes ring-spin-slow {
    0% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg);
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    /* cursor: none; removed for default cursor */
    -webkit-font-smoothing: antialiased;
}

/* --- Custom Cursor Removed --- */
/* .cursor-dot, .cursor-outline styles removed */

/* --- Typography --- */

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

p {
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.gradient-text {
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    padding-top: 0.2em;
    /* Expand box for accents */
    margin-top: -0.2em;
    padding-bottom: 0.1em;
    /* Safety buffer */
    margin-bottom: -0.1em;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: var(--container-width);
    z-index: 100;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), top 0.3s;
}

.glass-nav.hidden {
    transform: translateX(-50%) translateY(-120%);
}

.glass-nav.scrolled {
    top: 10px;
}

.nav-container {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: backdrop-filter 0.3s, background 0.3s;
}

/* Animated Gradient Border on Scroll */
.nav-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 100px;
    padding: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--accent-blue) 25%,
            var(--accent-light) 50%,
            var(--accent-blue) 75%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
    background-size: 200% 100%;
    animation: border-flow 3s linear infinite;
}

.glass-nav.scrolled .nav-container::before {
    opacity: 1;
}

@keyframes border-flow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 0%;
    }
}

.glass-nav.scrolled .nav-container {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.nav-logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.nav-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s;
}

.nav-logo:hover img {
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.5));
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    padding: 5px 0;
    transition: color 0.3s;
}

/* Active Link Indicator */
.nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-glow);
    border-radius: 2px;
}

.nav-link::after {
    content: attr(data-text);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    color: var(--accent-light);
    transition: top 0.3s;
}

.nav-link:hover::after {
    top: 0;
}

.btn-cta {
    background: white;
    color: black;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

/* Ripple Effect Container */
.btn-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta.ripple::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}


.btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 102, 255, 0.6),
            0 0 40px rgba(0, 102, 255, 0.4);
    }
}

/* --- Canvas --- */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

/* --- Team Section --- */
#team {
    padding: 0 0 150px 0;
    /* Removed top padding */
    position: relative;
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 60%;
    /* Limit text width */
    text-align: left;
    z-index: 2;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Three.js Hero Visual --- */
#hero-canvas-container {
    width: 100%;
    height: 100%;
    min-height: 450px;
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    outline: none;
}


@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-visual {
        display: none;
        /* Hide on mobile/tablet to save space */
    }
}

.hero-label {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 7rem);
    /* Significantly reduced size */
    letter-spacing: -0.03em;
    line-height: 1.1;
    /* Tighter spacing */
    margin-bottom: 30px;
    text-align: left;
    text-shadow:
        0 0 20px rgba(0, 102, 255, 0.3),
        0 0 40px rgba(0, 102, 255, 0.2),
        0 0 60px rgba(0, 102, 255, 0.1);
}

.hero-title .line {
    display: block;
    overflow: visible;
    /* Permanently fix accent clipping */
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    transition: text-shadow 0.3s ease;
}

.hero-title .line:hover {
    text-shadow:
        0 0 30px rgba(0, 102, 255, 0.5),
        0 0 60px rgba(0, 102, 255, 0.3),
        0 0 90px rgba(0, 102, 255, 0.2);
}

.hero-title .hollow {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    color: transparent;
    transition: color 0.5s;
}

.hero-title .hollow:hover {
    color: white;
}

/* Stars Background Animation */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    background: #ffd700;
    border-radius: 50%;
    box-shadow:
        0 0 10px #ffd700,
        0 0 20px #ffd700,
        0 0 30px rgba(255, 215, 0, 0.5);
    animation: twinkle var(--twinkle-duration, 3s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.star.blue {
    background: #0066ff;
    box-shadow:
        0 0 10px #0066ff,
        0 0 20px #0066ff,
        0 0 30px rgba(0, 102, 255, 0.5);
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}


.hero-desc {
    max-width: 600px;
    margin-left: 0;
    /* Standard visual alignment */
    margin-right: 0;
    padding-left: 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: left;
}

.hero-actions {
    margin-top: 50px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s;
}

.btn-primary span {
    position: relative;
    z-index: 2;
    mix-blend-mode: difference;
}

.btn-primary .btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    border-color: white;
}

.btn-primary:hover .btn-fill {
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.5;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: white;
}

/* --- Marquee --- */
.marquee-section {
    padding: 20px 0;
    /* Reduced padding */
    margin-top: -60px;
    /* Pull up to reduce gap */
    overflow: hidden;
    background: transparent;
    position: relative;
    z-index: 2;
    /* Ensure it sits above background elements if needed */
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    /* More white (higher opacity) */
    margin-right: 50px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- Services (Cards) --- */
#services {
    padding: 80px 0 80px 0;
    /* Reduced top AND bottom padding */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    /* Ensure equal height */
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Animated Gradient Border - Disabled per user request */
/* .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--accent-blue) 20%,
            var(--accent-light) 40%,
            #00BFFF 50%,
            var(--accent-light) 60%,
            var(--accent-blue) 80%,
            transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

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

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
} */

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-image {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    /* Prevent image shrinking */
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    position: relative;
    background: var(--glass-bg);
    flex-grow: 1;
    /* Take remaining space */
    display: flex;
    flex-direction: column;
}

.card-content .num {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.service-card:hover .card-content .num {
    color: var(--accent-light);
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.service-card:hover .card-content h3 {
    transform: translateX(5px);
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}


.card-content .num {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- Process (Vertical Timeline) --- */
#process {
    padding: 40px 0 120px 0;
    position: relative;
}

.process-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    /* Centered vertically */
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    margin: 0;
    position: relative;
}

.process-image {
    position: sticky;
    top: 150px;
    width: 85%;
    margin: 0 auto;

    /* Glass Display Look */
    padding: 12px;
    /* Frame thickness */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    /* Grounding shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.process-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    /* Inner radius */
    filter: brightness(0.95);
    transition: filter 0.4s;
}

.process-image:hover {
    transform: translateY(-5px);
    /* Subtle lift */
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.15);
    /* Blue glow */
    border-color: rgba(255, 255, 255, 0.2);
}

.process-image:hover img {
    filter: brightness(1.05);
}

@media (max-width: 992px) {
    .process-layout {
        grid-template-columns: 1fr;
    }

    .process-image {
        height: 400px;
        position: static;
    }
}

.timeline-step::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    width: 2px;
    height: calc(100% + 40px);
    background: var(--accent-blue);
    opacity: 0.3;
    z-index: -1;
}

/* Hide divider after last step only */
.timeline-step:last-child::after,
.timeline-step.last-step::after {
    display: none;
}

.timeline-step {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    position: relative;
}

.step-num {
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent-blue);
    flex-shrink: 0;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.step-content {
    flex-grow: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px;
    transition: transform 0.3s;
}

.timeline-step:hover .step-content {
    transform: translateX(10px);
    border-color: var(--accent-blue);
}

.step-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.step-content p {
    color: var(--text-muted);
}

/* --- Section Headers --- */
.section-header {
    margin-bottom: 60px;
    max-width: 800px;
}

.section-label {
    font-family: var(--font-display);
    color: var(--accent-blue);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
}

/* --- Team (Grid Cards with Animation) --- */
#team {
    padding: 150px 0 50px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* All 5 side-by-side */
    gap: 20px;
    /* Tighter gap for 5 items */
    margin-bottom: 0;
}

/* --- Uniform Cards --- */
.member-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    /* Changed to left for bios */
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    /* Full height */
    display: flex;
    flex-direction: column;
}

.member-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.member-img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    position: relative;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Align faces at approx 15% from top */
    transition: transform 0.6s ease;
}

.member-card:hover .member-img img {
    transform: scale(1.05);
    /* Slight zoom, keeping head in view */
}

.member-info {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 20px;
    padding-bottom: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    position: absolute;
    display: flex;
    flex-direction: column;
    transition: background 0.5s ease, padding 0.5s ease;
    border: none;
    border-radius: 0;
    transform: none;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) rgba(0, 0, 0, 0.5);
    will-change: background, padding;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Webkit - Enhanced */
.member-info::-webkit-scrollbar {
    width: 6px;
    /* Slightly wider for better visibility */
    display: block;
}

.member-info::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    margin: 10px 0;
    /* Add margin to track */
}

.member-info::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 3px;
    transition: background 0.3s;
}

.member-info::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
    /* Lighter blue on hover */
}


.member-card:hover .member-info {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: grayscale(100%) contrast(1.2);
    padding-bottom: 15px;
    padding-top: 15px;
    justify-content: flex-start;
}

.member-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1.1;
    margin-bottom: 8px;
    padding-top: 0;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    font-weight: 900;
    transform: translateY(40px);
    transform-origin: left bottom;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), margin 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    margin-top: auto;
    will-change: transform, margin;
}

.member-card:hover .member-info h3 {
    transform: translateY(0) scale(0.85);
    margin-top: 0;
    margin-bottom: 5px;
}

.member-info .role {
    color: #8AB8FF;
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
    padding: 4px 8px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 8px;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1) 0.05s;
    will-change: transform, margin;
}

.member-card:hover .member-info .role {
    transform: translateY(0);
    margin-bottom: 8px;
}

.member-info .bio {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease 0.1s;
    will-change: max-height, opacity;
}

.member-card:hover .member-info .bio {
    opacity: 1;
    max-height: 1000px;
    /* Allow full expansion */
    margin-top: 0;
}

.team-group-photo-bottom {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.team-group-photo-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.team-group-photo-bottom:hover img {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .timeline-step::after {
        left: 30px;
        top: 30px;
    }

    .step-num {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

/* --- Footer / Contact --- */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, var(--bg-color), #000510);
}

.contact-wrapper {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.big-cta {
    font-size: clamp(2rem, 5vw, 5rem);
    line-height: 1.2;
    margin-bottom: 30px;
    padding-top: 0.2em;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.detail-item {
    margin-bottom: 40px;
}

.detail-item label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hover-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 600;
    position: relative;
}

.hover-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.hover-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Obsidian Prism Form --- */
.glass-form {
    background: #000000;
    border-radius: 24px;
    padding: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}

/* Rotating Prism Border */
.glass-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            var(--accent-blue) 20%,
            var(--accent-light) 40%,
            #ffffff 50%,
            var(--accent-light) 60%,
            var(--accent-blue) 80%,
            transparent 100%);
    animation: prism-rotate 4s linear infinite;
    z-index: -2;
}

.glass-form::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Border width */
    background: #050505;
    /* Inner background */
    border-radius: 22px;
    z-index: -1;
}

@keyframes prism-rotate {
    0% {
        transform: rotate(0deg);
    }

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

.form-cta {
    font-family: var(--font-display);
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-form input,
.glass-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 15px 0;
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.glass-form input:focus,
.glass-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-blue);
    background: transparent;
    box-shadow: 0 10px 20px -10px rgba(0, 102, 255, 0.3);
}

.glass-form label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    left: 0;
}

.glass-form input:focus~label,
.glass-form input:not(:placeholder-shown)~label,
.glass-form textarea:focus~label,
.glass-form textarea:not(:placeholder-shown)~label {
    color: var(--accent-blue);
    background: transparent;
    padding: 0;
    top: -10px;
    left: 0;
    font-size: 0.7rem;
    opacity: 1;
}

/* Obsidian Button */
.obsidian-btn {
    position: relative;
    background: white;
    color: black;
    border: none;
    padding: 25px 40px;
    border-radius: 50px;
    /* Rounded */
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    margin-top: 20px;
}

.obsidian-btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-blue);
}

.btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.obsidian-btn:hover .btn-glow {
    opacity: 0.3;
    transform: scale(1);
}

.footer-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.socials a {
    margin-left: 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: white;
}

/* --- Footer Logo Group --- */
.footer-logo-group {
    width: 100%;
    max-width: 280px;
    height: auto;
    margin-top: 60px;
    margin-right: auto;
    margin-left: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.footer-logo-group img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(0%) brightness(1);
    transition: filter 0.5s ease;
}

.footer-logo-group:hover img {
    filter: grayscale(0%) brightness(1.1);
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .horizontal-scroll-wrapper {
        padding-left: 20px;
        flex-direction: column;
        width: 100%;
        height: auto;
    }

    .process-container {
        height: auto;
        display: block;
        padding: 100px 0;
    }

    .process-intro {
        position: static;
        margin-bottom: 40px;
    }

    .process-card {
        min-width: 100%;
        height: auto;
        margin-bottom: 20px;
    }

    .accordion-content {
        width: 100%;
        padding-left: 0;
    }

    .accordion-image {
        display: none;
    }

    .team-img-reveal {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .hero-desc {
        margin-right: 0;
    }

    /* Team grid responsive */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* --- Mobile Optimizations (768px and below) --- */
@media (max-width: 768px) {

    /* Container padding */
    .container {
        padding: 0 20px;
    }

    /* Navigation */
    .glass-nav {
        padding: 15px 0;
    }

    .nav-container {
        padding: 0 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 10, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        border-top: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .btn-cta {
        width: 100%;
        text-align: center;
        padding: 15px 30px !important;
        border-radius: 8px !important;
    }

    /* Hero Section */
    #hero {
        min-height: 90vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .line {
        margin-bottom: 5px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 30px;
        max-width: 100%;
    }

    /* Marquee */
    .marquee-section {
        margin-top: -40px;
        padding: 15px 0;
    }

    .marquee-content span {
        font-size: 2rem;
        margin-right: 30px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .section-desc {
        font-size: 1rem;
    }

    /* Services */
    #services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        border-radius: 16px;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 25px 20px;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .card-content p {
        font-size: 0.95rem;
    }

    /* Process */
    #process {
        padding: 60px 0;
    }

    .process-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process-timeline {
        gap: 30px;
    }

    .timeline-step {
        gap: 20px;
    }

    .step-content {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .step-content h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .process-image {
        position: static;
        width: 100%;
        margin-top: 20px;
        padding: 10px;
    }

    /* Team */
    #team {
        padding: 80px 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .member-card {
        border-radius: 16px;
    }

    .member-avatar {
        height: 400px;
    }

    .member-header h3 {
        font-size: 1.4rem;
    }

    .member-header .role {
        font-size: 0.75rem;
    }

    /* Contact */
    #contact {
        padding: 60px 0;
    }

    .contact-wrapper {
        padding: 40px 20px;
        border-radius: 16px;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .big-cta {
        font-size: 2rem;
        line-height: 1.1;
    }

    .contact-grid {
        gap: 40px;
    }

    .glass-form {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-cta {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .glass-form input,
    .glass-form textarea {
        font-size: 1rem;
        padding: 12px 0;
    }

    .obsidian-btn {
        padding: 18px 30px;
        font-size: 1rem;
    }

    .detail-item {
        margin-bottom: 30px;
    }

    .hover-link {
        font-size: 1.2rem;
    }

    .team-group-photo-bottom {
        height: 300px;
        border-radius: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        margin-top: 60px;
        padding-top: 30px;
        text-align: center;
    }

    .socials {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .socials a {
        margin-left: 0;
    }

    .footer-logo-group {
        margin-top: 40px;
        max-width: 100%;
    }

    /* Form row */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Input wrap */
    .input-wrap {
        margin-bottom: 20px;
    }
}

/* --- Extra Small Mobile (480px and below) --- */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .marquee-content span {
        font-size: 1.5rem;
    }

    .step-num {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .card-content h3,
    .step-content h3 {
        font-size: 1.2rem;
    }

    .big-cta {
        font-size: 1.6rem;
    }

    .contact-wrapper {
        padding: 30px 15px;
    }

    .glass-form {
        padding: 25px 15px;
    }
}