/* ===========================
    Base Styles
    =========================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    /* background: #232323; */
    background: linear-gradient(135deg, #476fbe 0%, #167f47 100%);
    color: #fff;
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===========================
    Layout Containers
    =========================== */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-container {
    align-items: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===========================
    Hero Section
    =========================== */
.stanford {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    top: 20px;
    font-style: italic;
}

.green-ai {
    font-size: 5rem;
    font-weight: 700;
    color: #7fffb2;
    letter-spacing: 0.08em;
    margin-bottom: 0;
    text-align: center;
    min-height: 6rem;
    transition: color 0.2s;
    font-style: italic;
}

.hackathon-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hackathon-text {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    z-index: 2;
    text-align: center;
    text-shadow: 0 2px 0 #7fffb2, 0 0 10px #7fffb2;
    margin-bottom: 2rem;
}

canvas#electric-box {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 8px #7fffb2) drop-shadow(0 0 16px #7fffb2);
}

/* ===========================
    SDG Marquee Rows
    =========================== */

/* Container for 3 stacked rows */
.sdg-row {
    display: flex;
    flex-direction: column;
    gap: 1em;
    width: 100vw;
    align-items: flex-start;
    padding: 4vh 0;
    overflow: hidden;
}

/* Each horizontal row of items */
.sdg-track {
    display: flex;
    align-items: center;
    gap: 1em;
    white-space: nowrap;
    flex-wrap: nowrap;
    width: max-content;
    font-size: 2rem;
    will-change: transform;
}

/* Animation: roll left-to-right */
@keyframes roll-ltr {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Animation: roll right-to-left */
@keyframes roll-rtl {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-70%);
    }
}

/* Apply animations */
.roll-ltr {
    animation: roll-ltr 60s linear infinite;
}

.roll-rtl {
    animation: roll-rtl 60s linear infinite;
}

/* SDG Text */
.sdg-track span {
    color: #fff;
    font-weight: 800;
    font-family: 'Space Mono', monospace;
    margin-right: 0.7em;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

/* SDG Images */
.sdg-track img {
    height: 2.8em;
    width: 2.8em;
    object-fit: cover;
    border-radius: 0.4em;
    margin-right: 2.2em;
    border: 2px solid #aaf7c7;
    background: #fff;
    box-shadow: 0 2px 8px rgba(127, 255, 178, 0.1);
    vertical-align: middle;
}

/* ===========================
    Tracks Section
    =========================== */

#tracks, #about {
        /* Soft green-teal gradient with swirl SVG overlay and subtle grain */
        background:
            
            url('assets/swirl-wide.svg') center/100% repeat,
            linear-gradient(135deg, #a9d7be 0%, #23884b 100%);
        position: relative;
        box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
        padding: 20px 30px 80px 30px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
}

.tracks-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    width: 100%;
    margin: 0 auto;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
}

.track-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08), 0 0 10px #7fffb2;
    padding: 20px 30px;
    transition: transform 0.3s ease;
    flex-wrap: wrap;
    max-width: 1000px;
    box-sizing: border-box;
}

.track-card.reverse {
    flex-direction: row-reverse;
}

.track-text {
    flex: 1 1;
    min-width: 300px;
    font-family: 'Space Mono', monospace;
    color: #012d0c;
}

.track-text h3 {
    font-size: 2rem;
    color: #018c5f;
    margin-bottom: 1rem;
}

.track-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.track-text ul {
    padding-left: 1.2em;
    list-style-type: disc;
}

.track-image {
    flex: 1 1;
    min-width: 250px;
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
}

.track-image img {
    border-radius: 12px;
    max-width: 250px;
}

/* ===========================
    About Section
    =========================== */
#about {
    padding: 0 42px 64px 42px;
    text-align: center;
}

#about h2, #tracks h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

#about .highlight {
    color: #7fffb2;
    font-style: italic;
}

#about p.description {
    max-width: 850px;
    font-size: 1.2rem;
    /* margin: 0 auto 4rem; */
    margin-bottom: 3rem;
    color: #f3f3f3;
    font-style: italic;
    opacity: 0.92;
}

.about-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.about-card {
    background: #fff;
    color: #000;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 20px #7fffb2;
    min-width: 250px;
    flex: 1 1;
}

.about-card svg {
    background: #7fffb2;
    border-radius: 100%;
    padding: 10px;
}

svg.color-purple {
    background: rgb(197, 157, 236);
}

svg.color-orange {
    background: orange;
}

.schedule {
    text-align: center;
    margin: auto;
    border-collapse: collapse;
    background: transparent;
    max-width: 500px;
    width: auto;
    padding: 0 20px;
}

/* ===========================
    Main Nav
    =========================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    z-index: 10;
    display: flex;
    align-items: center;
    background: rgba(35,35,35,0.92);
    backdrop-filter: blur(4px);
    border-bottom: 1.5px solid #7fffb2;
}
.main-nav .nav-link {
    color: #7fffb2;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    margin-left: 24px;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}
.main-nav .nav-link:first-child {
    margin-left: 32px;
}

.event-date {
    margin-bottom: 0.7em;
    color: #bef9ce;
    font-size: 2em;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    text-align: center;
    max-width: 90vw;
    word-break: break-word;
}

.event-description {
    color: #bef9ce;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 2.5em auto;
    text-align: center;
    font-family: 'Space Mono', monospace;
    word-break: break-word;
}

.event-actions {
    display: flex;
    gap: 1.5em;
    justify-content: center;
    margin-bottom: 2.2em;
    flex-wrap: wrap;
}

/* ===========================
    Responsive: Mobile Styles
    =========================== */
@media (max-width: 600px) {
    #about h2 {
        font-size: 2rem;
    }
    .event-description {
        max-width: 90vw;
    }
    .event-actions {
        flex-direction: column;
        align-items: center;
        gap: 1em;
    }
    .hackathon-text {
        font-size: 3rem;
    }
    .event-date {
        font-size: 1.5rem;
    }
    .green-ai {
        font-size: 4rem;
    }
    canvas#electric-box {
        width: 60%;
        margin-left: 20%;
    }
    .hero-container {
        min-height: 50vh;
     }
}

@media (max-width: 900px) {
    .hero-container {
        min-height: 50vh;
        padding-bottom: 30px;
     }
}