@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette: Commercial Biotech Premium */
    --charcoal-900: #0B1C30;
    --charcoal-800: #122841;
    --charcoal-700: #1C3A5E;

    --cyan-500: #00E5FF;
    /* Glowing Accent */
    --cyan-400: #33EBFF;
    --blue-500: #0EA5E9;
    /* Secondary Accent */

    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-600: #475569;
    --slate-800: #1E293B;

    /* Semantic Mapping */
    --primary: var(--cyan-500);
    --primary-light: var(--cyan-400);
    --accent: var(--blue-500);
    --dark: var(--charcoal-900);
    --text: var(--slate-800);
    --text-light: var(--slate-600);
    --bg: var(--slate-50);
    --bg-alt: #FFFFFF;
    --bg-accent: var(--slate-100);
    --border: var(--slate-200);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgba(10, 10, 10, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(10, 10, 10, 0.08);
    --shadow-lg: 0 25px 50px -12px rgba(10, 10, 10, 0.15);
    --glass: rgba(255, 255, 255, 0.85);
}

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

html {
    scroll-behavior: smooth;
    font-size: 85%;
    /* Globally scale down the site */
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
    font-size: clamp(1.125rem, 1.75vw, 1.35rem);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.lead-text {
    font-size: 1.35rem;
    color: var(--text);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Premium Glassmorphism Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    /* Deep Navy Glass */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    flex-shrink: 0;
    z-index: 10;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 28px;
    min-width: 150px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-500);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--cyan-500);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--bg);
    transition: var(--transition);
}

/* Deep Navy Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 100px;
    background-color: var(--charcoal-900);
    color: white;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(16, 22, 38, 0.65) 0%, rgba(16, 22, 38, 0.85) 100%),
        url('../images/acustic-ecm1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-md);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.reveal-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: revealLine 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-line:nth-child(2) {
    animation-delay: 0.2s;
    color: var(--cyan-500);
}

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

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: revealFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

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

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--cyan-500);
    color: var(--charcoal-900);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
}

.btn-primary:hover {
    background: var(--cyan-400);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

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

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    animation: revealFade 1s ease 1s forwards;
}

.hero-scroll span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.scroll-indicator {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyan-500);
    border-radius: 2px;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {

    0%,
    100% {
        opacity: 1;
        top: 6px;
    }

    50% {
        opacity: 0;
        top: 18px;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section-label {
    display: inline-block;
    color: var(--cyan-500);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    background: rgba(0, 229, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.section-title {
    margin-bottom: var(--spacing-md);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Page Header Specific Styles */
.page-header h1,
.page-header h2,
.page-header h3 {
    color: white;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Value Props / Platform Section */
.platform {
    background: var(--bg);
    position: relative;
    z-index: 10;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.platform-card {
    background: white;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 24px;
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-500));
    opacity: 0;
    transition: var(--transition);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 229, 255, 0.2);
}

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

.card-animate {
    animation: cardReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.card-animate:nth-child(2) {
    animation-delay: 0.2s;
}

.card-animate:nth-child(3) {
    animation-delay: 0.3s;
}

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

.platform-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 229, 255, 0.15);
    border-color: var(--cyan-500);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--charcoal-900), var(--charcoal-700));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--cyan-500);
    box-shadow: 0 4px 15px rgba(10, 10, 10, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.platform-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    color: var(--charcoal-900);
    letter-spacing: -0.01em;
}

.platform-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* History Section - Deep Navy & Neon Line */
.history {
    background: var(--charcoal-900);
    color: white;
    position: relative;
    overflow: hidden;
}

.history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.history .section-title {
    color: white;
}

.history .section-label {
    background: rgba(0, 229, 255, 0.15);
    color: var(--cyan-400);
}

.history .section-intro {
    color: rgba(255, 255, 255, 0.7);
}

.vertical-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            var(--cyan-500) 15%,
            var(--blue-500) 85%,
            transparent 100%);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: var(--spacing-lg);
    width: 50%;
    opacity: 1;
    transform: translateX(0);
}

.timeline-item.animate {
    /* Animation removed to ensure items are always visible */
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
    transform: translateX(0);
}

@keyframes timelineSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -8px;
    width: 16px;
    height: 16px;
    background: var(--charcoal-900);
    border: 3px solid var(--cyan-500);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
    transition: var(--transition);
}

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

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -8px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--spacing-lg);
    border-radius: 16px;
    position: relative;
    width: 100%;
    max-width: 400px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 229, 255, 0.3);
    transform: translateY(-5px);
}

