/* ==========================================================================
   Luxury Restaurant Experience - Premium Million-Dollar Styling
   Full-screen video background with sophisticated overlay and content
   ========================================================================== */

/* Premium Video Background Container */
.luxury-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -10;
}

/* Luxury Full-Screen Background Video - Optimized for instant loading */
.luxury-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    z-index: -10;
    
    /* Optimizations for instant loading */
    will-change: opacity;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
    
    /* Smooth video appearance with faster transition */
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Video loaded state */
.luxury-background-video.video-loaded {
    opacity: 1;
}

/* Premium Dark Overlay for Text Clarity */
.luxury-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 30%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: -9;
}

/* Hero Section Override for Video Background */
.hero {
    background: none !important;
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Changed to flex-start for proper positioning */
    justify-content: flex-end;
    padding: 0 5rem;
    overflow: visible; /* Changed from hidden to visible */
    scroll-margin-top: var(--navbar-height); /* Account for fixed navbar */
}

/* Luxury Hero Container */
.luxury-hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start; /* Changed from center to flex-start */
    height: 100vh;
    padding: 2rem;
    padding-top: calc(var(--navbar-height) + 2rem); /* Dynamic navbar height + spacing */
}

/* Premium Right-Aligned Content Box */
.luxury-content-box {
    /* Semi-transparent background to show video subtly */
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 25px; /* More rounded corners for modern luxury look */
    padding: 3rem 2.5rem;
    max-width: 550px;
    width: 100%;
    max-height: calc(100vh - var(--navbar-height) - 3rem); /* Optimized height to prevent scrolling */
    position: relative;
    overflow-y: auto; /* Allow scrolling if content is too tall */
    overflow-x: hidden;
    
    /* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for Webkit browsers */
.luxury-content-box::-webkit-scrollbar {
    display: none;
}
    margin-top: 0; /* Remove margin since container padding handles spacing */
    
    /* Enhanced premium shadow effects */
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 50px rgba(212, 175, 55, 0.05);
    
    /* Smooth entrance animation */
    animation: luxurySlideIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes luxurySlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

/* Luxury Brand Section */
.luxury-brand-section {
    text-align: center;
    margin-bottom: 1.8rem;
    position: relative;
}

/* Premium Logo */
.luxury-logo {
    margin-bottom: 1rem;
    position: relative;
}

.luxury-logo-image {
    width: 65px;
    height: 65px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
    animation: luxuryFloat 4s ease-in-out infinite;
}

@keyframes luxuryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* Luxury Title Styling */
.luxury-title {
    margin: 0;
    text-align: center;
}

.luxury-title-main {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #D4AF37;
    margin-bottom: 0.8rem;
    
    /* Premium text effects */
    text-shadow: 
        0 0 20px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    
    /* Elegant text gradient */
    background: linear-gradient(
        135deg,
        #D4AF37 0%,
        #FFD700 25%,
        #F4E87C 50%,
        #D4AF37 75%,
        #B8941F 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: luxuryTextShine 3s ease-in-out infinite;
}

@keyframes luxuryTextShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Luxury Title Divider */
.luxury-title-divider {
    display: block;
    width: 120px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #D4AF37 20%,
        #FFD700 50%,
        #D4AF37 80%,
        transparent 100%
    );
    margin: 1rem auto;
    animation: luxuryGlow 2s ease-in-out infinite alternate;
}

@keyframes luxuryGlow {
    0% { 
        opacity: 0.7;
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }
}

/* Luxury Subtitle */
.luxury-title-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.4rem;
}

/* Luxury Description */
.luxury-description {
    margin: 1.8rem 0;
    position: relative;
}

.luxury-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
    
    /* Elegant text shadow for readability */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Luxury Action Buttons */
.luxury-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

/* Premium Button Base Styling */
.luxury-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Premium shadow */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Premium Primary Button */
.luxury-btn-primary {
    background: linear-gradient(
        135deg,
        #D4AF37 0%,
        #FFD700 50%,
        #D4AF37 100%
    );
    color: #000;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.luxury-btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    background: linear-gradient(
        135deg,
        #FFD700 0%,
        #F4E87C 50%,
        #FFD700 100%
    );
}

