/* =========================================================================
   VELVET ROOM - DESIGN SYSTEM (CSS VARIABLES)
   ========================================================================= */
:root {
    --color-bg-base: #0B1A2F;      /* Deep navy/black */
    --color-secondary: #5C1A1B;    /* Burgundy */
    --color-accent: #D4AF37;       /* Gold */
    --color-text-primary: #F5F5F5; /* Main text */
    --color-text-second: #B8B8B8;  /* Subtext */
    --color-divider: #1F1F1F;      /* Borders, lines */
    
    font-size: 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--color-text-primary);
    background-color: var(--color-bg-base);
    
    --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.4s ease;
}

/* Base Styles & Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.custom-cursor-enabled, body.custom-cursor-enabled * {
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg-base);
    /* Subtle noise/grain technique using a radial gradient pattern */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(11,26,47,0) 0%, rgba(5,13,24,0.8) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

p {
    color: var(--color-text-second);
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-smooth);
}

a:hover {
    color: var(--color-accent);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.section-inner {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    font-weight: 300;
}

.divider {
    height: 1px;
    width: 60px;
    background-color: var(--color-accent);
    margin: 0 auto 2rem auto;
    opacity: 0.5;
}

/* =========================================================================
   UI COMPONENTS
   ========================================================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border-radius: 2px;
}

.btn-primary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-base);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(20, 20, 20, 0.4);
    color: var(--color-text-primary);
    border: 1px solid var(--color-divider);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Glass Cards */
.glass-card {
    background: rgba(11, 26, 47, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3rem 2rem;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.3); /* Gold glow */
    transform: translateY(-5px);
}

.glass-card h3 {
    color: var(--color-text-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* =========================================================================
   NAVIGATION
   ========================================================================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color var(--transition-smooth), padding var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(7, 15, 28, 0.95); /* Extremely dark navy solid */
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-divider);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-text-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--color-text-primary);
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-base);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--color-text-primary);
    text-transform: uppercase;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-img-wrap {
    width: 100%;
    height: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Slight scale for parallax trick space */
    animation: slowZoom 20s infinite alternate linear;
}

/* No AI image? Failsafe gradient */
@supports not (background-image: url('assets/hero_bg.png')) {
    .hero-img-wrap {
        background: linear-gradient(135deg, var(--color-bg-base) 0%, var(--color-secondary) 100%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 47, 0.35); /* 35% dark navy overlay instead of 65% for extra brightness */
}

.hero-radial-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
    mix-blend-mode: color-dodge;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.hero-title {
    font-size: 5rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--color-text-primary);
    opacity: 0.8;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bob 2s infinite;
}

.hero-scroll span {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* =========================================================================
   EXPERIENCE SECTION (GLASS GRID)
   ========================================================================= */

.glass-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* =========================================================================
   GALLERY / MOOD BOARD
   ========================================================================= */

.mood-board {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 1rem;
}

.mood-panel {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-base);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.02);
    transition: transform var(--transition-slow);
}

.mood-panel:hover {
    transform: scale(1.02);
}

.panel-1 {
    grid-row: 1 / 3;
    background: linear-gradient(180deg, rgba(92, 26, 27, 0.4) 0%, rgba(11, 26, 47, 1) 100%);
}

.panel-2 {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
}

.panel-3 {
    background: radial-gradient(circle at bottom right, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.mood-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-accent);
    opacity: 0.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* =========================================================================
   LOCATION & CONTACT
   ========================================================================= */

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.location-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block:last-child {
    margin-bottom: 0;
}

.info-block .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.info-block .val {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text-primary);
    line-height: 1.8;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    font-size: 1.1rem;
}

.location-map {
    padding: 10px;
    height: 400px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--color-divider);
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    color: var(--color-accent);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--color-text-primary);
    margin-bottom: 2rem;
}

.footer-rights {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* =========================================================================
   ANIMATIONS & RESPONSIVE
   ========================================================================= */

@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes bob {
    0% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
    100% { transform: translate(-50%, 0); }
}

/* Scroll reveal classes */
.reveal-on-scroll,
.reveal-on-load {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-on-scroll.active,
.reveal-on-load.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .glass-grid {
        grid-template-columns: 1fr;
    }
    .location-grid {
        grid-template-columns: 1fr;
    }
    .mood-board {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .panel-1, .panel-2, .panel-3 {
        height: 200px;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .hamburger {
        display: block;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

/* =========================================================================
   PREMIUM FEATURES (Age Gate, Cursor, Menu, Marquee)
   ========================================================================= */

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s, opacity 0.2s;
    mix-blend-mode: difference;
    opacity: 0; /* Hidden initially */
}
body.custom-cursor-enabled .custom-cursor {
    opacity: 1; /* Shows once class is appended */
}
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background-color: rgba(212, 175, 55, 0.2);
}
@media (max-width: 1024px) {
    .custom-cursor { display: none; }
}

/* Menu Section */
.menu-list {
    list-style: none;
}
.menu-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px dotted rgba(255,255,255,0.1);
}
.menu-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.menu-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}
.menu-item-head .price {
    color: var(--color-accent);
}
.menu-item-desc {
    font-size: 0.9rem;
    color: var(--color-text-second);
}

/* Infinite Marquee */
.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 2rem 0;
}
.marquee-track {
    display: flex;
    width: calc(400px * 8); /* 8 items total */
    animation: scroll-marquee 30s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
.marquee-item {
    width: 400px;
    height: 300px;
    margin: 0 10px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.05);
    background-color: var(--color-bg-base);
}
@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-400px * 4)); }
}
