@media (max-width: 991.98px) {
  :root {
    --display-4-size: 3rem;
    --display-5-size: 2.5rem;
    --display-6-size: 2.25rem;
  }

  .mock-dashboard {
    height: auto;
    flex-direction: column;
  }

  .mock-sidebar {
    width: 100%;
    border-right: none !important;
    border-bottom: 1px solid #dee2e6;
  }

  .mock-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .mock-nav .nav-item {
    white-space: nowrap;
  }

  .process-row::before {
    display: none;
  }

  .step-item::after {
    display: none;
  }

  .step-item {
    margin-bottom: 30px;
  }

  .cta-banner {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  :root {
    --display-4-size: 2.25rem;
    --display-5-size: 2rem;
    --display-6-size: 1.75rem;
  }

  .handdrawn-note {
    text-align: center;
  }

  .arrow-svg {
    display: none;
  }

  .lead-info-card {
    flex-direction: column;
    gap: 15px;
  }

  .lead-info-card>div.border-start {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid #dee2e6;
    padding-top: 15px;
  }

  /* Reduce excessive padding and margins on mobile */
  section,
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .pt-5 {
    padding-top: 2rem !important;
  }

  .pb-5 {
    padding-bottom: 2rem !important;
  }

  .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .mb-5 {
    margin-bottom: 1.5rem !important;
  }

  .mt-5 {
    margin-top: 1.5rem !important;
  }

  .hero-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .hero-btn-group .btn {
    font-size: 0.85rem !important;
    padding: 10px 15px !important;
  }

  .hero-play-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 10px !important;
  }

  .automation-card h4 {
    font-size: .95rem !important;
  }

  .workflow-step-icon {
    width: 24px;
    height: 24px;
  }

  .workflow-line {
    left: 12px;
  }
}

@media (max-width: 575.98px) {
  :root {
    --display-4-size: 1.65rem;
    --display-5-size: 1.2rem;
    --display-6-size: 1.25rem;
    --display-7-size: 1.2rem;
    --h5-size: 1rem;
    --h4-size: 1.4rem;
  }

  .hero-form-card {
    padding: 25px 15px !important;
  }

  .cta-banner {
    padding: 25px 15px !important;
  }

  .fs-lg {
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
  }

  .fs-md {
    font-size: 0.80rem !important;
  }

  /* Further reduce spacing for very small screens */
  section,
  .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .pt-5 {
    padding-top: 1.5rem !important;
  }

  .pb-5 {
    padding-bottom: 1.5rem !important;
  }

  .my-5 {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .mb-5 {
    margin-bottom: 1.25rem !important;
  }

  .mt-5 {
    margin-top: 1.25rem !important;
  }

  .gap-4 {
    gap: 1rem !important;
  }

  .metrico-logo-text {
    font-size: 20px;
  }

  .crm-logo-badge {
    font-size: 8px;
    padding: 2px 4px;
  }

  .logo-tagline {
    font-size: 8px;
  }

  .hero-title {
    line-height: 1.3;
  }

  .ready-to-connect {
    font-size: var(--display-5-size) !important;
  }

  .sm-2-card {
    padding: 8px !important;
    margin-block: 0px !important;
  }

  .sm-2-card h5 {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .sm-2-card h6 {
    font-size: 12px !important;
  }

  .sm-2-card p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .sm-2-card .myCard,
  .sm-2-card .integration-card-v2,
  .sm-2-card .premium-feature-card,
  .sm-2-card .feature-card-detailed {
    padding-inline: 8px !important;
  }

  .readyTogetStartedBadge {
    display: none !important;
  }

  .pricing-card-new.bg-light-hover-bg {
    background-color: #f6f6f6 !important;
  }

  .pricing-card-new h4.fw-bold.mb-0 {
    font-size: 1.2rem !important;
  }

  .icon-box-pricing {
    width: 40px !important;
    height: 40px !important;
    font-size: 14px !important;
  }

  .fromSignUpCard {
    max-width: initial !important;
    width: initial !important;
    min-height: initial !important;
    flex: 1 1 150px !important;
    height: 100% !important;
    display: flex;
  }

  .accordion-button {
    font-size: 13px;
  }

  .headset-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin-top: 20px;
  }

  .feature-icon {
    width: 50px !important;
    height: 50px !important;
  }

  .feature-icon i {
    font-size: 16px !important;

  }
  .feature-card-detailed {
      transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
      display: flex;
      flex-direction: column;
      border-radius: 12px;
      align-items:center !important;
    }
    .feature-card-detailed > p {
        text-align:center;
    }
}

/* Responsive Media Queries for Features Page */

@media (max-width: 1199.98px) {
  .view-360-container {
    transform: scale(0.9);
  }
}

@media (max-width: 991.98px) {
  .hero-dashboard-img {
    margin-top: 2rem;
    transform: none;
    /* Remove 3D effect on mobile for better visibility */
  }

  .hero-dashboard-img:hover {
    transform: none;
  }

  .view-360-container {
    transform: scale(0.8);
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .view-360-container {
    transform: scale(0.6);
  }
}

@media (max-width: 575.98px) {
  .view-360-container {
    transform: scale(0.5);
  }



  .more-features .hover-feature {
    flex-direction: column;
    text-align: center;
    align-items: center !important;
  }
}

/* --- Automation Page Responsive --- */
@media (max-width: 991.98px) {
  .process-stepper .process-line {
    display: none;
  }

  .process-stepper .row {
    justify-content: center;
  }
}