/* ==========================================================================
   ELASTASCAN premium stylesheet
   ========================================================================== */

/* --- Design Tokens / Theme Variables --- */
:root {
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Colors */
    --color-bg: #070A13;
    --color-bg-alt: #0D1426;
    --color-panel: rgba(13, 20, 38, 0.5);
    --color-border: rgba(255, 255, 255, 0.07);
    --color-border-glow: rgba(0, 243, 255, 0.2);
    
    --color-primary: #9B111E; /* Maroon roots */
    --color-cyan: #00f3ff;    /* Relaxed state */
    --color-rose: #ff0055;    /* Activated state */
    --color-gold: #fbbf24;    /* Awards accent */
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-white: #ffffff;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--color-cyan) 0%, #a855f7 50%, var(--color-rose) 100%);
    --grad-dark-overlay: radial-gradient(circle at 50% 50%, rgba(13, 20, 38, 0.2) 0%, var(--color-bg) 100%);
    --grad-glow: radial-gradient(circle at top, rgba(0, 243, 255, 0.15), transparent 70%);

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-lazy: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glow-shadow-cyan: 0 0 20px rgba(0, 243, 255, 0.25);
    --glow-shadow-rose: 0 0 20px rgba(255, 0, 85, 0.3);
}

/* --- Base Resets & Global Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--color-bg);
    background-image: var(--grad-dark-overlay);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography & Text Utilities --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-cyan { color: var(--color-cyan); }
.text-rose { color: var(--color-rose); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* --- Layout Containers & Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

.section-header {
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-title {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Glassmorphism Card System --- */
.glass-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* --- Interactive Buttons & Inputs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px 28px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* --- Header / Navigation Bar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-white);
    letter-spacing: -0.03em;
}

.logo-text span {
    color: var(--color-cyan);
    font-weight: 400;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.4));
}

.footer-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.4));
    margin-right: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.badge-patent {
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--color-cyan);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.05);
}

.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(7, 10, 19, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    overflow: hidden;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav.open {
    height: 320px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 30px 0;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mobile-link:hover {
    color: var(--text-white);
}

/* --- Hero Section Styles --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 100%;
    background: var(--grad-glow);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

.badge-patent-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-cyan);
    animation: pulse 1.8s infinite;
}

.hero-content h1 {
    margin-bottom: 20px;
}

.hero-main-title {
    display: flex;
    flex-direction: column;
    gap: 12px;
    line-height: 1.1;
    margin-bottom: 25px !important;
}

.hero-brand {
    font-size: clamp(3.2rem, 6.5vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-white);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(12px, 2.2vw, 20px);
}

.hero-brand .brand-cyan {
    color: var(--color-cyan);
    font-weight: 400;
}

.hero-subtext {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    display: block;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* Device Graphic Mockup */
.hero-visual {
    position: relative;
}

.device-card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    filter: blur(20px);
    z-index: 0;
}

.device-card {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.8) 0%, rgba(7, 10, 19, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.status-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--color-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-cyan);
}

.device-battery {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.muscle-mesh-container {
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 20px;
    position: relative;
}

.ping-circle {
    transform-origin: center;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% { r: 8; opacity: 1; }
    100% { r: 24; opacity: 0; }
}

.device-readings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.reading-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.reading-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reading-value {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.reading-value .unit {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.reading-value .pct {
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* --- Problem & Purpose Section --- */
.about-section {
    position: relative;
    z-index: 1;
}

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

.about-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.about-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- Product Pillars --- */
.product-pillars {
    margin-bottom: 60px;
}

.product-pillars .card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.08);
}

.product-pillars h3 {
    margin-bottom: 12px;
}

/* --- Muscle Simulator Section --- */
.interactive-simulator-container {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.6) 0%, rgba(7, 10, 19, 0.8) 100%);
    border: 1px solid var(--color-border);
    padding: clamp(30px, 5vw, 60px);
    margin-bottom: 0;
}

