/* Custom styles for GBC - The Good Brewing Company */

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

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

::-webkit-scrollbar-track {
    background: #0a1128;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #2bb388;
}

/* Selection color */
::selection {
    background-color: #52cba8;
    color: #0a1128;
}

/* Slow zoom animation for hero */
@keyframes slow-zoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-out forwards;
}

/* Fade in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .animate-slow-zoom {
        animation: none;
    }
    
    .fade-in-up {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#mobile-menu.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background-color: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(43, 179, 136, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(43, 179, 136, 0.5);
}

/* Button hover effects */
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(43, 179, 136, 0.3);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Image hover effects */
img {
    transition: transform 0.7s ease;
}

/* Link underline animation */
a {
    text-decoration: none;
}

/* Custom underline for nav links */
nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #52cba8;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Ensure all text has proper contrast */
.text-white\/60 {
    color: rgba(255, 255, 255, 0.6);
}

.text-white\/50 {
    color: rgba(255, 255, 255, 0.5);
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7);
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.5rem;
    }
    
    .font-serif.text-5xl {
        font-size: 3rem;
    }
}
