/* Custom styles for Alameda Tacos */

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

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

.nav-scrolled .nav-text {
    color: #fff !important;
}

.nav-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* Floating card animations */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    animation-delay: -1.5s;
}

.floating-card:nth-child(3) {
    animation-delay: -3s;
}

.floating-card:nth-child(4) {
    animation-delay: -4.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

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

.mobile-nav-link {
    opacity: 1;
}

/* Hamburger animation */
.menu-line:nth-child(1) {
    transform-origin: center;
}

.menu-line:nth-child(2) {
    transform-origin: center;
}

.menu-line:nth-child(3) {
    transform-origin: center;
}

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

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #a21878;
}

/* Selection color */
::selection {
    background: #d946a8;
    color: white;
}

/* Form focus styles */
input:focus,
textarea:focus {
    border-color: #d946a8 !important;
    box-shadow: 0 0 0 3px rgba(217, 70, 168, 0.15) !important;
}

/* Button hover effects */
a, button {
    -webkit-tap-highlight-color: transparent;
}

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

/* Tablet and larger adjustments */
@media (min-width: 768px) {
    .floating-card:nth-child(1) {
        animation-delay: 0s;
    }
    .floating-card:nth-child(2) {
        animation-delay: -2s;
    }
    .floating-card:nth-child(3) {
        animation-delay: -4s;
    }
    .floating-card:nth-child(4) {
        animation-delay: -1s;
    }
}
