/* ============================================
   RESPONSIVE STYLES
   Desktop → Tablet → Mobile
   ============================================ */

/* Large tablets & small desktops */
@media (max-width: 1024px) {
    .hero__container {
        max-width: 100%;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__card {
        max-width: 340px;
        margin: 0 auto;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about__image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .project-detail__content {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablets */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --space-4xl: 4rem;
        --space-3xl: 3rem;
    }

    .nav {
        display: none !important;
    }

    .nav-toggle {
        display: flex !important;
    }

    .header__actions .btn--ghost,
    .header__actions .btn--outline,
    .header__actions .btn--primary {
        display: none !important;
    }

    .header__container {
        gap: 0.75rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-2xl));
        padding-bottom: var(--space-3xl);
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .about__info {
        grid-template-columns: 1fr;
    }

    .skills__grid,
    .services__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .auth-card {
        padding: var(--space-xl);
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__card-stats {
        gap: var(--space-sm);
    }

    .stat__value {
        font-size: 1.1rem;
    }

    .project-card__actions {
        flex-direction: column;
    }

    .project-card__actions .btn {
        width: 100%;
    }

    .form {
        padding: var(--space-lg);
    }

    .flash {
        left: var(--space-md);
        right: var(--space-md);
        max-width: none;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
