/* === Custom Styles for Taco Rodz === */

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

/* Selection color */
::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #E8DCC8;
}

/* === Navbar transitions === */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(13, 10, 8, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* === Hero animations === */
.hero-element {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards;
}

.hero-element:nth-child(1) { animation-delay: 0.1s; }
.hero-element:nth-child(2) { animation-delay: 0.3s; }
.hero-element:nth-child(3) { animation-delay: 0.5s; }
.hero-element:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Scroll reveal elements === */
.about-element,
.menu-element,
.exp-element,
.gallery-element,
.visit-element {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
}

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

/* === Gold gradient text effect === */
.gold-gradient-text {
    background: linear-gradient(135deg, #C9A84C 0%, #E5C76B 50%, #8A7235 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Image hover effects === */
img {
    transition: transform 0.7s ease;
}

/* === Button hover effects === */
a, button {
    transition: all 0.3s ease;
}

/* === Mobile menu === */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-open .mobile-link:nth-child(6) { transition-delay: 0.35s; }

/* === Form focus styles === */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3);
}

/* === 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;
    }
    
    .reveal-hidden {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #C9A84C, #8A7235);
    border-radius: 4px;
}

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

/* === Image aspect ratio utilities === */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* === Focus visible for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 2px;
    border-radius: 2px;
}

/* === Parallax-like subtle movement === */
@media (prefers-reduced-motion: no-preference) {
    .bg-hero-overlay {
        will-change: transform;
    }
}
