/* Custom styles for Central Phoenix Traffic School */

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

/* Base styles */
body {
    background-color: #0A1628;
    color: #ffffff;
}

/* Hero asymmetric layout adjustments */
@media (min-width: 1024px) {
    .hero-asymmetric {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* Service card hover effects */
.service-card {
    background: linear-gradient(135deg, #0A1628 0%, #132240 100%);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(94, 234, 212, 0.1);
}

/* Button animations */
.cta-button {
    box-shadow: 0 4px 15px rgba(94, 234, 212, 0.2);
}

.cta-button:hover {
    box-shadow: 0 8px 25px rgba(94, 234, 212, 0.3);
    transform: translateY(-2px);
}

/* Navigation active state */
.nav-link.active::after {
    width: 100%;
}

/* Form focus states */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1);
}

/* Custom selection color */
::selection {
    background-color: #5EEAD4;
    color: #0A1628;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, #5EEAD4 0%, #34D399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border-width: 2px;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #5EEAD4;
    outline-offset: 2px;
}

/* Loading state for buttons */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
}
