/* Custom styles for Sweetas2westcovina */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #060a06;
}
::-webkit-scrollbar-thumb {
    background: #1c3a1c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2d5e2d;
}

/* Selection color */
::selection {
    background: rgba(201, 162, 39, 0.3);
    color: #faf9f6;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(6, 10, 6, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 162, 39, 0.1);
}

/* Mobile menu open state */
#mobileMenu.menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Hamburger animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    width: 20px;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Gold shimmer effect for buttons */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--rotate, 0deg)); }
}

@media (prefers-reduced-motion: no-preference) {
    .lg\:block .absolute {
        animation: float 6s ease-in-out infinite;
    }
    .lg\:block .absolute:nth-child(2) {
        animation-delay: -1.5s;
    }
    .lg\:block .absolute:nth-child(3) {
        animation-delay: -3s;
    }
    .lg\:block .absolute:nth-child(4) {
        animation-delay: -4.5s;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c9a227;
    outline-offset: 2px;
}

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

/* Mobile link transition */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
}
#mobileMenu.menu-open .mobile-link {
    opacity: 1;
    transform: none;
}
#mobileMenu.menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
