/* Custom styles for Ms Cuddles Pupcakes */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Reveal animations — progressive enhancement, only when JS runs */
@media (prefers-reduced-motion: no-preference) {
    .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);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(15, 22, 32, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Menu lines animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
}

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

::-webkit-scrollbar-track {
    background: #0f1620;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #4a6ea5;
}

/* Selection color */
::selection {
    background: rgba(157, 208, 186, 0.3);
    color: #f0f3f8;
}

/* Map dark mode override */
iframe[title] {
    border-radius: 1rem;
}

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

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