/* Custom styles for Four Corners Driving School */

/* Smooth scroll offset for fixed navbar */
section[id] {
    scroll-margin-top: 80px;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #771a34, #dc4c76);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Testimonial card hover effect */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(119, 26, 52, 0.1) !important;
}

/* Geometric decoration */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

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

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

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

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

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 76, 118, 0.15);
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Animation for scroll reveal */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Hero image gradient overlay */
.hero-image-overlay {
    background: linear-gradient(135deg, rgba(119, 26, 52, 0.1) 0%, rgba(255, 249, 245, 0) 100%);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

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

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

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

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 76, 118, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(220, 76, 118, 0); }
}

.pulse-glow:hover {
    animation: pulse-glow 1.5s ease-in-out infinite;
}