/* Premium Secondary Button */
.luxury-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(10px);
}

.luxury-btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3);
    color: #FFD700;
}

/* Button Text and Icon */
.btn-text {
    flex: 1;
    text-align: left;
}

.btn-icon {
    margin-left: 1rem;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.luxury-btn:hover .btn-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Button Shimmer Effect */
.luxury-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.8s ease;
}

.luxury-btn:hover::before {
    left: 100%;
}

/* Luxury Decorative Elements */
.luxury-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    border-radius: 20px;
}

.luxury-pattern {
    position: absolute;
    opacity: 0.05;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
    animation: luxuryPatternFloat 15s ease-in-out infinite;
}

.luxury-pattern-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.luxury-pattern-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    animation-delay: -7.5s;
}

@keyframes luxuryPatternFloat {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 0.1;
    }
}

/* Luxury Music Control */
.luxury-music-control {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(20, 20, 20, 0.95) 100%
    );
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: #D4AF37;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(20px);
    
    /* Premium shadow */
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 175, 55, 0.1);
}

.luxury-music-control:hover {
    transform: scale(1.1);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.3),
        0 0 0 1px rgba(212, 175, 55, 0.3);
    color: #FFD700;
}

.luxury-music-control.muted {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Luxury Loading Animation */
.luxury-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.luxury-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.luxury-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top: 2px solid #D4AF37;
    border-radius: 50%;
    animation: luxurySpinning 1.5s linear infinite;
}

@keyframes luxurySpinning {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design for Premium Experience */
@media (min-width: 1200px) {
    .luxury-hero-container {
        padding-top: calc(var(--navbar-height) + 2.5rem); /* Account for larger navbar */
    }
}

@media (max-width: 1200px) {
    .hero {
        padding: 0 3rem;
    }
    
    .luxury-content-box {
        max-width: 500px;
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        justify-content: center;
        padding: 0 1.5rem;
    }
    
    .luxury-hero-container {
        justify-content: center;
        padding: 1rem;
        padding-top: calc(var(--navbar-height) + 2rem); /* Dynamic navbar height + mobile spacing */
    }
    
    .luxury-content-box {
        max-width: 100%;
        padding: 2rem 1.8rem;
        border-radius: 20px;
        margin-top: 1rem; /* Minimal margin since padding handles spacing */
        max-height: calc(100vh - var(--navbar-height) - 2rem); /* More space on mobile */
    }
    
    .luxury-title-main {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    
    .luxury-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .luxury-actions {
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .luxury-btn {
        padding: 0.9rem 1.4rem;
        font-size: 0.9rem;
    }
    
    .luxury-music-control {
        bottom: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .luxury-hero-container {
        padding-top: calc(var(--navbar-height) + 1.5rem); /* Dynamic navbar height + small spacing */
    }
    
    .luxury-content-box {
        padding: 1.8rem 1.4rem;
        margin-top: 0.5rem; /* Minimal spacing on very small screens */
        border-radius: 15px;
        max-height: calc(100vh - var(--navbar-height) - 1.5rem); /* Maximum space on small screens */
    }
    
    .luxury-logo-image {
        width: 50px;
        height: 50px;
    }
    
    .luxury-title-main {
        font-size: clamp(1.6rem, 7vw, 2rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.6rem;
    }
    
    .luxury-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .luxury-btn {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .btn-text {
        text-align: center;
    }
    
    .btn-icon {
        margin-left: 0;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .luxury-background-video,
    .luxury-logo-image,
    .luxury-title-main,
    .luxury-title-divider,
    .luxury-pattern,
    .luxury-spinner {
        animation: none;
    }
    
    .luxury-content-box {
        animation: none;
        transform: none;
    }
    
    .luxury-btn {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .luxury-video-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .luxury-content-box {
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid #D4AF37;
    }
    
    .luxury-text {
        color: #ffffff;
    }
}