.timeline-date {
    display: inline-block;
    color: var(--cyan-400);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Products Section */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.product-item-reverse {
    direction: rtl;
}

.product-item-reverse>* {
    direction: ltr;
}

.product-visual {
    position: relative;
}

.product-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
}

.product-content h3 {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.product-content h4 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.product-content p {
    margin-bottom: var(--spacing-md);
}

.clinical-highlight {
    padding: 1rem 1.25rem;
    background: var(--bg-accent);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.clinical-highlight strong {
    color: var(--accent);
}

.clinical-image {
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.scientist-image {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.link-arrow::after {
    content: '→';
    transition: var(--transition);
}

.link-arrow:hover {
    gap: 1rem;
    color: var(--accent);
}

/* Science Section */
.science {
    background: var(--dark);
    color: white;
}

.science .section-label {
    color: var(--accent);
}

.science .section-title {
    color: white;
}

.science-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.science-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
}

.scientist-image-placeholder {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4,
.footer-col h5 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.25rem;
}

.footer-col h5 {
    font-size: 1rem;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, white 100%);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    max-width: 900px;
}

.page-intro {
    font-size: 1.25rem;
    max-width: 800px;
    color: var(--text-light);
}

/* Technology Page */
.tech-content {
    background: white;
}

.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.content-block-reverse {
    direction: rtl;
}

.content-block-reverse>* {
    direction: ltr;
}

.tech-image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.content-text h2 {
    margin-bottom: var(--spacing-md);
}

.content-text p {
    margin-bottom: var(--spacing-md);
}

.tech-applications {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
}

.application-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.application-card {
    padding: var(--spacing-lg);
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.application-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.healing-story-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-sm);
}

.healing-story-card {
    padding: var(--spacing-md);
    background: var(--bg-alt);
    border-radius: 12px;
    border-top: 4px solid var(--secondary);
    transition: var(--transition);
}

.healing-story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2) !important;
    border-color: rgba(0, 229, 255, 0.4) !important;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), rgba(14, 165, 233, 0.02)) !important;
}

.healing-story-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.healing-story-card:hover .healing-story-number {
    color: var(--cyan-400) !important;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4) !important;
    transform: scale(1.05);
}

.healing-story-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .healing-story-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.application-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.application-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.application-card p {
    font-size: 1rem;
}

.tech-foundation {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
}

.foundation-content {
    max-width: 700px;
    margin: 0 auto;
}

.foundation-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.foundation-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

/* Pipeline Page */
.pipeline-section {
    background: white;
}

.pipeline-product {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-alt);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.pipeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
}

.pipeline-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.pipeline-header h3 {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-clinical {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.status-preclinical {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
}

.pipeline-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

.pipeline-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.pipeline-features,
.pipeline-status-detail {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.pipeline-features h4,
.pipeline-status-detail h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pipeline-features ul {
    list-style: none;
    padding: 0;
}

.pipeline-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.pipeline-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.pipeline-future {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--border);
}

.pipeline-future h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

/* Horizontal Timeline Grid Style */
.timeline-section {
    background: white;
}

.timeline-grid-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-grid-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 2px;
    background: var(--cyan-500);
    opacity: 0.3;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    align-items: center;
}

/* Alternate sides for alternating items */
.timeline-item:nth-child(even) .timeline-content {
    order: 2;
}

.timeline-item:nth-child(even) .timeline-image {
    order: 1;
}

.timeline-item:nth-child(odd) .timeline-content {
    order: 1;
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-image {
    order: 2;
}

/* Center node containing the year */
.timeline-node {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 36px;
    background: var(--cyan-500);
    border-radius: 20px;
    border: 4px solid var(--bg);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal-900);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.timeline-content p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.timeline-image {
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-accent);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-sm);
}

/* Timeline Bracket Extension */
.timeline-bracket {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    text-align: center;
    z-index: 5;
    padding-top: 1rem;
}

/* The curved bracket lines */
.timeline-bracket::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1.5rem;
    border-top: 2px solid var(--charcoal-700);
    border-left: 2px solid var(--charcoal-700);
    border-right: 2px solid var(--charcoal-700);
    border-radius: 8px 8px 0 0;
}

/* The pointer downwards */
.timeline-bracket::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0.5rem;
    background: var(--charcoal-700);
}

