/*
   Raeye — "Platinum & Burgundy" Design System
   Premium Restaurant & Club Experience
*/

:root {
    --obsidian: #050505;
    --charcoal: #0a0a0a;
    --platinum: #E5E4E2;
    --platinum-light: #FDF4E3;
    --silver: #BCC6CC;
    --burgundy-deep: #420909;
    --cream: #FDF4E3;
    --cream-muted: rgba(253, 244, 227, 0.45);
    --cream-faint: rgba(253, 244, 227, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: radial-gradient(circle at 50% -40%, #7A1C25 0%, #420909 35%, #050505 85%) fixed;
    color: var(--cream);
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}



/* Subtle noise texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

img { display: block; max-width: 100%; }

/* =============================================
   NAVBAR
============================================= */
/* =============================================
   NAVBAR & FLOATING CAPSULE
============================================= */
#navbar {
    padding-top: 0 !important;
    pointer-events: none;
    top: 0;
}

.nav-capsule {
    pointer-events: auto;
    position: relative;
    max-width: fit-content;
    margin: 0 auto !important;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 2.5rem 2.5rem;
    padding: 0.7rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-capsule::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0 0 2.5rem 2.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.15), transparent 40%, transparent 60%, rgba(229, 228, 226, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

#navbar.scrolled .nav-capsule {
    background: rgba(5, 5, 5, 0.85);
    transform: translateY(0) scale(0.98);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.nav-link {
    position: relative;
    font-size: 8.5px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(253, 244, 227, 0.4);
    transition: all 0.4s ease;
    text-decoration: none;
    padding: 0.5rem 0.2rem;
}

.nav-link.active {
    color: var(--platinum);
    text-shadow: 0 0 15px rgba(229, 228, 226, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--platinum);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px var(--platinum);
}

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 80%; }

.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

/* =============================================
   HERO
============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    filter: brightness(0.7);
}
.hero-content-left {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content-left > * {
    pointer-events: auto;
}

.hero-logo-text {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300;
    text-transform: uppercase;
    background: linear-gradient(
        180deg, 
        #FFFFFF 0%, 
        #E5E4E2 40%, 
        #BCC6CC 50%, 
        #A1ABB3 60%, 
        #E5E4E2 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Multi-layered shadow for better contrast on bright bg */
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8)) drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4));
    display: inline-block;
}

/* Luxury Sections */
.luxury-label {
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--platinum);
    display: flex;
    align-items: center;
    gap: 15px;
}

.luxury-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(229, 228, 226, 0.2);
}

.luxury-frame {
    position: relative;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 228, 226, 0.1);
}

.luxury-frame img {
    filter: brightness(0.8) contrast(1.1);
    transition: filter 0.5s ease;
}

.luxury-frame:hover img {
    filter: brightness(1) contrast(1.1);
}

.bg-accent-text {
    position: absolute;
    font-size: 25vw;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    line-height: 1;
    color: rgba(229, 228, 226, 0.03);
    pointer-events: none;
    z-index: -1;
    white-space: nowrap;
}

/* Modern Egyptian Luxe */
.bg-egypt-pattern {
    background-image: url('../assets/egypt-pattern.png');
    background-size: 500px;
    background-repeat: repeat;
    opacity: 0.1;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.egyptian-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--platinum), transparent);
    position: relative;
}

.egyptian-line::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 7px solid var(--platinum);
}

.eye-pulse {
    animation: eye-glow 4s infinite ease-in-out;
}

@keyframes eye-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(229, 228, 226, 0.2)); }
    50% { filter: drop-shadow(0 0 30px rgba(229, 228, 226, 0.6)); }
}

.philosophy-item-icon {
    font-size: 14px;
    color: var(--platinum);
    opacity: 0.3;
    transition: all 0.5s ease;
}

.philosophy-nav-item:hover .philosophy-item-icon {
    opacity: 1;
    transform: rotate(360deg);
}

/* Bento Luxury Mosaic Grid — Unique for Dining Page */
.bento-mosaic {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 180px 220px;
    gap: 15px;
    width: 100%;
}

