/* Custom styles for Northwest Trucking Academy */

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

/* Scroll reveal base - content always visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply hidden state when JS is active and reduced motion is off */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal[data-revealed="false"] {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(2, 6, 23, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.1);
}

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

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

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: #f0fdfa;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Subtle gradient border effect on hover */
.group:hover .group-hover\:border-teal-700\/60 {
    border-color: rgba(45, 212, 191, 0.6);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button focus states */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 2px;
}

/* Input focus visible */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        transition: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Wide screen adjustments */
@media (min-width: 1920px) {
    .max-w-7xl {
        max-width: 80rem;
    }
}

/* Print styles */
@media print {
    nav, #mobile-menu-btn, #mobile-menu {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .bg-slate-950, .bg-slate-900 {
        background: white !important;
    }
    
    .text-white, .text-slate-200, .text-slate-300 {
        color: black !important;
    }
    
    .text-slate-400, .text-slate-500 {
        color: #333 !important;
    }
}
