/* ============================================
   RESPONSIVE — TABLET (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero__content {
        order: 1;
    }

    .hero__visual {
        order: 2;
    }

    .hero__eyebrow {
        justify-content: center;
    }

    .hero__tags {
        justify-content: center;
    }

    .hero__description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__social {
        justify-content: center;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .tech-stack__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects__grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .tech-stack {
        padding: 3rem 1.5rem;
    }

    .projects {
        padding: 3rem 1.5rem;
    }

    .hero__orbit-item {
        width: 56px;
        height: 56px;
    }

    .hero__orbit-icon {
        width: 32px;
        height: 32px;
    }

    .hero__badge-icon {
        width: 70px;
    }

    .tech-item {
        padding: 0.4375rem 0.5625rem;
        min-width: 64px;
    }

    .tech-item__icon {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    .navbar__container {
        padding: 0.875rem 1.25rem;
    }

    .navbar__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .navbar__links.is-open {
        display: flex;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 6rem 1.25rem 2.5rem;
    }

    .hero__title {
        font-size: 1.875rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__photo-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero__orbit {
        inset: -30px;
    }

    .hero__orbit-item {
        width: 56px;
        height: 56px;
    }

    .hero__orbit-icon {
        width: 32px;
        height: 32px;
    }

    .hero__orbit-item--1,
    .hero__orbit-item--2,
    .hero__orbit-item--3,
    .hero__orbit-item--4 {
        --orbit-radius: 160px;
    }

    .hero__badge {
        bottom: -40px;
    }

    .hero__badge-icon {
        width: 64px;
    }

    .tech-stack__container {
        padding: 1.5rem;
    }

    .section-header__title {
        font-size: 1.25rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

    .hero__orbit-item {
        animation: none;
        transform: rotate(var(--orbit-angle)) translateX(var(--orbit-radius)) rotate(calc(var(--orbit-angle) * -1));
    }

    html {
        scroll-behavior: auto;
    }
}
