/* ============================================
   Heavenly Scent By Rita — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* --- Selection --- */
::selection {
    background: rgba(149, 29, 65, 0.15);
    color: #7a1a3a;
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(254, 252, 251, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(139, 26, 77, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #b82550, #d94070);
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.mobile-menu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.mobile-menu.inactive {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-link:hover {
    color: #d94070;
    transform: translateY(-2px);
}

/* Menu button animation */
#menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 24px;
}

/* --- Hero Decorations --- */
.hero-decor {
    opacity: 0;
    animation: floatIn 1.2s ease forwards;
}

.hero-decor:nth-child(1) { animation-delay: 0.2s; }
.hero-decor:nth-child(2) { animation-delay: 0.4s; }
.hero-decor:nth-child(3) { animation-delay: 0.6s; }
.hero-decor:nth-child(4) { animation-delay: 0.7s; }
.hero-decor:nth-child(5) { animation-delay: 0.8s; }
.hero-decor:nth-child(6) { animation-delay: 0.9s; }

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
    }
    
    .reveal-up.visible,
    .reveal-left.visible,
    .reveal-right.visible {
        opacity: 1;
        transform: none;
    }
}

/* --- Product Card Hover --- */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* --- Button Focus --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d94070;
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- Image lazy load placeholder --- */
img {
    background: linear-gradient(135deg, #fce7ef 0%, #fad0e0 50%, #fce7ef 100%);
    background-size: 200% 200%;
    animation: shimmer 1.5s ease-in-out infinite;
}

img[src] {
    animation: none;
    background: none;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Subtle gradient overlays --- */
.gradient-burgundy {
    background: linear-gradient(135deg, #671834 0%, #951d41 50%, #b82550 100%);
}

/* --- Custom scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #fefcfb;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f5a8c0, #d94070);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d94070, #951d41);
}

/* --- Print styles --- */
@media print {
    #navbar,
    .hero-decor,
    iframe {
        display: none;
    }
    
    body {
        color: #1c1917;
        background: white;
    }
}
