/* ======================================================
   LUXURY-SCROLL STYLES (Fixed & ThemeForest Ready)
   ======================================================= */

/* --- Luxury Scroll Page Base --- */
.luxury-scroll-page {
    position: relative;
    overflow-x: hidden;
    /* FIXED: Spelling error corrected */
    scroll-behavior: smooth;
}

/* --- Section Progress Indicator --- */
.luxury-scroll-page .section-indicator {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.luxury-scroll-page .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    /* FIXED: Use variable for theme consistency */
    background-color: color-mix(in srgb, var(--color-accent), transparent 70%);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--color-accent);
}

/* FIXED: Added Focus State for Accessibility */
.luxury-scroll-page .dot:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.luxury-scroll-page .dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

/* --- Fullscreen Sections --- */
.luxury-scroll-page .fullscreen-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

/* --- Hero Section --- */
.luxury-scroll-page .hero-section {
    position: relative;
    overflow: hidden;
    /* FIXED: Use variable for text color instead of hardcoded 'white' */
    color: var(--color-white);
}

.luxury-scroll-page .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.luxury-scroll-page .hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.luxury-scroll-page .hero-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

.luxury-scroll-page .parallax-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.luxury-scroll-page .reflection {
    background: linear-gradient(to bottom, 
        rgba(255,255,255, 0.1) 0%, 
        transparent 50%, 
        rgba(255,255,255, 0.05) 100%);
}

.luxury-scroll-page .hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.luxury-scroll-page .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
    /* FIXED: Ensure color works in all modes */
    color: var(--color-white);
}

.luxury-scroll-page .hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

/* Scoped Button Styles */
.luxury-scroll-page .btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
    color: var(--color-white);
    border: none;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--color-accent), transparent 70%);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md, 4px);
}

.luxury-scroll-page .btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--color-accent), transparent 60%);
}

.luxury-scroll-page .btn-gold:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

.luxury-scroll-page .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 2.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: var(--radius-md, 4px);
}

.luxury-scroll-page .btn-outline:hover {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.luxury-scroll-page .btn-outline:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
}

.luxury-scroll-page .scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    color: var(--color-white);
    opacity: 0.7;
}

.luxury-scroll-page .scroll-indicator span {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: block;
}

.luxury-scroll-page .scroll-line {
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    margin: 0 auto;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* --- About Section --- */
.luxury-scroll-page .about-section {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.luxury-scroll-page .split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.luxury-scroll-page .left-content {
    padding-right: 2rem;
}

/* Scoped Title */
.luxury-scroll-page .section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    position: relative;
}

.luxury-scroll-page .section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.luxury-scroll-page .philosophy {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.luxury-scroll-page .chef-quote {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-accent);
}

.luxury-scroll-page .chef-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.luxury-scroll-page .chef-quote cite {
    font-weight: 600;
    color: var(--color-accent);
}

.luxury-scroll-page .right-content .image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.luxury-scroll-page .right-content img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Menu Section --- */
.luxury-scroll-page .menu-section {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.luxury-scroll-page .menu-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.luxury-scroll-page .menu-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.luxury-scroll-page .menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.luxury-scroll-page .card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.luxury-scroll-page .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.luxury-scroll-page .menu-card:hover .card-image img {
    transform: scale(1.05);
}

.luxury-scroll-page .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.luxury-scroll-page .menu-card:hover .card-overlay {
    opacity: 1;
}

.luxury-scroll-page .card-content {
    padding: 1.5rem;
    text-align: center;
}

.luxury-scroll-page .card-content h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.luxury-scroll-page .gold-separator {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    margin: 0 auto 1rem;
}

.luxury-scroll-page .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
}

.luxury-scroll-page .menu-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- Chef Section --- */
.luxury-scroll-page .chef-section {
    /* FIXED: Use variables instead of hardcoded hex */
    background: linear-gradient(135deg, var(--color-dark-surface, #1a1a1a) 0%, var(--color-black, #000) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.luxury-scroll-page .chef-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.luxury-scroll-page .chef-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.luxury-scroll-page .chef-portrait {
    flex: 0 0 40%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.luxury-scroll-page .chef-portrait img {
    width: 100%;
    height: auto;
    display: block;
}

.luxury-scroll-page .chef-info {
    flex: 1;
}

.luxury-scroll-page .chef-name {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.luxury-scroll-page .chef-signature {
    margin-bottom: 2rem;
}

.luxury-scroll-page .chef-philosophy {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* --- Gallery Section --- */
.luxury-scroll-page .gallery-section {
    position: relative;
    padding: 4rem 0;
    background-color: var(--color-bg);
    overflow: hidden;
    /* Create 3D context for GPU acceleration */
    perspective: 1000px;
}

.luxury-scroll-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.luxury-scroll-page .section-subtitle {
    font-size: 1.1rem;
    /* FIXED: Added hash to hex code */
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}
/* ---------------------------
   GALLERY LAYOUT
--------------------------- */
.gallery-section {
    padding: 4rem 0;
    background-color: var(--tf-bg, #FBFAF7);
    overflow: hidden;
}

.gallery-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ---------------------------
   WRAPPER & TRACK
--------------------------- */
.horizontal-gallery-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.horizontal-gallery {
    display: flex;
    align-items: stretch;
    gap: 24px;
    will-change: transform;
    touch-action: pan-y;
    cursor: grab;
}

/* ---------------------------
   ITEM (Slide)
--------------------------- */
.gallery-item {
    flex: 0 0 calc(33.333% - 16px); /* 3 slides */
    max-width: 320px;
    position: relative;
    pointer-events: none;
    box-sizing: border-box;
    opacity: 0.6;
    transform: scale(0.88);
    transition:
    transform 0.6s ease,
    opacity 0.6s ease,
    box-shadow 0.4s ease;
    
    will-change: transform, opacity;
}


/* Active State (Center Slide) */
.gallery-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
    cursor: grabbing;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Image */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    pointer-events: none;
    border-radius: var(--radius-md);
}

/* ---------------------------
   OVERLAYS
--------------------------- */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05) 0%,
        rgba(0,0,0,0.75) 100%
    );
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-end;
    justify-content: center;

    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-item.active .image-overlay {
    opacity: 1;
}

.overlay-content {
    padding: 1.5rem;
    text-align: center;
    color: var(--color-white);
    transform: translateY(14px);
    transition: transform 0.4s ease;
}

.gallery-item.active .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.3rem;
}

.overlay-content p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ---------------------------
   CONTROLS & PROGRESS
--------------------------- */
.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 20;
}

/* Buttons */
.gallery-prev,
.gallery-next {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--color-accent-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(204, 168, 69, 0.25);
}

.gallery-prev:focus-visible,
.gallery-next:focus-visible {
    outline: 3px solid var(--color-white);
    outline-offset: 2px;
}

/* Dots */
.gallery-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: none;
    padding: 0;
}

.gallery-dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

/* Progress Bar */
.gallery-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.gallery-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(
        90deg,
        var(--color-accent),
        var(--color-accent-dark)
    );
    will-change: width;
}

