/* Custom styles for Saieda Party Store */

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

/* Navbar transition states */
.nav-text {
    transition: color 0.4s ease;
}

/* Hero image hover */
#hero img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Product card image zoom */
.group:hover img {
    transform: scale(1.05);
}

/* Scroll reveal base - content is visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal hidden state (applied by JS) */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Mobile menu */
#mobileMenu {
    transition: opacity 0.4s ease, pointer-events 0.4s ease;
}

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

/* Menu lines animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#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.25rem;
}

/* Mobile links */
.mobile-link {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Floating card animation */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Custom selection color */
::selection {
    background-color: rgb(168 38 63 / 0.2);
    color: rgb(62 12 22);
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgb(168 38 63);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image loading placeholder */
img {
    background-color: rgb(253 240 242);
}

/* Subtle gradient border on cards */
.card-gradient-border {
    position: relative;
}

.card-gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgb(252 228 232), rgb(247 167 181), rgb(252 228 232));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Parallax-like subtle movement for hero decorations */
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -10px) scale(1.02); }
    66% { transform: translate(-5px, 5px) scale(0.98); }
}

.hero-blob {
    animation: drift 20s ease-in-out infinite;
}

.hero-blob:nth-child(2) {
    animation-delay: -7s;
    animation-duration: 25s;
}

.hero-blob:nth-child(3) {
    animation-delay: -14s;
    animation-duration: 18s;
}

/* Navbar glass effect on scroll */
nav.scrolled {
    background-color: rgb(255 253 249 / 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgb(168 38 63 / 0.08);
}

nav.scrolled .nav-text {
    color: rgb(124 32 52);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal:not(.revealed) {
        opacity: 1;
        transform: none;
    }
}
