/* ===========================
   ALLCORE SOLUTION - RESPONSIVE CSS
   =========================== */

/* ===== LARGE DESKTOP (1400px+) ===== */
@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .hero-title { font-size: 4.5rem; }
    .hero-orbit-scene { width: 500px; height: 500px; }
    .orbit-ring { width: 400px; height: 400px; }
    .orbit-ring-inner { width: 300px; height: 300px; }
    .orbit-item { --r: 200px; }
}

/* ===== LAPTOP (1200px and below) ===== */
@media (max-width: 1200px) {
    .hero-grid { gap: 30px; }
    .hero-orbit-scene { width: 380px; height: 380px; }
    .orbit-ring { width: 300px; height: 300px; }
    .orbit-ring-inner { width: 220px; height: 220px; }
    .orbit-item { --r: 150px; }
    .orbit-center-logo { width: 110px; height: 110px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .packages-grid { gap: 18px; }
    .pkg-card { padding: 28px 20px; }
}

/* ===== TABLET LANDSCAPE (1024px and below) ===== */
@media (max-width: 1024px) {
    section { padding: 70px 0; }

    /* Navbar brand — hide full text, show compact name */
    .nav-brand-desktop-only { display: none !important; }
    .nav-brand { gap: 10px; align-items: center; }
    .loader-logo-circle { width: 42px !important; height: 42px !important; flex-shrink: 0; }

    /* ── NAVBAR MENU — slide from LEFT ── */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 40px;
        gap: 2px;
        box-shadow: 10px 0 40px rgba(0,0,0,0.15);
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        list-style: none;
    }
    .nav-menu.open { left: 0; }
    .nav-menu li { width: 100%; }
    .nav-link {
        padding: 11px 0;
        font-size: 0.95rem;
        width: 100%;
        display: block;
        border-bottom: 1px solid var(--border);
    }
    .nav-link::after { display: none; }
    .btn-nav-cta {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin-top: 16px;
        display: block;
        padding: 12px 22px;
    }
    .hamburger { display: flex; z-index: 1001; }

    /* Services dropdown — mobile */
    .nav-dropdown .dropdown-menu {
        position: static !important;
        width: 100%;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 10px;
        background: #f0f5ff;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        display: none;
        overflow: hidden;
        margin-top: 4px;
    }
    .nav-dropdown .dropdown-menu::before { display: none; }
    .nav-dropdown.mobile-open .dropdown-menu { display: block; }
    .dropdown-grid { grid-template-columns: 1fr; gap: 0; padding: 6px 8px; }
    .dropdown-item {
        padding: 10px 12px;
        font-size: 0.88rem;
        border-bottom: 1px solid rgba(26,86,219,0.08);
        border-radius: 0;
    }
    .dropdown-item:last-child { border-bottom: none; }
    .dropdown-footer { display: none; }
    .dropdown-arrow { transition: transform 0.3s ease; }
    .nav-dropdown.mobile-open .dropdown-arrow { transform: rotate(180deg); }

    /* View All Services — mobile */
    .mobile-view-all {
        padding: 10px 12px;
        background: rgba(26,86,219,0.1);
        border-top: 1px solid rgba(26,86,219,0.15);
    }
    .mobile-view-all a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--primary);
        text-decoration: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
        backdrop-filter: blur(4px);
    }
    .nav-overlay.active { display: block; }

    /* Navbar brand — compact on tablet */
    .nav-brand-content { display: none; }
    .loader-logo-circle img { max-height: 46px; width: auto; }

    /* Hero */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 50px; }
    .hero-content { order: 1; }
    .hero-image-wrap { order: 2; justify-content: center; }
    .hero-badge { margin: 0 auto 24px; }
    .hero-desc { margin: 0 auto 32px; }
    .hero-stats { justify-content: center; }
    .hero-btns { justify-content: center; }
    .hero-social-side { display: none; }
    .social-line { display: none; }
    .hero-orbit-scene { width: 340px; height: 340px; }
    .orbit-ring { width: 270px; height: 270px; }
    .orbit-ring-inner { width: 200px; height: 200px; }
    .orbit-item { --r: 135px; }
    .orbit-label { display: none; }
    .orbit-center-logo { width: 100px; height: 110px; }
    .orbit-center-logo img { width: 48px; height: 48px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-img-wrap { order: 1; }
    .about-content { order: 2; }
    .about-img-container { max-width: 480px; margin: 0 auto; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(2, 1fr); }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Packages */
    .packages-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .pkg-card.featured { transform: scale(1); }
    .pkg-card.featured:hover { transform: translateY(-6px); }

    /* Top bar */
    .top-bar-left a:last-child { display: none; }

    /* Footer brand */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

/* ===== TABLET PORTRAIT (768px and below) ===== */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { font-size: 1.7rem; }

    /* Top bar */
    .top-bar { display: none; }

    /* Navbar */
    .navbar { padding: 8px 0; }
    .navbar .container { gap: 12px; }
    .nav-menu { width: 280px; padding: 75px 20px 36px; }

    /* Hero */
    .hero { padding: 60px 0 40px; min-height: auto; }
    .hero-orbit-scene { width: 290px; height: 290px; }
    .orbit-ring { width: 230px; height: 230px; }
    .orbit-ring-inner { width: 170px; height: 170px; }
    .orbit-item { --r: 115px; }
    .orbit-icon { width: 44px; height: 44px; font-size: 1rem; }
    .orbit-center-logo { width: 86px; height: 86px; }
    .orbit-center-logo img { width: 40px; height: 40px; }
    .hero-title { font-size: clamp(1.9rem, 6vw, 2.6rem); }

    /* About features */
    .about-features { grid-template-columns: 1fr; }
    .about-btns { flex-direction: column; gap: 12px; }
    .about-btns .btn-primary,
    .about-btns .btn-outline { width: 100%; text-align: center; justify-content: center; }

    /* Services */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

    /* Services page sections */
    .service-layout { grid-template-columns: 1fr; gap: 32px; }
    .service-layout.reverse { direction: ltr; }
    .sv-box { min-height: 260px; }
    .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .process-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .cta-inner { padding: 40px 24px; }
    .cta-btns { flex-direction: column; align-items: center; }

    /* Blogs */
    .blogs-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .projects-filter { gap: 8px; flex-wrap: wrap; }
    .filter-btn { padding: 7px 14px; font-size: 0.78rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .footer-logo { flex-wrap: wrap; gap: 10px; }
    .nav-brand-content { display: block !important; }
    .footer-brand .nav-brand-content { display: block !important; }

    /* Footer contact band */
    .fcb-grid { grid-template-columns: 1fr; gap: 18px; }
    .flb-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .flb-badges { gap: 0; }
    .flb-badge { padding: 8px 14px; }

    /* Contact form */
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px 18px; }

    /* Service detail sidebar stacks */
    .service-detail-wrap { grid-template-columns: 1fr !important; }
    .service-sidebar { order: -1; }

    /* Blog detail */
    .blog-detail-wrap { grid-template-columns: 1fr !important; }
    .blog-sidebar { order: -1; }

    /* Fixed buttons */
    .fixed-btn { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
    .fixed-actions { bottom: 80px; right: 16px; }

    /* Testimonial */
    .swiper-button-prev, .swiper-button-next { display: none !important; }

    /* Packages page toggle */
    .packages-toggle { flex-wrap: wrap; gap: 10px; }
}

/* ===== MOBILE (480px and below) ===== */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    section { padding: 48px 0; }

    /* Navbar */
    .navbar { padding: 8px 0; }
    .navbar .container { padding: 0 14px; }
    .nav-menu { width: 100%; left: -100%; padding: 70px 18px 32px; }
    .nav-brand-desktop-only { display: none !important; }
    .loader-logo-circle { width: 38px !important; height: 38px !important; }

    /* Hero */
    .hero { padding: 48px 0 36px; }
    .hero-title { font-size: 1.9rem; }
    .hero-orbit-scene { width: 260px; height: 260px; }
    .orbit-ring { width: 205px; height: 205px; }
    .orbit-ring-inner { width: 150px; height: 150px; }
    .orbit-item { --r: 102px; }
    .orbit-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .orbit-center-logo { width: 76px; height: 76px; }
    .orbit-center-logo img { width: 34px; height: 34px; }
    .hero-stats { gap: 14px; }
    .stat-num { font-size: 1.4rem; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn-primary,
    .hero-btns .btn-outline { width: 100%; text-align: center; justify-content: center; }

    /* Services grid */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 26px 20px; }

    /* Services page */
    .service-section { padding: 60px 0; }
    .service-content h2 { font-size: 1.4rem; }
    .service-features { grid-template-columns: 1fr; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    .process-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .cta-inner { padding: 32px 16px; }
    .cta-btns { flex-direction: column; align-items: stretch; }
    .btn-white, .btn-outline-white { text-align: center; justify-content: center; }
    .services-nav { top: 62px; }
    .snav-btn { padding: 7px 13px; font-size: 12px; }

    /* Service detail */
    .service-main-cover { height: 220px; }
    .service-cta-btns { flex-direction: column; align-items: stretch; }
    .scta-btn-primary, .scta-btn-outline { justify-content: center; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; }
    .proj-card { aspect-ratio: 16/10; }

    /* About */
    .about-exp-badge { right: 0; bottom: -16px; padding: 13px 16px; }
    .about-clients-badge { left: 0; top: -12px; }
    .about-exp-badge .exp-num { font-size: 1.8rem; }

    /* Packages */
    .packages-grid { max-width: 100%; }
    .pkg-card { padding: 28px 18px; }

    /* Contact */
    .contact-form { padding: 22px 14px; }
    .contact-form h3 { font-size: 1rem; }
    .contact-cards-grid { grid-template-columns: 1fr 1fr; }

    /* Section head */
    .section-head { margin-bottom: 36px; }
    .section-title { font-size: 1.45rem; }

    /* Footer */
    .footer-top { padding: 46px 0 28px; }
    .footer-grid { gap: 24px !important; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .footer-logo { gap: 8px; }
    .brand-all, .brand-core { font-size: 1.3rem; }
    .solution { font-size: 0.7rem; }
    .brand-sub .line { width: 30px; }
    .brand-tagline { font-size: 10px; }
    .brand-slogan { font-size: 11px; }

    /* Ticker */
    .ticker-track { gap: 24px; }

    /* Fixed actions */
    .fixed-actions { right: 12px; bottom: 68px; gap: 10px; }
    #scrollTop { right: 12px; bottom: 12px; width: 40px; height: 40px; font-size: 0.85rem; }

    /* Testimonials */
    .testi-card { padding: 22px 18px; }
    .testi-text { font-size: 0.86rem; }

    /* Blog detail / service detail responsive grids */
    .related-grid { grid-template-columns: 1fr !important; }
    .c-form-grid { grid-template-columns: 1fr !important; }
    .c-form-group.full { grid-column: auto; }
    .detail-grid { grid-template-columns: 1fr !important; }

    /* Page hero */
    .page-hero { padding: 70px 0 48px; }
    .page-hero-content h1 { font-size: 1.6rem; }

    /* CTA box */
    .cta-box { padding: 28px 16px; flex-direction: column; text-align: center; }
    .cta-btns { justify-content: center; }

    /* About page grids */
    .mvv-grid { grid-template-columns: 1fr; max-width: 100%; }
    .why-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
    .stats-section { padding: 40px 0; }
    .stat-counter { font-size: 1.9rem; }

    /* Packages page */
    .pkg-section-title { font-size: 0.88rem; }
    .faq-q { font-size: 0.88rem; padding: 15px 16px; }
    .compare-table-wrap { font-size: 0.75rem; }

    /* Blog page */
    .blog-featured { grid-template-columns: 1fr; }
    .bf-content { padding: 20px; }
    .blogs-grid-4 { grid-template-columns: 1fr; }
    .blog-controls { flex-direction: column; }
    .blog-search input { width: 100%; }
    .blog-cats { gap: 6px; }
    .blog-cat-btn { padding: 6px 12px; font-size: 0.75rem; }

    /* Projects page */
    .projects-grid-lg { grid-template-columns: 1fr; }
    .proj-stats-bar { flex-wrap: wrap; gap: 16px; padding: 20px; }
    .psb-div { display: none; }

    /* nl-form newsletter */
    .nl-form { flex-direction: column; }
    .budget-options { flex-direction: column; }
}

/* ===== SMALL MOBILE (360px and below) ===== */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero-title { font-size: 1.75rem; }
    .hero-orbit-scene { width: 230px; height: 230px; }
    .orbit-ring { width: 180px; height: 180px; }
    .orbit-ring-inner { width: 130px; height: 130px; }
    .orbit-item { --r: 90px; }
    .orbit-icon { width: 34px; height: 34px; font-size: 0.8rem; }
    .orbit-center-logo { width: 66px; height: 66px; }
    .orbit-center-logo img { width: 28px; height: 28px; }
    .logo-circle { width: 36px; height: 36px; font-size: 0.8rem; }
    .hero-stats { flex-wrap: wrap; justify-content: center; }
    .stat-divider { display: none; }
    .nav-brand-content { display: none; }
    .contact-cards-grid { grid-template-columns: 1fr; }
    .brand-all, .brand-core { font-size: 1.1rem; }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) {
    .service-card:hover { transform: none; }
    .service-card:hover .sc-bg { opacity: 0; }
    .service-card:hover h3 { color: var(--dark); }
    .service-card:hover p { color: var(--text-light); }
    .service-card:hover .sc-link { color: var(--primary); }
    .service-card:hover .sc-icon { background: linear-gradient(135deg, rgba(26, 86, 219, 0.12), rgba(0, 180, 255, 0.08)); color: var(--primary); }
    .proj-card:hover { transform: none; }
    .proj-card .proj-overlay { transform: translateY(0); opacity: 1; }
    .blog-card:hover { transform: none; }
    .pkg-card:hover { transform: none; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .top-bar, .navbar, .ticker-wrap, .fixed-actions, #scrollTop, #loader, #scroll-progress { display: none !important; }
    .hero { min-height: auto; padding: 40px 0; }
    section { page-break-inside: avoid; }
}
