/* Custom styles for Albi's Pizza */

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

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

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

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

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

/* Navbar transition */
.navbar-scrolled {
    background: rgba(253, 249, 243, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(28, 25, 23, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #1C1917;
}

/* Scroll line animation */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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; }

/* Menu line animations */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

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

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

/* Menu category hover */
.menu-category {
    border-bottom: 1px solid #EDC9A0;
    padding-bottom: 2rem;
}

.menu-category:last-child {
    border-bottom: none;
}

/* Image hover effects */
.rounded-2xl.overflow-hidden {
    transition: box-shadow 0.4s ease;
}

.rounded-2xl.overflow-hidden:hover {
    box-shadow: 0 20px 60px rgba(28, 25, 23, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-line {
        animation: none;
    }
    
    .rounded-2xl.overflow-hidden img,
    .rounded-2xl.overflow-hidden {
        transition: none;
    }
    
    .rounded-2xl.overflow-hidden:hover img {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .font-serif.text-3xl {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, #contact, .scroll-line, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
