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

:root {
    --gold-primary: #D4AF37;
    --gold-light: #E5C158;
    --gold-dark: #AA7C11;
    --luxury-black: #0A0A0A;
    --luxury-dark: #121212;
    --luxury-cream: #FDFBF7;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--luxury-black);
    color: var(--luxury-cream);
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0A0A0A;
}
::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E5C158;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(10, 10, 10, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card {
    background: rgba(18, 18, 18, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 10px 30px -10px rgba(212, 175, 55, 0.15);
    transform: translateY(-4px);
}

/* Gold Gradient Effects */
.bg-gold-gradient {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
}

.text-gold-gradient {
    background: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.border-gold-gradient {
    border-image: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%) 1;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating-btn {
    animation: float 4s ease-in-out infinite;
}

/* Gold Shine Button Animation */
.btn-gold-shine {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-gold-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(30deg);
    transition: none;
}

.btn-gold-shine:hover::after {
    left: 120%;
    transition: all 0.8s ease-in-out;
}

/* Grid background for premium layout */
.grid-bg {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
}

/* Slider Customization */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 1. Header Scrolled State */
header,
.glass-nav {
    max-width: 100vw;
    overflow-x: clip;
}

.glass-nav > div {
    min-width: 0;
}

.glass-nav-scrolled {
    background: rgba(10, 10, 10, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-bottom-color: rgba(212, 175, 55, 0.25) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(212, 175, 55, 0.12) !important;
}


/* 2. Menu Link Underline Transition */
.nav-link-anim {
    position: relative;
}
.nav-link-anim::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-link-anim:hover::after {
    transform: scaleX(1);
}

/* 3. Ambient Spotlights */
.ambient-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.045) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

/* 4. Scroll Down Chevron Animation */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(12px); opacity: 1; }
}
.scroll-bounce {
    animation: bounce-slow 2.2s infinite ease-in-out;
}

/* 5. Enhanced Card Hover Zoom and Shadow Glows */
.glass-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid transparent;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212,175,55,0.2), transparent, rgba(212,175,55,0.1)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    transition: opacity 0.4s ease;
}
.glass-card:hover::before {
    opacity: 1;
}
.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.8), 0 0 25px rgba(212, 175, 55, 0.18);
    transform: translateY(-6px);
}

/* 6. Floating Action Double-Pulse Ring for WhatsApp */
@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}
.pulse-ring-1 {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    opacity: 0;
    animation: pulse-ring 2.5s infinite cubic-bezier(0.25, 0, 0, 1);
}
.pulse-ring-2 {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 1px solid #E5C158;
    opacity: 0;
    animation: pulse-ring 2.5s infinite cubic-bezier(0.25, 0, 0, 1);
    animation-delay: 0.8s;
}

/* Text Shifting Shine Effect for headers */
.shine-text {
    background: linear-gradient(90deg, #D4AF37 0%, #FFF 50%, #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine {
    to { background-position: 200% center; }
}

/* 7. Interactive Canvas Particle Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0; /* Behind all content but in front of body background grid */
}

/* 8. Premium Footer Background Gradient (Transparent to Dark) */
.premium-footer {
    position: relative;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.4) 20%, rgba(10, 10, 10, 0.8) 55%, #0A0A0A 100%) !important;
    border-top: 1px solid rgba(212, 175, 55, 0.08) !important;
}

/* 9. Mobile Menu Dropdown Hardware-Accelerated Smooth Animations */
#mobile-menu {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-out, 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu.open {
    max-height: 480px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* 10. Mobile Menu SVG Icon Transitions */
.hamburger-icon, .close-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease-out;
}
#menu-btn.open .hamburger-icon {
    transform: scale(0.5) rotate(90deg) !important;
    opacity: 0 !important;
}
#menu-btn.open .close-icon {
    transform: scale(1) rotate(0deg) !important;
    opacity: 1 !important;
}

@media (max-width: 640px) {
    /* Decorative oversized glow layers were creating horizontal scroll on narrow phones. */
    .ambient-spotlight {
        display: none !important;
    }

    #mobile-menu {
        right: 1rem !important;
        left: auto !important;
        width: min(15rem, calc(100vw - 2rem)) !important;
        max-width: calc(100vw - 2rem) !important;
    }

    .glass-nav .font-serif-luxury {
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .glass-nav .font-serif-luxury.text-xl {
        font-size: 1.05rem;
        letter-spacing: 0.14em;
    }

    .glass-nav span.tracking-\[0\.4em\] {
        letter-spacing: 0.28em;
    }
}


/* 11. Gold + Cream Theme Refresh */
:root {
    --cream-bg: #FFF8EA;
    --cream-surface: #FFFCF4;
    --cream-surface-strong: #F7EBD2;
    --cream-border: rgba(170, 124, 17, 0.22);
    --cream-text: #2C2114;
    --cream-muted: #6F5B3F;
}

