/**
 * Digital Crazy Hub - Centralised Responsive Stylesheet
 * Contains all responsive media query overrides across the website
 * STRICT GOVERNANCE: All media queries belong here exclusively.
 */

/* ==========================================
   1. LAPTOP & SMALL DESKTOP (<= 1200px)
   ========================================== */
@media screen and (max-width: 1200px) {

  .hero-grid {
    gap: 40px;
  }

  .about-grid,
  .why-grid,
  .about-intro-grid,
  .team-collab-grid,
  .how-we-work-grid {
    gap: 44px;
  }

  .services-glance-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .services-cards-grid {
    gap: 22px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 36px;
  }

  /* Blog Detail Page (<= 1200px) */
  .blog-detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 2.5rem;
  }

  /* Our Team Page (<= 1200px) */
  .team-grid {
    gap: 2rem;
    max-width: 980px;
  }

  .team-img-wrap {
    height: 630px;
  }

  /* Achievements Page (<= 1200px) */
  .gallery-grid {
    gap: 1.25rem;
  }

  /* Clients Page (<= 1200px) */
  .clients-gallery-grid {
    gap: 1.5rem;
  }

  .clients-cta-card {
    padding: 3.5rem 2.5rem;
  }

  /* Contact Page (<= 1200px) */
  .contact-info-grid {
    gap: 1.25rem;
  }

  .contact-form-card {
    padding: 3rem 2.5rem;
  }

  /* About Page Client Logos (<= 1200px) */
  .client-logos-section .client-works-badge {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px 18px;
  }
}

/* ==========================================
   2. TABLET LANDSCAPE & COMPACT LAPTOP (<= 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {



  /* Hero Section */
  .hero-fullscreen {
    padding-top: 110px;
    padding-bottom: 56px;
    min-height: 100svh;
  }

  .hero-content-fullscreen {
    max-width: 100%;
    text-align: left;
  }

  /* Grids: 4 -> 2 columns */
  .services-grid,
  .client-industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .testimonial-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  /* Client Testimonials Carousel Tablet Landscape (<= 1024px: 2 cards visible) */
  .dch-testimonials-section {
    --dch-cards-per-view: 2;
    --dch-slide-gap: 22px;
  }

  .dch-testimonials-card-inner {
    padding: 28px 24px 24px;
    min-height: 290px;
  }

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

  .client-works-badge {
    grid-template-columns: repeat(3, 1fr);
  }

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

  /* About Us Page Tablet Landscape (<= 1024px) */
  .about-intro-grid,
  .team-collab-grid,
  .how-we-work-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-intro-media,
  .team-collab-media,
  .how-we-work-media {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .about-collage-main-img,
  .team-collab-img,
  .how-we-work-img {
    height: 380px;
  }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-glance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Page Banner Tablet (<= 1024px) */
  .page-banner-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-banner-aside {
    justify-content: flex-start;
  }

  .banner-lightbox-card {
    max-width: 520px;
  }

  /* Scoreboard Tablet (<= 1024px) */
  .scoreboard-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
  }

  .scoreboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Legal Pages Tablet Landscape (<= 1024px) */
  .legal-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-sidebar {
    position: static;
    top: auto;
  }

  /* Services Page Tablet Landscape (<= 1024px) */
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .services-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 44px 32px;
    gap: 28px;
  }

  .services-cta-actions {
    width: 100%;
    justify-content: center;
  }

  /* Service Detail Pages Tablet Landscape (<= 1024px) */
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-hero-visual {
    max-width: 580px;
  }

  .service-benefits-grid,
  .service-related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .service-process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-cta-box {
    flex-direction: column;
    text-align: center;
    padding: 48px 36px;
    gap: 32px;
  }

  .service-cta-content {
    max-width: 100%;
  }

  .service-cta-contact-links {
    justify-content: center;
  }

  .service-cta-actions {
    width: 100%;
    max-width: 380px;
  }

  /* Projects Page Tablet Landscape (<= 1024px) */
  .projects-grid {
    gap: 2rem;
  }

  .projects-intro-title {
    font-size: 2.25rem;
  }

  .projects-cta-box {
    padding: 3.5rem 2.5rem;
    gap: 2.5rem;
  }

  .project-lightbox-container {
    padding: 1.25rem 1.5rem;
  }

  .project-lightbox-nav {
    width: 48px;
    height: 48px;
  }

  /* Blog Detail Page Tablet Landscape (<= 1024px) */
  .blog-detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-sidebar {
    order: 2;
  }

  .sidebar-sticky {
    position: static;
    top: auto;
  }

  .related-grid,
  .related-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .breadcrumb-current {
    max-width: 300px;
  }

  /* Our Team Page Tablet Landscape (<= 1024px) */
  .team-intro-section {
    padding-top: 4rem;
    padding-bottom: 2.5rem;
  }

  .team-intro-title {
    font-size: 2.35rem;
  }

  .team-grid {
    gap: 1.75rem;
    max-width: 880px;
  }

  .team-img-wrap {
    height: 320px;
  }

  .team-card-body {
    padding: 1.75rem 1.75rem 1.5rem;
  }

  .team-cta-box {
    padding: 3rem 2.5rem;
  }

  .team-cta-heading {
    font-size: 2rem;
  }

  /* Achievements Page (<= 1024px) */
  .achievements-section {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
  }

  .gallery-group {
    margin-bottom: 3.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .gallery-section-title {
    font-size: 1.625rem;
  }

  .lightbox-nav-btn {
    width: 48px;
    height: 48px;
  }

  /* Testimonials Page (<= 1024px - Tablet Landscape & Portrait) */
  .testimonial-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 760px;
  }

  /* 404 Error Page (<= 1024px) */
  .quicklinks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .error-hero-section {
    padding-top: 110px;
    padding-bottom: 70px;
  }

  /* Clients Page (<= 1024px) */
  .clients-intro-section {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .clients-intro-heading {
    font-size: 2.25rem;
  }

  .clients-gallery-section {
    padding-top: 2rem;
    padding-bottom: 4.5rem;
  }

  .clients-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.35rem;
  }

  .clients-gallery-title {
    font-size: 1.75rem;
  }

  .clients-cta-card {
    padding: 3.25rem 2.25rem;
  }

  .clients-cta-title {
    font-size: 2rem;
  }

  .clients-lightbox-nav {
    width: 48px;
    height: 48px;
  }

  /* Contact Page (<= 1024px) */
  .contact-intro-section {
    padding-top: 3.5rem;
  }

  .contact-intro-heading {
    font-size: 2.2rem;
  }

  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .contact-info-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-form-card {
    padding: 2.75rem 2rem;
  }

  .contact-map-title,
  .contact-faq-title {
    font-size: 2rem;
  }

  .contact-map-frame-wrap {
    height: 380px;
  }
}

