/* ═══════════════════════════════════════════════════════════════════════════
   CreativeAlt — Responsive Styles
   Mobile-first breakpoints: 480px, 640px, 768px, 1024px, 1280px, 1440px
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Small phones (< 380px) ─────────────────────────────────────────────── */
@media (max-width: 379px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .font-heading.text-display {
        font-size: 1.75rem;
    }
}

/* ─── Mobile (< 640px) ───────────────────────────────────────────────────── */
@media (max-width: 639px) {
    /* Tighter padding on small screens */
    .max-w-site {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    /* Stack portfolio grid completely */
    .portfolio-card:nth-child(even) {
        transform: none !important;
    }

    /* Full-width buttons on mobile */
    .hero-cta a {
        width: 100%;
        justify-content: center;
    }

    /* Smaller section spacing */
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* Contact form: single column on mobile */
    #contact-form .grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Tablet portrait (768px) ────────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Portfolio: 2-col grid stays good here */
    
    /* Process section: keep vertical on tablets */
    .process-track .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ─── Desktop (1024px+) ──────────────────────────────────────────────────── */
@media (min-width: 1024px) {
    /* Larger hero content area */
    #home {
        min-height: 100vh;
    }

    /* Process horizontal layout is handled by component */
}

/* ─── Large desktop (1440px+) ────────────────────────────────────────────── */
@media (min-width: 1440px) {
    /* Max width container centering */
    .max-w-site {
        max-width: 1400px;
    }
}

/* ─── Extra wide (1920px+) ───────────────────────────────────────────────── */
@media (min-width: 1920px) {
    html {
        font-size: 18px;
    }
}

/* ─── Hover media query (devices with hover capability) ──────────────────── */
@media (hover: hover) {
    .nav-link:hover .nav-indicator {
        transform: scaleX(1);
    }
}

/* ─── Touch devices: disable hover-dependent effects ─────────────────────── */
@media (hover: none) {
    .portfolio-card .absolute.bottom-4.right-4 {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Print Styles ───────────────────────────────────────────────────────── */
@media print {
    #site-header,
    #back-to-top,
    #page-loader,
    .hero-scroll,
    .brand-marquee {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
