/* --- CSS STYLES --- */

/* 1. Global Styles & Variables */
:root {
    --primary-green: #2ecc71;
    --dark-navy-bg: #0b1d16;
    --text-color: #ffffff;
    --text-secondary: #bdc3c7;
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background-color: var(--dark-navy-bg); color: var(--text-color); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.btn { display: block; width: 100%; padding: 0.9rem; background-color: var(--primary-green); color: var(--dark-navy-bg); text-decoration: none; font-weight: 600; font-size: 1rem; border-radius: 50px; transition: all 0.3s ease; box-shadow: 0 5px 20px rgba(46, 204, 113, 0.4); border: none; cursor: pointer; text-align: center; }
.btn:hover { background-color: #3bff86; transform: translateY(-3px); }

/* ================================== */
/* 2. Header & Navigation (FINAL)     */
/* ================================== */

.main-header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 1rem 0;
    z-index: 1000; transition: background-color 0.3s ease, padding 0.3s ease;
    background-color: transparent;
}
.main-header.scrolled {
    background-color: rgba(11, 29, 22, 0.8); backdrop-filter: blur(10px);
}
.main-header .container {
    display: flex; justify-content: flex-end; align-items: center;
}

/* --- MOBILE MENU CONTAINER --- */
.mobile-menu-container {
    position: fixed;
    bottom: 1rem; /* CHANGED: Value reduced from 1.5rem to move it lower */
    left: 1.5rem;
    right: 1.5rem;
    width: auto;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    /* This container is now invisible and just positions the content */
}

/* --- FAN ZONE PROMPT TEXT --- */
.fan-zone-prompt {
    color: #FEEA00;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    text-align: center;
    max-width: 320px;
    margin: 0;
    transition: opacity 0.3s ease-in-out;
}

/* This rule is unchanged and correctly hides the text */
.fan-zone-prompt.hidden {
    opacity: 0;
    pointer-events: none;
}

/* --- MOBILE HAMBURGER MENU --- */
.menu-toggle {
    display: flex; flex-direction: column; justify-content: space-around;
    width: 50px; height: 50px; padding: 10px;
    background-color: rgba(11, 29, 22, 0.7); backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
    cursor: pointer; transition: transform 0.3s ease; z-index: 1001;
}
.menu-toggle:hover { transform: scale(1.1); }
.menu-toggle .bar {
    width: 100%; height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px; transition: all 0.3s ease-in-out;
}

/* Active 'X' state for hamburger (NO CHANGES) */
.menu-toggle.active {  background-color: rgba(20, 50, 40, 0.3) !important; }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* --- MOBILE NAVIGATION OVERLAY (NO CHANGES) --- */
/* --- MOBILE NAVIGATION OVERLAY (MODIFIED) --- */
.nav-links {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 2rem;

    /* MODIFIED: Reduced opacity from 0.95 to 0.8 for more transparency */
    background-color: rgba(11, 29, 22, 0.3);

    /* MODIFIED: Reduced blur from 10px to 5px to make the background clearer */
    backdrop-filter: blur(5px);

    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
    z-index: 1000; list-style: none; padding: 0;
}

.nav-links.active { opacity: 1; pointer-events: auto; }
.nav-links li { width: 80%; }
.nav-links a { color: var(--text-color); text-decoration: none; font-size: 1.5rem;
    font-weight: 500; opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease; text-align: center; display: block;
}
.nav-links.active a { opacity: 1; transform: translateY(0); }
.nav-links.active li:nth-child(1) a { transition-delay: 0.2s; }
.nav-links.active li:nth-child(2) a { transition-delay: 0.3s; }
.nav-links.active li:nth-child(3) a { transition-delay: 0.4s; }


/* ================================== */
/* 3. Hero Section (DEFINITIVELY FIXED) */
/* ================================== */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-navy-bg); /* Fallback for slow connections */
}

/* This style will now apply to ALL screen sizes */
.hero-section .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

    /*
      This is the direct replacement for 'background-size: 100% 100%'.
      It forces the video to stretch to fit the container exactly.
    */
    object-fit: fill;
}



/* REMOVED: The gradient overlay pseudo-element has been deleted */
/* .hero-section::after { ... } */

/* 4. Discover Section (REDESIGNED) */
/* 4. Discover Section (REDESIGNED) */
#discover {
    /* FIX: Reduced padding for mobile and removed bottom padding entirely */
    padding: 4rem 0 0;
}
.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}
.discover-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11, 29, 22, 0.95) 20%, rgba(11, 29, 22, 0.8) 50%, transparent 100%);
    color: var(--text-color);
}
.card-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.card-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}
.card-cta {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--text-color);
    color: var(--dark-navy-bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}
