/*
* Monarch Bali - Main Content Styles
* Author: GitHub Copilot
* Version: 1.0
*/

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  --primary-color: #800000; /* Maroon */
  --secondary-color: #d4af37; /* Gold */
  --background-color: #fdfaf6; /* Creamy White */
  --text-color: #333333;
  --light-gold: #f7d794;
  --dark-maroon: #600000;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Cormorant Garamond', serif;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 15px;
}

#main-content {
    background-color: var(--background-color);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative;
    color: var(--primary-color);
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    bottom: 0;
    left: calc(50% - 40px);
}

.section-title p {
    font-size: 18px;
    color: #6c757d;
}


/*--------------------------------------------------------------
# Header / Navbar - Compact Floating Design
--------------------------------------------------------------*/
.header-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all var(--transition-smooth);
    background: transparent !important; /* Completely transparent */
    border: none !important; /* No borders anywhere */
    box-shadow: none !important; /* No shadows */
    outline: none !important; /* No outlines */
    height: auto; /* Auto height to prevent layout issues */
    min-height: 60px; /* Minimal height */
    overflow: visible; /* Allow content to extend if needed */
}

/* Navbar Container - Compact Floating Design */
.main-header {
    padding: 10px 0; /* Reduced padding to save space */
    transition: all var(--transition-smooth);
    height: auto;
    min-height: 60px; /* Reduced minimum height */
    background: transparent !important; /* No background */
    border: none !important; /* Remove any borders */
    box-shadow: none !important; /* Remove any shadows */
}

/* Logo Specific Styling - Dual logo layout with logo.png and monarch.png */
.main-header .logo {
    display: flex;
    align-items: center;
    justify-content: center; /* Center both logos */
    gap: 40px; /* Increased space between logos */
    height: 100%;
    animation: logoFloat 3s ease-in-out infinite; /* Floating animation */
}

/* Main Logo (logo.png) - Much larger main logo */
.main-header .logo .main-logo img {
    max-height: 120px; /* Increased main logo size */
    width: auto;
    transition: all var(--transition-smooth);
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3)); /* Enhanced shadow + glow */
    animation: logoGlow 2s ease-in-out infinite alternate, logoFloat 3s ease-in-out infinite; /* Multiple animations */
}

/* Secondary Logo (monarch.png) - Same size as main logo */
.main-header .logo .secondary-logo img {
    max-height: 90px; /* Same size as main logo */
    width: auto;
    transition: all var(--transition-smooth);
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3)); /* Same shadow + glow as main logo */
    animation: logoGlow 2.2s ease-in-out infinite alternate, logoFloat 3.2s ease-in-out infinite; /* Slightly different timing */
}

/* Dual Logo hover effects */
.main-header .logo:hover .main-logo img {
    transform: scale(1.12) rotate(1deg); /* More prominent scaling */
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 50px var(--secondary-color)); /* Enhanced glow on hover */
    animation: logoExcited 0.8s ease-in-out; /* Smoother excited animation on hover */
}

.main-header .logo:hover .secondary-logo img {
    transform: scale(1.08) rotate(-1deg); /* Complementary scaling and rotation */
    filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px var(--secondary-color)); /* Enhanced glow on hover */
    animation: logoExcited 0.9s ease-in-out; /* Slightly different timing */
}

/* Sticky Header - Clean transparent design for dual logos */
.header-sticky.sticky-bar {
    background: transparent !important; /* Completely transparent */
    box-shadow: none !important; /* No shadow */
    backdrop-filter: none !important; /* No blur */
    border: none !important; /* No borders */
    padding: 5px 0; /* Very compact when sticky */
    min-height: 50px; /* Minimal height when sticky */
}

/* Sticky Header Dual Logos - Proportional sizing */
.header-sticky.sticky-bar .main-header .logo .main-logo img {
    max-height: 110px; /* Larger main logo when sticky */
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4)); /* Adjusted shadow */
}

.header-sticky.sticky-bar .main-header .logo .secondary-logo img {
    max-height: 110px; /* Same size as main logo when sticky */
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.4)); /* Same shadow as main logo */
}

/*--------------------------------------------------------------
# Enhanced Floating Animations
--------------------------------------------------------------*/
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-4px) rotate(-1deg);
    }
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    }
    100% {
        filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(212, 175, 55, 0.7));
    }
}

