/* Custom styles for Alicia's Spices */

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

/* Floating animations for hero decorative elements */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(3deg); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-3deg); }
}

.float-1 { animation: float1 6s ease-in-out infinite; }
.float-2 { animation: float2 8s ease-in-out infinite; }
.float-3 { animation: float3 7s ease-in-out infinite; }
.float-4 { animation: float4 9s ease-in-out infinite; }

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #F5A623;
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Scroll reveal animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
    }
    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(123, 45, 142, 0.1);
}

.nav-scrolled .nav-logo-text {
    color: #7B2D8E !important;
}

.nav-scrolled .nav-link {
    color: #5C1F67 !important;
}

/* Mobile menu */
.mobile-link {
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0 -12px;
}

.mobile-link:hover {
    background: #F3E0F7;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #A84DB8;
}

/* Selection color */
::selection {
    background: #E8C5EF;
    color: #3D1342;
}

/* Focus visible */
:focus-visible {
    outline: 3px solid #F5A623;
    outline-offset: 2px;
    border-radius: 8px;
}

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

/* Image aspect ratio utilities */
img {
    max-width: 100%;
    height: auto;
}

/* Subtle pattern overlay for sections */
.bg-pattern {
    background-image: radial-gradient(circle at 25% 25%, rgba(245, 166, 35, 0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(123, 45, 142, 0.03) 0%, transparent 50%);
}