.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sim-badge {
    display: inline-block;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #d8b4fe;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.simulator-controls h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.simulator-controls p {
    margin-bottom: 30px;
}

.slider-wrapper {
    margin-bottom: 40px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slider-color, var(--color-cyan));
    border: 4px solid var(--color-bg);
    box-shadow: var(--slider-glow, var(--glow-shadow-cyan));
    transition: var(--transition-fast);
}

.custom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slider-color, var(--color-cyan));
    border: 4px solid var(--color-bg);
    box-shadow: var(--slider-glow, var(--glow-shadow-cyan));
    transition: var(--transition-fast);
}

.simulation-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.metric-block {
    display: flex;
    flex-direction: column;
}

.metric-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.metric-stat {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

/* Simulator Viewer Screen */
.simulator-viewer {
    height: 350px;
    background: #02040a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.viewer-screen {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.viewer-overlay-text {
    font-family: monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(0, 243, 255, 0.5);
    border-bottom: 1px solid rgba(0, 243, 255, 0.1);
    padding-bottom: 6px;
}

/* Biological Muscle Graphic */
.muscle-visual-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.muscle-anchor {
    width: 280px;
    height: 100px;
    position: relative;
}

/* The actual contracting muscle capsule */
.muscle-fiber {
    width: 220px;
    height: 35px;
    border-radius: 30px;
    background: #1c263d;
    border: 2px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 0 10px rgba(0,243,255,0.05);
    transition: width 0.1s ease, height 0.1s ease, background-color 0.1s ease, border-color 0.1s ease, box-shadow 0.1s ease;
    position: relative;
}

.muscle-fiber.relaxed {
    height: 25px;
    background-color: rgba(0, 243, 255, 0.1);
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

/* Sensor Band on top of muscle */
.sensor-band {
    position: absolute;
    width: 32px;
    height: 60px;
    background: rgba(13, 20, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-radius: 4px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sensor-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-cyan);
    box-shadow: 0 0 8px var(--color-cyan);
    transition: var(--transition-fast);
}

.sensor-led.active {
    animation: pulse 1s infinite alternate;
}

#sim-sensor-led {
    transform-origin: center;
    transform-box: fill-box;
    transition: fill var(--transition-fast);
}

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

.heatmap-bar {
    flex-grow: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-rose) 100%);
    margin: 0 12px;
    border-radius: 20px;
}

/* --- Traction Section Styles --- */
.traction-stats {
    margin-bottom: 50px;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-white);
    margin-bottom: 12px;
}

.stat-description {
    font-size: 0.9rem;
}

/* Affiliations */
.partnerships-showcase h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(20px, 5vw, 60px);
}

.partner-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    opacity: 0.75;
    transition: var(--transition-fast);
}

.partner-logo-item i {
    font-size: 1.3rem;
    color: var(--color-cyan);
}

.partner-logo-item:hover {
    opacity: 1;
    color: var(--text-white);
}

/* --- Awards Section Styles (Timeline) --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, var(--color-cyan) 0%, rgba(168, 85, 247, 0.4) 50%, var(--color-rose) 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--color-bg);
    border: 3px solid var(--color-cyan);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--color-cyan);
    transition: var(--transition-smooth);
}

.timeline-item.right::after {
    left: -8px;
    border-color: var(--color-rose);
    box-shadow: 0 0 10px var(--color-rose);
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

.timeline-content {
    position: relative;
}

.timeline-content:hover {
    border-color: rgba(255,255,255,0.15);
}

.timeline-item.left:hover::after {
    transform: scale(1.3);
    background-color: var(--color-cyan);
}

.timeline-item.right:hover::after {
    transform: scale(1.3);
    background-color: var(--color-rose);
}

.award-trophy {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.6rem;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-cyan);
    display: block;
    margin-bottom: 8px;
}

.timeline-item.right .timeline-date {
    color: var(--color-rose);
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* --- Team Section Styles --- */
.team-grid {
    gap: 40px;
}

