/* ==========================================================================
   ENTAMES WEB AGENCY - COMPREHENSIVE RESPONSIVE STYLESHEET
   Exact Screen Breakpoints: 320px, 375px, 768px, 1024px, 1440px, 1920px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ULTRA WIDE DESKTOP (1920px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 1920px) {
    .container {
        max-width: 1440px;
        margin: 0 auto;
    }

    .site-navbar {
        max-width: 1440px;
    }
}

/* --------------------------------------------------------------------------
   2. DESKTOP / LARGE LAPTOP (1440px to 1919px)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) and (max-width: 1919px) {
    .container {
        max-width: 1320px;
        margin: 0 auto;
    }

    .site-navbar {
        max-width: 1320px;
    }
}

/* --------------------------------------------------------------------------
   3. TABLET LANDSCAPE / SMALL LAPTOP (1024px to 1439px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

    .project-sidebar-card {
        position: static;
    }

    .cta-banner-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   4. TABLET PORTRAIT (768px to 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    .site-navbar {
        height: 68px;
    }

    .desktop-cta {
        display: none;
    }

    .mobile-cta {
        display: inline-flex;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .hamburger-btn {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
        background-color: var(--color-navy);
        flex-direction: column;
        padding: 24px 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .navbar-menu.active {
        transform: translateY(0);
    }

    /* Hamburger Animation to X */
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    .page-hero-title {
        font-size: 1.85rem;
    }

    .page-hero-subtitle {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   5. MOBILE SMALL & EXTRA SMALL (375px to 575px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .site-navbar {
        height: 64px;
    }

    .navbar-logo {
        font-size: 1.25rem;
    }

    .filter-tabs {
        gap: 6px;
        flex-wrap: wrap;
    }

    .filter-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .project-detail-content {
        padding: 18px;
    }

    .project-sidebar-card {
        padding: 18px;
    }
}

/* --------------------------------------------------------------------------
   6. MOBILE EXTRA SMALL (320px to 374px)
   -------------------------------------------------------------------------- */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
    }

    .site-navbar {
        height: 60px;
    }

    .navbar-logo {
        font-size: 1.1rem;
    }

    .logo-badge {
        display: none;
    }

    .page-hero-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}