/* ================================
   CSS VARIABLES - Define colors once, use everywhere
   ================================ */
:root {
    --burgundy: #800020;
    --caoba: #8B4513;
    --scarlet: #FF2400;
    --gold: #FFD700;
    --white: #FFFFFF;
    --dark-burgundy: #4A0012;
    --light-gold: #FFF8DC;
    --wine: #722F37;
}

/* ================================
   RESET AND BASE STYLES
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Makes padding and border included in width/height */
}

body {
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scroll */
    background: #000;
    color: var(--white);
}

/* ================================
   KEYFRAME ANIMATIONS
   These create smooth movements and effects
   ================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px); /* Starts 50px below */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ends in normal position */
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8); /* Starts smaller */
    }
    to {
        opacity: 1;
        transform: scale(1); /* Ends normal size */
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-10px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-5px); 
    }
}

@keyframes indicatorProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================================
   NAVIGATION BAR
   Fixed position means it stays at top when scrolling
   ================================ */
.navbar {
    position: fixed; /* Stays in same position when scrolling */
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(128,0,32,0.3); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* Blurs content behind navbar */
    z-index: 1000; /* High z-index to stay above other content */
    transition: all 0.3s ease; /* Smooth transitions for changes */
}

/* When user scrolls, navbar becomes more opaque */
.navbar.scrolled {
    background: rgba(128,0,32,0.95);
    padding: 15px 50px;
}

.nav-container {
    display: flex;
    justify-content: space-between; /* Logo left, menu right */
    align-items: center;
    max-width: 1400px;
    margin: 0 auto; /* Centers the container */
}

.logo-container {
    display: flex;
    align-items: center;
}

.main-logo {
    height: 50px;
    width: auto; /* Maintains aspect ratio */
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); /* Glowing effect */
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between menu and social icons */
}

.nav-menu {
    display: flex;
    list-style: none; /* Removes bullet points */
    gap: 30px; /* Space between menu items */
}

.nav-link {
    color: var(--white);
    text-decoration: none; /* Removes underline */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px; /* Adds space between letters */
    transition: all 0.3s ease;
    position: relative; /* Needed for ::after pseudo-element */
}

.nav-link:hover {
    color: var(--gold);
    transform: translateY(-2px); /* Moves up slightly on hover */
}

/* Creates underline effect on hover */
.nav-link::after {
    content: ''; /* Empty content for pseudo-element */
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0; /* Starts with no width */
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%; /* Expands to full width on hover */
}

.social-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-nav-btn {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.social-nav-btn.facebook {
    background: var(--burgundy);
    color: var(--white);
}

.social-nav-btn.youtube {
    background: var(--scarlet);
    color: var(--white);
}

.social-nav-btn:hover {
    transform: translateY(-3px) scale(1.1); /* Moves up and grows */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ================================
   MOBILE MENU
   Hidden by default, shown on mobile
   ================================ */
.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ================================
   HERO SECTION (Main video area)
   ================================ */
.hero-section {
    height: 100vh; /* Full viewport height */
    position: relative; /* Allows absolute positioning of children */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hides content that overflows */
}

.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3; /* Behind other content */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Covers entire area while maintaining aspect ratio */
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fade transition */
}

.hero-video.active {
    opacity: 1; /* Visible when active */
}

/* ================================
   FIXED OVERLAY BUTTONS - SINGLE OVERLAY AT A TIME
   Text and buttons over videos
   ================================ */
.fixed-overlay-buttons {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    z-index: 50;
    pointer-events: none;
}

/* IMPORTANT: Only show active overlay, hide all others */
.overlay-button-set {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    pointer-events: none;
    position: absolute; /* Make all overlays stack on top of each other */
    top: 0;
    left: 0;
}

/* Only the active overlay is visible */
.overlay-button-set.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    position: relative; /* Active overlay uses normal positioning */
}

.overlay-button-set * {
    pointer-events: all;
    position: relative;
    z-index: 60;
}

.event-badge {
    background: var(--white);
    color: var(--burgundy);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
}

.event-date {
    background: var(--burgundy);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 20px;
    display: inline-block;
}

.event-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    -webkit-text-stroke: 1px rgba(0,0,0,0.8);
}

.event-location {
    font-size: 16px;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.8);
}

.event-btn {
    background: var(--scarlet);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    z-index: 70;
    position: relative;
    pointer-events: all;
}

.event-btn:hover {
    background: var(--burgundy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,36,0,0.4);
}

/* ================================
   CAROUSEL NAVIGATION
   Left and right arrows
   ================================ */
.carousel-nav {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between; /* One arrow left, one right */
    padding: 0 40px;
    z-index: 100;
    pointer-events: none; /* Allows clicks to pass through container */
}

.carousel-arrow {
    background: rgba(128,0,32,0.8);
    border: 2px solid rgba(255,215,0,0.6);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Makes it circular */
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: all; /* Re-enables clicks for arrows */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(255,36,0,0.9);
    border-color: var(--gold);
    transform: scale(1.1); /* Grows on hover */
    box-shadow: 0 5px 20px rgba(255,215,0,0.4);
}

/* ================================
   PROGRESS INDICATORS
   Dots at bottom showing current video
   ================================ */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%); /* Centers horizontally */
    display: flex;
    gap: 15px;
    z-index: 100;
}

.indicator {
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator.active {
    background: var(--gold);
    box-shadow: 0 0 10px rgba(255,215,0,0.6);
}

/* Progress bar animation for active indicator */
.indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--scarlet);
    animation: indicatorProgress 8s linear infinite;
}

.indicator:hover {
    background: rgba(255,215,0,0.6);
    transform: scaleY(1.5); /* Makes it taller on hover */
}

/* ================================
   SCROLL INDICATOR
   Bouncing arrow at bottom
   ================================ */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 24px;
    animation: bounce 2s infinite;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background: var(--dark-burgundy);
    padding: 50px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,215,0,0.2);
}

.footer-links {
    display: flex;
    flex-wrap: wrap; /* Wraps to new line if needed */
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-credits {
    color: #666;
    font-size: 14px;
    margin-top: 20px;
}

/* ================================
   FADE IN ANIMATION CLASS
   Applied to elements that should animate on scroll
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   RESPONSIVE DESIGN - MOBILE
   Changes layout for smaller screens
   ================================ */
@media (max-width: 768px) {
    /* Navbar adjustments for mobile */
    .navbar {
        padding: 15px 20px;
    }

    /* Hide navigation menu by default on mobile */
    .nav-center {
        display: none;
        position: absolute;
        top: 100%; /* Appears below navbar */
        left: 0;
        width: 100%;
        background: rgba(128,0,32,0.95);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    /* Show navigation when active class is added */
    .nav-center.active {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }

    .social-nav {
        margin-top: 15px;
    }

    /* Show mobile menu button on mobile */
    .mobile-menu-btn {
        display: flex;
    }

    /* Carousel adjustments for mobile */
    .carousel-nav {
        padding: 0 20px;
        bottom: 100px;
    }

    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }

    .indicator {
        width: 60px;
        height: 3px;
    }

    /* Footer adjustments for mobile */
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile responsiveness for overlay buttons */
    .fixed-overlay-buttons {
        left: 20px;
        right: 20px;
        transform: translateY(-50%);
    }

    .event-title {
        font-size: 32px;
    }

    .event-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}