.timeline-bracket-text {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--charcoal-900);
    line-height: 1.4;
    background: var(--bg);
    padding: 0.5rem 1rem;
    margin-top: -0.5rem;
    /* Pull up into the bracket */
    position: relative;
    z-index: 2;
    display: inline-block;
}

.timeline-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: var(--transition);
}

.timeline-item:hover .timeline-image img {
    opacity: 1;
    transform: scale(1.05);
}

.timeline-image-icon {
    position: absolute;
    color: var(--cyan-500);
    opacity: 0.5;
}

@media (max-width: 768px) {
    /* Hide the vertical center line */
    .timeline-grid-wrapper::before {
        display: none;
    }

    /* Stack timeline items vertically — full width */
    .timeline-item {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 2.5rem !important;
        gap: 1rem;
    }

    .timeline-item:nth-child(even) {
        align-self: auto !important;
        justify-content: flex-start !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    /* Hide the dot pseudo-elements */
    .timeline-item::after,
    .timeline-item:nth-child(even)::after {
        display: none !important;
    }

    /* Reset ordering — always: node, image, content */
    .timeline-item .timeline-node {
        order: 1 !important;
    }

    .timeline-item .timeline-image,
    .timeline-item:nth-child(even) .timeline-image,
    .timeline-item:nth-child(odd) .timeline-image {
        order: 2 !important;
    }

    .timeline-item .timeline-content,
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        order: 3 !important;
        text-align: left !important;
        width: 100% !important;
    }

    /* Year node: inline instead of absolute */
    .timeline-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: auto !important;
        display: inline-flex !important;
        padding: 0.5rem 1.25rem;
        margin-bottom: 0.5rem;
        align-self: flex-start;
    }

    /* Timeline image: full width, no inline padding */
    .timeline-image {
        width: 100% !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    .timeline-image img {
        border-radius: 12px;
        width: 100% !important;
        height: auto !important;
    }

    /* Statistics box in timeline */
    .timeline-grid-wrapper > div[style*="display: flex"][style*="justify-content: center"] {
        padding: 1rem 0 !important;
    }
}

/* About Page */
.about-mission {
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    justify-content: center;
}

.mission-card {
    padding: var(--spacing-lg);
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.mission-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
}

.leadership {
    background: var(--bg-alt);
}

.leader-profile {
    /* Layout handled by inner pipeline-content wrapper */
}

.leader-bio h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.leader-bio h4 {
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.leader-bio p {
    margin-bottom: var(--spacing-md);
}

.values {
    background: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.value-item {
    padding: var(--spacing-md);
    text-align: center;
}

.value-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: var(--spacing-sm);
}

.value-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.value-item p {
    font-size: 1rem;
}

/* Contact Page */
.contact-section {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    padding: var(--spacing-md);
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

.contact-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.contact-card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--accent);
}

.contact-form-container {
    background: var(--bg-alt);
    padding: var(--spacing-lg);
    border-radius: 16px;
}

.contact-form-container h3 {
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(5, 191, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Publications Page */
.publications-section {
    background: white;
}

.publication-item {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    background: var(--bg-alt);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.publication-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left-color: var(--accent);
}

.publication-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
}

.pub-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.pub-description {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-logo img {
        height: 32px;
        min-width: 160px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--charcoal-900);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.125rem;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--cyan-500) !important;
    }

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

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

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

    .product-item,
    .product-item-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .science-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .content-block,
    .content-block-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .pipeline-content {
        grid-template-columns: 1fr;
    }

    .pipeline-header {
        flex-direction: column;
    }

    .leader-profile {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--charcoal-900);
    min-width: 140px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 12px;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(0,229,255,0.2);
    overflow: hidden;
    padding: 0.5rem 0;
}
.nav-item-dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content li {
    margin: 0;
}
.dropdown-content a {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.75rem 1.5rem !important;
    text-decoration: none;
    display: block;
    margin: 0 !important;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}
.dropdown-content a:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--cyan-400) !important;
}
@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        background-color: transparent;
        box-shadow: none;
        border: none;
        transform: none;
        padding-left: 1rem;
        display: none;
    }
    .nav-item-dropdown:hover .dropdown-content,
    .nav-item-dropdown:active .dropdown-content {
        display: block;
    }
}

/* ================================================
   MOBILE RESPONSIVE OVERRIDES
   Override inline grid styles that don't stack on mobile
   ================================================ */

