/* ==========================================================================
   Dhuri Hoon Mai (DHM) — Awwwards-Grade Editorial Luxury Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cinzel:wght@500;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Rozha+One&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

:root {
    --color-soft-cream: #FFF8F5;
    --color-deep-teal: #1A4D4E;
    --color-deep-teal-dark: #103334;
    --color-terracotta: #A65D4A;
    --color-marigold: #D97706;
    --color-primary-container: #AD004F;
    --color-primary-hover: #8A003E;
    --color-charcoal: #1E293B;
    --color-surface-dim: #F5ECE7;
    --color-surface-variant: #F7DCE0;
    --color-outline-variant: #E0BEC4;
}

/* --------------------------------------------------------------------------
   Paper Grain Overlay (Tangible Luxury Editorial Texture)
   -------------------------------------------------------------------------- */
.paper-grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Typography Hierarchy
   -------------------------------------------------------------------------- */
.font-serif-display {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
}

.font-serif-cormorant {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
}

.font-cinzel {
    font-family: 'Cinzel', serif;
}

.font-devanagari {
    font-family: 'Rozha One', 'Noto Sans Devanagari', serif;
}

/* Editorial Calligraphic Watermarks */
.devanagari-watermark {
    font-family: 'Rozha One', 'Noto Sans Devanagari', serif;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    color: rgba(26, 77, 78, 0.045);
    white-space: nowrap;
}

/* Gold Foil Gradient Accents */
.text-gold-foil {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gold-foil {
    background: linear-gradient(135deg, #FBBF24 0%, #D97706 50%, #B45309 100%);
}

.border-gold-foil {
    border-image: linear-gradient(135deg, #FBBF24, #D97706, #B45309) 1;
}

/* Flat Button Utilities */
.btn-flat {
    border-radius: 0px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-flat:hover {
    transform: translateY(-2px);
}
.btn-flat:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer & Backdrop (Bulletproof Responsive CSS)
   -------------------------------------------------------------------------- */
#mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-soft-cream);
    border-left: 1px solid var(--color-outline-variant);
    z-index: 99999;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.3s ease, 
                visibility 0.35s ease;
    will-change: transform, opacity;
}

#mobile-drawer.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#mobile-drawer.closed {
    transform: translateX(100%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#drawer-backdrop {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity;
}

#drawer-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#drawer-backdrop.inactive {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   Custom Magnetic Cursor (Desktop Only)
   -------------------------------------------------------------------------- */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary-container);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s ease, 
                opacity 0.2s ease;
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(173, 0, 79, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.3s ease,
                background-color 0.3s ease;
}

/* Cursor Context States */
body.cursor-hover #custom-cursor {
    width: 6px;
    height: 6px;
    background-color: var(--color-marigold);
}

body.cursor-hover #cursor-follower {
    width: 54px;
    height: 54px;
    border-color: var(--color-marigold);
    background-color: rgba(217, 119, 6, 0.08);
}

body.cursor-view #cursor-follower {
    width: 76px;
    height: 76px;
    background-color: rgba(26, 77, 78, 0.92);
    border: none;
}

body.cursor-view #cursor-follower::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFF8F5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body.cursor-drag #cursor-follower {
    width: 80px;
    height: 80px;
    background-color: rgba(173, 0, 79, 0.95);
    border: none;
}

body.cursor-drag #cursor-follower::after {
    content: 'SLIDE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

@media (pointer: coarse), (max-width: 1024px) {
    #custom-cursor, #cursor-follower {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations
   -------------------------------------------------------------------------- */
.reveal-init {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   3D Tilt & Glass Shimmer Physics
   -------------------------------------------------------------------------- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tilt-inner {
    transform: translateZ(24px);
}

/* --------------------------------------------------------------------------
   Interactive Range Slider (Sponsorship Simulator)
   -------------------------------------------------------------------------- */
input[type="range"].luxury-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #E0BEC4;
    border-radius: 0px;
    outline: none;
}

input[type="range"].luxury-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #AD004F;
    cursor: pointer;
    border: 3px solid #FFF8F5;
    box-shadow: 0 2px 8px rgba(173, 0, 79, 0.4);
    border-radius: 0px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type="range"].luxury-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #D97706;
}

/* --------------------------------------------------------------------------
   Scroll Progress Top Bar
   -------------------------------------------------------------------------- */
#page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #AD004F, #D97706);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s ease-out;
}
