/* ============================================================
   ZENVIX — RESPONSIVE CSS
   Complete mobile-first overhaul
============================================================ */

/* ============================================================
   2561px+ — Ultra-wide fix
============================================================ */
@media only screen and (max-width: 2561px) {
    .contact .select { display: none !important; }
}

/* ============================================================
   1441px
============================================================ */
@media only screen and (max-width: 1441px) {
    .contact .label-input-container .input { width: 100%; }
}

/* ============================================================
   1200px — Large tablets / small desktops
============================================================ */
@media only screen and (max-width: 1200px) {
    .container-fluid { padding: 0 60px; }
    h2  { font-size: 50px; }
    h3  { font-size: 40px; }
    p   { font-size: 16px; line-height: 1.65; }

    .brand-logo img { max-width: 180px; }

    .header-banner h1 { font-size: 72px; line-height: 1.1; }

    .service-second-section .service-second-section-container { width: 60%; }
    .service-second-section .service-second-section-img-container { width: 38%; }

    nav li a { font-size: 70px; }

    .footer-logo { max-width: 160px; }
}

/* ============================================================
   1025px — Tablets
============================================================ */
@media only screen and (max-width: 1025px) {
    .container-fluid { padding: 0 40px; }
    h1  { font-size: 72px; }
    h2  { font-size: 44px; }
    h5  { font-size: 24px; }

    .header-banner h1 { font-size: 72px; line-height: 1.1; }

    canvas { width: 100%; height: auto; }

    .service-second-section .service-second-section-img-container { width: 40%; }
    .service-second-section .service-second-section-container { width: 58%; }

    .footer-logo { max-width: 150px; }
    .footer-mid ul li a { font-size: 14px; }
    .footer-top p { font-size: 14px; }

    nav li a { font-size: 56px; }
}

/* ============================================================
   992px
============================================================ */
@media only screen and (max-width: 992px) {
    .footer-logo { max-width: 140px; }
}

/* ============================================================
   769px — Tablets / Large phones
============================================================ */
@media (max-width: 769px) {
    .container-fluid { padding: 0 24px; }

    .p-50 { padding: 24px 0; }
    .p-60 { padding: 40px 0; }
    .p-80 { padding: 50px 0; }

    /* Scrollbar hidden on mobile */
    ::-webkit-scrollbar { width: 0; }

    /* ---- Header ---- */
    .brand-logo img { max-width: 160px; padding: 0; }
    .header-row { padding: 20px 24px; }
    .header-nav-footer { padding: 20px 24px 30px; }

    /* ---- Full-page Menu ---- */
    .fullpage-menu { overflow-y: auto; }
    .fullpage-menu-inner {
        padding: 80px 24px 130px;
        flex-direction: column;
        align-items: flex-start;
        min-height: 100vh;
    }
    .header-nav-footer {
        position: relative;
        width: 100%;
        padding: 24px;
        margin-top: 20px;
    }
    nav li a { font-size: 46px; }
    nav li + li { margin-top: 10px; }
    nav li:hover { transform: translateX(20px); }

    .social-links { gap: 12px; }
    .social-links li { font-size: 14px; }
    .social-links li:last-child { margin-left: 0; margin-top: 10px; }
}

