/* Custom styles for Sweet Tea and Moonshine */

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply animations */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Intersection Observer animations */
.observe-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.observe-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.stagger-children .observe-animate:nth-child(1) { transition-delay: 0.1s; }
.stagger-children .observe-animate:nth-child(2) { transition-delay: 0.2s; }
.stagger-children .observe-animate:nth-child(3) { transition-delay: 0.3s; }
.stagger-children .observe-animate:nth-child(4) { transition-delay: 0.4s; }
.stagger-children .observe-animate:nth-child(5) { transition-delay: 0.5s; }
.stagger-children .observe-animate:nth-child(6) { transition-delay: 0.6s; }

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

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

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

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

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid #F97316;
    outline-offset: 2px;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Hero parallax effect */
.hero-bg {
    will-change: transform;
}

/* Custom selection color */
::selection {
    background: #F97316;
    color: white;
}

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