.bento-main {
    grid-row: span 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 1px solid rgba(229, 228, 226, 0.05);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-top-right {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 1px solid rgba(229, 228, 226, 0.05);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-bottom-right {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.5rem;
    border: 1px solid rgba(229, 228, 226, 0.05);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-mosaic img:hover {
    transform: scale(1.03);
    border-color: rgba(229, 228, 226, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* The Luxury Folder Concept */
.menu-folder {
    background: linear-gradient(135deg, #2D0B0E 0%, #1a0608 100%);
    border: 1px solid rgba(229, 228, 226, 0.1);
    padding: 2px; /* Folder border effect */
    border-radius: 2rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    position: relative;
    overflow: hidden;
}

.menu-sheet {
    background-image: url('../assets/menu-texture.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 1.8rem;
    padding: 4rem 3rem;
    color: #2D0B0E; /* Deep Burgundy for text */
    position: relative;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.05);
}

/* The Temple Arch Ornament Overlay */
.menu-sheet::before {
    content: '';
    position: absolute;
    inset: 2rem;
    border: 1px solid rgba(45, 11, 14, 0.1);
    border-top: 10rem solid transparent;
    border-radius: 10rem 10rem 0 0;
    pointer-events: none;
}

.menu-sheet h2, .menu-sheet h3, .menu-sheet h4 {
    color: #2D0B0E !important;
    text-transform: uppercase;
}

.menu-sheet .price-tag {
    color: #8b0000;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.menu-sheet .menu-desc {
    color: rgba(45, 11, 14, 0.6);
    font-size: 11px;
    font-style: italic;
    line-height: 1.6;
}

.menu-sheet .category-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.menu-sheet .divider {
    height: 1px;
    width: 100%;
    background: rgba(45, 11, 14, 0.1);
    margin: 1.5rem 0;
}

@media (max-width: 1024px) {
    .menu-sheet {
        padding: 2.5rem 1.5rem;
    }
}

/* Editorial Layered Overlap Grid */
.editorial-grid {
    position: relative;
    width: 85%; /* Reduced from 100% to make it more slender */
    margin-left: auto; /* Align to the right */
    height: 32vh;
    min-height: 320px;
}

.img-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 75%;
    height: 75%;
    object-fit: cover;
    z-index: 1;
    border: 1px solid rgba(229, 228, 226, 0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4);
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-overlap-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 45%;
    object-fit: cover;
    z-index: 3;
    border: 6px solid var(--burgundy);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: all 0.7s ease;
}

.img-overlap-bottom {
    position: absolute;
    bottom: 5%;
    left: -5%;
    width: 40%;
    height: 40%;
    object-fit: cover;
    z-index: 4;
    border: 6px solid var(--burgundy);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: all 0.7s ease;
}

.editorial-grid:hover .img-main {
    transform: translate(-50%, -55%) scale(1.02);
    filter: brightness(1);
}

.editorial-grid:hover .img-overlap-top {
    transform: translate(15px, -15px);
}

.editorial-grid:hover .img-overlap-bottom {
    transform: translate(-15px, 15px);
}

/* Ticker Tape */
.ticker {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(229, 228, 226, 0.1);
    border-bottom: 1px solid rgba(229, 228, 226, 0.1);
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    flex-shrink: 0;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--platinum);
    font-weight: 600;
    opacity: 1;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    letter-spacing: 0.6em;
    font-weight: 500; /* Increased weight for clarity */
    text-transform: uppercase;
    padding: 0 4rem;
    flex-shrink: 0;
    color: var(--platinum);
    
    /* Subtle Luxury Pulse instead of Shimmer */
    animation: luxury-pulse 8s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(229, 228, 226, 0.1);
}

.ticker-item-symbol {
    font-size: 16px;
    margin: 0 40px;
    filter: drop-shadow(0 0 12px rgba(229, 228, 226, 1));
    color: #ffffff;
}

@keyframes luxury-pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* =============================================
   OUR BRANDS SECTION
============================================= */
.brands-section {
    position: relative;
    padding: 100px 0;
    background: var(--obsidian);
    overflow: hidden;
}

.filter-container {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}

.filter-container::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid rgba(229, 228, 226, 0.1);
    background: transparent;
    color: rgba(229, 228, 226, 0.4);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.filter-tab.active, .filter-tab:hover {
    background: rgba(229, 228, 226, 0.05);
    color: var(--platinum);
    border-color: rgba(229, 228, 226, 0.4);
}

.brand-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.brand-slider::-webkit-scrollbar {
    display: none;
}

.events-carousel-wrap {
    position: relative;
    width: 100%;
    height: 600px; /* More compact height */
    transform-style: preserve-3d;
}

.brand-card {
    position: relative;
    flex: 0 0 200px; /* 9:16 Ratio Width */
    height: 355px; /* 9:16 Ratio Height (approx) */
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(229, 228, 226, 0.05);
}

.brand-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 228, 226, 0.2);
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.brand-card:hover img {
    transform: scale(1.1);
}

.brand-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column; /* Fixed property */
    justify-content: flex-end;
    padding: 15px;
    z-index: 5;
}

.brand-card-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px; /* Balanced logo size */
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
    transition: all 0.7s ease;
    filter: drop-shadow(0 0 12px rgba(229, 228, 226, 0.2));
}

.brand-card:hover .brand-card-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 30px rgba(229, 228, 226, 0.5));
}

