/* =========================================================================
   Design System & Luxury Variables
   ========================================================================= */
:root {
    /* Color Palette (Luxury) */
    --clr-chocolate: #3E2723;
    --clr-coffee: #4B2E2B;
    --clr-maroon: #5E0B15;
    --clr-purple: #4A0E4E;
    --clr-white: #FFFFFF;
    --clr-light: #F9F9F9;
    --clr-dark: #121212;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Effects */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 50px rgba(94, 11, 21, 0.15); /* maroon tint */
    --transition-fast: 0.3s ease;
    --transition-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Global Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* We use a custom cursor */
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-light);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* initial state for page transition */
    opacity: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--clr-chocolate);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* =========================================================================
   Subtle Grain Texture (Luxury Touch)
   ========================================================================= */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* =========================================================================
   Custom Cursor
   ========================================================================= */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--clr-maroon);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-color: rgba(255,255,255,0.5);
}

/* =========================================================================
   Utility Classes (Glassmorphism, Containers)
   ========================================================================= */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--clr-chocolate) 0%, var(--clr-maroon) 100%);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary::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.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--clr-white);
}

.btn-outline {
    display: inline-block;
    padding: 14px 34px;
    background: transparent;
    color: var(--clr-white);
    border: 1px solid rgba(255,255,255,0.5);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--clr-white);
    color: var(--clr-chocolate);
}

/* =========================================================================
   Navigation Bar (Sticky Transparent to Solid)
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 90px;
    z-index: 1000;
    transition: all var(--transition-fast);
    /* Transparent initially */
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    height: 80px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-soft);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .mobile-menu-btn span {
    color: var(--clr-chocolate);
}

.navbar.scrolled .mobile-menu-btn span {
    background-color: var(--clr-chocolate);
}


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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--clr-white);
    transition: color var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background-color: currentColor;
    transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--clr-white);
    margin: 8px 0;
    transition: all var(--transition-fast);
}

/* =========================================================================
   Home Hero Section
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Mixing purple and maroon to get the luxury look */
    background: linear-gradient(180deg, rgba(74, 14, 78, 0.4) 0%, rgba(62, 39, 35, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--clr-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.8);
    opacity: 0; transform: translateY(30px);
}

.hero-title {
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 30px;
    color: var(--clr-white);
    letter-spacing: 4px;
    opacity: 0; transform: translateY(30px);
}

.hero-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 50px;
    opacity: 0; transform: translateY(30px);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0; transform: translateY(30px);
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-fast);
    }
    .nav-links.active {
        opacity: 1; pointer-events: all;
    }
    .nav-links a { color: var(--clr-chocolate); font-size: 1.2rem; }
    .mobile-menu-btn { display: block; }
    
    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--clr-chocolate); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--clr-chocolate); }
    
    .hero-title { font-size: 4rem; }
    .hero-cta { flex-direction: column; }
    .custom-cursor { display: none; }
}
