/* Mobile Navigation Enhancements */

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav__menu--open {
        transform: translateX(0);
    }
    
    .nav__menu li {
        margin: 1rem 0;
    }
    
    .nav__link {
        font-size: 1.2rem;
        padding: 1rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav__link:hover {
        background: var(--color-bg-light);
        color: var(--color-secondary);
    }
    
    /* Animated hamburger menu */
    .nav__toggle--open .nav__burger:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle--open .nav__burger:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle--open .nav__burger:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Prevent body scroll when menu is open */
    body.nav-open {
        overflow: hidden;
    }
}

/* Animation classes for scroll effects */
.animate-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.timeline__item:nth-child(1) .timeline__content {
    transition-delay: 0.1s;
}

.timeline__item:nth-child(2) .timeline__content {
    transition-delay: 0.2s;
}

.timeline__item:nth-child(3) .timeline__content {
    transition-delay: 0.3s;
}

.quote-card:nth-child(1) {
    transition-delay: 0.1s;
}

.quote-card:nth-child(2) {
    transition-delay: 0.2s;
}

.quote-card:nth-child(3) {
    transition-delay: 0.3s;
}

/* Focus styles for accessibility */
.nav__link:focus,
.pronunciation__play:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-bg: #ffffff;
        --color-border: #000000;
    }
}

/* 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;
        scroll-behavior: auto !important;
    }
    
    .hero__title,
    .hero__subtitle,
    .hero__pronunciation {
        animation: none;
    }
}