/* Custom styles for Chefskitchen2024 */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0f1a;
}
::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c12246;
}

/* Selection color */
::selection {
    background: rgba(193, 34, 70, 0.4);
    color: #fce7eb;
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 15, 26, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(193, 34, 70, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-animated {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger-animated > * {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-stagger-animated.revealed > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger-animated.revealed > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger-animated.revealed > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger-animated.revealed > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger-animated.revealed > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger-animated.revealed > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger-animated.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu animation */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* Pulse animation for dot */
@keyframes pulse-burgundy {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hover glow for cards */
.group:hover .group-hover\:shadow-burgundy-500\/30 {
    box-shadow: 0 20px 60px rgba(193, 34, 70, 0.15);
}

/* Image hover zoom */
.group img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c12246;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal-animated,
    .reveal-stagger-animated > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .group img {
        transition: none;
    }
    @keyframes slideDown {
        from { opacity: 1; transform: none; }
        to { opacity: 1; transform: none; }
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}
