/* === Custom Styles for Modern Fashion === */

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Scroll Reveal Animations === */
/* Default state: visible (progressive enhancement) */
.reveal,
.reveal-up {
    opacity: 1;
    transform: none;
    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);
}

.reveal {
    transform: translateY(0);
}

.reveal-up {
    transform: translateY(0);
}

/* Animated state — applied via JS for below-fold content */
@media (prefers-reduced-motion: no-preference) {
    .reveal.animated {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal-up.animated {
        opacity: 0;
        transform: translateY(32px);
    }
}

/* === Floating Cards === */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.floating-card:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 5.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* === Card Hero Main === */
.card-hero-main {
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px -12px rgba(47, 78, 54, 0.25);
}

/* === Navbar === */
.nav-scrolled {
    background: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(47, 78, 54, 0.08);
}

.nav-scrolled #navbar a.text-forest-800 {
    color: #2f4e36;
}

/* === Mobile Menu === */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* === Button Focus States === */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #4a7c56;
    outline-offset: 2px;
}

/* === Selection === */
::selection {
    background: #c5dfcc;
    color: #1f3324;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c5dfcc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #98c4a3;
}

/* === Mobile menu animation === */
#bar1 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#bar2 {
    transition: opacity 0.3s ease;
}

#bar3 {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-active #bar1 {
    transform: translateY(4px) rotate(45deg);
}

.menu-active #bar2 {
    opacity: 0;
}

.menu-active #bar3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}
