/* ============================================
   Beauty by Alyna — Custom Styles
   ============================================ */

/* Reset & Base */
*, *::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;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

.nav-logo-text {
    transition: color 0.4s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
    color: #022c22;
}

#navbar.scrolled .nav-logo-text {
    color: #022c22;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #059669;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

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

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

/* Menu Button Animation */
.menu-line {
    transform-origin: center;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-image-wrapper {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Marquee Animation
   ============================================ */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Scroll Reveal (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .section-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .section-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered delays */
    .section-reveal:nth-child(2) { transition-delay: 0.1s; }
    .section-reveal:nth-child(3) { transition-delay: 0.2s; }
    .section-reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Ensure content is visible without JS */
.no-js .section-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Typography Tweaks
   ============================================ */
.font-serif {
    text-wrap: pretty;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #064e3b;
    color: #fefdf8;
}

::-moz-selection {
    background: #064e3b;
    color: #fefdf8;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        text-wrap: wrap;
    }
}
