/* Custom styles for Candi's Diner */

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

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 245, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(128, 0, 32, 0.1);
}

/* Mobile menu animations */
#mobile-menu.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu button active state */
#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: 5px;
}

/* Mobile link hover */
.mobile-link:hover {
    color: #FF8FA3;
    padding-left: 8px;
    transition: all 0.2s ease;
}

/* Geometric shape floating animation */
[data-shape] {
    animation: float 6s ease-in-out infinite;
}
[data-shape="square"] { animation-delay: -1s; animation-duration: 7s; }
[data-shape="square-sm"] { animation-delay: -2s; animation-duration: 5s; }
[data-shape="circle"] { animation-delay: -3s; animation-duration: 8s; }
[data-shape="circle-lg"] { animation-delay: -0.5s; animation-duration: 9s; }
[data-shape="dot"] { animation-delay: -1.5s; animation-duration: 4s; }
[data-shape="dot-sm"] { animation-delay: -2.5s; animation-duration: 5s; }
[data-shape="square-xs"] { animation-delay: -4s; animation-duration: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
    50% { transform: translateY(-15px) rotate(var(--rotation, 0deg)); }
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered reveal delays */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Button hover effects */
a:hover {
    transition: all 0.2s ease;
}

/* Image hover zoom */
img {
    transition: transform 0.5s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #FFF5F7;
}
::-webkit-scrollbar-thumb {
    background: #800020;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #5C0017;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 3px solid #FFB6C1;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
}
