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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050509;
    color: #f5f5f5;
    line-height: 1.6;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 9, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.8rem;
    opacity: 0.7;
}

#mainNav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#mainNav a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

#mainNav a:hover {
    background: #f5f5f5;
    color: #050509;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
}

/* HERO */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: center;
}

.hero-media {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 260px;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 55%),
                linear-gradient(to top, rgba(5,5,9,0.9), transparent 40%);
}

.hero-content {
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
    margin-bottom: 0.9rem;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 0.7rem;
}

.hero-title span {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.hero-lead {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0.6rem;
}

.hero-epic {
    font-size: 0.95rem;
    opacity: 0.8;
    max-width: 32rem;
    margin-bottom: 1.4rem;
}

/* Buttons */

.btn {
    border-radius: 999px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.btn-primary {
    background: #f5f5f5;
    color: #050509;
}

.btn-primary:hover {
    background: #ffffff;
}

.btn-ghost {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Soundwave */

.soundwave {
    display: flex;
    gap: 0.2rem;
    margin-top: 1.2rem;
    height: 18px;
    align-items: flex-end;
}

.soundwave span {
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(to top, #f5f5f5, rgba(245,245,245,0.1));
    animation: wave 1s infinite ease-in-out;
}

.soundwave span:nth-child(2) { animation-delay: 0.1s; }
.soundwave span:nth-child(3) { animation-delay: 0.2s; }
.soundwave span:nth-child(4) { animation-delay: 0.3s; }
.soundwave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% { height: 4px; opacity: 0.5; }
    50% { height: 18px; opacity: 1; }
}

/* SECTIONS */

main section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

main h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

main p {
    margin-bottom: 0.6rem;
    opacity: 0.9;
}

/* TIMELINE */

.timeline {
    display: grid;
    gap: 0.9rem;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.timeline-year {
    font-weight: 700;
    min-width: 80px;
    opacity: 0.9;
}

/* GALLERIES */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.gallery img {
    width: 100%;
    display: block;
    border-radius: 0.75rem;
    object-fit: cover;
}

/* SLIDESHOW */

.slideshow-section {
    text-align: left;
}

.slideshow-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.slideshow-container {
    overflow: hidden;
    flex: 1;
}

.slideshow-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slideshow-slide {
    min-width: 100%;
    padding: 0 0.25rem;
}

.slideshow-slide img {
    width: 100%;
    border-radius: 1rem;
    display: block;
}

.slide-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #f5f5f5;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.slideshow-dots {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
}

.slideshow-dot.active {
    background: #f5f5f5;
}

.slideshow-thumbs {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.75rem;
    overflow-x: auto;
}

.slideshow-thumb {
    width: 60px;
    height: 40px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 1px solid transparent;
}

.slideshow-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-thumb.active {
    opacity: 1;
    border-color: #f5f5f5;
}

/* VIDEO GRID */

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

.video-card {
    background: rgba(255,255,255,0.03);
    border-radius: 0.9rem;
    padding: 0.6rem;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease;
}

.video-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.06);
}

.video-thumb {
    border-radius: 0.7rem;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.video-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.video-title {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.video-meta {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* EVENTS */

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

.event-card {
    background: rgba(255,255,255,0.03);
    border-radius: 0.9rem;
    padding: 0.8rem;
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.event-date {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.4rem;
}

/* LOGIN / PRIVATE */

.login-box {
    max-width: 320px;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 0.9rem;
    margin-top: 1rem;
}

.login-box input {
    width: 100%;
    padding: 0.5rem 0.7rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: transparent;
    color: #f5f5f5;
}

/* FOOTER */

footer {
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* VIDEO POPUP */

#video-popup {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

#video-popup-inner {
    max-width: 900px;
    width: 90%;
    background: #050509;
    border-radius: 1rem;
    padding: 0.75rem;
    position: relative;
}

#video-popup-close {
    position: absolute;
    top: 0.4rem;
    right: 0.7rem;
    font-size: 1.6rem;
    cursor: pointer;
}

#video-popup-content iframe,
#video-popup-content video {
    width: 100%;
    height: min(70vh, 500px);
    border-radius: 0.8rem;
}

/* RESPONSIVE */

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-media {
        order: -1;
    }

    #mainNav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(5,5,9,0.98);
        flex-direction: column;
        padding: 0.75rem 1.25rem 1rem;
        display: none;
    }

    #mainNav.open {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }
}