@keyframes logoExcited {
    0% {
        transform: scale(1.12) rotate(1deg);
    }
    25% {
        transform: scale(1.15) rotate(0.5deg);
    }
    50% {
        transform: scale(1.13) rotate(1.5deg);
    }
    75% {
        transform: scale(1.14) rotate(0.8deg);
    }
    100% {
        transform: scale(1.12) rotate(1deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.9), 0 0 30px var(--secondary-color);
    }
    100% {
        text-shadow: 4px 4px 20px rgba(0, 0, 0, 0.95), 0 0 45px var(--secondary-color), 0 0 60px rgba(212, 175, 55, 0.6);
    }
}

/*--------------------------------------------------------------
# Mobile Responsive Design - Single Logo Layout  
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    height: 100vh; /* Full viewport height */
    background: url('../img/banner.webp') no-repeat center center;
    background-size: cover; /* Cover entire area without cropping */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay for the hero section */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    /* animation: floatAnimation 5s ease-in-out infinite; */
}

.hero-text h1 {
    /* Removed conflicting styles, controlled by hero_shimmer.css */
}

.hero-text h1::before {
    /* Controlled by hero_shimmer.css */
}

.hero-text h2 {
    /* Removed conflicting styles, controlled by hero_shimmer.css */
}

/* IMPORTANT: Complete animation override for hero text elements */
/* Removed conflicting animation overrides, controlled by hero_shimmer.css */

/* Force static display for all hero text pseudo-elements */
/* Removed conflicting pseudo-element overrides, controlled by hero_shimmer.css */

/* DISABLED - Animation causing unwanted movement */
/*
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}
*/

/* Responsive adjustments for the hero section */
@media (max-width: 1200px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }
    .hero-text h2 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh; /* Shorter height on tablets */
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .hero-text h2 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 70vh; /* Even shorter on mobile phones */
    }
    .hero-text h1 {
        font-size: 1.5rem;
    }
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

/*--------------------------------------------------------------
# Countdown Timer
--------------------------------------------------------------*/
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    text-align: center;
    flex-wrap: wrap;
}

.timer-box {
    background: #fff;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    width: 140px;
    border-top: 5px solid var(--secondary-color);
    transition: all var(--transition-smooth);
}

.timer-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.timer-box .number {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.timer-box .label {
    font-family: var(--font-secondary);
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-color);
}

/*--------------------------------------------------------------
# Schedule Section - Elegant & Unique Design
--------------------------------------------------------------*/
.schedule-section {
    background: linear-gradient(135deg, #fdfaf6 0%, #f8f4ed 50%, #fdfaf6 100%);
    position: relative;
    overflow: hidden;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(128, 0, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.schedule-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Elegant center line with animated glow */
.schedule-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(to bottom, var(--secondary-color), #ffd700, var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    animation: centerLineGlow 3s ease-in-out infinite alternate;
}

@keyframes centerLineGlow {
    0% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), 0 0 40px rgba(255, 215, 0, 0.2);
    }
}

.timeline-item {
    padding: 20px 50px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    padding-right: 80px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 80px;
}

/* Elegant timeline dots with luxury feel */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 32px;
    height: 32px;
    right: -19px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%);
    border: 6px solid #ffffff;
    top: 35px;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(128, 0, 0, 0.3),
        0 0 0 0 rgba(212, 175, 55, 0.4);
    animation: timelineDot 2s ease-in-out infinite alternate;
}

@keyframes timelineDot {
    0% {
        box-shadow: 
            0 4px 12px rgba(128, 0, 0, 0.3),
            0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    100% {
        box-shadow: 
            0 6px 16px rgba(128, 0, 0, 0.4),
            0 0 0 8px rgba(212, 175, 55, 0.1);
    }
}

.timeline-item:hover::after {
    transform: scale(1.3);
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd700 100%);
    box-shadow: 
        0 8px 20px rgba(212, 175, 55, 0.5),
        0 0 0 12px rgba(212, 175, 55, 0.2);
}

.timeline-item.right::after {
    left: -19px;
}

