/* ==========================================================================
   AMANRUGSIN OPULENT LUXURY BRAND PALETTE & CORE STRUCTURAL RULES
   ========================================================================== */

:root {
    --primary-color: #5C3B1E;     /* Royal Muted Walnut Walnut */
    --secondary-color: #C89B3C;   /* Luxury Burnished Gold Accent */
    --light-bg: #F8F6F2;          /* Soft Ivory Cream */
    --dark-neutral: #222222;      /* Deep Onyx Charcoal */
    --white: #FFFFFF;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Typographical Resets */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--dark-neutral);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.tracking-wide { tracking-spacing: 0.05em; letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.15em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.gold-text { color: var(--secondary-color) !important; }
.text-light-gold { color: #EAD096 !important; }

/* Custom Button Overrides & Global Fills */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #442B15;
    border-color: #442B15;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}
.btn-secondary:hover, .btn-secondary:focus {
    background-color: #B2872F;
    border-color: #B2872F;
    color: var(--white);
}

/* Glassmorphism Structural Classes */
.glassmorphism {
    background: rgba(92, 59, 30, 0.75) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Progress Bar styling */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Section Spacers */
.section-padding {
    padding: 100px 0;
}
.section-divider {
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

/* Navbar Interactive Styling */
#mainNav {
    padding: 20px 0;
    transition: var(--transition-smooth);
}
#mainNav.scrolled {
    background-color: rgba(34, 34, 34, 0.95) !important;
    backdrop-filter: blur(8px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}
#mainNav.scrolled .navbar-brand .brand-text {
    color: var(--secondary-color);
}
.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85) !important;
    position: relative;
    padding: 8px 15px !important;
    transition: var(--transition-smooth);
}
.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

/* Hero Screen Architecture */
.hero-section {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1576016770956-debb63d900bb?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(34,34,34,0.9) 0%, rgba(57,37,19,0.75) 100%);
    z-index: 1;
}
.logo-placeholder {
    width: 70px; height: 70px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    background: rgba(34,34,34,0.5);
}

/* Scroll Mouse Element Animation */
.scroll-indicator {
    bottom: 30px;
    z-index: 2;
}
.mouse {
    width: 26px; height: 42px;
    border: 2px solid var(--white);
    border-radius: 20px;
    margin: 0 auto;
    position: relative;
}
.wheel {
    width: 4px; height: 8px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}
@keyframes scrollMouse {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 22px; }
}

/* Card Zoom and Hover Translation Matrices */
.img-hover-zoom {
    overflow: hidden;
}
.img-hover-zoom img {
    transition: var(--transition-smooth);
}
.collection-card:hover .img-hover-zoom img {
    transform: scale(1.1);
}
.collection-card {
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05) !important;
}
.collection-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08) !important;
}

/* Hover Translate generic */
.hover-translate-up:hover {
    transform: translateY(-5px);
}

/* Gallery Zoom overlays */
.custom-gallery-link .gallery-overlay {
    background: rgba(92, 59, 30, 0.85);
    opacity: 0;
    transition: var(--transition-smooth);
}
.custom-gallery-link:hover .gallery-overlay {
    opacity: 1;
}
.img-zoom-effect {
    transition: var(--transition-smooth);
}
.custom-gallery-link:hover .img-zoom-effect {
    transform: scale(1.05);
}

/* Footer Accent Interactions */
.hover-gold:hover {
    color: var(--secondary-color) !important;
}

/* Interactive Ripple Simulation */
.ripple-btn {
    position: relative;
    overflow: hidden;
}
/* Add this at the bottom of your style.css file */
#loader {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader:not(.show) {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Fallback: Force hide the loader if it gets stuck for more than 3 seconds */
@keyframes autoHideLoader {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
#loader {
    animation: autoHideLoader 0.5s forwards;
    animation-delay: 3s; /* Automatically forces the page open after 3 seconds */
}