@media (max-width: 1100px) {
    :root {
        --font-size-3xl: 2.25rem;
        --font-size-2xl: 1.65rem;
        --font-size-xl: 1.25rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .nav-container {
        padding: 0.85rem var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 68px;
        right: 0;
        left: auto;
        width: min(86vw, 360px);
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
        list-style: none;
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--border-color);
        box-shadow: -12px 0 30px rgba(0,0,0,0.14);
        transform: translateX(105%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 10px;
        font-size: 0.98rem;
    }

    .nav-menu a.active,
    .nav-menu a:hover {
        background: rgba(52, 152, 219, 0.12);
        color: var(--secondary-color);
    }

    .nav-menu a.active::after {
        display: none;
    }

    .menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 10px;
    }

    .menu-toggle:hover {
        background: rgba(52, 152, 219, 0.08);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-backdrop.active {
        display: block;
    }

    .skills-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1101px) {
    .nav-menu {
        gap: clamp(0.45rem, 1.1vw, 1.25rem);
        align-items: center;
    }

    .nav-menu a {
        padding: 0.45rem 0.55rem;
        font-size: clamp(0.82rem, 0.9vw, 0.95rem);
        white-space: nowrap;
    }

    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2rem;
        --font-size-2xl: 1.5rem;
        --spacing-md: 1rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero {
        min-height: auto;
        padding: 96px var(--spacing-sm) var(--spacing-lg);
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.25rem;
    }

    .hero-text {
        max-width: 100%;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
        width: min(100%, 460px);
        margin-left: auto;
        margin-right: auto;
        gap: 0.75rem;
    }

    .cta-button,
    .cta-button-secondary {
        flex: 1 1 0;
        max-width: 220px;
        min-height: 48px;
        text-align: center;
        padding: 0.85rem 1rem;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
    }

    .impact-strip {
        justify-content: center;
    }

    .skills-grid,
    .projects-grid,
    .blog-grid,
    .artifacts-grid,
    .qa-proof-grid {
        grid-template-columns: 1fr;
    }

    .project-filters {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .project-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        width: auto !important;
        flex-shrink: 0;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-3xl: 1.75rem;
        --font-size-2xl: 1.25rem;
    }

    .nav-container {
        padding: 0.75rem var(--spacing-sm);
    }

    .logo span {
        font-size: 1.15rem;
    }

    .nav-menu {
        top: 64px;
        width: 100%;
        max-height: calc(100vh - 64px);
        border-left: none;
    }

    .project-card img,
    .project-card .project-thumbnail,
    .project-card img.project-thumbnail {
        height: 180px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: min(100%, 320px);
    }

    .cta-button,
    .cta-button-secondary {
        flex: 0 0 auto;
        max-width: 300px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