/* Luxury card design for timeline content */
.timeline-content {
    padding: 35px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    position: relative;
    border-radius: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    border-radius: 20px 20px 0 0;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: rotate(-10deg);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.15),
        0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.timeline-item:hover .timeline-content::after {
    opacity: 1;
    animation: shimmerEffect 1.5s ease-out;
}

@keyframes shimmerEffect {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-10deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(-10deg);
    }
}

.timeline-item.right .timeline-content {
    border-left: none;
    border-right: none;
}

/* Day heading with elegant styling */
.timeline-content h4 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(128, 0, 0, 0.1);
}

.timeline-content h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), #ffd700);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(212, 175, 55, 0.3);
}

/* Event description with better readability */
.timeline-content p {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #555555;
    font-weight: 400;
}

.timeline-content p:not(.time) {
    font-style: italic;
    color: #666666;
    margin-bottom: 24px;
}

/* Elegant time information styling */
.timeline-content .time {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding: 8px 0;
    border-left: 4px solid var(--secondary-color);
    padding-left: 16px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
}

.timeline-content .time strong {
    color: var(--secondary-color);
    margin-right: 8px;
    font-weight: 700;
}

.timeline-content .time:last-child {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Gallery Section - Modern Slideshow for Large Screens
--------------------------------------------------------------*/
.gallery-section {
    background: linear-gradient(145deg, 
        #fdfbf7 0%, 
        #f8f6f1 25%, 
        #ffffff 50%,
        #f8f6f1 75%, 
        #fdfbf7 100%);
    position: relative;
    overflow: hidden;
    padding: 140px 0;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 40%, rgba(212, 175, 55, 0.01) 50%, transparent 60%),
        radial-gradient(ellipse at 30% 20%, rgba(128, 0, 0, 0.015) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 80%, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
    z-index: 1;
}

.gallery-section .container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
}

.gallery-section .section-title {
    margin-bottom: 80px;
    text-align: center;
}

.gallery-section .section-title h2 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    text-transform: none;
}

.gallery-section .section-title h2::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.gallery-section .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
}

.gallery-section .section-title p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: #7a7a7a;
    font-style: italic;
    font-weight: 300;
    margin: 0;
}

/* Modern Slideshow Container for Large Screens */
.gallery-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    height: 650px; /* Increased height for better aspect ratio */
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    border: 2px solid rgba(212, 175, 55, 0.1);
    display: none; /* Hidden by default, shown only on large screens */
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Faster transition */
}

.slideshow-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Add padding to prevent cropping */
}

.slideshow-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from cover to contain to prevent cropping */
    transition: all 0.4s ease; /* Faster image transition */
    display: block;
    border-radius: 15px;
    filter: brightness(1.02) contrast(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Add shadow to images */
}

.slideshow-slide:hover img {
    transform: scale(1.02); /* Reduced scale to prevent overflow */
    filter: brightness(1.05) contrast(1.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Elegant Navigation Buttons */
.slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 65px; /* Slightly larger for better interaction */
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 26px; /* Slightly larger icon */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Faster button transition */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(15px); /* Increased blur */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0.8; /* Slight transparency when idle */
}

.slideshow-btn:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-50%) scale(1.15); /* Smoother scaling */
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    opacity: 1;
}

.slideshow-btn:active {
    transform: translateY(-50%) scale(1.05); /* Smooth click feedback */
    transition: all 0.1s ease; /* Very fast click response */
}

.slideshow-prev {
    left: 35px; /* More space from edge */
}

.slideshow-next {
    right: 35px; /* More space from edge */
}

/* Modern Dots Navigation */
.slideshow-dots {
    position: absolute;
    bottom: 35px; /* More space from bottom */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px; /* Increased gap */
    z-index: 10;
    padding: 15px 25px; /* Add padding around dots */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.slideshow-dot {
    width: 14px; /* Slightly larger */
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
    position: relative;
}

.slideshow-dot.active {
    background: var(--secondary-color);
    transform: scale(1.3); /* Increased active scale */
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        0 0 40px rgba(212, 175, 55, 0.3);
}

.slideshow-dot:hover {
    background: rgba(212, 175, 55, 0.8);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Progress Bar */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px; /* Slightly thicker */
    background: linear-gradient(90deg, var(--secondary-color), #ffd700); /* Gradient progress */
    transition: none; /* Remove transition for smoother animation */
    z-index: 10;
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.5),
        0 -2px 10px rgba(212, 175, 55, 0.3);
    border-radius: 0 6px 0 0;
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform; /* GPU acceleration */
}

/* Progress bar container for better performance */
.slideshow-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9;
    overflow: hidden;
}

