:root {
    --bg-dark: #120a1f;
    --bg-gradient-top: rgba(26, 15, 30, 0.9);
    --bg-gradient-bottom: rgba(18, 10, 31, 1);
    --text-primary: #ffffff;
    --text-muted: #a097b3;
    --accent-red: #bb1739;
    --accent-purple: #8139e8;
    --accent-pink: #ff4081;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-purple: #9a4dff;
}

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

body,
html {
    width: 100%;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: var(--text-primary);
    scroll-behavior: smooth;
    overflow-x: clip;
}

/* Background gradient to simulate the screenshot's stadium fade */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/Allie_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: sticky;
    top: 0;
    z-index: 100;
    /* Scrim so the logo and links stay legible as content scrolls underneath */
    background: linear-gradient(to bottom, rgba(18, 10, 31, 0.97) 0%, rgba(18, 10, 31, 0.85) 55%, rgba(18, 10, 31, 0.4) 82%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    font-size: 2.6rem;
    font-weight: 900;
    font-style: italic;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-size: 0.91rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
}

.mobile-menu-toggle,
.hamburger-icon,
.mobile-header-icons,
.mobile-close-btn {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0 auto;
}

.nav-links li a {
    text-decoration: none;
    color: #dddddd;
    /* Light gray */
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Drop shadow for readability */
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-pink);
}

/* Active link underline glow */
.nav-links li a.active {
    position: relative;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-pink);
    box-shadow: 0 0 10px var(--accent-pink);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icons a {
    color: var(--text-muted);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-contact {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-contact:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Content */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    scroll-margin-top: 110px;
    /* Offset the scroll position so sticky navbar doesn't cover hero content */
}

/* Use dynamic viewport height on mobile so it fills exactly the visible screen */
@supports (height: 100dvh) {
    @media (max-width: 768px) {
        .hero {
            height: 100dvh;
        }
    }
}

/* Add a gradient fade to the bottom of the hero section so it seamlessly merges into the dark journey background instead of sharply ending */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(18, 10, 31, 1));
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.floating-label {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 5;
    top: 35%;
    transform: translateY(-50%);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.left-label {
    left: calc(10% + 100px);
}

.right-label {
    right: calc(10% + 100px);
}

.layered-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background text (solid white) */
.text-bg {
    position: absolute;
    font-size: 11vw;
    font-weight: 900;
    color: var(--text-primary);
    white-space: nowrap;
    z-index: 1;
    letter-spacing: -2px;
    padding: 0 100px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    word-spacing: 15px;
    /* Added tracking between E and N */
}

/* Foreground text (transparent with outline) */
.text-fg {
    position: absolute;
    font-size: 11vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    z-index: 3;
    letter-spacing: -2px;
    pointer-events: none;
    padding: 0 100px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    word-spacing: 15px;
    /* Added tracking between E and N */
}

/* Image wrapper between text layers */
.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Align image to the top */
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    /* Top justify */
    justify-content: center;
    /* Center horizontally */
    pointer-events: none;
}

.hero-image {
    height: 100%;
    /* Adjust based on image aspect ratio to fit the screen */
    object-fit: cover;
    object-position: top center;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

/* Animations */

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpCentered {
    0% {
        opacity: 0;
        transform: translate(-50%, 50px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Description Overlay */
.description-overlay {
    position: absolute;
    bottom: 85px;
    /* Moved up by 20 pixels from 65px */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 15, 35, 0.2);
    /* 20% transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid #ffffff;
    /* White outline */
    border-radius: 8px;
    padding: 1.5rem 1.5rem; /* Reduced padding on mobile to save vertical space */
    font-size: 0.95rem; /* slight down-size */
    width: 100%;
    max-width: 450px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUpCentered 1s ease-out forwards;
    animation-delay: 1s;
    /* Delay set to 1s so it fades in exactly after the 1s main text animation */
}

.description-overlay p {
    font-size: 1rem;
    color: #e0e0e0;
    /* Lighter gray */
    line-height: 1.6;
}

/* Page Sections */
.page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 4rem;
}

.page-section:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

#journey {
    position: relative;
    /* Base color and background image */
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(to bottom, rgba(18, 10, 31, 1) 0%, rgba(18, 10, 31, 0.6) 15%, rgba(18, 10, 31, 1) 100%),
        url('img/Journey_bk.JPG');
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    /* Clean transition from hero, no overlap */
    margin-top: 0;
    padding-top: max(160px, 15vh);
    /* Framing on scroll: align section to top of viewport */
    scroll-margin-top: 0; 
}

/* Remove the ::before pseudo-element that was causing the hard pixel line issues */
#journey::before {
    display: none;
}

#journey .section-content {
    position: relative;
    z-index: 1;
}

/* --- SCHEDULE SECTION --- */
#schedule {
    background: linear-gradient(to bottom,
            rgba(18, 10, 31, 1) 0%,
            rgba(26, 15, 30, 0.95) 50%,
            rgba(18, 10, 31, 1) 100%);
    position: relative;
    scroll-margin-top: 80px; /* Offset for the fixed navbar */
}