.brand-card-header {
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 8px;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: var(--platinum);
}

.brand-card-desc {
    font-size: 10px;
    color: rgba(229, 228, 226, 0.4);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* =============================================
   PLATINUM DECORATORS
============================================= */
.platinum-line {
    width: 48px;
    height: 1px;
    background: var(--platinum);
    flex-shrink: 0;
}

.platinum-line-h {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--platinum), transparent);
    opacity: 0.2;
}

/* =============================================
   BUTTONS
============================================= */
.btn-platinum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 1rem 2.8rem;
    background: var(--platinum);
    color: var(--obsidian);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Montserrat', sans-serif;
    border: none;
    cursor: pointer;
    text-decoration: none;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(229, 228, 226, 0.1);
}

.btn-platinum:hover {
    background: var(--platinum-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 45px rgba(229, 228, 226, 0.3);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1rem 2.8rem;
    background: transparent;
    color: var(--platinum);
    border: 1px solid rgba(229, 228, 226, 0.2);
    transition: all 0.5s ease;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    gap: 0.6rem;
}

.btn-outline:hover {
    background: rgba(229, 228, 226, 0.05);
    color: var(--cream);
    border-color: var(--platinum);
    transform: translateY(-3px);
}

/* =============================================
   SERVICES TABS
============================================= */
.services-tab-btn {
    position: relative;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(253, 244, 227, 0.3);
    padding: 1.4rem 2.8rem;
    transition: color 0.4s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

.services-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--platinum);
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.services-tab-btn.active { color: var(--cream); }
.services-tab-btn.active::after { width: 60%; }
.services-tab-btn:hover { color: rgba(253, 244, 227, 0.7); }

.services-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.services-panel.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
}

@media (min-width: 1024px) {
    .services-panel.active { flex-direction: row; }
    .services-panel.row-reverse.active { flex-direction: row-reverse; }
}

/* =============================================
   GALLERY AUTO-SCROLL
============================================= */
.gallery-track {
    display: flex;
    gap: 15px;
    will-change: transform;
    padding-bottom: 5px;
}

.gallery-track.row-left  { animation: scroll-left 50s linear infinite; }
.gallery-track.row-right { animation: scroll-right 60s linear infinite; }

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.gallery-track-wrap:hover .gallery-track { animation-play-state: paused; }

.gallery-thumb {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(229, 228, 226, 0.05);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1.2s ease;
    filter: brightness(0.6) saturate(0.8);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
    filter: brightness(0.9) saturate(1);
}

/* =============================================
   TESTIMONIALS
============================================= */
.testi-card {
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 228, 226, 0.05);
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.testi-card:hover {
    border-color: rgba(229, 228, 226, 0.2);
    transform: translateY(-8px);
    background: rgba(10, 10, 10, 0.8);
}

.testi-card .quote-mark {
    font-family: 'Montserrat', sans-serif;
    font-size: 8rem;
    line-height: 1;
    color: rgba(229, 228, 226, 0.03);
    position: absolute;
    top: 0.5rem;
    left: 1.8rem;
    pointer-events: none;
    user-select: none;
}

/* =============================================
   RESERVATION MODAL
============================================= */
#reservation-modal .modal-content {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reserve-card {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
}

.reserve-card:hover {
    border-color: rgba(229, 228, 226, 0.2);
    transform: scale(1.01);
}

.reserve-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 228, 226, 0.08), transparent);
    transform: skewX(-25deg);
    animation: shine-loop 12s infinite;
}