.slideshow-progress-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.1) 25%, 
        rgba(255, 215, 0, 0.1) 50%, 
        rgba(212, 175, 55, 0.1) 75%, 
        transparent 100%);
}

/* Smooth progress animation */
@keyframes progressGlow {
    0% {
        box-shadow: 
            0 0 15px rgba(212, 175, 55, 0.5),
            0 -2px 10px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(212, 175, 55, 0.7),
            0 -2px 15px rgba(212, 175, 55, 0.5);
    }
    100% {
        box-shadow: 
            0 0 15px rgba(212, 175, 55, 0.5),
            0 -2px 10px rgba(212, 175, 55, 0.3);
    }
}

.slideshow-progress {
    animation: progressGlow 2s ease-in-out infinite;
}

/* Slide Counter */
.slideshow-counter {
    position: absolute;
    top: 35px; /* More space from top */
    right: 35px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 20px; /* More padding */
    border-radius: 30px;
    font-family: var(--font-secondary);
    font-size: 15px; /* Slightly larger */
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slideshow-counter:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-2px);
}

/* Grid Layout for Mobile/Tablet (existing design) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.04),
        0 2px 16px rgba(0, 0, 0, 0.02),
        0 1px 4px rgba(0, 0, 0, 0.01);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    aspect-ratio: auto;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(128, 0, 0, 0.92) 0%, 
        rgba(212, 175, 55, 0.88) 30%,
        rgba(255, 215, 0, 0.85) 50%,
        rgba(212, 175, 55, 0.88) 70%,
        rgba(128, 0, 0, 0.92) 100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 2;
    border-radius: 20px;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 4;
    backdrop-filter: blur(10px);
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Zoom icon inside the circle */
.gallery-item:hover::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><path d="21 21l-4.35-4.35"/></svg>');
    background-size: 28px 28px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Image styling with modern approach */
.gallery-item img {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    border-radius: 20px;
    filter: brightness(1.02) contrast(1.08) saturate(1.05);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.92) contrast(1.15) saturate(1.15);
}

/* Modern hover animation */
.gallery-item:hover {
    transform: translateY(-20px) rotateX(5deg) rotateY(2deg);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.12),
        0 15px 40px rgba(128, 0, 0, 0.08),
        0 8px 20px rgba(212, 175, 55, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 175, 55, 0.2);
}

