/* Custom styles for DriverZ SPIDER Driving Schools */

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero decorative lines */
.hero-deco-line {
    position: absolute;
    width: 1px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #14b8a6, transparent);
    opacity: 0.3;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Smooth image zoom on hover */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.6s ease;
}

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

/* Navbar active state */
.nav-link-active {
    color: #14b8a6;
}

/* Custom focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Decorative pattern */
.pattern-dots {
    background-image: radial-gradient(circle, #14b8a6 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #14b8a6, #0d9488);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0d9488, #0f766e);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-teal-600 {
        background-color: #0f766e;
    }
    
    .text-teal-600 {
        color: #0f766e;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .font-serif {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1023px) {
    .font-serif {
        font-size: 3rem;
    }
}