/* ============================================================
   575px — Phones
============================================================ */
@media only screen and (max-width: 575px) {
    .container-fluid { padding: 0 20px; }

    /* Typography */
    h1  { font-size: 52px; line-height: 1.1; }
    h2  { font-size: 38px; line-height: 1.2; }
    h3  { font-size: 30px; line-height: 1.3; }
    h5  { font-size: 20px; margin-top: 16px; }
    p   { margin-top: 16px; font-size: 15px; line-height: 1.65; }

    /* Padding utilities */
    .p-100 { padding: 50px 0; }
    .p-140 { padding: 30px 0; }
    .p-180 { padding: 50px 0; }
    .p-60  { padding: 40px 0; }

    /* ---- Preloader ---- */
    .preloader-logo span { font-size: 52px; }

    /* ---- Header ---- */
    header { padding: 20px 0; }

    /* ---- Full-page Menu ---- */
    .fullpage-menu { height: 100%; overflow-y: auto; }
    .fullpage-menu-inner { padding: 80px 20px 140px; }
    nav li a { font-size: 36px; }
    nav li + li { margin-top: 8px; }
    nav li:hover { transform: none; }
    .header-nav-footer { padding: 20px; }
    .social-links { flex-wrap: wrap; }
    .social-links li:last-child { width: 100%; margin-left: 0; }

    /* ---- Hero Banner ---- */
    .header-banner { padding: 130px 0 60px; text-align: center; }
    .header-banner h1 { font-size: 42px; line-height: 1.1; }
    .header-banner h1 span {
        background: linear-gradient(135deg, #00E5FF, #AAFF00);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .header-banner-heading { margin-bottom: 0; }
    .header-banner .badge-glow { margin: 0 auto 16px; }
    .header-banner p { font-size: 15px; margin-top: 14px; color: rgba(255,255,255,0.7) !important; }
    .header-banner .main-btn { margin: 20px auto 0; }
    #canvas { width: 100%; top: 0; }

    /* Hero image first on mobile via order */
    .hero-img-wrap {
        order: -1;
        margin-bottom: 28px;
        margin-top: 0 !important;
        position: relative;
    }
    .hero-img-wrap::before {
        content: '';
        position: absolute;
        inset: -20px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(0,229,255,0.15) 0%, rgba(170,255,0,0.07) 50%, transparent 70%);
        z-index: 0;
        animation: mobileOrbPulse 3s ease-in-out infinite;
    }
    .hero-img-wrap img, .hero-img-wrap .particle-canvas {
        position: relative;
        z-index: 1;
        max-width: 260px !important;
        filter: drop-shadow(0 0 24px rgba(0,229,255,0.3));
    }
    @keyframes mobileOrbPulse {
        0%, 100% { opacity: 0.8; transform: scale(1); }
        50%       { opacity: 1;   transform: scale(1.06); }
    }

    /* Hero orbs smaller on mobile */
    .hero-orb-1 { width: 200px; height: 200px; }
    .hero-orb-2 { width: 150px; height: 150px; }
    .hero-orb-3 { display: none; }

    /* Hero content col layout on mobile */
    .header-banner-container .row { flex-direction: column; align-items: center; }
    .header-banner-container .row > [class*="col-"] { width: 100%; }

    /* ---- Home About ---- */
    .home-about .home-about-right { padding-left: 0; padding-top: 20px; }
    .home-about .home-about-right .about-section-content-heading { margin-top: 16px; }
    .home-about .home-about-right .about-section-content-heading-copy { margin-top: 0; }

    /* ---- Services (homepage) ---- */
    .service-section .service-section-dm { margin-top: 0; padding: 0; }
    .service-section .service-img-container { height: 220px; }
    .service-section h3 { font-size: 26px; margin-top: 20px; }

    /* ---- Stats ---- */
    .stat-card .count-up { font-size: 42px; }

    /* ---- Marquee ---- */
    .marque-main { display: none; }

    /* ---- Careers (homepage) ---- */
    .careers { padding: 40px 0; }

    /* ---- Footer ---- */
    .footer-mid { padding: 40px 0 20px; }
    .footer-logo { max-width: 140px; padding: 0; }
    .footer-top ul.d-flex { justify-content: center; }
    .footer-mid h4 { text-align: center; }
    .footer-mid h4::after { left: 50%; transform: translateX(-50%); }
    .footer-mid ul li a { text-align: center; }
    .footer-mid ul.second-ul a { justify-content: center; }
    .footer-bottom p { font-size: 12px; text-align: center; margin-top: 10px; }

    /* ---- About Page ---- */
    .about { padding: 150px 0 40px; }
    .about .about-hero-img { height: auto; min-height: 250px; }
    .about-second-section .about-second-section-imgs img { height: auto; min-height: 220px; }
    .about-second-section .about-second-section-img-4 img { height: auto; min-height: 200px; }
    .about-second-section .about-second-section-imgs { padding-bottom: 0; }
    .custom-padding { padding-top: 20px; padding-bottom: 16px; }
    .about-third-section p { margin-bottom: 0; }

    /* ---- Service Page ---- */
    .service { padding: 150px 0 0; }
    .service-second-section .service-second-section-content h2 { font-size: 28px; }

    /* ---- Contact Page ---- */
    .contact { padding: 150px 0 0; }
    .contact .contact-form { gap: 0; max-width: 100%; }
    .contact .label-input-container { width: 100%; }
    .contact .label-input-container .input { width: 100%; font-size: 15px; }
    .contact .main-btn { width: 100%; max-width: 100%; }
    .contact .contact-information { padding: 40px 0 20px; }
    .contact-info-card { margin-bottom: 16px; padding: 30px 16px; }
    .contact .label-input-container label { font-size: 10px; }

    /* ---- Careers Page ---- */
    .careers-page { padding: 150px 0 40px; }
    .apply-now { padding: 150px 0 40px; }
    .accordion-flush .accordion-item { padding: 0 16px; }
}

/* ============================================================
   480px — Small phones
============================================================ */
@media only screen and (max-width: 480px) {
    h1  { font-size: 40px; }
    h2  { font-size: 32px; }
    h3  { font-size: 26px; }

    nav li a { font-size: 30px; }

    .header-banner h1 { font-size: 36px; }

    .main-btn { width: 100%; max-width: 240px; }

    .service-section .service-img-container { height: 180px; }
    .about-second-section .about-second-section-imgs img { min-height: 180px; }
}

/* ============================================================
   376px — Very small phones
============================================================ */
@media only screen and (max-width: 376px) {
    h1  { font-size: 36px; }
    h2  { font-size: 30px; }
    h3  { font-size: 24px; }

    .container-fluid { padding: 0 16px; }

    .fullpage-menu-inner { padding: 70px 16px 120px; }
    nav li a { font-size: 28px; }

    .header-banner { padding: 130px 0 40px; }
    .header-banner h1 { font-size: 32px; }

    .contact .label-input-container label { display: none; }
    .contact .select { display: block !important; }

    .footer-mid { padding: 30px 0; }
}

/* ============================================================
   Landscape orientation on small phones
============================================================ */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    .fullpage-menu-inner { padding-top: 60px; }
    nav li a { font-size: 28px; }
    nav li + li { margin-top: 4px; }
}