html,
body {
    background: radial-gradient(circle at 20% 0%, rgba(212, 175, 55, 0.18), transparent 28%),
                linear-gradient(180deg, #FFFDF7 0%, var(--cream-bg) 45%, #F5E5C7 100%) !important;
    color: var(--cream-text) !important;
}

.grid-bg {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(170, 124, 17, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(170, 124, 17, 0.07) 1px, transparent 1px) !important;
}

.glass-nav {
    background: rgba(255, 248, 234, 0.86) !important;
    border-bottom: 1px solid rgba(170, 124, 17, 0.18) !important;
    box-shadow: 0 12px 30px -24px rgba(94, 64, 20, 0.55) !important;
}

.glass-nav-scrolled {
    background: rgba(255, 252, 244, 0.96) !important;
    border-bottom-color: rgba(170, 124, 17, 0.28) !important;
    box-shadow: 0 12px 30px -18px rgba(94, 64, 20, 0.38), 0 0 20px rgba(212, 175, 55, 0.12) !important;
}

/* Keep the Ada Butik logo permanently gold. */
.glass-nav .text-gold-gradient,
.premium-footer .text-gold-gradient,
.text-gold-gradient {
    background: linear-gradient(135deg, #A8740D 0%, #D4AF37 35%, #F4D56F 58%, #B38728 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.bg-luxury-black,
.bg-luxury-dark,
.bg-luxury-dark\/30,
.bg-luxury-dark\/50 {
    background-color: rgba(255, 252, 244, 0.82) !important;
}

.bg-black\/60 {
    background-color: rgba(255, 248, 234, 0.42) !important;
}

.text-luxury-cream,
.text-white,
.text-gray-300,
.text-gray-400,
.text-gray-500 {
    color: var(--cream-text) !important;
}

.text-gray-400,
.text-gray-500 {
    color: var(--cream-muted) !important;
}

.border-white\/30 {
    border-color: rgba(44, 33, 20, 0.30) !important;
}

.glass-card {
    background: rgba(255, 252, 244, 0.78) !important;
    border-color: var(--cream-border) !important;
    box-shadow: 0 16px 42px -28px rgba(94, 64, 20, 0.55) !important;
}

.glass-card:hover {
    border-color: rgba(170, 124, 17, 0.44) !important;
    box-shadow: 0 22px 48px -26px rgba(94, 64, 20, 0.58), 0 0 24px rgba(212, 175, 55, 0.16) !important;
}

#mobile-menu {
    background: rgba(255, 252, 244, 0.98) !important;
    border-color: rgba(170, 124, 17, 0.20) !important;
    box-shadow: 0 22px 48px -24px rgba(94, 64, 20, 0.60) !important;
}

#mobile-menu a:not(.bg-gradient-to-tr) {
    color: var(--cream-text) !important;
}

#mobile-menu a:hover,
.nav-link-anim:hover {
    color: var(--gold-dark) !important;
}

.premium-footer {
    background: linear-gradient(to bottom, rgba(255, 248, 234, 0) 0%, rgba(255, 248, 234, 0.82) 25%, #F5E5C7 100%) !important;
    border-top-color: rgba(170, 124, 17, 0.16) !important;
}

footer .border-t,
.border-y,
.border-t {
    border-color: rgba(170, 124, 17, 0.16) !important;
}

/* Buttons with dark text on gold should stay readable after cream conversion. */
.bg-gradient-to-tr,
.bg-gold-gradient {
    color: #22190F !important;
}

#bg-canvas {
    opacity: 0.42;
}

/* 12. New cream/gold boutique hero with readable text */
.hero-luxury .bg-black\/60 {
    background:
        radial-gradient(circle at center, rgba(22, 14, 8, 0.44) 0%, rgba(22, 14, 8, 0.26) 34%, rgba(255, 248, 234, 0.10) 72%),
        linear-gradient(90deg, rgba(20, 13, 8, 0.22) 0%, rgba(20, 13, 8, 0.34) 50%, rgba(255, 248, 234, 0.08) 100%) !important;
}

.hero-content-panel {
    padding: clamp(1.35rem, 3vw, 2.6rem);
    border-radius: 1.75rem;
    background: linear-gradient(135deg, rgba(28, 18, 10, 0.56), rgba(28, 18, 10, 0.30));
    border: 1px solid rgba(244, 213, 111, 0.22);
    box-shadow: 0 28px 70px -30px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-luxury .hero-content-panel h1,
.hero-luxury .hero-content-panel p,
.hero-luxury .hero-content-panel .text-white,
.hero-luxury .hero-content-panel .text-gray-300 {
    color: #FFFDF7 !important;
}

.hero-luxury .hero-content-panel p {
    color: rgba(255, 253, 247, 0.92) !important;
}

.hero-luxury .hero-content-panel > span {
    background: rgba(255, 248, 234, 0.16) !important;
    border-color: rgba(244, 213, 111, 0.45) !important;
    color: #F4D56F !important;
}

.hero-luxury .hero-content-panel a.border {
    background: rgba(255, 253, 247, 0.12) !important;
    border-color: rgba(255, 253, 247, 0.58) !important;
    color: #FFFDF7 !important;
}

.hero-luxury .hero-content-panel a.border:hover {
    border-color: var(--gold-light) !important;
    color: var(--gold-light) !important;
}

@media (max-width: 640px) {
    .hero-content-panel {
        width: min(100%, 34rem);
        border-radius: 1.25rem;
        padding: 1.2rem 1rem;
        background: linear-gradient(135deg, rgba(28, 18, 10, 0.62), rgba(28, 18, 10, 0.38));
    }
}
