/* Custom styles for Great American Driving School */

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

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation classes */
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.animate-slide-up-delay {
    animation: slideUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4A1628;
}

/* Pattern background */
.pattern-bg {
    background-color: #F9F0F3;
    background-image: radial-gradient(#681F3A 0.5px, transparent 0.5px), radial-gradient(#681F3A 0.5px, #F9F0F3 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
}

/* Accent line */
.accent-line {
    height: 3px;
    background: linear-gradient(90deg, #681F3A, #F9F0F3);
    width: 80px;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(104, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

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

/* Hover effects for cards */
.group:hover .group-hover\:bg-burgundy {
    background-color: #681F3A;
}

.group:hover .group-hover\:text-white {
    color: #fff;
}

.group:hover .group-hover\:border-white {
    border-color: #fff;
}

/* Button hover effects */
button:hover,
a:hover {
    transition: all 0.3s ease;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(104, 31, 58, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-position: 70% center;
    }
    
    .font-serif {
        font-size: 2.5rem;
    }
}
