/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   This file handles responsiveness for all pages.
   ========================================================================== */

/* ------------------------------------------------------------
   GLOBAL / COMMON SECTIONS
   Applies to: All Pages (index.html, web-design.html, etc.)
   ------------------------------------------------------------ */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .about-content h2 {
        font-size: 32px;
    }
}

@media (max-width: 991px) {
    /* Header Mobile Toggle */
    .main-nav,
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    /* Footer Tablet */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-bar {
        text-align: center;
    }

    .top-bar .container {
        justify-content: center;
    }

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


/* ------------------------------------------------------------
   HOME PAGE SECTIONS
   Applies to: index.html
   ------------------------------------------------------------ */

@media (max-width: 991px) {
    /* Hero Tablet */
    .hero-slide .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-content p {
        margin: 0 auto 30px auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-media img {
        max-height: 350px;
        max-width: 80%;
    }

    /* About Section Tablet */
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
    }

    /* Works & Teams Tablet */
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact Tablet */
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    /* Services Grid Stack */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    /* Works Grid Stack */
    .works-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    /* Hero Typography */
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns a {
        width: 100%;
        justify-content: center;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 28px;
    }

    .about-content h2 {
        font-size: 28px;
    }

    /* Teams Grid Stack */
    .teams-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}


/* ------------------------------------------------------------
   SERVICE DETAIL PAGES
   Applies to: web-design.html, wordpress-customization.html, web-security.html
   ------------------------------------------------------------ */

@media (max-width: 992px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .service-detail-section {
        padding: 60px 0 100px;
    }
}

@media (max-width: 480px) {
    .detail-content h2 {
        font-size: 22px;
    }
}
