/* Custom Styles for Pizza Hut Express */

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

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

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

::-webkit-scrollbar-thumb {
    background: #7a2032;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #96253a;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-scrolled .nav-link {
    color: #374151 !important;
}

.navbar-scrolled .mobile-menu-btn svg {
    stroke: #374151 !important;
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(0);
}

/* Only apply animations when JavaScript is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        transform: translateY(30px);
        opacity: 0;
    }
    
    .reveal-left {
        transform: translateX(-30px);
        opacity: 0;
    }
    
    .reveal-right {
        transform: translateX(30px);
        opacity: 0;
    }
}

/* Mobile Menu Transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.active {
    max-height: 400px;
}

/* Button Hover Effects */
a:hover {
    transition: all 0.3s ease;
}

/* Image Hover Zoom */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7a2032;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading State for Images */
img {
    background-color: #fce7eb;
}

/* Print Styles */
@media print {
    nav,
    #mobile-menu-btn,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-burgundy-900,
    .bg-burgundy-800 {
        background: #7a2032 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Tablet and Below */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(2rem, 5vw, 3rem);
    }
}

/* Subtle Pattern Overlay for Hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(56, 10, 19, 0.85) 0%,
        rgba(122, 32, 50, 0.75) 50%,
        rgba(56, 10, 19, 0.9) 100%
    );
    z-index: 1;
}

#hero > .relative {
    position: relative;
    z-index: 2;
}
