/* Custom styles for Haynie's Corner Brewing Company */

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

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@keyframes bobble {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.1; }
}

@keyframes bobble-delayed {
    0%, 100% { transform: scale(1); opacity: 0.25; }
    50% { transform: scale(1.5); opacity: 0.08; }
}

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

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

.animate-bobble {
    animation: bobble 3s ease-in-out infinite;
}

.animate-bobble-delayed {
    animation: bobble-delayed 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(255, 253, 249, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(185, 28, 28, 0.08);
}

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

/* Mobile menu transitions */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #b91c1c;
    transition: width 0.3s ease;
}

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

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

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

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

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

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

/* Focus styles for accessibility */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

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

/* Selection color */
::selection {
    background: #f9d0d0;
    color: #831414;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
}

/* Print styles */
@media print {
    nav,
    #contact,
    .animate-float,
    .animate-float-delayed {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
