:root {
    /* Palette */
    --color-bg: #0A0A0A;
    --color-bg-alt: #00001E;
    /* Deep Blue tint */
    --color-text: #FFFFFF;
    --color-text-muted: #E0E0E0;

    --color-scifi-green: #39FF14;
    --color-electric-blue: #00BFFF;
    --color-scientific-purple: #BF00FF;

    /* Typography */
    --font-heading: 'Roboto Mono', monospace;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --nav-height: 80px;
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.text-green {
    color: var(--color-scifi-green);
}

.text-blue {
    color: var(--color-electric-blue);
}

.text-purple {
    color: var(--color-scientific-purple);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--color-scifi-green);
    color: var(--color-scifi-green);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--color-scifi-green);
    color: var(--color-bg);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.4);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-scifi-green);
}



/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: background 0.3s ease, height 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    height: 70px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-scifi-green);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-scifi-green);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 80%, rgba(10, 10, 10, 1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-electric-blue);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 auto 2rem auto;
    max-width: 600px;
}

.hero-btn {
    margin-top: 1rem;
    font-size: 1rem;
    padding: 15px 30px;
}

/* Applications Section */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* ... existing card styles ... */

/* Ethics Block */
.ethics-block {
    background: linear-gradient(135deg, rgba(191, 0, 255, 0.1) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid rgba(191, 0, 255, 0.3);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.ethics-title {
    color: var(--color-scientific-purple);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ethics-text {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: var(--color-scifi-green);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(57, 255, 20, 0.5));
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-text);
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-more {
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-electric-blue);
    transition: color 0.3s ease;
}

.card:hover .card-more {
    color: var(--color-scifi-green);
}

/* Contact Section */
.bg-darker {
    background-color: var(--color-bg-alt);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-electric-blue);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    opacity: 0.5;
}

.footer-motto {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--color-text);
    opacity: 1;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}


.hamburger {
    display: none;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }



    .logo {
        margin: 0;
        /* Reset centering to allow space for burger */
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: var(--color-scifi-green);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animate Hamburger to X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full screen */
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 1000;
        display: flex;
        /* Override previous display: none */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active li {
        animation: navLinkFade 0.5s ease forwards;
        /* Animation delays handled in JS or simplified here */
        opacity: 1;
        transform: translateY(0);
        transition: color 0.3s ease;
    }

    .card:hover .card-more {
        color: var(--color-scifi-green);
    }

    /* Contact Section */
    .bg-darker {
        background-color: var(--color-bg-alt);
    }

    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        background: rgba(255, 255, 255, 0.02);
        padding: 40px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--color-text-muted);
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: var(--color-text);
        font-family: var(--font-body);
        font-size: 1rem;
        border-radius: 4px;
        transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
        outline: none;
        border-color: var(--color-electric-blue);
        box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
    }

    .checkbox-group {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .checkbox-group input {
        width: auto;
    }

    /* Footer */
    .site-footer {
        padding: 60px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: var(--color-bg);
        text-align: center;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-logo {
        font-family: var(--font-heading);
        font-size: 1.5rem;
        color: var(--color-text);
        opacity: 0.5;
    }

    .footer-motto {
        font-size: 0.9rem;
        color: var(--color-text-muted);
        font-style: italic;
    }

    .footer-links {
        display: flex;
        gap: 20px;
    }

    .footer-links a {
        font-size: 0.85rem;
        color: var(--color-text-muted);
        opacity: 0.7;
    }

    .footer-links a:hover {
        color: var(--color-text);
        opacity: 1;
    }

    .copyright {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.3);
        margin-top: 20px;
    }


    .hamburger {
        display: none;
    }

    /* Responsiveness */
    @media (max-width: 768px) {
        .hero-title {
            font-size: 2.5rem;
        }



        .logo {
            margin: 0;
            /* Reset centering to allow space for burger */
        }

        .hamburger {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            width: 30px;
            height: 25px;
            cursor: pointer;
            z-index: 1001;
        }

        .hamburger span {
            width: 100%;
            height: 3px;
            background: var(--color-scifi-green);
            border-radius: 2px;
            transition: all 0.3s ease;
        }

        /* Animate Hamburger to X */
        .hamburger.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 6px);
        }

        .hamburger.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -6px);
        }

        .nav-links {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 100%;
            /* Full screen */
            background: rgba(10, 10, 10, 0.98);
            flex-direction: column;
            justify-content: center;
            align-items: center;
            transform: translateX(100%);
            transition: transform 0.4s ease-in-out;
            z-index: 1000;
            display: flex;
            /* Override previous display: none */
        }

        .nav-links.active {
            transform: translateX(0);
        }

        .nav-links li {
            margin: 20px 0;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }

        .nav-links.active li {
            animation: navLinkFade 0.5s ease forwards;
            /* Animation delays handled in JS or simplified here */
            opacity: 1;
            transform: translateY(0);
        }
    }



    /* --- Scroll Animations --- */
    [data-animate] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        will-change: opacity, transform;
    }

    [data-animate].animate-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Optional: Disable animations if user prefers reduced motion */
    @media (prefers-reduced-motion: reduce) {
        [data-animate] {
            opacity: 1;
            transform: none;
            transition: none;
        }
    }


    /* --- Sub-page Styles --- */
    .sub-page-content {
        padding-top: 120px;
        min-height: 80vh;
    }
}

/* --- Content Layout --- */
.content-split {
    display: flex;
    gap: 40px;
    align-items: center;
    padding: 20px 0;
}

.content-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.content-text p {
    margin-bottom: 20px;
}

.content-text strong {
    color: var(--color-scifi-green);
}

.content-image {
    flex: 1;
    text-align: center;
}

.content-image img {
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
    border: 1px solid rgba(0, 191, 255, 0.3);
    max-width: 100%;
}

.caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Mobile Layout for Content */
@media (max-width: 768px) {
    .content-split {
        flex-direction: column;
    }
}