@media (max-width: 1024px) {
    /* About page: 4-column values grid → 2 columns on tablet */
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* --- GLOBAL SECTION SPACING --- */
    .section-padding {
        padding: 4rem 0 !important;
    }

    .container {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* --- GLOBAL: Force all inline 2-col grids to stack --- */
    /* This catches any element with inline grid-template-columns */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 4fr 6fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns: 1fr 1.5fr"],
    [style*="grid-template-columns: 2fr 1fr 1fr 1fr"],
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Fix direction on reversed content blocks */
    [style*="direction: rtl"] {
        direction: ltr !important;
    }

    [style*="direction: rtl"] > * {
        direction: ltr !important;
    }

    /* --- HOMEPAGE --- */

    /* Platform section: prevent overflow */
    .platform {
        overflow: hidden !important;
    }

    .platform .container,
    .platform .container > div {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .platform img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Science leadership: 2-col grid → single column */
    .science-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    /* Hero section adjustments */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
    }

    .hero-scroll {
        display: none;
    }

    /* --- TECHNOLOGY PAGE --- */

    /* Content blocks: 2-col grid → single column */
    .content-block,
    .content-block-reverse {
        grid-template-columns: 1fr !important;
        direction: ltr !important;
        gap: 2rem !important;
    }

    .content-block-reverse .content-visual,
    .content-block-reverse .content-text {
        direction: ltr !important;
    }

    /* Healing story cards */
    .tech-applications {
        padding: 2.5rem 1.5rem !important;
        border-radius: 20px !important;
    }

    /* --- PIPELINE PAGE --- */

    /* Pipeline product cards */
    .pipeline-product {
        padding: 1.5rem !important;
    }

    .pipeline-header {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .pipeline-header h2 {
        font-size: 1.75rem !important;
    }

    .pipeline-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .pipeline-future {
        padding: 2.5rem 1.5rem !important;
        border-radius: 20px !important;
    }

    /* --- CLINICAL PAGE --- */

    /* Clinical study card */
    .section-padding > .container > div {
        padding: 2rem !important;
    }

    /* Study details grid */
    .section-padding > .container > div > div:last-child {
        grid-template-columns: 1fr !important;
    }

    /* --- ABOUT PAGE --- */

    /* Values grid → single column on mobile */
    .values-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .value-item {
        padding: 2rem !important;
    }

    /* Timeline image padding reset on mobile */
    .timeline-image {
        padding-left: 0 !important;
    }

    /* Timeline image padding fix */
    .timeline-image img {
        height: auto !important;
    }

    /* Leadership profiles: 2-col → single column */
    .leader-profile .pipeline-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .leader-profile .scientist-image,
    .leader-profile .leader-image {
        max-width: 250px;
        margin: 0 auto;
    }

    /* --- CONTACT PAGE --- */

    /* Contact grid: 2-col → single column */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .contact-form {
        padding: 2rem !important;
    }

    .contact-info {
        padding: 2rem !important;
    }

    /* Contact form: name fields side by side → stacked */
    .contact-form form > div:first-child {
        grid-template-columns: 1fr !important;
    }

    /* --- FOOTER --- */

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* --- PAGE HEADERS --- */

    .page-header {
        padding: 8rem 0 3rem !important;
    }

    .page-header h1 {
        font-size: clamp(2rem, 7vw, 3rem) !important;
    }

    .page-header .page-intro {
        font-size: 1.05rem !important;
    }

    /* --- CUP PAGE --- */

    .section-padding > .container > div[style*="padding: 4rem 5rem"] {
        padding: 2rem 1.5rem !important;
    }

    /* --- GLOBAL IMAGE OVERFLOW FIX --- */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Ensure all grid containers don't overflow */
    [style*="display: grid"] {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    /* Fix inline gap values that are too large on mobile */
    [style*="gap: 5rem"] {
        gap: 2rem !important;
    }

    [style*="gap: 4rem"] {
        gap: 2rem !important;
    }
}

@media (max-width: 480px) {

    /* Smaller page header padding */
    .page-header {
        padding: 7rem 0 2.5rem !important;
    }

    /* Pipeline status badges wrap better */
    .status-badge {
        font-size: 0.8rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Smaller section titles */
    .section-title {
        font-size: 1.75rem !important;
    }

    /* Contact form button full width */
    .contact-form button[type="submit"] {
        width: 100% !important;
        text-align: center !important;
    }

    /* Leader bios: tighter spacing */
    .leader-bio h3 {
        font-size: 1.5rem !important;
    }

    .leader-bio h4 {
        font-size: 1rem !important;
    }

}