:root {
    --bg-color: #0f172a;
    /* Deep Lab Slate */
    --text-color: #f8fafc;
    /* Clinical White */
    --accent-color: #38bdf8;
    /* Precision Blue */
    --highlight-color: #2dd4bf;
    /* Sterile Teal */
    --secondary-bg: #1e293b;
    /* Slate 800 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: var(--highlight-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Hide hamburger by default on desktop */
.hamburger,
.mobile-nav {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--highlight-color);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--highlight-color);
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
    }
}

.cta-button {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.6);
    animation: pulse 1.5s infinite;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 5%;
}



.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.8);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-color));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(240, 240, 240, 0.8);
}

/* Features/Tech Section */
.section {
    padding: 8rem 5%;
}


.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tech-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.tech-image img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.tech-image:hover img {
    transform: scale(1.05);
}

.tech-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.tech-content p {
    margin-bottom: 1.5rem;
    color: rgba(240, 240, 240, 0.7);
}

/* Benefits Section */
.benefits {
    background-color: var(--secondary-bg);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
}

.benefit-card:hover {
    transform: translateY(-10px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 30px -10px rgba(45, 212, 191, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.benefit-card h3 {
    margin-bottom: 1rem;
    color: var(--highlight-color);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

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

.member-photo {
    width: 150px;
    height: 150px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.team-member:hover .member-photo {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.member-photo::after {
    content: 'Placeholder';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: rgba(240, 240, 240, 0.5);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 100%;
        right: 5%;
        background: var(--bg-color);
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
    }

    .mobile-nav a {
        color: var(--text-color);
        text-decoration: none;
    }

    .mobile-nav.show {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

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

    .nav-links {
        display: none;
        /* Simple hide for MVP, ideally hamburger menu */
    }
}

/* R&D Badge & Hero Extras */
.rd-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid var(--highlight-color);
    color: var(--highlight-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    opacity: 0.9;
}

/* Origins Section */
.origins-section {
    background: linear-gradient(to bottom, var(--bg-color), var(--secondary-bg));
    position: relative;
}

.subhead {
    font-size: 1.2rem;
    color: rgba(240, 240, 240, 0.6);
    margin-bottom: 3rem;
    margin-top: -1rem;
}

.origins-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.origins-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    height: 100%;
    text-align: left;
}

.origins-content {
    position: relative;
    z-index: 2;
}

.partner-logo {
    height: 40px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    filter: brightness(0) invert(1);
    /* Ensure logos are white on dark bg */
}

.origins-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Removed .partner-logo styles as they are now watermarks */



/* Roadmap Section */
.roadmap-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

/* Vertical line */
.roadmap-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}


.roadmap-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    padding: 1rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 250px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item.wide {
        grid-column: span 3;
    }
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.step-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    color: var(--highlight-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    border: 1px solid rgba(45, 212, 191, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roadmap-date {
    background: var(--secondary-bg);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-color);
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 100px;
    text-align: center;
    margin-right: 2rem;
}

.roadmap-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 400px;
    position: relative;
    transition: all 0.3s ease;
}

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

.roadmap-content h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.roadmap-content p {
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.7);
    margin-bottom: 1rem;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    text-transform: uppercase;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(45, 212, 191, 0.2);
    color: var(--highlight-color);
}

.status-badge.future {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
}

/* Material Viewer Magnifier */
.magnifier-container {
    position: relative;
    display: inline-block;
    cursor: none;
    /* Hide default cursor */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.magnifier-container img {
    max-width: 100%;
    display: block;
    height: auto;
}

.magnifier-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--highlight-color);
    border-radius: 50%;
    background-repeat: no-repeat;
    /* Zoom level */
    background-size: 800%;
    pointer-events: none;
    /* Let events pass through to image container */
    display: none;
    /* Hidden by default */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button.secondary {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    box-shadow: none;
}

@media (max-width: 768px) {
    .roadmap-container::before {
        left: 20px;
    }

    .roadmap-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 3rem;
    }

    .roadmap-date {
        position: absolute;
        left: 0;
        top: -15px;
        margin: 0;
        z-index: 2;
    }

    .roadmap-content {
        width: 100%;
        margin-top: 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Vertical Navigation Spine */
.vertical-spine {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
}

.spine-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.spine-dot:hover {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transform: scale(1.2);
}

.spine-dot.active {
    background: var(--highlight-color);
    box-shadow: 0 0 15px var(--highlight-color);
    transform: scale(1.3);
    border-color: var(--highlight-color);
}

.spine-dot::before {
    content: attr(aria-label);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    color: var(--text-color);
    font-size: 0.8rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.spine-dot:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .vertical-spine {
        display: none;
    }
}