.card-cta:hover {
    background-color: #f0f0f0;
    transform: scale(1.02);
}

/* Restore larger padding only on desktop */
@media (min-width: 992px) {
    #discover {
        padding-top: 100px;
    }
}

/* 5. Modal Styles (REDESIGNED) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(11, 29, 22, 0.7); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
/* INCREASED MAX-WIDTH FOR NEW LAYOUT */
.modal { background: #081410; border: 1px solid rgba(46, 204, 113, 0.2); border-radius: 15px; width: 90%; max-width: 800px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); }
.close-modal { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-color); font-size: 2rem; cursor: pointer; line-height: 1; z-index: 10; }
.modal-header { padding: 2rem 2rem 1rem; text-align: center; }
.modal-header h3 { font-size: 1.8rem; color: var(--primary-green); }
.modal-header h3 i { margin-right: 0.5rem; }
.modal-header p { color: var(--text-secondary); margin-top: 0.5rem; }
.modal-body { padding: 0 2rem 2rem; overflow-y: auto; }
.modal-body h4 { font-size: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(46, 204, 113, 0.2); padding-bottom: 0.5rem; }
.modal-body hr { border: none; height: 1px; background-color: rgba(46, 204, 113, 0.2); margin: 2rem 0; }
.activities-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; padding:0; }
.activities-list li { display: flex; align-items: flex-start; gap: 1rem; }
.activities-list i { color: var(--primary-green); margin-top: 5px; width: 24px; text-align: center; font-size: 1.2rem; flex-shrink: 0; }
.activity-text { display: grid; grid-template-columns: minmax(140px, 160px) 1fr; align-items: baseline; gap: 0.5rem; }
.activity-text strong { font-size: 1.1rem; color: var(--text-color); }
.activity-text span { color: var(--text-secondary); line-height: 1.5; }
.btn-secondary { display: block; width: 100%; padding: 0.8rem; margin-top: 1rem; background-color: transparent; color: var(--primary-green); border: 2px solid var(--primary-green); text-decoration: none; font-weight: 600; border-radius: 50px; text-align: center; transition: all 0.3s ease; }
.btn-secondary:hover { background-color: var(--primary-green); color: var(--dark-navy-bg); }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-form p { font-size: 0.9rem; text-align: center; color: var(--text-secondary); margin-bottom: 0.5rem; }
.modal-form input { background-color: rgba(46, 204, 113, 0.05); border: 1px solid rgba(46, 204, 113, 0.2); color: var(--text-color); padding: 0.9rem; border-radius: 8px; font-size: 1rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; border: 1px solid rgba(46, 204, 113, 0.2); margin-bottom: 1.5rem; }
.tab-link { background: none; border: none; color: var(--text-secondary); padding: 0.8rem; cursor: pointer; font-size: 1rem; transition: background-color 0.3s ease; }
.tab-link.active { color: var(--dark-navy-bg); background-color: var(--primary-green); font-weight: 600; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.tab-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-top: 1rem; }

/* --- NEW & MODIFIED STYLES for Vertical Layout --- */
.tab-content-wrapper {
    padding-top: 1.5rem;
}

.sub-tabs {
    /* ADJUSTED: Changed from 3 columns to 2 to balance the two day buttons */
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.5rem;
}

/* NEW: Description List at the top */
.location-info-list {
    list-style: none;
    padding: 0 0 1.5rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
    margin-bottom: 1.5rem;
}
.location-info-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}
.location-info-list li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

/* --- RULE FOR HIGHLIGHTING LOCATIONS --- */
.location-highlight {
    font-weight: bold;
    color: var(--primary-green);
}