/* Elegant loading animation */
.gallery-item {
    opacity: 0;
    animation: modernFadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes modernFadeIn {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.8);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Refined staggered animation */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

/* Modern grid optimization */
.gallery-grid.layout-optimized {
    animation: gridReveal 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes gridReveal {
    0% {
        opacity: 0.5;
        transform: translateY(40px);
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Responsive Design - Slideshow for Large Screens Only */
@media (min-width: 1200px) {
    .gallery-slideshow {
        display: block; /* Show slideshow on large screens */
    }
    
    .gallery-grid {
        display: none; /* Hide grid on large screens */
    }
}

/* Extra Large Screens - Larger slideshow */
@media (min-width: 1400px) {
    .gallery-slideshow {
        max-width: 1400px;
        height: 750px;
    }
    
    .slideshow-slide {
        padding: 30px; /* More padding for larger screens */
    }
    
    .slideshow-btn {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .slideshow-prev {
        left: 40px;
    }
    
    .slideshow-next {
        right: 40px;
    }
    
    .slideshow-counter {
        top: 40px;
        right: 40px;
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .slideshow-dots {
        bottom: 40px;
        gap: 18px;
        padding: 18px 30px;
    }
    
    .slideshow-dot {
        width: 16px;
        height: 16px;
    }
}

/* Medium Large Screens - Optimized slideshow */
@media (min-width: 1200px) and (max-width: 1399px) {
    .gallery-slideshow {
        max-width: 1100px;
        height: 600px;
    }
    
    .slideshow-slide {
        padding: 25px;
    }
    
    .slideshow-slide img {
        border-radius: 12px;
    }
}

/* Ensure images maintain aspect ratio in all cases */
.slideshow-slide img {
    /* Fallback for older browsers */
    max-width: calc(100% - 40px);
    max-height: calc(100% - 40px);
}

/* Handle different image orientations */
.slideshow-slide img[data-orientation="landscape"] {
    width: 100%;
    height: auto;
    max-height: calc(100% - 40px);
}

.slideshow-slide img[data-orientation="portrait"] {
    height: 100%;
    width: auto;
    max-width: calc(100% - 40px);
}

/* Loading state for smooth transitions */
.slideshow-slide img {
    opacity: 0;
    animation: imageLoadIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; /* Faster loading animation */
}

@keyframes imageLoadIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* Smooth fade transition between slides */
.slideshow-track {
    will-change: transform; /* Optimize for smooth animations */
}

.slideshow-slide {
    opacity: 1;
    transition: opacity 0.3s ease-in-out; /* Faster opacity transition */
}

/* Add subtle animation to active slide */
.slideshow-slide.active {
    animation: slideActive 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; /* Faster active animation */
}

@keyframes slideActive {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Grid Layout for Medium and Small Screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-slideshow {
        display: none; /* Hide slideshow */
    }
    
    .gallery-grid {
        display: grid; /* Show grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-section {
        padding: 120px 0;
    }
    
    .gallery-section .section-title {
        margin-bottom: 80px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-section {
        padding: 120px 0;
    }
    
    .gallery-section .section-title {
        margin-bottom: 80px;
    }
}

@media (max-width: 991px) {
    .gallery-slideshow {
        display: none; /* Hide slideshow */
    }
    
    .gallery-grid {
        display: grid; /* Show grid */
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .gallery-section {
        padding: 100px 0;
    }
    
    .gallery-section .section-title {
        margin-bottom: 70px;
    }
    
    .gallery-section .section-title h2 {
        font-size: 2.8rem;
    }
    
    .gallery-item {
        border-radius: 16px;
    }
    
    .gallery-item img {
        border-radius: 16px;
        min-height: 240px;
    }
    
    .gallery-item:hover {
        transform: translateY(-15px) rotateX(3deg);
    }
}

@media (max-width: 768px) {
    .gallery-slideshow {
        display: none; /* Hide slideshow */
    }
    
    .gallery-grid {
        display: grid; /* Show grid */
        gap: 20px;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .gallery-section {
        padding: 80px 0;
    }
    
    .gallery-section .section-title {
        margin-bottom: 60px;
    }
    
    .gallery-section .section-title h2 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .gallery-item img {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-slideshow {
        display: none; /* Hide slideshow */
    }
    
    .gallery-grid {
        display: grid; /* Show grid */
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-section .section-title {
        margin-bottom: 50px;
    }
    
    .gallery-section .section-title h2 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
    }
    
    .gallery-item {
        border-radius: 12px;
        min-height: auto;
    }
    
    .gallery-item img {
        border-radius: 12px;
        min-height: 250px;
    }
    
    .gallery-item::after {
        width: 60px;
        height: 60px;
        background-size: 20px 20px;
    }
    
    .gallery-item:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 480px) {
    .gallery-slideshow {
        display: none; /* Hide slideshow */
    }
    
    .gallery-grid {
        display: grid; /* Show grid */
        gap: 20px;
    }
    
    .gallery-section {
        padding: 50px 0;
    }
    
    .gallery-item {
        border-radius: 10px;
    }
    
    .gallery-item img {
        border-radius: 10px;
        min-height: 220px;
    }
}

/* Modern loading state */
.gallery-grid:not(.layout-optimized) .gallery-item {
    animation: modernPulse 2s ease-in-out infinite;
}

@keyframes modernPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.02);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.01);
        box-shadow: 0 12px 50px rgba(212, 175, 55, 0.08);
    }
}

/* Enhanced interaction feedback */
.gallery-item:active {
    transform: translateY(-15px) scale(0.98);
    transition: all 0.15s ease-out;
}

/* Focus states for accessibility */
.gallery-item:focus {
    outline: none;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.08),
        0 0 0 3px rgba(212, 175, 55, 0.3);
}

.gallery-item:focus::after {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.6;
}

/*--------------------------------------------------------------
# Rundown Section
--------------------------------------------------------------*/
.rundown-artistic-list {
    list-style: none;
    padding-left: 0;
    counter-reset: rundown-counter;
    max-width: 800px;
    margin: 0 auto;
}

.rundown-artistic-list li {
    counter-increment: rundown-counter;
    margin-bottom: 25px;
    position: relative;
    padding-left: 60px;
    font-size: 18px;
    font-family: var(--font-secondary);
}

.rundown-artistic-list li::before {
    content: counter(rundown-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -5px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-primary);
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
}

/*--------------------------------------------------------------
# Confirmation Form
--------------------------------------------------------------*/
.modern-form .form-control {
    border-radius: 30px;
    padding: 15px 25px;
    background: #fff;
    border: 1px solid #ddd;
    font-family: var(--font-secondary);
    font-size: 16px;
    transition: all var(--transition-smooth);
}

.modern-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
}

.modern-form textarea.form-control {
    border-radius: 20px;
}

.modern-form .button-contactForm {
    border-radius: 30px;
    padding: 15px 40px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-smooth);
    border: none;
}

.modern-form .button-contactForm:hover {
    background: var(--dark-maroon);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }

    /* Mobile Navbar Adjustments with COMPACT dual logo design */
    .main-header {
        min-height: 70px; /* More compact height for mobile */
        padding: 10px 0; /* Reduced padding for mobile */
        background: transparent !important;
    }
    
    /* Mobile Logo Container - Dual logo with logo.png and monarch.png */
    .main-header .logo {
        justify-content: center; /* Center the logos */
        position: relative;
        display: flex;
        align-items: center;
        gap: 25px; /* Increased gap for mobile screens */
        animation: logoFloat 3s ease-in-out infinite;
        padding: 5px 0; /* Reduced padding for compact design */
    }
    
    /* Mobile Main Logo (logo.png) - Much larger main logo */
    .main-header .logo .main-logo img {
        max-height: 120px; /* Increased main logo size on mobile */
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
        transition: all var(--transition-smooth);
        animation: logoGlow 2s ease-in-out infinite alternate, logoFloat 3s ease-in-out infinite;
    }
    
    /* Mobile Secondary Logo (monarch.png) - Same size as main logo */
    .main-header .logo .secondary-logo img {
        max-height: 120px; /* Same size as main logo on mobile */
        filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
        transition: all var(--transition-smooth);
        animation: logoGlow 2.2s ease-in-out infinite alternate, logoFloat 3.2s ease-in-out infinite;
    }
    
    /* Mobile hover effects for dual logos */
    .main-header .logo:hover .main-logo img {
        transform: scale(1.05) rotate(1deg);
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px var(--secondary-color));
    }
    
    .main-header .logo:hover .secondary-logo img {
        transform: scale(1.05) rotate(-1deg);
        filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 30px var(--secondary-color));
    }
    
    /* Sticky header mobile dual logos - Proportional sizes */
    .header-sticky.sticky-bar .main-header .logo .main-logo img {
        max-height: 90px; /* Larger main logo when sticky on mobile */
    }
    
    .header-sticky.sticky-bar .main-header .logo .secondary-logo img {
        max-height: 90px; /* Same size as main logo when sticky on mobile */
    }

    /* Mobile Menu - Completely Hidden */
    .mobile_menu {
        display: none !important; /* Hide hamburger menu completely */
    }
    
    /* Hide all SlickNav elements on mobile */
    .slicknav_menu {
        display: none !important;
    }
    
    .slicknav_btn {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 48px;
    }
    .hero-content .monarch-title {
        font-size: 24px;
    }
    .hero-content p {
        font-size: 18px;
    }

    /* Mobile Schedule Timeline - Elegant single column */
    .schedule-timeline::after {
        left: 30px;
        width: 4px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
        margin-bottom: 30px;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
        padding-left: 80px;
        padding-right: 20px;
    }
    
    .timeline-item::after {
        left: 14px;
        width: 28px;
        height: 28px;
        top: 30px;
    }
    
    .timeline-content {
        padding: 25px 30px;
        border-radius: 15px;
    }
    
    .timeline-content h4 {
        font-size: 1.5rem;
    }
    
    .timeline-content .time {
        font-size: 14px;
        padding: 6px 0;
        padding-left: 12px;
    }
}

