/* Custom styles for Valerio's Restaurant */

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

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

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

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

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

/* Selection color */
::selection {
    background: rgba(217, 119, 6, 0.3);
    color: #fff;
}

/* Date input styling override */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* Subtle entrance animations for below-fold sections */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Navbar transition */
.navbar-scrolled {
    background: rgba(10, 29, 39, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile menu animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Button hover lift */
button:hover,
a[href="#contact"]:hover {
    transform: translateY(-1px);
}

button:active,
a[href="#contact"]:active {
    transform: translateY(0);
}

/* Image hover zoom */
.rounded-sm.overflow-hidden img {
    transition: transform 0.6s ease;
}

.rounded-sm.overflow-hidden:hover img {
    transform: scale(1.03);
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
