/* ============================================
   NETEVOLUTION — Responsive Styles
   ============================================ */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    :root {
        --nav-height: 70px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero__visual {
        display: none;
    }

    .hero__content {
        max-width: 100%;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-2xl);
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
}

/* --- Large mobile (max 768px) --- */
@media (max-width: 768px) {

    /* Navigation mobile */
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        background: rgba(7, 7, 20, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: var(--space-3xl);
        gap: var(--space-xl);
        border-left: 1px solid var(--glass-border);
        transition: right var(--transition-base);
        z-index: 1000;
    }

    .nav__links.open {
        right: 0;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: var(--space-sm) 0;
    }

    .nav__cta {
        margin-left: 0;
        margin-top: var(--space-md);
    }

    .nav__hamburger {
        display: flex;
    }

    /* Mobile overlay */
    .nav__overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav__overlay.visible {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
    }

    .hero__stats {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Grids */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonial-card {
        flex: 0 0 100%;
    }

    .form__row {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .footer__legal {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .footer__legal a {
        margin-left: 0;
    }

    /* Section spacing */
    .section {
        padding: var(--space-3xl) 0;
    }

    .section__header {
        margin-bottom: var(--space-2xl);
    }

    /* Container padding */
    .container {
        padding: 0 var(--space-lg);
    }

    /* Tech grid */
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    /* Timeline */
    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline__dot {
        left: -28px;
    }

    /* Filter tabs scroll */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--space-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex-shrink: 0;
    }

    /* Calendly height */
    .calendly-wrapper,
    .calendly-wrapper iframe {
        min-height: 500px;
    }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__stats {
        gap: var(--space-lg);
    }

    .hero__stat-number {
        font-size: 1.5rem;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .card {
        padding: var(--space-lg);
    }

    .stats__number {
        font-size: 1.8rem;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn--lg {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .page-header__title {
        font-size: 1.8rem;
    }

    .pricing-badge {
        font-size: var(--fs-small);
        padding: 10px 18px;
    }
}

/* --- Wide screens (min 1440px) --- */
@media (min-width: 1440px) {
    .container {
        padding: 0 var(--space-3xl);
    }

    .hero__content {
        max-width: 800px;
    }
}