* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #3399cc;
    --accent-yellow: #9acd32;
    --dark-bg: #1a1a1a;
    --dark-card: #252525;
    --dark-card-hover: #2d2d2d;
    --darker-section: #0f0f0f;
    --text-light: #e8e8e8;
    --text-medium: #b8b8b8;
    --text-dark: #888888;
    --white: #FFFFFF;
    --border-dark: #3a3a3a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(51, 153, 204, 0.3);
    --gradient-navy: linear-gradient(135deg, #0A1A2F 0%, #1a4d7a 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

em {
    color: var(--primary-blue);
    font-style: normal;
}

i, .fa, .fas, .far, .fab {
    color: inherit;
}

/* Navigation */
nav {
    background: transparent;
    backdrop-filter: blur(15px);
    padding: 1rem 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: none;
}

nav.scrolled {
    background: var(--gradient-navy);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-end;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 100;
    color: var(--text-light);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

@media (min-width: 769px) {
    .logo {
        opacity: 0;
        transform: translateX(-20px);
        pointer-events: none;
    }

    .logo.visible {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .logo {
        display: none;
    }

    nav {
        background: transparent !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 2px #3399cc) brightness(1.05);
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 2px #3399cc) brightness(1.05);
    }
    50% {
        filter: drop-shadow(0 0 8px #3399cc) brightness(1.15);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn::after {
    display: none;
}

.nav-links a.active {
    color: var(--primary-blue);
}

.nav-links a.active::after {
    width: 100%;
}

.btn {
    padding: 0.65rem 1.75rem !important;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white) !important;
}

.btn-primary:hover {
    background: #2a8abb;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-yellow);
    border: 2px solid var(--accent-yellow);
}

.btn-secondary:hover {
    background: var(--accent-yellow);
    color: var(--dark-bg);
}

/* Hero Section */
.hero {
    background: var(--gradient-navy);
    padding: 8rem 0 12rem 0;
    min-height: calc(100vh + 8rem);
    display: flex;
    align-items: center;
    margin: 0;
    padding-top: calc(8rem + 80px);
    width: 100%;
    margin-bottom: -8rem;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-weight: 800;
}

.hero-content h1 .the {
    font-size: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-medium);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(51, 153, 204, 0.4));
    animation: fadeInScale 1s ease-out, heartbeat 3s ease-in-out 2s infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    3% {
        transform: scale(1.025);
    }
    6% {
        transform: scale(1);
    }
    10% {
        transform: scale(1.04);
    }
    14% {
        transform: scale(1);
    }
}



/* Section Styles */
section:not(.hero) {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.section-subtitle {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-yellow);
    font-weight: 600;
}

.section-intro {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.about-description {
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.about-description p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.about-description strong {
    color: var(--text-light);
}

.what-grid {
    max-width: 900px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.what-item {
    display: grid;
    grid-template-columns: 100px 2px 1fr;
    gap: 2rem;
    align-items: center;
}

.what-item.reverse {
    grid-template-columns: 1fr 2px 100px;
}

.what-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.what-graphic i {
    font-size: 3.5rem;
    color: var(--accent-yellow);
}

.what-divider {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, var(--accent-yellow) 50%, transparent 100%);
    justify-self: center;
}

.what-content h4 {
    font-size: 1.5rem;
    color: var(--accent-yellow);
    margin-bottom: 0.75rem;
}

.what-content p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .what-item, .what-item.reverse {
        grid-template-columns: 60px 2px 1fr;
        gap: 1rem;
    }
    
    .what-graphic i {
        font-size: 2.5rem;
    }
    
    .what-divider {
        height: 60px;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-dark);
}

.about-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* About & How It Works Sections */
.section-container {
    background: var(--darker-section);
    position: relative;
    padding-top: 10rem;
    padding-bottom: 5rem;
    z-index: 10;
}

#about {
    margin-top: -8rem;
    margin-bottom: 4rem;
}

#how-it-works {
    border-top: 3px solid transparent;
    border-image: var(--gradient-navy) 1;
    box-shadow: 0 -8px 32px rgba(51, 153, 204, 0.1);
    margin-bottom: 8rem;
}

#get-involved {
    background: var(--gradient-navy);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 0;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-dark);
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-blue);
}

