/* Custom styles for Mochinut Mall of America */

* {
    scroll-behavior: smooth;
}

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

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(15, 29, 74, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

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

/* Selection color */
::selection {
    background: rgba(74, 222, 128, 0.3);
    color: #f0f4ff;
}

/* Subtle float animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Pulse glow for CTAs */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.3); }
    50% { box-shadow: 0 0 40px rgba(74, 222, 128, 0.6); }
}

/* Fade in for scroll sections */
.fade-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* 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;
    }
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card hover glow */
.group:hover .group-hover\:scale-105 {
    transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Gradient text utility */
.text-gradient-mint {
    background: linear-gradient(135deg, #86efac 0%, #4ade80 50%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ensure images don't cause layout shift */
img {
    max-width: 100%;
    height: auto;
}

/* Map filter override for light mode */
.dark-map {
    filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(1.1) !important;
}