.team-card {
    padding: 40px 30px;
}

.team-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px auto;
    border-radius: 50%;
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-rose));
}

.team-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-bg-alt);
    border: 3px solid var(--color-bg);
}

.team-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-rose));
    filter: blur(8px);
    opacity: 0.3;
    z-index: -1;
    transition: var(--transition-smooth);
}

.team-card:hover .team-card-glow {
    opacity: 0.8;
    filter: blur(12px);
}

.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.team-role {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-rose);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.team-school {
    font-size: 0.85rem;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 16px;
}

.team-bio {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.team-social a:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* --- Contact Section Styles --- */
.contact-grid {
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.method-item {
    display: flex;
    gap: 16px;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid rgba(0, 243, 255, 0.2);
    color: var(--color-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.method-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-form-container {
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.7) 0%, rgba(7, 10, 19, 0.9) 100%);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input, .form-group textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-white);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.form-status {
    font-size: 0.9rem;
    margin-top: 8px;
    text-align: center;
}

.form-status.success { color: #10b981; }
.form-status.error { color: #ef4444; }

/* --- Footer Styles --- */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 40px 0;
    background-color: #04060c;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 8px;
}

.footer-links ul {
    display: flex;
    list-style: none;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

/* --- Reveal-on-Scroll Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-lazy), transform var(--transition-lazy);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in classes for Hero */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpAnimation 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content p {
        margin: 0 auto 30px auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 23px;
        right: auto;
    }
    
    .timeline-item.right::after {
        left: 23px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        display: none;
    }
    
    .header-container {
        padding: 12px 24px;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   Restructured About & Diagnostic SVG styles
   ========================================================================== */

.about-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.about-column {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px;
    border-radius: 20px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.about-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.about-column:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Border accents */
.about-column.problem-column {
    border-left: 3px solid var(--color-rose);
}

.about-column.purpose-column {
    border-left: 3px solid var(--color-cyan);
}

.column-header {
    margin-bottom: 24px;
}

.badge-rose, .badge-cyan {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    width: fit-content;
}

.badge-rose {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid rgba(255, 0, 85, 0.25);
    color: var(--color-rose);
}

.badge-cyan {
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.25);
    color: var(--color-cyan);
}

.about-column h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text-white);
}

.high-impact-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.stat-large {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.stat-text {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text-main);
}

.about-sub-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.about-sub-section .sub-icon {
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.about-sub-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-white);
}

.about-sub-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.about-footer-callout {
    margin-top: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-footer-callout i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* SVG Animation overrides for tangible Hero visual */
.ping-circle-large {
    transform-origin: center;
    animation: pingLarge 2.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    animation-delay: 0.6s;
}

@keyframes pingLarge {
    0% { r: 8; opacity: 0.9; }
    100% { r: 36; opacity: 0; }
}

.scan-line-active {
    stroke-dasharray: 4, 3;
    animation: dashScan 3s linear infinite;
}

@keyframes dashScan {
    to {
        stroke-dashoffset: -20;
    }
}

/* Responsive queries for new About layout */
@media (max-width: 992px) {
    .about-grid-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-column {
        padding: 24px;
    }
    .high-impact-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .stat-large {
        font-size: 2.5rem;
    }
}

/* --- Hero Brand Inline Logo Styles --- */
.hero-brand-logo-inline {
    height: clamp(45px, 8vw, 68px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.45));
    animation: float-inline 4s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.hero-brand:hover .hero-brand-logo-inline {
    transform: scale(1.08) rotate(3deg);
    filter: drop-shadow(0 0 18px rgba(0, 243, 255, 0.8));
}

@keyframes float-inline {
    0%, 100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.45));
    }
    50% {
        transform: translateY(-4px) scale(1.03);
        filter: drop-shadow(0 0 18px rgba(0, 243, 255, 0.65));
    }
}
