/* ==========================================================================
   NeXendia Stylesheet - HAYA-inspired Dark Biotech with Precede-style Scrolly
   ========================================================================== */

/* 1. Reset & Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #05070c;
    --bg-panel: rgba(255, 255, 255, 0.03);
    
    --color-cyan: #34e2e4;
    --color-blue: #3052cc;
    --color-purple: #823fab;
    --color-pink: #e983af;
    --color-coral: #d3383b;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.45);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Instrument Sans', sans-serif;
    
    --border-glass: 1px solid rgba(255, 255, 255, 0.05);
    --radius-pill: 35px;
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 3D WebGL Background Container */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1; /* Behind content */
    pointer-events: none; /* Let clicks pass through */
}

#webgl-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

/* Typography spacing & size */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

p {
    font-weight: 400;
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-coral {
    background: linear-gradient(90deg, var(--color-coral) 0%, var(--color-pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: var(--border-glass);
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
}

/* Custom Grid Layouts */
.container {
    position: relative;
    z-index: 2; 
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

/* Outlined-Gradient Animated HAYA Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 2.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    cursor: pointer;
    background-color: transparent;
    z-index: 1;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.btn-haya-primary {
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-haya-primary:hover {
    transform: translateY(-2px);
    border-color: var(--color-cyan);
    background-color: rgba(52, 226, 228, 0.1);
    box-shadow: 0 10px 30px rgba(52, 226, 228, 0.2);
}

.btn-haya-secondary {
    color: var(--text-secondary);
    border: var(--border-glass);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-haya-secondary:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Removed flowGradient for minimalist aesthetic */

/* Glassmorphic Panel styling */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

/* 2. Header and Sticky Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    border-bottom: var(--border-glass);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-text .highlight {
    color: var(--color-cyan);
}

.nav-menu {
    display: flex;
    gap: 3.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--text-primary);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background-color: var(--bg-secondary);
    z-index: 99;
    padding: 8rem 3rem;
    box-shadow: -15px 0 40px rgba(0,0,0,0.8);
    transition: var(--transition-smooth);
}

.mobile-drawer.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-link {
    font-size: 1.3rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

/* 3. Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 950px;
}

.hero-title {
    font-size: 5.25rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 3.5rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.65;
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.scroll-arrow {
    font-size: 1rem;
    color: var(--color-cyan);
    animation: bounceIndicator 2s infinite ease-in-out;
}

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

/* 4. Challenge / Problem Section */
.challenge-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-cyan);
    margin-bottom: 1.25rem;
}

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

.section-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    list-style: none;
}

.challenge-item {
    display: flex;
    gap: 2rem;
}

.item-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--color-coral);
    margin-top: 0.25rem;
}

.challenge-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.challenge-item p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* 5. Precede-Style 5-Step Scrollytelling Section */
.scrolly-section {
    background-color: var(--bg-secondary);
}

.scrolly-container {
    display: flex;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left vertical progress line and circles */
.timeline-indicator-container {
    width: 80px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.timeline-line {
    position: absolute;
    width: 2px;
    height: 60vh;
    background: rgba(255, 255, 255, 0.1);
    top: 20vh;
    z-index: 1;
}

.timeline-nodes {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 60vh;
}

.timeline-node {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.timeline-node.active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #000000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
}

/* Content sliding on scroll */
.scrolly-content-track {
    width: 50%;
    padding-left: 2rem;
    padding-right: 4rem;
}

.scrolly-step {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0;
}

.step-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.65;
}

.step-text.highlight-border {
    color: var(--text-primary);
    border-left: 2px solid var(--color-cyan);
    padding-left: 1.5rem;
}

/* Technical stats inside Step 3 */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 500px;
}

.spec-card {
    background: rgba(255, 255, 255, 0.02);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    transition: var(--transition-smooth);
}

.spec-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-cyan);
}

