/* ============================================================
   WEB TECHNOCRATS — Responsive Styles
   Phase 1: Navigation + Hero
   ============================================================ */

/* ---------- Large Desktop (1400+) ---------- */
@media (min-width: 1400px) {
  .hero-title {
    font-size: 4rem;
  }

  .tech-canvas {
    max-width: 580px;
    height: 580px;
  }
}

/* ---------- Laptop / Desktop (992 – 1199) ---------- */
@media (max-width: 1199.98px) {
  .navbar-nav .nav-link {
    padding: 8px 10px !important;
    font-size: 0.8rem;
  }

  .navbar-nav .nav-link::after {
    left: 10px;
    right: 10px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .tech-canvas {
    max-width: 480px;
    height: 480px;
  }

  .browser-card { width: 230px; }
  .code-card { width: 190px; }
  .dashboard-card { width: 160px; }
  .crm-card { width: 180px; }
}

/* ---------- Tablet (768 – 991) ---------- */
@media (max-width: 991.98px) {
  :root {
    --header-height: 70px;
  }

  /* Hide desktop nav collapse; use offcanvas */
  .navbar-collapse {
    display: none !important;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
  }

  .hero-content {
    text-align: center;
    padding: 40px 0 20px;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    height: 460px;
    margin-top: 20px;
  }

  .tech-canvas {
    max-width: 420px;
    height: 420px;
  }

  .browser-card { width: 200px; top: 5%; left: 8%; }
  .code-card { width: 170px; top: 40%; }
  .dashboard-card { width: 150px; }
  .crm-card { width: 170px; bottom: 14%; }
  .phone-frame { width: 85px; height: 160px; }
  .float-icon { width: 42px; height: 42px; font-size: 1rem; }

  .scroll-indicator {
    display: none;
  }

  /* Disable custom cursor on touch devices */
  .cursor-glow,
  .cursor-spotlight {
    display: none !important;
  }
}

/* ---------- Mobile Landscape / Large Phone (576 – 767) ---------- */
@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust {
    gap: 18px;
  }

  .trust-item strong {
    font-size: 1.25rem;
  }

  .hero-visual {
    height: 380px;
  }

  .tech-canvas {
    max-width: 340px;
    height: 360px;
  }

  .browser-card {
    width: 170px;
    top: 0;
    left: 5%;
  }

  .code-card {
    width: 150px;
    top: 38%;
    left: 0;
  }

  .code-body pre {
    font-size: 0.6rem;
  }

  .dashboard-card {
    width: 130px;
    top: 2%;
    right: 0;
    padding: 10px;
  }

  .crm-card {
    width: 150px;
    bottom: 12%;
    right: 0;
    padding: 10px 12px;
  }

  .crm-title { font-size: 0.7rem; }
  .crm-meta { font-size: 0.6rem; }

  .mobile-card {
    bottom: 2%;
    left: 30%;
  }

  .phone-frame {
    width: 70px;
    height: 135px;
    border-radius: 14px;
  }

  .cloud-icon { top: 22%; right: 2%; width: 36px; height: 36px; }
  .db-icon { bottom: 22%; left: 2%; width: 36px; height: 36px; }
  .ai-icon { top: 52%; right: 10%; padding: 0 10px; font-size: 0.75rem; }

  .brand-tag {
    display: none;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- Small Mobile (≤575) ---------- */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .hero-trust {
    gap: 14px;
  }

  .trust-divider {
    height: 28px;
  }

  .hero-visual {
    height: 320px;
  }

  .tech-canvas {
    max-width: 300px;
    height: 310px;
  }

  /* Simplify illustration on very small screens */
  .api-connections {
    display: none;
  }

  .code-card {
    display: none;
  }

  .browser-card {
    width: 180px;
    left: 10%;
  }

  .dashboard-card {
    width: 120px;
  }

  .crm-card {
    width: 140px;
  }

  .loading-logo .logo-text {
    font-size: 1.1rem;
  }
}

/* ---------- Clients Section Responsive ---------- */
@media (max-width: 991.98px) {
  .clients-section {
    padding: 80px 0 70px;
  }

  .clients-header {
    margin-bottom: 40px;
  }

  .marquee-fade {
    width: 60px;
  }

  .about-section {
    padding: 84px 0;
  }

  .about-content {
    text-align: center;
  }

  .about-heading,
  .about-lead,
  .about-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .about-visual-wrap {
    padding-left: 0;
    margin-top: 10px;
  }

  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-badges {
    justify-content: center;
  }

  .about-floating-badge-1 {
    top: -12px;
    right: 10px;
  }

  .about-floating-badge-2 {
    bottom: -14px;
    left: 18px;
  }
}

@media (max-width: 767.98px) {
  .clients-section {
    padding: 64px 0 56px;
  }

  .clients-heading {
    font-size: 1.6rem;
  }

  .clients-sub {
    font-size: 0.95rem;
  }

  .client-logo-card {
    padding: 12px 20px;
    gap: 10px;
  }

  .logo-monogram {
    width: 30px;
    height: 30px;
    font-size: 0.6rem;
    border-radius: 8px;
  }

  .logo-name {
    font-size: 0.85rem;
  }

  .clients-marquee-wrap--alt {
    margin-bottom: 36px;
  }

  .trust-pill {
    padding: 10px 16px;
    font-size: 0.75rem;
  }

  .marquee-fade {
    width: 40px;
  }

  .about-section {
    padding: 68px 0;
  }

  .about-heading {
    font-size: 1.8rem;
  }

  .about-lead,
  .about-copy {
    font-size: 0.95rem;
  }

  .about-visual-grid {
    grid-template-columns: 1fr;
  }

  .about-side-stack,
  .about-timeline,
  .about-panel-metrics {
    grid-template-columns: 1fr;
  }

  .about-panel-primary,
  .about-panel-mini,
  .about-panel-wide {
    padding: 22px 18px;
  }

  .about-panel-primary {
    min-height: auto;
  }

  .about-panel-primary h3 {
    font-size: 1.3rem;
    max-width: none;
  }

  .about-feature-card {
    padding: 18px;
  }

  .about-floating-badge {
    position: static;
    margin-top: 14px;
  }

  .about-visual-wrap {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .clients-trust-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-pill {
    justify-content: center;
  }

  .about-badges {
    gap: 10px;
  }

  .about-badge-pill {
    width: 100%;
  }

  .about-feature-card {
    flex-direction: column;
    text-align: left;
  }
}

/* ---------- Services Section Responsive ---------- */
@media (max-width: 1199.98px) {
  .services-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card--featured {
    grid-column: span 1;
  }

  .service-card--featured .service-card-inner {
    min-height: 280px;
  }
}

@media (max-width: 991.98px) {
  .services-section {
    padding: 84px 0;
  }

  .services-header {
    text-align: center;
  }

  .services-heading {
    margin-left: auto;
    margin-right: auto;
  }

  .services-intro {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-header-cta {
    margin: 0 auto;
  }

  .services-cta-panel {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}

@media (max-width: 767.98px) {
  .services-section {
    padding: 68px 0;
  }

  .services-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card--featured {
    grid-column: span 1;
  }

  .service-card-inner,
  .service-card--featured .service-card-inner {
    min-height: auto;
    padding: 24px;
  }

  .service-card--featured .service-title {
    font-size: 1.25rem;
  }

  .services-cta-panel h3 {
    font-size: 1.15rem;
  }
}

/* ---------- Why Choose Us Responsive ---------- */
@media (max-width: 991.98px) {
  .why-section {
    padding: 84px 0;
  }

  .why-sticky {
    position: static;
    padding-right: 0;
    text-align: center;
    margin-bottom: 12px;
  }

  .why-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .why-quote {
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .why-proof-row {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .why-reasons {
    padding-left: 22px;
  }
}

@media (max-width: 767.98px) {
  .why-section {
    padding: 68px 0;
  }

  .why-heading {
    font-size: 1.75rem;
  }

  .why-proof-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .why-reason {
    grid-template-columns: 40px 1fr;
    gap: 10px;
    padding: 16px 0;
  }

  .why-num {
    font-size: 1.15rem;
    padding-top: 18px;
  }

  .why-reason-body {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .why-reason:hover .why-reason-body,
  .why-reason.is-active .why-reason-body {
    transform: translateX(0);
  }

  .why-progress-line {
    left: 4px;
  }
}

@media (max-width: 575.98px) {
  .why-reasons {
    padding-left: 16px;
  }

  .why-reason-body h3 {
    font-size: 1.05rem;
  }
}

/* ---------- Technologies Responsive ---------- */
@media (max-width: 1199.98px) {
  .tech-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .tech-section {
    padding: 84px 0;
  }

  .tech-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tech-intro {
    max-width: 560px;
  }

  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-footnote {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .tech-section {
    padding: 68px 0;
  }

  .tech-filters {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .tech-filter-btn {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  .tech-card {
    min-height: 190px;
    padding: 22px 18px;
  }
}

@media (max-width: 575.98px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-footnote {
    padding: 20px;
  }

  .tech-footnote .btn {
    width: 100%;
  }
}

/* ---------- Footer ---------- */
@media (max-width: 1199.98px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px 28px;
  }

  .footer-col-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }

  .footer-cta-actions {
    width: 100%;
  }

  .footer-cta-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .footer-shell {
    padding-top: 36px;
  }

  .footer-cta-actions {
    flex-direction: column;
  }

  .footer-cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 18px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  .spa-card-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .spa-section {
    padding: 72px 0;
  }

  .spa-card-grid {
    grid-template-columns: 1fr;
  }
}