#schedule .section-content {
    position: relative;
    z-index: 1;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.schedule-month-header {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-pink);
    padding: 0.5rem 0;
    margin-top: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-month-header:first-child {
    margin-top: 0;
}

/* Month group wrapper — accordion on all screen sizes */
.schedule-month-group {
    display: block;
}

.schedule-month-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
}

.schedule-month-header:hover {
    color: #fff;
}

.month-chevron {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.schedule-month-group.open .month-chevron {
    transform: rotate(180deg);
}

.schedule-month-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.schedule-month-group.open .schedule-month-items {
    max-height: 3000px; /* Large enough to fit any month's content */
}

/* Mobile refinements */
@media (max-width: 768px) {
    .schedule-month-header {
        padding: 0.8rem 0.5rem;
        margin-top: 0;
    }
}

.schedule-item {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.schedule-item:hover {
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Left accent lines based on status */
.schedule-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(255, 255, 255, 0.5);
    /* Default white for upcoming */
}

.schedule-item.completed::before {
    background: #4caf50;
    /* Green for completed/won */
}

.schedule-item.pending::before {
    background: #ffc107;
    /* Yellow for pending */
}

.schedule-date {
    flex: 0 0 140px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-pink);
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-details {
    flex: 1;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.schedule-title {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.schedule-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.schedule-org {
    font-weight: 600;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.schedule-status-container {
    flex: 0 0 auto;
    padding-left: 1rem;
}

.status-badge {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    letter-spacing: 0.5px;
}

.status-won {
    background: rgba(76, 175, 80, 0.15);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-pending {
    background: rgba(255, 193, 7, 0.1);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

#gallery {
    background: url('img/Allie_Swing_bkg.jpg') center/cover no-repeat;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect */
}

#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(18, 10, 31, 1) 0%,
            rgba(18, 10, 31, 0.7) 15%,
            rgba(18, 10, 31, 0.7) 85%,
            rgba(18, 10, 31, 1) 100%);
    /* Fade from solid dark to heavy overlay */
    z-index: 0;
}

#gallery .section-content {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    /* 50px buffer separation from global header jump */
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.section-content h2 {
    font-size: 3.5rem;
    color: var(--accent-pink);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 3rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Enforce 3x3 layout */
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
}

/* --- LATEST NEWS SECTION --- */
#news {
    background: url('img/News_bkg.jpg') left center/cover no-repeat;
    position: relative;
    background-attachment: fixed;
    /* Restore the parallax feel if desired */
}

#news::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(18, 10, 31, 1) 0%,
            rgba(18, 10, 31, 0.5) 15%,
            rgba(18, 10, 31, 0.5) 85%,
            rgba(18, 10, 31, 1) 100%);
    /* Fade from solid dark for seamless section connections */
    z-index: 0;
}

#news .section-content {
    position: relative;
    z-index: 1;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    width: 100%;
    text-align: left;
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 64, 129, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-date {
    font-size: 0.85rem;
    color: var(--accent-pink);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.news-card h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more span {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--accent-pink);
}

.read-more:hover span {
    transform: translateX(5px);
}


.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid #ffffff;
    /* 1px white structural stroke */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    aspect-ratio: 16 / 9;
    /* Ensure consistent aspect ratio for all media types */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
    display: block;
    pointer-events: none; /* Let clicks pass through to the parent div's onclick handler */
}

/* Video Grid Specific Styling */
.gallery-grid.video-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 0;
    /* Align tightly below context headers */
    width: 100%;
}

/* Portrait Video Specifics */
.gallery-item.portrait-video {
    aspect-ratio: 9 / 16;
    /* Portrait aspect ratio matching standard phone recordings */
    flex: 1;
    /* Allow them to scale inside flexbox */
    max-width: 320px;
    /* Sensible max container width so 3 don't blow up massive screens */
}

/* Video Text Overlay */
.video-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    pointer-events: none;
    /* Let clicks pass through to the video controls */
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 5;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item.portrait-video:hover .video-overlay {
    transform: translateY(-5px);
    border-color: var(--accent-pink);
}

/* Play Icon Overlay */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    pointer-events: none;
    z-index: 5;
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.play-icon svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
    /* Visually center the play triangle */
}

.gallery-item.portrait-video:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 64, 129, 0.6);
    /* Match accent pattern */
    border-color: rgba(255, 64, 129, 0.8);
}

/* Maintain special fit for the putting diagram if needed, but cover looks cleaner generally. */
.gallery-item:nth-child(1) {
    background: #ffffff;
    /* White backing for the transparent PNG */
}

.gallery-item:nth-child(1) img {
    object-fit: contain;
    /* Ensure diagram is fully visible */
    padding: 1rem;
    /* Add some breathing room */
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 64, 129, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.05);
}

