/* Custom styles for Oma's Bakery */

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

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

::-webkit-scrollbar-track {
    background: #1f2937;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Selection color */
::selection {
    background-color: rgba(247, 110, 63, 0.3);
    color: #f6f6f7;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll reveal classes */
.reveal-up {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-left {
    opacity: 1;
    animation: fadeInLeft 0.8s ease-out forwards;
}

.reveal-right {
    opacity: 1;
    animation: fadeInRight 0.8s ease-out forwards;
}

/* Staggered animation delays */
.reveal-up:nth-child(1) { animation-delay: 0ms; }
.reveal-up:nth-child(2) { animation-delay: 100ms; }
.reveal-up:nth-child(3) { animation-delay: 200ms; }
.reveal-up:nth-child(4) { animation-delay: 300ms; }
.reveal-up:nth-child(5) { animation-delay: 400ms; }
.reveal-up:nth-child(6) { animation-delay: 500ms; }

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        animation: none;
    }
}

/* Hero text glow effect */
h1 span.text-coral-400 {
    text-shadow: 0 0 40px rgba(247, 110, 63, 0.3);
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(19, 24, 32, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Image hover zoom with overflow hidden */
.relative.overflow-hidden img {
    transform: translateZ(0);
}

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

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

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

/* Card hover effects */
.group:hover .group-hover\\:scale-110 {
    transform: scale(1.1);
}

/* Subtle pattern overlay for sections */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

section {
    position: relative;
}