@keyframes shine-loop {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* =============================================
   FLOATING BUTTON
============================================= */
.fab-wa {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 60px;
    height: 60px;
    background: var(--platinum);
    color: var(--obsidian);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 200;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.fab-wa:hover {
    transform: scale(1.2) rotate(12deg);
    background: var(--platinum-light);
    box-shadow: 0 20px 60px rgba(229, 228, 226, 0.4);
}

/* =============================================
   SCROLL REVEAL
============================================= */
[data-reveal] {
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-reveal="up"]    { transform: translateY(80px); }
[data-reveal="left"]  { transform: translateX(-80px); }
[data-reveal="right"] { transform: translateX(80px); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(0.9); }

[data-reveal].revealed { opacity: 1; transform: none; }

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }

/* =============================================
   EVENTS — 3D CAROUSEL
============================================= */
.events-section {
    perspective: 2500px;
    padding: 0; /* Handled by Tailwind on HTML */
    background: transparent;
    overflow: hidden;
}

.events-carousel-wrap {
    position: relative;
    width: 100%;
    height: 480px;
    transform-style: preserve-3d;
}

.event-card {
    position: absolute;
    top: 50%;
    width: 240px; /* Reduced width for compactness */
    aspect-ratio: 9/16;
    background: #0a0a0a;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 1);
    transform-origin: center center;
    will-change: transform, opacity;
}

/* 3D Card States — anchored to specific horizontal pivot points with MAXIMUM separation */
.event-card.left {
    left: 25vw;
    transform: translate(-50%, -50%) translateZ(-200px) rotateY(28deg) scale(0.85);
    z-index: 5;
    opacity: 0.65;
    filter: blur(1.5px) brightness(0.55);
    pointer-events: auto;
}

.event-card.center {
    left: 50vw;
    transform: translate(-50%, -50%) translateZ(220px) rotateY(0deg) scale(1.08);
    z-index: 20;
    opacity: 1;
    filter: none;
    pointer-events: auto;
    box-shadow: 0 80px 160px rgba(0, 0, 0, 1), 0 0 100px rgba(235, 212, 53, 0.15);
}

.event-card.right {
    left: 75vw;
    transform: translate(-50%, -50%) translateZ(-200px) rotateY(-28deg) scale(0.85);
    z-index: 5;
    opacity: 0.65;
    filter: blur(1.5px) brightness(0.55);
    pointer-events: auto;
}

.event-card.hidden-card {
    left: 50vw;
    transform: translate(-50%, -50%) translateZ(-1000px) scale(0.5);
    opacity: 0;
    pointer-events: none;
}

.event-card:hover.center {
    transform: translate(-50%, -50%) translateZ(200px) scale(1.02);
}

/* Overlay refinement */
.event-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.8) 40%, transparent 100%);
    text-align: center;
    transform: translateZ(20px); /* Ensure text is above image layer in 3D */
}