/* Make gallery items distinctly clickable */
.gallery-item {
    cursor: pointer;
}

/* Modal Styling */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: 25px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.close:hover,
.close:focus {
    color: var(--accent-pink);
    text-decoration: none;
    transform: scale(1.1);
}

/* Responsive constraints */
@media (max-width: 1024px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }

    .text-bg,
    .text-fg {
        font-size: 16vw;
    }

    .floating-label {
        font-size: 1rem;
    }

    .navbar {
        padding: 2rem;
        position: fixed;
        width: 100%;
        left: 0;
    }

    .hero-image {
        object-position: center;
        /* Push the image slightly down on medium screens to keep the hat visible */
    }
}

@media (max-width: 768px) {
    .page-section {
        padding: 44px 2rem;
    }

    .section-content h2 {
        font-size: 2.5rem;
    }

    .section-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Cards manage their own padding — keep body text aligned with headings */
    .news-card p,
    .schedule-item p {
        padding: 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }

    .hero {
        height: 100vh;
        padding-top: 70px; /* Clear the fixed navbar */
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 0;
    }

    .hero-image {
        object-position: center top;
    }

    .description-overlay {
        width: 90%;
        /* Add more buffer on sides */
        bottom: 40px;
        /* Keep it visible but buffered */
        padding: 2rem 1.5rem;
    }

    /* Stack Schedule Items on Mobile */
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem;
    }

    .schedule-date {
        flex: none;
        border-right: none;
        padding-right: 0;
        font-size: 1rem;
    }

    .schedule-details {
        padding-left: 0;
    }

    .schedule-status-container {
        padding-left: 0;
        margin-top: 0.5rem;
    }

    /* Fix visual section lines on mobile */
    .page-section:nth-child(even) {
        background: transparent;
    }

    #gallery,
    #news {
        background-attachment: scroll;
    }

    #gallery {
        background-size: cover;
        background-position: center top;
    }

    .gallery-grid.video-grid {
        flex-direction: column;
        align-items: center;
    }

    .gallery-item.portrait-video {
        width: 80%;
        max-width: 300px;
    }

    /* Optimize scroll animation on mobile for better performance */
    .scroll-animate {
        transform: translateY(15px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .hamburger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger-icon span {
        display: block;
        height: 2px;
        width: 100%;
        background: #fff;
        transition: 0.3s;
    }

    .mobile-header-icons {
        display: flex;
        align-items: center;
        gap: 15px;
        /* Space between Instagram and Hamburger */
    }

    .mobile-instagram {
        display: block;
        /* Show in mobile header */
        color: #fff;
        line-height: 0;
    }

    .social-icons {
        display: none;
        /* Hide from the mobile menu list now that it's in the header */
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(18, 10, 31, 0.2);
        /* 20% opacity */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .mobile-close-btn {
        position: absolute;
        top: 2rem;
        right: 2rem;
        color: #fff;
        cursor: pointer;
        z-index: 101;
        transition: transform 0.3s;
    }

    .mobile-close-btn:active {
        transform: scale(0.9);
    }

    .header-right {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    #mobile-menu-toggle:checked~.nav-menu {
        right: 0;
    }

    #mobile-menu-toggle:checked~.mobile-header-icons .hamburger-icon span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #mobile-menu-toggle:checked~.mobile-header-icons .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu-toggle:checked~.mobile-header-icons .hamburger-icon span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .floating-label {
        display: none;
    }

    .description-overlay {
        position: absolute;
        bottom: calc(5% + 50px);
        /* Move up by 50px */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        margin-top: 0;
        padding: 1.5rem;
        background: rgba(20, 15, 35, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-radius: 8px;
        animation: fadeInUpCentered 1s ease-out forwards;
        animation-delay: 1s;
    }

    .text-bg,
    .text-fg {
        font-size: 20vw;
        padding: 0;
        letter-spacing: -1px;
        white-space: normal;
        word-spacing: normal;
        line-height: 0.9;
        width: 100%;
        left: 0;
        text-align: center;
    }

    .hero-image {
        max-height: none;
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: center top;
    }

    .image-wrapper {
        top: 0;
        bottom: 0;
        height: 100%; /* Fill the hero content area (which already accounts for navbar padding) */
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate-delay {
    transition-delay: 0.2s;
}

/* Seamless Section Footer */
.news-footer {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}
@media (max-width: 768px) {
    .floating-label {
        display: none !important;
    }

    /* Keep layered container flush — image starts right after navbar padding */
    .layered-container {
        transform: none;
    }

    /* Ensure the background text scales nicely on mobile */
    .text-bg, .text-fg {
        font-size: 22vw;
        padding: 0 15px;
        word-spacing: 5px;
        text-align: center;
    }

    .text-fg {
        paint-order: stroke fill;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
    }

    /* Position the description overlay near the bottom with breathing room */
    .description-overlay {
        bottom: 80px;
        padding: 1rem 1.2rem;
        width: 90%;
    }
}