/* ---------------------------
   RESPONSIVE
--------------------------- */
@media (max-width: 768px) {

    .gallery-section {
        padding: 3rem 0;
    }

    .horizontal-gallery {
        gap: 16px;
        padding-left: 50%;
        padding-right: 50%;
    }

    .gallery-item {
        flex: 0 0 80%;
        max-width: none;
        transform: scale(0.92);
    }

    .gallery-item.active {
        transform: scale(1);
    }

    .overlay-content h3 {
        font-size: 1.1rem;
    }

    .gallery-controls {
        gap: 1rem;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
    }
}

/* Lightbox Modal */
.luxury-scroll-page .lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.luxury-scroll-page .lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.luxury-scroll-page .lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.luxury-scroll-page .lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.luxury-scroll-page .lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
}

.luxury-scroll-page .lightbox-close:focus-visible {
    outline: 2px solid var(--color-accent);
}

/* --- Reservation Section --- */
.luxury-scroll-page .reservation-section {
    /* FIXED: Use variables for dynamic theming */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.luxury-scroll-page .reservation-content {
    max-width: 600px;
    padding: 4rem;
    position: relative;
    z-index: 2;
}

.luxury-scroll-page .gold-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-dark));
    margin: 0 auto;
}

.luxury-scroll-page .gold-line.top {
    margin-bottom: 2rem;
}

.luxury-scroll-page .gold-line.bottom {
    margin-top: 2rem;
}

.luxury-scroll-page .reservation-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.luxury-scroll-page .reservation-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.luxury-scroll-page .article-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, color-mix(in srgb, var(--color-accent), transparent 90%) 0%, transparent 70%);
    z-index: 1;
}

/* --- Contact Section --- */
.luxury-scroll-page .contact-section {
    background-color: var(--color-bg);
    color: var(--color-text);
}

.luxury-scroll-page .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.luxury-scroll-page .contact-info {
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.luxury-scroll-page .contact-details {
    margin-bottom: 2rem;
}

.luxury-scroll-page .detail-item {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

.luxury-scroll-page .detail-item .icon {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--color-accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.luxury-scroll-page .hours p {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.luxury-scroll-page .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    margin-top: 2rem;
    width: 100%;
}

.luxury-scroll-page .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 1.25rem;
    width: 100px;
    margin-left: 5px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.luxury-scroll-page .social-links a:hover,
.luxury-scroll-page .social-links a:focus-visible {
    color: var(--color-white);
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .luxury-scroll-page .social-links {
        justify-content: center;
    }

    .luxury-scroll-page .contact-details {
        margin-bottom: 1.5rem;
    }

    .luxury-scroll-page .detail-item {
        margin-bottom: 1rem;
    }
}


.luxury-scroll-page .map-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}



/* --- Animations --- */
.luxury-scroll-page .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .luxury-scroll-page .section-indicator {
        display: none;
    }

    .luxury-scroll-page .mobile-nav {
        top: 1rem;
        right: 1rem;
    }

    .luxury-scroll-page .split-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .luxury-scroll-page .left-content {
        padding-right: 0;
    }

    .luxury-scroll-page .chef-content {
        flex-direction: column;
        text-align: center;
    }

    .luxury-scroll-page .chef-portrait {
        flex: 0 0 auto;
        max-width: 300px;
        margin: 0 auto 2rem;
    }

    .luxury-scroll-page .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .luxury-scroll-page .contact-info {
        padding-right: 0;
    }

    .luxury-scroll-page .horizontal-gallery {
        gap: 1rem;
    }

    .luxury-scroll-page .gallery-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    .luxury-scroll-page .hero-title {
        font-size: 2.5rem;
    }

    .luxury-scroll-page .section-title {
        font-size: 2rem;
    }

    .luxury-scroll-page .btn-gold,
    .luxury-scroll-page .btn-outline {
        padding: 0.6rem 1.2rem;
        font-size: 0.875rem;
    }
}

/* ======================================================
   END LUXURY-SCROLL
====================================================== */