/* Small mobile devices - Further optimization for dual logos */
@media (max-width: 480px) {
    /* Extra compact dual logos for small screens - Proportional sizes */
    .main-header .logo {
        gap: 20px; /* Increased gap even on small screens */
    }
    
    .main-header .logo .main-logo img {
        max-height: 50px; /* Larger main logo for small screens */
    }
    
    .main-header .logo .secondary-logo img {
        max-height: 35px; /* Same size as main logo for small screens */
    }
    
    /* Small screen sticky header logos - Proportional sizes */
    .header-sticky.sticky-bar .main-header .logo .main-logo img {
        max-height: 75px; /* Larger main logo when sticky */
    }
    
    .header-sticky.sticky-bar .main-header .logo .secondary-logo img {
        max-height: 25px; /* Same size as main logo when sticky */
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    .hero-content .monarch-title {
        font-size: 20px;
    }
    .hero-content p {
        font-size: 16px;
    }
}

/* Additional mobile refinements for COMPACT dual logo with logo.png and monarch.png */
@media (max-width: 480px) {
    /* Very small screens - compact but visible sizes */
    .main-header .logo img {
        max-height: 80px; /* Compact logo.png on very small screens */
    }
    
    .main-header .logo::after {
        width: 65px; /* Compact monarch.png on very small screens */
        height: 65px;
    }
    
    .main-header .logo {
        gap: 20px; /* Closer spacing for compact design */
        padding: 3px 0; /* Minimal padding */
    }
    
    .header-sticky.sticky-bar .main-header .logo img {
        max-height: 60px; /* Very compact logo.png when sticky on small screens */
    }
    
    .header-sticky.sticky-bar .main-header .logo::after {
        width: 50px; /* Very compact monarch.png when sticky on small screens */
        height: 50px;
    }
}

body.modal-open {
    overflow: hidden;
}

body:not(.modal-open) {
    overflow: auto !important;
}

/*--------------------------------------------------------------
# Music Control Button
--------------------------------------------------------------*/
.music-control-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    /* Prevent button from going outside viewport */
    max-width: calc(100vw - 40px);
    /* Ensure consistent positioning */
    transform: none !important;
    /* Prevent AOS from affecting positioning */
    will-change: auto !important;
    /* Always visible */
    visibility: visible !important;
    opacity: 1 !important;
    /* No animation displacement */
    animation: none !important;
}

