/* Custom styles for Mineral King School of Driving */

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

/* Base styles */
body {
    font-family: 'Lato', sans-serif;
    background-color: #faf8f5;
    color: #3d3530;
    line-height: 1.6;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

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

.nav-link:hover {
    color: #9d174d;
}

/* Hero card stats */
.stat-card {
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(131, 20, 67, 0.15);
}

/* Service cards */
.service-card {
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #fbcfe8;
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(131, 20, 67, 0.12);
}

.service-card .icon-wrapper {
    transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
    background: #9d174d;
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .icon-wrapper svg {
    color: #fbbf24;
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #9d174d 0%, #be185d 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-secondary {
    border: 2px solid #9d174d;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #9d174d;
    color: white;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Decorative elements */
.ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #9d174d, #f59e0b);
}

/* Testimonial cards */
.testimonial-card {
    background: white;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: #fce7f3;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Form styles */
.form-input {
    border: 1px solid #fbcfe8;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(157, 23, 77, 0.1);
    outline: none;
}

/* Footer */
.footer-link {
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fbbf24;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #fbcfe8, transparent);
}

/* Image hover zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

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

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

.float-animation-delay {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2rem;
    }
    
    .stat-card {
        position: relative;
        margin-bottom: 1rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
