/* Custom styles for Vintage Bakery */

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

/* Custom font styles */
.font-display {
    letter-spacing: -0.02em;
}

/* Animation keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Scroll reveal animations - progressive enhancement */
/* Default state: visible (works without JS) */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Only apply animations when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    /* Active state - applied by JS */
    .reveal-up.is-visible,
    .reveal-left.is-visible,
    .reveal-right.is-visible {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* Navbar styles */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f5a623, #ffc42e);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 100%;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(78, 44, 63, 0.08);
}

.navbar-scrolled .nav-link {
    color: #5e334b;
}

.navbar-scrolled .nav-link::after {
    background: linear-gradient(90deg, #f5a623, #ffc42e);
}

/* Mobile menu animations */
.mobile-nav-link {
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, #f5a623, #ffc42e);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.mobile-nav-link:hover::before {
    height: 60%;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d9b3c7, #c28aad);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c28aad, #a55f8a);
}

/* Selection color */
::selection {
    background: #d9b3c7;
    color: #2d1522;
}

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

/* Button hover effects */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5ecef 0%, #ebd6df 100%);
}

/* Subtle pattern overlay for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(165, 95, 138, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a55f8a, #f5a623);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Soft shadow variants */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(78, 44, 63, 0.08);
}

.shadow-soft-lg {
    box-shadow: 0 8px 40px rgba(78, 44, 63, 0.12);
}

/* Card hover lift effect */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(78, 44, 63, 0.15);
}