/* NEW: Full-width Map Link */
.map-image-link {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(46, 204, 113, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.map-image-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.map-image-link img {
    width: 100%;
    height: auto;
    display: block;
}

/* NEW: Direction Buttons Container */
.direction-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* NEW: Individual Direction Button */
.btn-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(46, 204, 113, 0.3);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}
.btn-direction:hover {
    background-color: var(--primary-green);
    color: var(--dark-navy-bg);
    border-color: var(--primary-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .direction-buttons {
        grid-template-columns: 1fr; /* Stack buttons on mobile */
    }
}
@media (max-width: 500px) {
    .activity-text { grid-template-columns: 1fr; gap: 0.2rem; }
    .activity-text strong { margin-bottom: 0.2rem; }
}

/* --- NEW CSS for the Schedule Section --- */

.schedule-section {
    /* Adds space above and prepares for the bottom border */
    margin-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.schedule-section h4 {
    /* Resets the default modal h4 style to match the image */
    text-align: left;
    border-bottom: none;
    padding-bottom: 0;

    /* Adds the line ABOVE the heading */
    padding-top: 2rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(46, 204, 113, 0.2);
}

/* The existing .btn-secondary style works perfectly here.
   This just ensures its top margin is reset within this section. */
.schedule-section .btn-secondary {
    margin-top: 0;
}

/* 7. Animation Logic */
.hero-anim-item { opacity: 0; transform: translateY(30px); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: translateY(0); } }
.anim-element { opacity: 0; }
.is-visible { animation: fadeInUp 1s ease-out forwards; animation-delay: var(--delay, 0s); }






/* --- 8. Register & Footer Section --- */

/* --- 8. Register & Footer Section --- */
.register-section {
    /* FIX: Reduced padding for mobile */
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-navy-bg);
    background-image: radial-gradient(rgba(46, 204, 113, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.register-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Restore larger padding only on desktop */
@media (min-width: 992px) {
    .register-section {
        padding-top: 100px;
    }
}

.section-subtitle { color: var(--text-secondary); margin-bottom: 2.5rem; }

.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.9rem 1.5rem; background-color: #fff; color: #333; text-decoration: none; font-weight: 600; border-radius: 50px; transition: all 0.3s ease; border: none; cursor: pointer; font-size: 1rem; }
.btn-google:hover { background-color: #f1f1f1; transform: translateY(-3px); }
.btn-google i { font-size: 1.2rem; }

.separator { display: flex; align-items: center; text-align: center; color: var(--text-secondary); margin: 2rem 0; }
.separator::before, .separator::after { content: ''; flex: 1; border-bottom: 1px solid rgba(46, 204, 113, 0.2); }
.separator:not(:empty)::before { margin-right: 1em; }
.separator:not(:empty)::after { margin-left: 1em; }

.register-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { position: relative; }
.form-group input { width: 100%; padding: 1rem; background-color: rgba(46, 204, 113, 0.05); border: 1px solid rgba(46, 204, 113, 0.2); border-radius: 8px; color: var(--text-color); font-size: 1rem; font-family: var(--font-body); }
.form-group label { position: absolute; top: 1rem; left: 1rem; color: var(--text-secondary); pointer-events: none; transition: all 0.2s ease; }
.form-group input:focus + label, .form-group input:valid + label { top: -0.5rem; left: 0.8rem; font-size: 0.8rem; padding: 0 0.3rem; background-color: var(--dark-navy-bg); color: var(--primary-green); }

.btn-submit { padding: 1rem; background-color: var(--primary-green); color: var(--dark-navy-bg); border: none; border-radius: 50px; font-weight: 600; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; }
.btn-submit:hover { background-color: #3bff86; transform: translateY(-3px); }

/* --- 9. Enhanced Footer Styles --- */
.site-footer {
    padding: 5rem 0 0;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(46, 204, 113, 0.2);
}

.footer-col .logo img {
  height: 60px;
  width: auto;
  display: block;
}
.footer-tagline { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-color); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-col ul a:hover { color: var(--primary-green); }

.social-icons {
    display: flex;
    flex-direction: column; /* CHANGED: Makes icons stack vertically on mobile */
    align-items: flex-start; /* ADDED: Aligns the vertical icons to the left */
    gap: 1.5rem;
}

.social-icons a { color: var(--text-secondary); font-size: 1.5rem; transition: color 0.3s ease, transform 0.3s ease; }
.social-icons a:hover { color: var(--primary-green); transform: translateY(-3px); }

.copyright-container { padding: 2rem 0; text-align: center; }
.copyright-container p { font-size: 0.9rem; color: var(--text-secondary); opacity: 0.8; }

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }

    /* ADDED THIS NEW RULE FOR DESKTOP */
    .social-icons {
        flex-direction: row; /* Resets icons to be horizontal on larger screens */
    }
}


/* --- 10. UCI Stripe Banner --- */
.uci-stripe-banner {
    display: flex;
    width: 100%;
    height: 25px; /* You can adjust the thickness here */
}

.stripe {
    flex: 1; /* Each stripe takes up an equal amount of space */
}

.uci-blue { background-color: #00A3E0; }
.uci-red { background-color: #EF3340; }
.uci-black { background-color: #000000; }
.uci-yellow { background-color: #FFC72C; }
.uci-green { background-color: #009639; }