/* ==========================================================================
   BITS-FORGE — COMPLETE MOBILE MEDIA QUERIES
   Replace all old @media blocks across all pages with this single file
   Link it LAST in every HTML page: <link rel="stylesheet" href="mobile.css">
   ========================================================================== */


/* ==========================================================================
   TABLET — max-width: 1024px
   ========================================================================== */
@media (max-width: 1024px) {

    /* --- NAVBAR --- */
    .nav-container {
        padding: 0 20px;
    }
    .logo-img {
        height: 60px;
    }
    .nav-links li {
        margin-left: 20px;
    }
    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* --- HOME --- */
    .hero-split {
        padding-right: 5%;
        background-attachment: scroll; /* Fixed bg breaks on iOS */
    }
    .hero-content-wrapper {
        padding-left: 10%;
    }
    .hero-text h1 {
        font-size: 3rem;
    }

    /* --- SERVICES --- */
    .services-grid,
    .featured-grid,
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .f-card {
        height: 400px;
        padding: 30px;
    }

    /* --- WHY US --- */
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-header-centered {
        padding: 160px 20px 40px;
    }

    /* --- CONTACT --- */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .contact-section {
        padding-top: 130px;
    }
    .contact-img {
        height: 300px;
    }

    /* --- FOOTER --- */
    .footer-logo {
        position: static;
        margin-bottom: 20px;
    }
    .social-matrix {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }
}


/* ==========================================================================
   MOBILE — max-width: 768px
   ========================================================================== */
@media (max-width: 768px) {

    /* --- NAVBAR --- */
    #navbar {
        padding: 12px 0;
    }
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
    }
    .logo-img {
        height: 50px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .nav-links li {
        margin-left: 0;
    }
    .nav-links a {
        font-size: 0.65rem;
        letter-spacing: 1px;
        padding: 4px 8px;
    }

    /* --- HOME HERO --- */
    .hero-split {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
        background-attachment: scroll;
    }
    .hero-content-wrapper {
        padding-left: 0;
        text-align: center;
    }
    .hero-text {
        max-width: 100%;
    }
    .hero-text h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    .hero-text p {
        font-size: 1rem;
        max-width: 100%;
    }
    .badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    /* --- HOME GENERAL SPEECH --- */
    .general-speach {
        padding: 70px 20px;
    }
    .general-speach h1 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }
    .general-speach p {
        font-size: 0.95rem;
    }

    /* --- HOME FEATURES --- */
    .container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .features-grid {
        padding: 60px 0;
    }
    .feature-card {
        padding: 25px;
    }

    /* --- SERVICES --- */
    .services-section,
    .featured-services,
    .hardware-services {
        padding: 70px 4%;
    }
    .services-grid,
    .featured-grid,
    .hardware-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .f-card {
        height: auto;
        min-height: 320px;
        padding: 25px;
    }
    .service-card,
    .h-card {
        padding: 25px;
    }
    .service-card h3 {
        font-size: 1.1rem;
    }

    /* --- BLOGS --- */
    .blog-feed {
        padding: 100px 4% 60px;
    }
    .blog-feed .services-header h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-title {
        font-size: 1rem;
    }
    .blog-excerpt {
        font-size: 0.9rem;
    }

    /* --- WHY US --- */
    .why-header-centered {
        padding: 130px 15px 30px;
    }
    .why-header-centered h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px auto 60px;
        padding: 0 4%;
    }
    .why-card {
        padding: 30px 20px;
    }

    /* --- CONTACT --- */
    .contact-section {
        padding: 110px 4% 60px;
    }
    .contact-container {
        gap: 40px;
    }
    .contact-sidebar h3 {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .copy-email {
        font-size: 1rem;
    }
    .contact-img {
        height: 220px;
    }
    .contact-pitch h2 {
        font-size: 1.4rem;
    }
    .contact-pitch p {
        font-size: 0.95rem;
    }
    .contact-links-column {
        gap: 30px;
    }

    /* --- FOOTER --- */
    footer {
        padding: 40px 15px 50px;
    }
    .footer-links {
        word-spacing: 10px;
        font-size: 0.8rem;
    }
    .footer-logo {
        position: static;
        margin-bottom: 20px;
    }
    .footer-logo img {
        height: 70px;
    }
    .social-matrix {
        position: static;
        justify-content: center;
        margin-top: 25px;
        gap: 15px;
    }
}


/* ==========================================================================
   SMALL PHONES — max-width: 480px
   ========================================================================== */
@media (max-width: 480px) {

    /* --- NAVBAR --- */
    .nav-links a {
        font-size: 0.6rem;
        padding: 3px 6px;
        letter-spacing: 0.5px;
    }

    /* --- HOME HERO --- */
    .hero-text h1 {
        font-size: 1.7rem;
    }
    .hero-text p {
        font-size: 0.9rem;
    }

    /* --- BUTTONS --- */
    .cta-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    .btn-glow,
    .btn-outline {
        width: 100%;
        min-width: unset;
        padding: 14px 20px;
        font-size: 0.85rem;
        text-align: center;
    }

    /* --- GENERAL SPEECH --- */
    .general-speach {
        padding: 50px 15px;
    }
    .general-speach h1 {
        font-size: 1.3rem;
    }

    /* --- SERVICES --- */
    .icon, .h-icon {
        font-size: 2.5rem !important;
    }
    .f-card {
        min-height: 280px;
    }

    /* --- WHY US --- */
    .why-header-centered h1 {
        font-size: 1.5rem;
    }
    .why-icon-box {
        font-size: 2.2rem;
    }
    .why-card h3 {
        font-size: 1.1rem;
    }

    /* --- BLOGS --- */
    .blog-feed .services-header h1 {
        font-size: 1.5rem;
    }
    .blog-image {
        height: 160px;
    }

    /* --- CONTACT --- */
    .copy-email {
        font-size: 0.85rem;
    }
    .pitch-highlight {
        font-size: 0.75rem;
        letter-spacing: 2px;
        padding: 12px 15px;
    }
    .location-info p {
        font-size: 0.8rem;
    }

    /* --- FOOTER --- */
    .footer-links span {
        font-size: 0.75rem;
    }
    .social-icon img {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   NAVBAR OVERLAP FIX — Mobile Header Padding
   ========================================================================== */
@media (max-width: 768px) {

    /* Services page */
    .services-section {
        padding-top: 160px;
    }

    /* Blogs page */
    .blog-feed {
        padding-top: 160px;
    }

    /* Why Us page */
    .why-header-centered {
        padding-top: 160px;
    }

    /* Contact page */
    .contact-section {
        padding-top: 160px;
    }
}

@media (max-width: 480px) {

    /* Even more space on tiny phones */
    .services-section {
        padding-top: 180px;
    }
    .blog-feed {
        padding-top: 180px;
    }
    .why-header-centered {
        padding-top: 180px;
    }
    .contact-section {
        padding-top: 180px;
    }
}