/* Custom styles for Ivory's Boutique Exclusive */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar scroll state */
.nav-text-white {
    color: #0a1a2e;
    transition: color 0.4s ease;
}

.nav-text-muted {
    color: #1fa36c;
    transition: color 0.4s ease;
}

.nav-link {
    color: #1b3a66;
    transition: color 0.3s ease;
}

/* When navbar is scrolled/dark */
header.scrolled .nav-text-white {
    color: #f0f4f8;
}

header.scrolled .nav-text-muted {
    color: #8ae5c0;
}

header.scrolled .nav-link {
    color: #d4e2f4;
}

header.scrolled .nav-link:hover {
    color: #8ae5c0;
}

/* Active state for mobile menu icon */
body.menu-open #menuIcon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.menu-open #menuIcon span:nth-child(2) {
    opacity: 0;
}

body.menu-open #menuIcon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile menu animations */
body.menu-open #mobileMenu {
    opacity: 1;
    pointer-events: all;
}

/* Scroll reveal base styles */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group:hover img {
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #a8c0e8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c9edc;
}

/* Selection color */
::selection {
    background: #bdf0db;
    color: #0a1a2e;
}

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

/* Mobile menu link animations */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

body.menu-open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-menu-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }

/* Subtle pulse for the badge dot */
@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: softPulse 2s ease-in-out infinite;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f8 0%, #e0f7ed 100%);
}
