
@media (max-width: 479px) {
    .hero__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    .contact__email {
        font-size: var(--text-xl);
    }
    
    .contact__email svg {
        width: 24px;
        height: 24px;
    }
    
    .about__tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal__info {
        padding: var(--space-lg);
    }
}


@media (min-width: 480px) and (max-width: 767px) {
    .hero__play-btn {
        width: 70px;
        height: 70px;
    }
}


@media (min-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero__content {
        margin-bottom: var(--space-4xl);
    }
    
    
    .about__tools-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    
    .contact__form .btn {
        align-self: center;
    }
}


@media (min-width: 1024px) {
    
    section {
        padding-block: var(--space-6xl);
    }
    
    
    .hero__content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
        align-items: center;
    }
    
    .hero__subtitle {
        grid-column: 1;
    }
    
    
    .projects__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    
    .about__grid {
        grid-template-columns: 1.2fr 1fr;
    }
    
    .about__intro {
        grid-row: span 2;
    }
    
    .about__tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (min-width: 1280px) {
    .hero__line {
        font-size: var(--text-hero);
    }
    
    .projects__grid {
        gap: var(--space-2xl);
    }
    
    .modal__container {
        max-width: 1400px;
    }
}


@media (min-width: 1600px) {
    :root {
        --container-max: 1600px;
    }
    
    .projects__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-block: var(--space-4xl);
    }
    
    .hero__scroll-indicator {
        display: none;
    }
}


@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-block: var(--space-2xl);
    }
    
    .hero__title {
        font-size: clamp(2rem, 10vh, 4rem);
    }
    
    .hero__showreel {
        max-width: 50%;
    }
}


@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .project-card::before {
        border-width: 0.5px;
    }
}


@media print {
    .header,
    .cursor,
    .mobile-menu,
    .hero__scroll-indicator,
    .hero__play-btn,
    .projects__controls,
    .modal,
    .footer__social {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero,
    .projects,
    .about,
    .contact {
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}


@media (prefers-reduced-motion: no-preference) {
    :focus-visible {
        transition: outline-offset var(--duration-fast) var(--ease-out);
    }
}


@media (forced-colors: active) {
    .btn--primary {
        border: 2px solid currentColor;
    }
    
    .project-card::before {
        border-color: currentColor;
    }
    
    .cursor {
        display: none;
    }
}
