/* Custom styles for Dallas Language Institute */

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

/* Navbar transitions */
.nav-link {
    position: relative;
    color: #0a1628;
    transition: color 0.3s ease;
}

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

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

.nav-link:hover {
    color: #c9a84c;
}

/* Navbar scrolled state */
.navbar-scrolled .nav-link {
    color: #0a1628;
}

.navbar-scrolled .nav-text {
    color: #0a1628;
}

/* Mobile menu links */
.mobile-link {
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #c9a84c;
}

/* Program card hover */
.program-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.program-card:hover {
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.3);
}

/* Approach step hover */
.approach-step {
    transition: transform 0.3s ease;
}

.approach-step:hover {
    transform: translateY(-4px);
}

/* Testimonial card */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(10, 22, 40, 0.1);
}

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

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #c9a84c;
    color: #0a1628;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu animation */
#mobile-menu {
    backdrop-filter: blur(10px);
}

/* Image hover zoom */
img {
    transition: transform 0.7s ease;
}
