/* Custom styles for the defensive driving website */

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Quiz option styles */
.quiz-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.quiz-option:hover {
    background-color: #eef2ff;
    border-color: #4f46e5;
}

.quiz-option.selected {
    background-color: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.quiz-option.correct {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.quiz-option.incorrect {
    background-color: #ef4444;
    border-color: #ef4444;
    color: white;
}

.quiz-option.disabled {
    pointer-events: none;
    opacity: 0.7;
}

/* Pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Star rating */
.star-rating {
    color: #fbbf24;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-center {
        text-align: center;
    }
}

/* Print styles for certificate */
@media print {
    nav, footer, .no-print {
        display: none !important;
    }
}
