:root {
    --bg-color: #000;
    --text-color: #fff;
    --accent-color: #fff;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Allow vertical scroll, prevent horizontal */
    width: 100vw;
}

/* Top Navigation */
/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, padding 0.4s ease;
}

.top-nav.scrolled {
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    mix-blend-mode: difference;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s;
    mix-blend-mode: difference;
}

.nav-links a:hover {
    opacity: 1;
}

/* Video Background */
.video-background {
    position: absolute;
    /* Changed from fixed so it stays at the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Only cover the hero section */
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.video-background video.video-loaded {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Slightly darker for better contrast */
}

/* Main Content */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 8vw;
    /* Adjusted for longer text */
    font-weight: 500;
    /* Stronger weight */
    letter-spacing: 5px;
    /* Tighter spacing */
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards 1.5s;
    mix-blend-mode: overlay;
    /* Cool effect */
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards 0.5s;
}

.hero-meta {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards 2.5s;
    display: flex;
    gap: 40px;
}

.hero-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards 3.5s;
}

.btn-minimal {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 15px 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.btn-minimal:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-5px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 2.5s ease-out forwards 4.5s;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
}

/* Content Sections */
.content-section {
    min-height: 80vh;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom, transparent, #000 20%);
    /* Fade into black */
}

.container {
    max-width: 1000px;
    width: 100%;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 200;
    margin-bottom: 80px;
    text-align: center;
    opacity: 0;
    /* Hidden for JS reveal */
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.program-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.program-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.program-item:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 20px;
    padding-right: 20px;
}

.program-item .time {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.6;
}

.program-item .title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 400;
}

.program-item .category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.large-text {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.4;
    margin-bottom: 40px;
}

.body-text {
    font-size: 1.1rem;
    opacity: 0.7;
    line-height: 1.8;
}

/* Reveal Classes */
.reveal-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Footer */
.footer-minimal {
    position: relative;
    /* Changed from absolute */
    padding: 60px 40px;
    background: #000;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    z-index: 1;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.5;
}

.footer-email,
.footer-email:visited {
    color: #fff;
    text-decoration: none;
    margin-right: 20px;
    opacity: 1;
    transition: opacity 0.3s;
}

.footer-email:hover {
    opacity: 0.7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 15vw;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
        font-size: 1rem;
    }

    .footer-minimal {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        bottom: 20px;
    }

    .social-links {
        margin-right: 0;
    }

    .footer-email {
        margin-right: 0;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Newsletter Section */
.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    align-items: center;
}

.newsletter-form input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.newsletter-form input:focus {
    border-bottom-color: #fff;
}

.form-message {
    margin-top: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    min-height: 20px;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 200px;
    }
}

/* Filled Button (High Contrast) */
.btn-filled {
    background: #fff;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 3px;
    padding: 15px 30px;
    border: 1px solid #fff;
    transition: all 0.4s ease;
    cursor: pointer;
    font-weight: 600;
}

.btn-filled:hover {
    background: transparent;
    color: #fff;
}

/* Munich Images */
.munich-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
}

.munich-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
    filter: grayscale(100%);
    /* Minimalist B&W look */
}

.munich-img:hover {
    filter: grayscale(0%);
    /* Color on hover */
}

@media (max-width: 768px) {
    .munich-images {
        grid-template-columns: 1fr;
    }

    .munich-img {
        height: 250px;
    }
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.category-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.category-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.6;
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

/* Mobile Navigation Media Query */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin: 20px 0;
    }

    /* Program Section Mobile */
    .program-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 0;
    }

    .program-item .title {
        font-size: 1.5rem;
    }

    .program-item .time {
        font-size: 0.8rem;
        opacity: 0.5;
    }

    .program-item .category {
        font-size: 0.7rem;
        align-self: flex-start;
    }
}

/* Map Section */
.map-container {
    width: 100%;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    filter: grayscale(100%) invert(90%);
    /* Dark mode map effect */
    transition: filter 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) invert(0%);
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 300px;
    }
}