.spec-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--color-cyan);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.spec-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Sticky right visual panel with vector SVGs */
.scrolly-visuals {
    width: 40%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.scrolly-visuals .visual-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    max-height: 450px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: none;
    border: none;
}

/* Vector visual layer transitions */
.vector-step-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vector-step-visual.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* Scrollytelling Inline SVG Styles & Micro-animations */
.step-svg {
    width: 100%;
    height: 100%;
    max-width: 380px;
    max-height: 380px;
    overflow: visible;
    display: block;
}

/* SVG Animations */
.visual-1.active .step-svg circle:nth-child(2) {
    animation: ripplePulse 4s infinite ease-in-out;
    transform-origin: 200px 280px;
}
.visual-1.active .step-svg circle:nth-child(3) {
    animation: ripplePulse 6s infinite ease-in-out 1s;
    transform-origin: 200px 280px;
}
.visual-1.active .step-svg path:nth-of-type(1) {
    animation: dropFall 3s infinite ease-in-out;
}

.visual-2.active .step-svg circle[cx="130"] {
    animation: floatComplex 5s infinite ease-in-out;
    transform-origin: 130px 160px;
}
.visual-2.active .step-svg circle[cx="210"] {
    animation: floatComplex 6s infinite ease-in-out 1s;
    transform-origin: 210px 210px;
}
.visual-2.active .step-svg circle[cx="280"] {
    animation: floatComplex 4s infinite ease-in-out 0.5s;
    transform-origin: 280px 180px;
}

.visual-3.active .step-svg circle[cx="165"] {
    animation: sparkPulse 2s infinite ease-in-out;
    transform-origin: 165px 200px;
}
.visual-3.active .step-svg line[x1="165"] {
    animation: sparkPulse 2s infinite ease-in-out;
    transform-origin: 165px 200px;
}

.visual-4.active .step-svg rect[fill="url(#laserGrad)"] {
    animation: laserPulse 2.5s infinite ease-in-out;
    transform-origin: 200px 200px;
}
.visual-4.active .step-svg g line {
    animation: fragmentJitter 4s infinite linear;
}

.visual-5.active .step-svg circle[cx="210"]:nth-of-type(1) {
    animation: ripplePulse 3s infinite ease-in-out;
    transform-origin: 210px 180px;
}
.visual-5.active .step-svg circle[cx="210"]:nth-of-type(2) {
    animation: ripplePulse 4s infinite ease-in-out 0.5s;
    transform-origin: 210px 180px;
}
.visual-5.active .step-svg circle[cx="210"]:nth-of-type(3) {
    animation: pulseDot 2s infinite ease-in-out;
    transform-origin: 210px 180px;
}

/* Keyframes */
@keyframes ripplePulse {
    0% {
        transform: scale(0.96);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.04);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.96);
        opacity: 0.3;
    }
}

@keyframes dropFall {
    0% {
        transform: translateY(-8px);
        opacity: 0.3;
    }
    50% {
        transform: translateY(2px);
        opacity: 1;
    }
    100% {
        transform: translateY(-8px);
        opacity: 0.3;
    }
}

@keyframes floatComplex {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-3px, -5px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes sparkPulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        filter: brightness(1.3);
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

@keyframes laserPulse {
    0% {
        opacity: 0.8;
        transform: scaleX(0.9);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
        filter: brightness(1.2);
    }
    100% {
        opacity: 0.8;
        transform: scaleX(0.9);
    }
}

@keyframes fragmentJitter {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-1px, 1px);
    }
    50% {
        transform: translate(1px, -1px);
    }
    75% {
        transform: translate(-0.5px, -0.5px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        filter: brightness(0.9);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
    100% {
        transform: scale(0.9);
        filter: brightness(0.9);
    }
}

/* 6. Blueprint Platform Banner section */
.platform-image-section {
    padding: 10rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
}

.blueprint-wrapper {
    max-width: 900px;
    margin: 4rem auto 0;
    padding: 1.5rem;
}

.blueprint-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
}