/* Carousel Control refinement */
.carousel-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1.5px solid rgba(229, 228, 226, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    color: var(--platinum);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 100;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-btn:hover {
    background: var(--platinum);
    color: var(--obsidian);
    border-color: var(--platinum);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 40px rgba(229, 228, 226, 0.3);
}

.carousel-btn.prev { left: 15%; }
.carousel-btn.next { right: 15%; }

@media (max-width: 1024px) {
    .event-card { width: 200px; }
    .carousel-btn.prev { left: 2%; }
    .carousel-btn.next { right: 2%; }
}

@media (max-width: 640px) {
    .events-carousel-wrap { height: 400px; display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; perspective: none; }
    .event-card { position: relative; left: 0; top: 0; transform: none !important; opacity: 1 !important; filter: none !important; flex-shrink: 0; margin-right: 1rem; width: 200px; aspect-ratio: 9/16; }
    .carousel-btn { display: none; }
}

/* =============================================
   TABLET / MOBILE — Scale Down, Don't Rearrange
   Goal: look exactly like desktop, just smaller
============================================= */
@media (max-width: 1024px) {
    /* About section image hiding */
    .editorial-grid {
        display: none !important;
    }
    #about .grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    /* ---- HERO ---- */
    .hero-section { height: 85svh; min-height: 520px; }
    .hero-content-left img[alt="RAEYE"] { height: 14vw !important; }

    /* ---- TICKER — keep it, shrink it ---- */
    .ticker { display: flex !important; }
    .ticker-item { font-size: 7px; padding: 0 1.5rem; letter-spacing: 0.35em; }
    .ticker-item-symbol { font-size: 12px; margin: 0 16px; }

    /* ---- HIGHLIGHTS — horizontal scroll, smaller cards ---- */
    .brand-slider { gap: 8px; padding: 0 12px 12px; }
    .brand-card { flex: 0 0 140px; height: 249px; }

    /* ---- EVENTS — 3D CAROUSEL WITH BUTTONS ON MOBILE ---- */
    .events-section { 
        padding-top: 1.5rem; 
        perspective: 1200px !important; 
        overflow: hidden; 
    }
    #events h2 { font-size: 1.5rem !important; }
    
    .events-carousel-wrap {
        height: 480px !important;
        display: block !important;
        position: relative !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .event-card {
        position: absolute !important;
        width: 62vw !important; /* Mantap & Lebar */
        max-width: 280px !important;
        top: 50% !important;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1) !important;
        border-radius: 1.5rem !important;
        display: block !important;
    }
    .event-card.center {
        left: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
        z-index: 20 !important;
        opacity: 1 !important;
        filter: none !important;
        box-shadow: 0 20px 50px rgba(0,0,0,0.8) !important;
    }
    .event-card.left {
        left: 2% !important;
        transform: translate(0, -50%) scale(0.65) translateZ(-200px) !important;
        z-index: 10 !important;
        opacity: 0.4 !important;
        filter: blur(4px) !important;
    }
    .event-card.right {
        left: 98% !important;
        transform: translate(-100%, -50%) scale(0.65) translateZ(-200px) !important;
        z-index: 10 !important;
        opacity: 0.4 !important;
        filter: blur(4px) !important;
    }
    .event-card.hidden-card {
        left: 50% !important;
        transform: translate(-50%, -50%) scale(0.3) translateZ(-500px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Buttons are back for Mobile */
    .carousel-btn {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 30 !important;
        background: rgba(10, 10, 10, 0.6) !important;
        border-color: rgba(229, 228, 226, 0.2) !important;
    }
    #event-prev { left: 0.5rem !important; }
    #event-next { right: 0.5rem !important; }

    /* ---- GALLERY ---- */
    .gallery-thumb { width: 120px; height: 155px; }

    /* ---- TESTIMONIALS — KECILIN BANYAK ---- */
    section.bg-transparent.py-28.md\:py-40 { padding-top: 1.5rem !important; padding-bottom: 2rem !important; }
    .grid.grid-cols-3.gap-4 {
        display: flex !important;
        overflow-x: auto !important;
        gap: 10px !important;
        padding: 0 16px 16px !important;
    }
    .testi-card { 
        flex: 0 0 180px !important; /* Jauh lebih kecil */
        padding: 0.75rem !important; /* Padding minimalis */
        border-radius: 0.75rem !important;
        scroll-snap-align: center !important;
    }
    .testi-card p { font-size: 9px !important; margin-bottom: 0.75rem !important; line-height: 1.4 !important; }
    .testi-card .flex-col p { font-size: 8px !important; }
    .testi-card img { width: 1.5rem !important; height: 1.5rem !important; }
    .quote-mark { font-size: 1.5rem !important; top: 0rem !important; right: 0.5rem !important; opacity: 0.1; }

    /* ---- OPENING HOURS — PASIN 3 BOX JADI 1 PAGE ---- */
    .grid.grid-cols-3.gap-px {
        display: grid !important; /* Fixed grid, no swipe needed */
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1px !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: rgba(229, 228, 226, 0.05) !important;
        margin: 0 16px !important;
        border-radius: 0.75rem !important;
    }
    .grid.grid-cols-3.gap-px > div {
        flex: none !important;
        padding: 1rem 0.25rem !important;
        background: rgba(10,10,10,0.6) !important;
    }
    .grid.grid-cols-3.gap-px p.text-platinum { font-size: 7px !important; margin-bottom: 4px !important; }
    .grid.grid-cols-3.gap-px p.text-cream { font-size: 8px !important; }

    /* ---- GLOBAL TEXT SCALE ---- */
    .text-6xl, .md\:text-7xl { font-size: 1.75rem !important; }
    .text-5xl, .md\:text-5xl { font-size: 1.3rem !important; }
    .text-4xl, .md\:text-4xl { font-size: 1.15rem !important; }

    /* ---- FAB WhatsApp ---- */
    .fab-wa { width: 44px; height: 44px; font-size: 1rem; bottom: 1.25rem; right: 1.25rem; }

    /* ---- FOOTER ---- */
    footer { padding: 2rem 1.5rem; }
    footer h1.text-3xl { font-size: 1.5rem !important; }
}