.step-card i {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-light);
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.step-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.step-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

.step-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.step-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.step-link:hover::after {
    width: 100%;
}

/* Process Timeline - How It Works */

.process-timeline {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.process-step {
    display: grid;
    grid-template-columns: 120px 4px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.process-step.reverse {
    grid-template-columns: 1fr 4px 120px;
}

.process-icon {
    width: 120px;
    height: 120px;
    background: var(--gradient-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover .process-icon {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(51, 153, 204, 0.4);
}

.process-divider {
    width: 4px;
    height: 100%;
    min-height: 120px;
    background: var(--gradient-navy);
    border-radius: 2px;
}

.process-content {
    padding: 1rem 0;
}

.process-content h3 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.process-content p {
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Labs & Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--dark-card);
    border: 2px solid var(--border-dark);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-card h3 {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.project-status {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.status-concept {
    background: rgba(51, 153, 204, 0.2);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.status-future {
    background: rgba(154, 205, 50, 0.2);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
}

.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
}

.project-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Get Involved Section */
.get-involved {
    background: var(--gradient-navy);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    border: 1px solid var(--border-dark);
}

.get-involved h2 {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.involvement-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.involvement-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-dark);
}

.involvement-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.involvement-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-card {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-dark);
}

.contact-card h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--darker-section);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

footer p {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.back-to-top {
    display: inline-block;
    color: var(--accent-yellow);
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}

.back-to-top:hover {
    text-decoration: underline;
    color: var(--primary-blue);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.mobile-menu-logo {
    display: none;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-logo img {
        max-width: 300px;
    }

    .about-grid,
    .steps-grid,
    .projects-grid,
    .involvement-grid {
        grid-template-columns: 1fr;
    }

    .process-step,
    .process-step.reverse {
        grid-template-columns: 80px 3px 1fr;
        gap: 1.5rem;
    }

    .process-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .process-divider {
        width: 3px;
        min-height: 80px;
    }

    .process-content h3 {
        font-size: 1.25rem;
    }

    .process-content p {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--gradient-navy);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
        align-items: center;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        padding: 0.5rem 0;
        font-size: 1.1rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-logo {
        display: flex;
        margin-bottom: 1rem;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        justify-content: center;
    }

    .mobile-menu-logo img {
        height: 70px;
        width: auto;
        filter: drop-shadow(0 0 8px rgba(51, 153, 204, 0.6)) brightness(1.1);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 6rem 0 6rem;
        padding-top: calc(6rem + 80px);
        margin-bottom: 0;
        min-height: 100vh;
    }

    #about {
        margin-top: 0;
        padding-top: 5rem;
        margin-bottom: 2rem;
    }

    .section-container {
        margin-top: 0;
        padding-top: 5rem;
    }

    .hero-container {
        padding: 0 1.5rem;
    }

    .hero-logo {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-logo img {
        max-width: 200px;
    }

    section:not(.hero) {
        padding: 3rem 1rem;
    }

    .get-involved {
        padding: 2.5rem 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        text-align: left;
    }

    .hero-content h1 .the {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        text-align: left;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* Stack process steps vertically on mobile */
    .process-step,
    .process-step.reverse {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .process-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        order: 1;
    }

    .process-content {
        order: 2;
        padding: 0;
    }

    .process-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .process-content p {
        font-size: 1rem;
    }

    .process-divider {
        order: 3;
        width: 60px;
        height: 3px;
        min-height: 3px;
    }

    /* Hide divider after last step */
    .process-step:last-child .process-divider {
        display: none;
    }

    .process-timeline {
        gap: 2.5rem;
    }
}