/* ==========================================
   3. TABLET PORTRAIT (<= 768px)
   ========================================== */
@media screen and (max-width: 768px) {
  /* Global Floating Actions Mobile (<= 768px) */
  .floating-actions {
    right: 14px;
    right: max(14px, env(safe-area-inset-right));
    bottom: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    gap: var(--fab-gap-mobile);
  }

  .floating-action-btn {
    width: var(--fab-size-mobile);
    height: var(--fab-size-mobile);
  }

  .floating-action-btn .floating-action-icon {
    width: 20px;
    height: 20px;
  }

  .floating-action-tooltip {
    display: none !important;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Testimonials Page Tablet (<= 768px) */
  .testimonials-section {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  /* Client Testimonials Carousel Tablet Portrait & Mobile (<= 768px: 1 card visible) */
  .dch-testimonials-section {
    --dch-cards-per-view: 1;
    --dch-slide-gap: 16px;
  }

  .dch-testimonials-card-inner {
    padding: 24px 20px 20px;
    min-height: auto;
  }

  .dch-testimonials-controls {
    gap: 16px;
    margin-top: 28px;
  }

  .dch-testimonials-nav-btn {
    width: 40px;
    height: 40px;
  }

  .testimonials-heading {
    font-size: 2.1rem;
  }

  /* 404 Error Page Tablet (<= 768px) */
  .error-hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .error-digit {
    font-size: clamp(5.5rem, 18vw, 8.5rem);
  }

  .error-radar-core {
    width: 110px;
    height: 110px;
  }

  .radar-icon-center {
    width: 72px;
    height: 72px;
  }

  /* Full-Screen Hero Tablet */
  .hero-fullscreen {
    padding-top: 100px;
    padding-bottom: 48px;
    min-height: 100svh;
  }

  .hero-headline-fullscreen {
    font-size: clamp(2.1rem, 6.5vw, 2.85rem);
    margin-bottom: 18px;
  }

  .hero-desc-fullscreen {
    font-size: 1.1rem;
    margin-bottom: 32px;
  }

  .hero-pillars-fullscreen {
    gap: 20px;
    flex-wrap: wrap;
  }

  /* About & Why Choose Us single column */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    float: none;
    width: 100%;
    max-width: 520px;
    margin: 0 auto 28px auto;
  }

  .why-visual-wrap {
    order: -1;
    max-width: 540px;
    margin: 0 auto;
  }

  .about-content,
  .why-content {
    text-align: left;
  }

  /* Testimonials single column */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  /* Page Banner Tablet Portrait (<= 768px) */
  .page-banner {
    padding: 116px 0 48px 0;
  }

  .page-banner-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .page-banner-title {
    font-size: clamp(1.85rem, 5.5vw, 2.45rem);
  }

  .page-banner-desc {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .banner-lightbox-card {
    max-width: 100%;
  }

  .lightbox-thumb-wrap {
    height: 180px;
  }

  .banner-lightbox-modal {
    padding: 16px;
  }

  .mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .purpose-card {
    padding: 32px 24px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-pillars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .services-glance-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-intro-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .about-cta-card,
  .global-cta-card {
    padding: 44px 24px;
  }

  .about-cta-actions,
  .global-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .about-cta-actions .btn,
  .global-cta-actions .btn {
    width: 100%;
  }

  .about-cta-meta,
  .global-cta-meta {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  /* Scoreboard (<= 768px) */
  .scoreboard-card {
    padding: 30px 16px;
  }

  .scoreboard-number {
    font-size: 2.35rem;
  }

  /* Legal Pages Tablet Portrait (<= 768px) */
  .legal-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .legal-meta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Services Page Tablet Portrait (<= 768px) */
  .services-overview-section {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .services-intro-wrap {
    margin-bottom: 44px;
  }

  .services-intro-heading {
    font-size: 2.1rem;
  }

  .services-cta-section {
    padding-top: 24px;
    padding-bottom: 64px;
  }

  .services-cta-card {
    padding: 36px 24px;
  }

  .services-cta-title {
    font-size: 1.85rem;
  }

  .services-cta-actions .btn {
    width: 100%;
  }

  /* Service Detail Pages Tablet Portrait (<= 768px) */
  .service-hero-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .service-about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-benefits-grid,
  .service-related-grid,
  .service-process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-cta-box {
    padding: 40px 24px;
  }

  /* Projects Page Tablet Portrait (<= 768px) */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-filter-wrapper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .projects-filter-nav {
    flex-wrap: nowrap;
  }

  .project-card-body {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .projects-intro-title {
    font-size: 2rem;
  }

  .projects-category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .projects-category-title {
    font-size: 1.65rem;
  }

  .projects-category-badge-total {
    align-self: flex-start;
  }

  .projects-profile-title {
    font-size: 1.85rem;
  }

  .projects-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.75rem 1.75rem;
    gap: 2rem;
  }

  .projects-cta-actions {
    width: 100%;
  }

  .projects-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .project-lightbox-container {
    padding: 1rem 0.875rem;
  }

  .project-lightbox-stage {
    gap: 0.75rem;
  }

  .project-lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .project-lightbox-img {
    max-height: calc(100vh - 190px);
  }

  .project-lightbox-caption {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg, 16px);
  }

  .project-lightbox-desc {
    font-size: 0.8125rem;
  }

  /* Blog Page Tablet Portrait (<= 768px) */
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .blog-filter-wrapper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .blog-filter-nav {
    flex-wrap: nowrap;
  }

  .blog-intro-title {
    font-size: 2rem;
  }

  .blog-card-body {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .blog-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.75rem 1.75rem;
    gap: 2rem;
  }

  .blog-cta-actions {
    width: 100%;
  }

  .blog-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .pagination-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Blog Detail Page Tablet Portrait (<= 768px) */
  .blog-detail-section {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }

  .article-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .article-lead {
    font-size: 1.05rem;
  }

  .article-meta-bar {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

  .article-toc {
    padding: 1.5rem 1.25rem;
  }

  .article-h2 {
    font-size: 1.5rem;
  }

  .article-h3 {
    font-size: 1.25rem;
  }

  .related-grid,
  .related-articles-grid,
  .related-grid:has(> :last-child:nth-child(2)),
  .related-articles-grid:has(> :last-child:nth-child(2)) {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  .related-articles-section .section-header,
  .related-articles-section .related-header {
    margin-bottom: 2.25rem;
  }

  .related-articles-section .section-title,
  .related-articles-section .related-title {
    font-size: 1.75rem;
  }

  .article-cta-box {
    flex-direction: column;
    padding: 2.75rem 1.75rem;
    text-align: center;
    gap: 2rem;
  }

  .article-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .article-cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .article-cta-contact-links {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  /* Our Team Page Tablet Portrait (<= 768px) */
  .team-intro-section {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .team-intro-header {
    margin-bottom: 2.5rem;
  }

  .team-intro-title {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    gap: 2rem;
  }

  .team-img-wrap {
    height: 340px;
  }

  .team-card-body {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .team-cta-box {
    padding: 2.75rem 1.75rem;
  }

  .team-cta-heading {
    font-size: 1.85rem;
  }

  .team-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .team-cta-btn,
  .team-cta-phone {
    width: 100%;
    justify-content: center;
  }

  /* Achievements Page (<= 768px) */
  .achievements-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .gallery-group {
    margin-bottom: 3rem;
  }

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

  .gallery-section-title {
    font-size: 1.45rem;
    gap: 10px;
  }

  .gallery-count-badge {
    min-width: 30px;
    height: 26px;
    font-size: 0.8125rem;
  }

  .lightbox-container {
    padding: 16px 12px;
  }

  .lightbox-stage {
    gap: 8px;
  }

  .lightbox-nav-btn {
    width: 42px;
    height: 42px;
  }

  .lightbox-figure-wrap {
    max-height: calc(100vh - 120px);
  }

  /* Clients Page Tablet Portrait (<= 768px) */
  .clients-intro-section {
    padding-top: 3.5rem;
    padding-bottom: 1.75rem;
  }

  .clients-intro-heading {
    font-size: 1.95rem;
  }

  .clients-intro-desc {
    font-size: 1rem;
  }

  .clients-gallery-section {
    padding-top: 1.75rem;
    padding-bottom: 3.5rem;
  }

  .clients-gallery-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }

  .clients-gallery-title {
    font-size: 1.55rem;
  }

  .clients-cta-section {
    padding-bottom: 4rem;
  }

  .clients-cta-card {
    padding: 2.75rem 1.75rem;
  }

  .clients-cta-title {
    font-size: 1.75rem;
  }

  .clients-cta-desc {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }

  .clients-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .clients-cta-btn,
  .clients-cta-phone {
    width: 100%;
    justify-content: center;
  }

  .clients-lightbox-container {
    padding: 16px 12px;
  }

  .clients-lightbox-stage {
    gap: 10px;
  }

  .clients-lightbox-nav {
    width: 44px;
    height: 44px;
  }

  .clients-lightbox-figure {
    max-height: calc(100vh - 120px);
  }

  /* Contact Page Tablet Portrait (<= 768px) */
  .contact-intro-heading {
    font-size: 1.95rem;
  }

  .contact-intro-desc {
    font-size: 1rem;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .contact-form-card {
    padding: 2.25rem 1.5rem;
  }

  .contact-form-title {
    font-size: 1.75rem;
  }

  .contact-map-section,
  .contact-faq-section {
    padding-top: 3.5rem;
    padding-bottom: 4rem;
  }

  .contact-map-title,
  .contact-faq-title {
    font-size: 1.75rem;
  }

  .contact-map-frame-wrap {
    height: 320px;
  }

  .contact-map-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
  }

  .contact-map-directions-btn {
    width: 100%;
    justify-content: center;
  }

  .contact-submit-btn {
    width: 100%;
  }

  .contact-faq-trigger {
    padding: 18px 20px;
    font-size: 1.025rem;
  }

  .contact-faq-text {
    padding: 0 20px 18px 20px;
  }

  /* About Page Client Logos (<= 768px - Tablet) */
  .client-logos-section .client-works-badge {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .client-logos-section .client-logo-item {
    min-height: 72px;
    /* height: 72px; */
  }

  /* .client-logos-section .client-logo-item img {
    max-height: 58px;
  } */
}

/* ==========================================
   4. MOBILE DEVICES (<= 640px)
   ========================================== */
@media screen and (max-width: 640px) {

  /* Grids: 2 -> 1 column */
  .services-grid,
  .projects-grid,
  .process-grid,
  .team-grid,
  .blog-grid,
  .why-features,
  .testimonial-video-grid,
  .client-industries-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-video-card {
    max-width: 360px;
    width: 100%;
  }

  .testimonial-lightbox-container {
    padding: 12px;
    max-width: 96vw;
  }

  .testimonial-lightbox-nav {
    display: none !important;
  }

  .testimonial-lightbox-mobile-controls {
    display: flex !important;
  }

  /* Client Testimonials Carousel Mobile (<= 640px) */
  .dch-testimonials-card-top {
    gap: 10px;
  }

  .dch-testimonials-text {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  /* 404 Error Page (<= 640px) */
  .error-hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .error-visual-wrap {
    margin-bottom: 18px;
  }

  .error-digit {
    font-size: clamp(4.5rem, 20vw, 6.5rem);
  }

  .error-radar-core {
    width: 90px;
    height: 90px;
    margin: 0 2px;
  }

  .radar-icon-center {
    width: 60px;
    height: 60px;
  }

  .radar-icon-center svg {
    width: 30px;
    height: 30px;
  }

  .chip-left {
    top: 5%;
    left: 4%;
  }

  .chip-right {
    bottom: 5%;
    right: 4%;
  }

  .error-actions {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-bottom: 32px;
  }

  .error-actions .btn {
    width: 100%;
  }

  .quicklinks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .error-quicklinks-card {
    padding: 22px 16px;
    border-radius: var(--radius-md, 12px);
  }

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

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

  /* Full-Screen Hero Mobile */
  .hero-fullscreen {
    padding-top: 96px;
    padding-bottom: 44px;
    min-height: 100svh;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .hero-pillars-fullscreen {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }



  /* About Us Mobile (<= 640px) */
  .about-collage-main-img,
  .team-collab-img,
  .how-we-work-img {
    height: 300px;
  }

  .about-floating-badge {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }

  .how-we-work-badge {
    position: static;
    margin-top: 14px;
    max-width: 100%;
  }

  .team-culture-badge {
    position: static;
    margin-top: 12px;
    display: inline-flex;
  }

  .process-step-item {
    padding: 18px 16px;
    gap: 16px;
  }

  .process-step-num {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* Scoreboard Mobile (<= 640px) */
  .scoreboard-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scoreboard-card {
    padding: 28px 20px;
  }

  .scoreboard-number {
    font-size: 2.25rem;
  }

  /* Services Page Mobile (<= 640px) */
  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-overview-card {
    padding: 28px 22px 24px;
  }

  .service-card-number {
    font-size: 2.1rem;
  }

  .services-cta-card {
    padding: 32px 20px;
  }

  .services-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .services-cta-actions .btn {
    width: 100%;
  }

  /* Blog Detail Page Mobile (<= 640px) */
  .article-featured-media {
    margin-bottom: 1.75rem;
    border-radius: var(--radius-sm, 8px);
  }

  .breadcrumb-current {
    max-width: 200px;
  }

  .sidebar-widget {
    padding: 1.5rem 1.25rem;
  }

  .faq-question {
    padding: 1.125rem 1rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem 1.25rem;
  }

  .article-quote-box {
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  }

  /* Our Team Page Mobile (<= 640px) */
  .team-img-wrap {
    height: 300px;
  }

  .team-card-body {
    padding: 1.5rem 1.25rem;
  }

  .team-member-name {
    font-size: 1.45rem;
  }

  .team-cta-box {
    padding: 2.5rem 1.5rem;
  }

  /* Achievements Page Mobile (<= 640px) */
  .gallery-grid {
    gap: 0.875rem;
  }

  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }

  /* Clients Page Mobile (<= 640px) */
  .clients-gallery-grid {
    gap: 1rem;
  }

  .clients-lightbox-stage {
    gap: 6px;
  }

  .clients-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  /* Projects Page Lightbox Mobile (<= 640px) */
  .project-lightbox-stage {
    gap: 6px;
  }

  .project-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .project-lightbox-title {
    font-size: 0.95rem;
  }

  /* Contact Page Mobile (<= 640px) */
  .contact-intro-section {
    padding-top: 3rem;
  }

  .contact-form-card {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md, 12px);
  }

  .contact-map-frame-wrap {
    height: 280px;
  }

  /* About Page Client Logos (<= 640px - Mobile Landscape) */
  .client-logos-section .client-works-badge {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .client-logos-section .client-logo-item {
    min-height: 66px;
    /* height: 66px; */
  }

  /* .client-logos-section .client-logo-item img {
    max-height: 52px;
  } */
}

/* ==========================================
   4B. MOBILE PORTRAIT (<= 500px)
   ========================================== */
@media screen and (max-width: 500px) {

  /* About Page Client Logos (<= 500px - Mobile Portrait) */
  .client-logos-section .client-works-badge {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .client-logos-section .client-logo-item {
    min-height: 62px;
    /* height: 62px;
    padding: 6px 8px; */
  }

  /* .client-logos-section .client-logo-item img {
    max-height: 48px;
  } */
}

/* ==========================================
   5. COMPACT MOBILE VIEWPORTS (<= 390px / 360px / 320px)
   ========================================== */
@media screen and (max-width: 390px) {
  :root {
    --container-padding: 16px;
    --mobile-header-height: 60px;
  }



  .hero-headline-fullscreen {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-desc-fullscreen {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  .btn {
    font-size: 0.875rem;
    padding: 11px 20px;
  }

  .service-card,
  .testimonial-card,
  .team-card,
  .process-card {
    padding: 24px 18px;
  }

  /* Page Banner Compact Mobile (<= 390px) */
  .page-banner {
    padding: 104px 0 40px 0;
  }

  .breadcrumb-list {
    font-size: 0.78rem;
    padding: 5px 12px;
    gap: 6px;
  }

  .page-banner-eyebrow {
    font-size: 0.72rem;
  }

  .page-banner-title {
    font-size: 1.68rem;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .page-banner-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  .page-banner-badges {
    gap: 8px;
    margin-top: 16px;
  }

  .banner-badge-item {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .lightbox-thumb-wrap {
    height: 150px;
  }

  .lightbox-caption-title {
    font-size: 0.95rem;
  }

  .about-intro-heading,
  .team-collab-heading {
    font-size: 1.6rem;
  }

  .purpose-card-title {
    font-size: 1.3rem;
  }

  .about-cta-title,
  .global-cta-title {
    font-size: 1.55rem;
  }

  .about-cta-desc,
  .global-cta-desc {
    font-size: 0.95rem;
  }

  /* Scoreboard Compact Mobile (<= 390px) */
  .scoreboard-title {
    font-size: 1.75rem;
  }

  .scoreboard-lead {
    font-size: 0.95rem;
  }

  .scoreboard-number {
    font-size: 2rem;
  }

  /* Legal Pages & Footer Compact Mobile (<= 390px) */
  .legal-sidebar {
    padding: 20px 16px;
  }

  .legal-contact-card {
    padding: 20px 16px;
  }

  .legal-clause-title {
    font-size: 1.3rem;
  }

  .footer-social-links {
    gap: 8px;
  }

  .footer-social-btn {
    width: 38px;
    height: 38px;
  }

  /* 404 Error Page Compact Mobile (<= 390px) */
  .error-digit {
    font-size: 3.75rem;
  }

  .error-radar-core {
    width: 76px;
    height: 76px;
  }

  .radar-icon-center {
    width: 50px;
    height: 50px;
  }

  .radar-icon-center svg {
    width: 24px;
    height: 24px;
  }

  .error-floating-chip {
    display: none;
  }

  .quicklinks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .quicklink-pill {
    padding: 10px 4px;
    font-size: 0.8125rem;
  }

  /* Services Page Compact Mobile (<= 390px) */
  .services-intro-heading {
    font-size: 1.65rem;
  }

  .service-card-title {
    font-size: 1.15rem;
  }

  .service-card-desc {
    font-size: 0.9rem;
  }

  .service-overview-card {
    padding: 24px 18px 20px;
  }

  .services-cta-title {
    font-size: 1.55rem;
  }

  .services-cta-desc {
    font-size: 0.95rem;
  }

  /* Service Detail Compact Mobile (<= 390px) */
  .service-hero-heading {
    font-size: 1.75rem;
    line-height: 1.25;
  }

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

  .service-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .service-about-card,
  .service-benefit-card,
  .service-process-card,
  .related-service-card {
    padding: 24px 20px;
  }

  .service-faq-trigger {
    padding: 18px 18px;
    font-size: 0.975rem;
  }

  .service-faq-body {
    padding: 0 18px 18px 18px;
  }

  .service-cta-box {
    padding: 32px 18px;
  }

  .service-cta-contact-links {
    flex-direction: column;
    gap: 12px;
  }

  /* Projects Page Small Mobile (<= 390px) */
  .projects-intro-title {
    font-size: 1.65rem;
  }

  .projects-category-title {
    font-size: 1.35rem;
  }

  .projects-category-badge-total {
    padding: 0.5rem 0.875rem;
    gap: 0.5rem;
  }

  .projects-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .project-card-title,
  .projects-card-title {
    font-size: 1.25rem;
  }

  .project-card-body,
  .projects-card-body {
    padding: 1.25rem 1rem;
  }

  .projects-cta-title {
    font-size: 1.65rem;
  }

  .projects-cta-box {
    padding: 2rem 1.25rem;
  }

  /* Blog Page Small Mobile (<= 390px) */
  .blog-intro-title {
    font-size: 1.65rem;
  }

  .blog-filter-btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
  }

  .blog-card-title {
    font-size: 1.15rem;
  }

  .blog-card-body {
    padding: 1.25rem 1rem 1rem;
  }

  .pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 0.625rem;
    font-size: 0.85rem;
  }

  .blog-cta-title {
    font-size: 1.65rem;
  }

  .blog-cta-box {
    padding: 2rem 1.25rem;
  }

  .blog-toast-container {
    bottom: 16px;
    right: 16px;
    width: calc(100% - 32px);
  }

  /* Blog Detail Page Compact Mobile (<= 390px) */
  .article-title {
    font-size: 1.55rem;
    line-height: 1.25;
  }

  .breadcrumb-current {
    max-width: 140px;
  }

  .article-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
  }

  .article-tags-wrap {
    gap: 0.375rem;
  }

  .tag-pill {
    font-size: 0.8125rem;
    padding: 0.35rem 0.75rem;
  }

  .article-toc {
    padding: 1.25rem 1rem;
  }

  .article-faqs {
    padding: 2rem 1.25rem;
  }

  /* Our Team Page Compact Mobile (<= 390px / 360px / 320px) */
  .team-intro-title {
    font-size: 1.65rem;
  }

  .team-intro-desc {
    font-size: 0.95rem;
  }

  .team-card {
    padding: 0;
  }

  .team-img-wrap {
    height: 340px;
  }

  .team-card-body {
    padding: 1.25rem 1rem;
  }

  .team-member-name {
    font-size: 1.3rem;
  }

  .team-member-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .team-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .team-cta-heading {
    font-size: 1.6rem;
  }

  .team-cta-desc {
    font-size: 0.95rem;
  }

  .team-cta-box {
    padding: 2rem 1.15rem;
  }

  /* Achievements Page Compact Mobile (<= 390px / 360px / 320px) */
  .gallery-section-title {
    font-size: 1.3rem;
  }

  .gallery-grid {
    gap: 0.65rem;
  }

  .lightbox-counter {
    font-size: 0.825rem;
    padding: 4px 12px;
  }

  .lightbox-close-btn {
    width: 38px;
    height: 38px;
  }

  .lightbox-nav-btn {
    width: 36px;
    height: 36px;
  }

  /* Clients Page Compact Mobile (<= 390px / 360px / 320px) */
  .clients-intro-heading {
    font-size: 1.65rem;
  }

  .clients-intro-desc {
    font-size: 0.925rem;
  }

  .clients-gallery-title {
    font-size: 1.35rem;
  }

  .clients-count-badge {
    min-width: 32px;
    height: 25px;
    font-size: 0.8rem;
    padding: 0 8px;
  }

  .clients-cta-title {
    font-size: 1.5rem;
  }

  .clients-cta-card {
    padding: 2.25rem 1.25rem;
  }

  .clients-cta-desc {
    font-size: 0.9rem;
  }

  .clients-lightbox-counter {
    font-size: 0.825rem;
    padding: 4px 12px;
  }

  .clients-lightbox-close {
    width: 38px;
    height: 38px;
  }

  .clients-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  /* Projects Page Lightbox Compact Mobile (<= 390px) */
  .project-lightbox-counter {
    font-size: 0.825rem;
    padding: 3px 10px;
  }

  .project-lightbox-close {
    width: 38px;
    height: 38px;
  }

  .project-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .project-lightbox-badge {
    display: none;
  }

  /* Contact Page Compact Mobile (<= 390px / 360px / 320px) */
  .contact-intro-heading {
    font-size: 1.65rem;
  }

  .contact-form-title {
    font-size: 1.5rem;
  }

  .contact-form-card {
    padding: 1.75rem 1rem;
  }

  .contact-info-card {
    padding: 1.5rem 1.15rem;
  }

  .contact-map-title,
  .contact-faq-title {
    font-size: 1.5rem;
  }

  .contact-faq-trigger {
    font-size: 0.95rem;
    padding: 16px 16px;
  }

  .contact-faq-text {
    font-size: 0.9rem;
    padding: 0 16px 16px 16px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 10px 12px;
    font-size: 0.925rem;
  }
}

@media screen and (max-width: 360px) {

  .gallery-grid,
  .clients-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

/* ==========================================
   6. REDUCED MOTION PREFERENCE
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none !important;
  }

  .hero-video-wrapper {
    background-image: url('../assets/images/hero/hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }

  .dch-navbar,
  .dch-desktop-nav,
  .dch-dropdown-menu,
  .dch-mobile-drawer,
  .dch-drawer-backdrop,
  .dch-accordion-collapse,
  .dch-bar,
  .site-header,
  .about-expandable,
  .about-read-more-btn .btn-arrow {
    transition: none !important;
  }

  .page-banner-bg-img,
  .page-banner-glow,
  .play-pulse-ring,
  .eyebrow-pulse-dot,
  .tag-live-dot {
    animation: none !important;
  }

  .service-benefit-card,
  .service-process-card,
  .related-service-card,
  .industry-card,
  .industry-card-img,
  .industry-card-icon-overlay,
  .industry-card-arrow,
  .project-card,
  .project-card-img,
  .project-card-link-icon,
  .blog-card,
  .blog-card-img,
  .blog-card-btn-icon,
  .related-card,
  .related-card-media img,
  .recent-post-thumb img,
  .insight-thumb img,
  .tag-pill,
  .team-card,
  .team-img,
  .team-badge-pill,
  .team-role-badge,
  .team-social-btn,
  .team-cta-phone,
  .gallery-card,
  .gallery-thumb,
  .gallery-zoom-icon,
  .gallery-hover-overlay,
  .lightbox-dialog,
  .lightbox-preview-img,
  .lightbox-nav-btn,
  .lightbox-close-btn,
  .clients-intro-dot,
  .clients-card,
  .clients-thumb,
  .clients-card-inner,
  .clients-card-overlay,
  .clients-zoom-btn,
  .clients-lightbox,
  .clients-lightbox-backdrop,
  .clients-lightbox-close,
  .clients-lightbox-nav,
  .clients-lightbox-img,
  .clients-cta-phone,
  .project-lightbox,
  .project-lightbox-backdrop,
  .project-lightbox-img,
  .project-lightbox-nav,
  .project-lightbox-close,
  .project-media-zoom-pill,
  .project-media-overlay,
  .project-card-preview-btn,
  .contact-intro-dot,
  .contact-info-card,
  .contact-info-icon-wrap,
  .contact-submit-btn,
  .btn-spinner,
  .contact-faq-item,
  .contact-faq-trigger,
  .contact-faq-chevron,
  .contact-faq-content,
  .client-logo-item img,
  .testimonials-badge-dot,
  .testimonial-video-card,
  .testimonial-video-preview,
  .testimonial-play-btn,
  .testimonial-play-icon,
  .testimonial-lightbox,
  .testimonial-lightbox-close,
  .testimonial-video-play-status,
  .testimonial-unmute-prompt,
  .dch-testimonials-track,
  .dch-testimonials-card,
  .dch-testimonials-card-inner,
  .dch-testimonials-nav-btn,
  .dch-testimonials-dot {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .blog-toast {
    animation: none !important;
  }

  .floating-action-btn,
  .floating-action-scrolltop,
  .floating-action-tooltip,
  .floating-action-icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}