/* 
 * Responsive Adaptations
 */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
    :root {
        --max-width: 100%;
    }
    
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--transition-normal), visibility var(--transition-normal);
        z-index: 100;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.25rem;
    }

    /* Animate Hamburger to Close icon */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .nav-actions {
        z-index: 101;
        gap: 1rem;
    }

    .search-input {
        font-size: 1.2rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
