/* ============================================
   ARDEV PREMIUM - RESPONSIVE STYLES
   ============================================ */

@media (min-width: 1600px) {
    :root { --container-max: 1600px; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item,
    .portfolio-item.featured {
        grid-column: span 6;
        grid-row: span 1;
    }
    .hero-title-terminal { font-size: clamp(2rem, 6vw, 3rem); }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
        --header-height-scrolled: 56px;
    }
    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }
    .portfolio-item,
    .portfolio-item.featured {
        grid-column: span 12;
    }
    .portfolio-image-wrapper { aspect-ratio: 4/3; }
    .portfolio-title { font-size: var(--text-lg); }
    .hero-title-terminal { font-size: var(--text-4xl); }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    .footer-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-giant {
        width: 100%;
        max-width: 320px;
    }
    .section { padding: var(--space-2xl) 0; }
    .testimonial-quote { font-size: var(--text-xl); }
    .testimonial-quote::before { font-size: 4rem; }
}

@media (max-width: 480px) {
    .hero-title-terminal { font-size: var(--text-3xl); }
    .hero-sub { font-size: var(--text-base); }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .section-title { font-size: var(--text-2xl); }
    .card { padding: var(--space-md); }
    .cta-title,
    .footer-cta-title { font-size: var(--text-3xl); }
    .toast {
        min-width: auto;
        max-width: calc(100vw - var(--space-lg) * 2);
    }
    .toast-container {
        left: var(--space-sm);
        right: var(--space-sm);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-transition,
    .custom-cursor,
    .scroll-progress,
    .marquee-track {
        display: none !important;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .custom-cursor,
    .scroll-progress,
    .page-transition,
    .hero-particles,
    .hero-ask-form,
    .ardev-chat-launcher {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    a {
        text-decoration: underline !important;
        color: black !important;
    }
    .section {
        padding: 2rem 0 !important;
        page-break-inside: avoid;
    }
}

@media (prefers-contrast: high) {
    :root {
        --border-subtle: rgba(255, 255, 255, 0.3);
        --border-medium: rgba(255, 255, 255, 0.5);
        --text-secondary: #cccccc;
    }
    .btn { border-width: 2px; }
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg-primary: #fafafa;
        --bg-secondary: #f0f0f5;
        --bg-tertiary: #e8e8f0;
        --bg-elevated: #ffffff;
        --text-primary: #0a0a0f;
        --text-secondary: #4a4a5a;
        --text-muted: #8a8a9a;
        --border-subtle: rgba(0, 0, 0, 0.06);
        --border-medium: rgba(0, 0, 0, 0.1);
    }
}