.music-control-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.music-control-btn button {
    width: 50px;
    height: 50px;
    border: none;
    background: transparent;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.music-control-btn button:hover {
    transform: scale(1.1);
}

.music-control-btn button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/*--------------------------------------------------------------
# Global Mobile Viewport Fix
--------------------------------------------------------------*/
/* Prevent horizontal scroll on all screen sizes */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Specific mobile fixes */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
}



/*--------------------------------------------------------------
# Navbar Logo Animation Disabling
--------------------------------------------------------------*/
.header-area .logo img,
.header-logo-main,
.header-logo-secondary,
.dual-logo a img,
.dual-logo img,
.main-logo img,
.secondary-logo img,
.header-area img,
header img {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
}

/* Disable any inherited animations */
.header-area *,
.main-header *,
.dual-logo *,
header * {
    animation: none !important;
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
}

/* Only allow subtle hover effect for logos */
.header-area .logo a:hover img {
    transform: scale(1.05) !important;
    transition: transform 0.3s ease !important;
}

/*--------------------------------------------------------------
# Responsive Design for Elegant Typography and Music Control
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.4rem !important;
        letter-spacing: 4px !important;
    }
    
    .hero-text h2 {
        font-size: 3.2rem !important;
        letter-spacing: 2px !important;
    }
    
    .hero-text h2 sup {
        font-size: 1.8rem !important;
        top: -0.6em !important;
        margin-left: 4px !important;
    }
    
    .hero-text::before,
    .hero-text::after {
        font-size: 1.5rem !important;
    }
    
    .music-control-btn {
        bottom: 20px !important;
        right: 15px !important;
        /* Ensure it stays within viewport */
        position: fixed !important;
        transform: none !important;
        /* Prevent AOS animation issues */
        animation: none !important;
    }
    
    .music-control-btn button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
        margin-bottom: 15px !important;
    }
    
    .hero-text h2 {
        font-size: 2.4rem !important;
        letter-spacing: 1px !important;
        line-height: 1.2 !important;
    }
    
    .hero-text h2 sup {
        font-size: 1.4rem !important;
        top: -0.5em !important;
        margin-left: 2px !important;
    }
    
    .hero-text::before {
        top: -20px !important;
        font-size: 1.2rem !important;
    }
    
    .hero-text::after {
        bottom: -20px !important;
        font-size: 1.2rem !important;
    }
    
    .hero-text h2::before {
        top: -3px !important;
        left: -3px !important;
        right: -3px !important;
        bottom: -3px !important;
        border-radius: 5px !important;
        filter: blur(8px) !important;
    }
    
    /* Mobile specific music button fixes */
    .music-control-btn {
        bottom: 15px !important;
        right: 10px !important;
        position: fixed !important;
        transform: none !important;
        animation: none !important;
        /* Ensure button doesn't cause horizontal scroll */
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .music-control-btn button {
        width: 40px !important;
        height: 40px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 320px) {
    .hero-text h1 {
        font-size: 1.5rem !important;
        letter-spacing: 1px !important;
    }
    
    .hero-text h2 {
        font-size: 2rem !important;
    }
    
    .hero-text h2 sup {
        font-size: 1.2rem !important;
    }
    
    /* Extra small screen music button */
    .music-control-btn {
        bottom: 10px !important;
        right: 8px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }
    
    .music-control-btn button {
        width: 35px !important;
        height: 35px !important;
        font-size: 12px !important;
    }
}

/*--------------------------------------------------------------
# FINAL HERO ANIMATION OVERRIDE - HIGHEST SPECIFICITY
# This section completely disables all hero text animations
# and ensures static display regardless of other CSS rules
--------------------------------------------------------------*/

/* Removed conflicting hero element overrides, controlled by hero_shimmer.css */

/* Removed conflicting pseudo-element overrides, controlled by hero_shimmer.css */

/* Removed conflicting h2 overrides, controlled by hero_shimmer.css */

/* Removed conflicting h1 overrides, controlled by hero_shimmer.css */

/* Removed final animation disabling, controlled by hero_shimmer.css */

/*--------------------------------------------------------------
# Mobile Viewport and Floating Elements Fix
--------------------------------------------------------------*/

/* Prevent horizontal scroll on mobile */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
    
    /* Ensure all fixed elements stay within viewport */
    .music-control-btn,
    .floating-btn,
    .fixed-btn {
        position: fixed !important;
        /* Ensure they don't exceed viewport width */
        max-width: calc(100vw - 20px) !important;
        /* Prevent transform issues from AOS */
        transform: none !important;
        animation: none !important;
        /* High specificity to override AOS */
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
    }
    
    /* Force music control to stay in safe position */
    .music-control-btn {
        right: 15px !important;
        bottom: 20px !important;
        /* Prevent any animation displacement */
        animation: none !important;
        transition: box-shadow 0.3s ease, transform 0.3s ease !important;
    }
    
    /* Hover state should only affect box-shadow and slight movement */
    .music-control-btn:hover {
        transform: translateY(-2px) !important;
        /* Prevent horizontal movement */
        right: 15px !important;
        bottom: 20px !important;
    }
}

/* Extra safety for very small screens */
@media screen and (max-width: 480px) {
    .music-control-btn {
        right: 10px !important;
        bottom: 15px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
}

/* Override any AOS animations specifically for floating buttons */
.music-control-btn[data-aos] {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
}

/* Ensure floating buttons are visible after opening modal */
body:not(.modal-open) .music-control-btn {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
    position: fixed !important;
}

/* Prevent any JavaScript or CSS from moving the button outside viewport */
.music-control-btn {
    /* Important positioning constraints */
    right: 15px !important;
    /* Ensure it's always visible */
    visibility: visible !important;
    opacity: 1 !important;
    /* Constrain within viewport */
    max-width: calc(100vw - 30px) !important;
}