/* 7. Pharma Impact Section */
.impact-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 750px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.impact-card {
    padding: 4rem 2.5rem;
    text-align: center;
}

.impact-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-cyan);
    box-shadow: 0 15px 45px rgba(52, 226, 228, 0.1);
}

.impact-icon {
    font-size: 2.5rem;
    color: var(--color-cyan);
    margin-bottom: 2rem;
}

.impact-icon.coral { color: var(--color-coral); }
.impact-icon.pink { color: var(--color-pink); }

.impact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.impact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

/* 8. Capital & Momentum */
.momentum-section {
    padding: 4rem 0 10rem;
}

.momentum-wrapper {
    padding: 5rem;
}

.momentum-header {
    margin-bottom: 3.5rem;
}

.momentum-header h2 {
    font-size: 2.5rem;
    margin-top: 1rem;
}

.momentum-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.m-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.m-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-cyan);
    margin-bottom: 0.5rem;
}

.m-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 9. Leadership Team Section */
.team-section {
    padding: 10rem 0;
    background-color: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.team-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-pink);
}

/* Stylized avatars */
.team-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: var(--border-glass);
    overflow: hidden;
}

.avatar-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(233, 131, 175, 0.15) 0%, transparent 70%);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.avatar-icon {
    font-size: 2.25rem;
    color: var(--text-muted);
    z-index: 2;
    transition: var(--transition-smooth);
}

.team-card:hover .avatar-icon {
    color: var(--color-pink);
    transform: scale(1.1);
}

.team-card:hover .avatar-glow {
    opacity: 1;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.team-role {
    font-size: 0.95rem;
    color: var(--color-pink);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.team-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* 10. Contact Section */
.contact-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #000000 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.01);
}

.contact-info-block h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.contact-info-block p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 1.1rem;
}

.c-link i {
    font-size: 1.25rem;
    color: var(--color-cyan);
}

.c-link a:hover {
    color: var(--color-cyan);
}

.contact-form-block {
    padding-left: 2rem;
}

.haya-form {
    padding: 4rem 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(52, 226, 228, 0.02);
    box-shadow: 0 0 15px rgba(52, 226, 228, 0.1);
}

/* 11. Footer */
.main-footer {
    background-color: #000000;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.01);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* Scroll reveal helper states */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal="fade-in-right"] {
    transform: translateX(30px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .scrolly-container {
        flex-direction: column;
    }
    
    .timeline-indicator-container {
        display: none; /* Hide indicator nodes on mobile */
    }
    
    .scrolly-visuals {
        width: 100%;
        height: 35vh;
        position: sticky;
        top: 80px;
        background-color: var(--bg-primary);
        z-index: 10;
    }
    
    .scrolly-content-track {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .scrolly-step {
        min-height: auto;
        padding: 5rem 2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .momentum-stats-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .m-stat {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .contact-form-block {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .nav-menu, .header-cta {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .haya-form {
        padding: 2.5rem 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Endless Logo Ticker styles */
.logo-ticker-container {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    width: 100%;
}

.ticker-label {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.logo-ticker {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100%;
    position: relative;
}

.logo-ticker::before,
.logo-ticker::after {
    content: "";
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-ticker::before {
    left: 0;
    background: linear-gradient(to right, #000000 0%, transparent 100%);
}

.logo-ticker::after {
    right: 0;
    background: linear-gradient(to left, #000000 0%, transparent 100%);
}

.logo-ticker-track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: scrollTicker 15s linear infinite;
}

@keyframes scrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.75rem));
    }
}

.logo-ticker:hover .logo-ticker-track {
    animation-play-state: paused;
}

.ticker-logo-img {
    height: 22px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    opacity: 0.45;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-smooth), filter var(--transition-smooth);
}

.ticker-logo-img:hover {
    opacity: 0.85;
    filter: none;
}
