/* RESPONSIVE STYLES FOR CONTACT PAGE */
@media (max-width: 640px) {
  .contact-phone-row {
    grid-template-columns: minmax(118px, 0.85fr) minmax(0, 1.15fr) !important;
  }

  .contact-submit-row {
    align-items: stretch !important;
  }

  .contact-captcha-box {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .country-picker-button {
    padding-inline: 0;
  }

  .country-picker-current {
    gap: 6px;
    font-size: 12px;
  }
}


/* Extracted from style.css */

@media (max-width: 1024px) {
  .hero-top-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
    height: auto;
    padding-top: 4rem;
  }

  .hero-text-col,
  .hero-right-col {
    flex: 1;
    width: 100%;
    align-items: center;
  }

  .hero-actions-stats {
    margin: 0 auto;
    justify-content: center;
    padding-right: 0 !important;
  }

  .action-buttons {
    justify-content: center;
  }

  .hero-stats-group {
    margin-left: 0 !important;
    justify-content: center;
  }

  .hero-main-image {
    max-width: 100%;
    height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: -5rem;
  }

  .ecosystem-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .ecosystem-content {
    align-items: center;
  }

  .eco-actions {
    justify-content: center;
  }

  .eco-features {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-list li a {
    font-size: 0.8rem;
  }

  .mega-left,
  .mega-right {
    padding: 2rem;
  }

  .mega-grid {
    gap: 1rem;
  }

  .m-card {
    padding: 1rem;
  }

  .m-icon {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  /* Show hamburger on tablet too */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 42px;
    height: 42px;
    border-radius: 8px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    transition: all 0.3s ease;
  }

  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .hamburger-lines {
    width: 20px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hamburger-lines .line {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--white);
    transition:
      transform 0.4s cubic-bezier(0.54, -0.81, 0.57, 0.57),
      opacity 0.3s ease;
  }

  .mobile-toggle.active .line1 {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-toggle.active .line2 {
    opacity: 0;
  }

  .mobile-toggle.active .line3 {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-list {
    display: none !important;
  }

  /* --- NEW EXPLICIT MOBILE CANVAS --- */
  .mobile-canvas-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      z-index: 998;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }
  .mobile-canvas-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  .mobile-canvas {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100vw;
      max-width: 100vw;
      height: 100vh;
      background: #0a0e2e;
      z-index: 999;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      overflow-y: auto;
      padding: 100px 20px 25px 20px;
  }
  .mobile-canvas.active {
      right: 0;
  }
  .mobile-nav-list {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .m-menu-item {
      border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .m-menu-item > a {
      color: white;
      font-size: 16px;
      font-weight: 500;
      text-decoration: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 0;
  }
  .m-main-icon {
      font-size: 12px;
      opacity: 0.5;
      transition: transform 0.3s;
  }
  .m-menu-item.open > a .m-main-icon {
      transform: rotate(180deg);
  }
  .mobile-accordion {
      display: none;
      padding-bottom: 15px;
  }
  .mobile-accordion.open {
      display: block;
  }
  .m-acc-item {
      margin-bottom: 5px;
  }
  .m-acc-header {
      background: none;
      border: none;
      color: #ccc;
      font-size: 15px;
      width: 100%;
      text-align: left;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px 10px;
      cursor: pointer;
      border-radius: 6px;
  }
  .m-acc-header:hover {
      background: rgba(255,255,255,0.05);
  }
  .m-acc-icon {
      font-size: 11px;
      opacity: 0.5;
      transition: transform 0.3s;
  }
  .m-acc-header.active .m-acc-icon {
      transform: rotate(180deg);
  }
  .m-acc-content {
      display: none;
      padding-left: 20px;
      padding-bottom: 5px;
  }
  .m-acc-content ul {
      list-style: none;
      padding: 0;
      margin: 0;
  }
  .m-acc-content a {
      color: #999;
      font-size: 14px;
      text-decoration: none;
      padding: 8px 10px;
      display: block;
  }
  .m-acc-content a:hover {
      color: white;
  }
  .m-simple-list {
      list-style: none;
      padding: 0 0 0 10px;
      margin: 0;
  }
  .m-simple-list a {
      color: #bbb;
      font-size: 14px;
      text-decoration: none;
      padding: 10px;
      display: block;
  }
  .m-canvas-footer {
      margin-top: 40px;
      text-align: center;
  }
  .m-pill-btn {
      background: var(--primary);
      color: white;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 35px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 15px;
      text-decoration: none;
      transition: background 0.3s;
  }
  .m-pill-btn:hover {
      background: #102bb8;
  }

  .mobile-nav-logo {
    display: block !important;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .ai-item {
    display: none !important;
  }

  .ai-item-mobile {
    display: flex !important;
    align-items: center;
    gap: 0.4rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem;
  }

  .nav-list li {
    width: 100%;
    display: block;
  }

  .nav-list .ai-menu-wrapper {
    display: none !important;
  }

  .nav-list li>a {
    font-size: 1.1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    width: 100%;
    color: var(--white);
  }

  /* Hide Desktop Mega Wrapper */
  .mega-wrapper {
    display: none !important;
  }

  /* Mobile Accordion Styles */
  .mobile-accordion {
    display: none !important;
    /* overriden below if open */
    flex-direction: column;
    padding: 0.5rem 0 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }

  .m-mega-trigger.open .mobile-accordion {
    display: flex !important;
    animation: fadeInDown 0.3s ease;
  }

  .m-acc-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .m-acc-item:last-child {
    border-bottom: none;
  }

  .m-acc-header {
    padding: 1rem 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
  }

  .m-acc-header:hover,
  .m-acc-item.active .m-acc-header {
    color: var(--primary-light);
  }

  .m-acc-header i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
  }

  .m-acc-item.active .m-acc-header i {
    transform: rotate(45deg);
    /* Turns plus to cross */
  }

  .m-acc-content {
    display: none;
    padding: 0 0 1rem 1rem;
  }

  .m-acc-item.active .m-acc-content {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .m-acc-content li a {
    padding: 0.6rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    border: none;
  }

  .m-acc-content li a:hover {
    color: var(--white);
    padding-left: 0.5rem;
  }

  /* Resources Mobile (Basic) */
  .res-mobile-menu {
    display: none !important;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-top: 0.5rem;
  }

  .mega-trigger.open .res-mobile-menu {
    display: block !important;
    animation: fadeInDown 0.3s ease;
  }

  .res-mobile-menu li a {
    font-size: 0.95rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav-actions {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-top-grid {
    flex-direction: column;
    text-align: start;
    gap: 2rem;
    height: auto;
    padding-top: 1rem;
  }

  .action-buttons {
    justify-content: start;
  }

  .hero-actions-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    backdrop-filter: blur(0px);
    padding: 0;
  }
}

@media (max-width: 600px) {
  .contact-btn {
    display: none;
    /* Hide if space is too tight */
  }
}

@media (max-width: 480px) {
  .nav-list {
    width: 100%;
    padding: 2rem 1.5rem 2rem 1.5rem;
  }

}

@media (max-width: 1024px) {
  .ai-item-mobile {
    display: flex;
  }

  .ai-item {
    display: none;
  }
}

@media (max-width: 1200px) {
  .industry-content-horizontal {
    padding: 50px 30px;
  }

  .industry-tab-pane {
    gap: 50px;
  }
}

@media (max-width: 1100px) {
  .industry-nav-horizontal {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .industry-nav-horizontal::-webkit-scrollbar {
    display: none;
  }

  .industry-tab {
    min-width: max-content;
  }

  .industry-content-horizontal {
    border-radius: 2.5rem;
  }
}

@media (max-width: 850px) {
  .industry-tab-pane {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .industry-pane-image img {
    height: 400px;
  }
}

@media (max-width: 640px) {
  .industry-content-horizontal {
    padding: 30px 20px;
  }

  .industry-pane-image img {
    height: 300px;
  }

  .industry-tab-pane h3 {
    font-size: 2.5rem;
  }
}

@media (max-width: 1024px) {
  .services-tabs-wrapper {
    padding: 30px 20px;
  }

  .tab-pane.active {
    gap: 30px;
  }

  .pane-image {
    height: 320px;
  }
}

@media (max-width: 900px) {
  .tab-pane.active {
    flex-direction: column;
    gap: 30px;
  }

  .pane-text {
    width: 100%;
    max-width: 100%;
  }

  .pane-image {
    width: 100%;
    max-width: 100%;
    height: 350px;
  }
}

@media (max-width: 640px) {
  .tabs-header {
    gap: 10px;
  }

  .tab {
    min-width: 95px;
    height: 100px;
  }
}

@media (max-width: 1024px) {
  .case-study-card .lg\:col-span-5 {
    border-left: none !important;
    border-top: 1px solid #e2e8f0;
  }
}

@media (min-width: 1024px) {
  .process-nav-container {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    /* gap-6 is 24px/1.5rem */
  }

  .process-nav-col {
    grid-column: span 9 / span 9;
  }

  .process-nav-horizontal {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .process-tab {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 1100px) {
  .process-nav-horizontal {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .process-nav-horizontal::-webkit-scrollbar {
    display: none;
  }

  .process-tab {
    min-width: max-content;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    padding: 8rem 20px 6rem !important;
  }

  .hero-top-grid {
    min-height: auto !important;
  }

  .hero-right-col {
    display: none !important;
  }

  .hero-text-col {
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .title-with-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 0.5rem;
  }

  .hero-desc {
    text-align: center;
    margin: 0 auto 2rem;
  }

  .hero-actions-stats {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    padding: 0;
    width: 100%;
  }

  .action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-stats-group {
    justify-content: center;
    margin-left: 0;
    width: 100%;
  }

  .hero-stat {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-text-col {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .title-with-badges {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .hero-title {
    text-align: left !important;
    justify-content: flex-start !important;
  }

  .hero-desc {
    text-align: left !important;
    margin: 0 !important;
  }

  .hero-actions-stats {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .action-buttons {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: auto !important;
    gap: 1rem !important;
  }

  .action-buttons .btn {
    width: auto !important;
    text-align: left !important;
  }

  .hero-stats-group {
    /* flex-direction: column !important; */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    gap: 1rem !important;
  }

  .hero-stat {
    text-align: left !important;
  }

  .stat-divider {
    display: none !important;
  }
}

@media (max-width: 640px) {

  .about-hero-container,
  .about-hero-text-col,
  .about-title-wrapper,
  .about-hero-actions {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .about-hero-title {
    text-align: left !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .about-hero-desc {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .about-action-buttons {
    justify-content: flex-start !important;
    width: 100% !important;
    gap: 1rem !important;
  }
}

@media (max-width: 640px) {
  .about-story-offset-frame {
    border-radius: 40px 12px;
    transform: translate(8px, 8px);
  }

  .group:hover .about-story-offset-frame {
    transform: translate(4px, 4px);
  }

  .about-story-img-container {
    border-radius: 40px 12px;
    padding: 8px !important;
  }

  .about-story-img-inner {
    border-radius: 35px 8px;
  }
}

@media (max-width: 1024px) {
  .about-solutions-header {
    gap: 1.5rem;
  }

  .about-solutions-cta {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .about-solutions-card {
    padding: 1.25rem;
  }

  /* Reset the elevated scale on the featured (dark) card so it doesn't overflow */
  .about-solutions-card--featured {
    transform: scale(1) !important;
  }

  /* CTA button row: stack vertically and stretch to fill */
  .about-solutions-cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0;
  }

  .about-solutions-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1024px) {
  .contact-page .contact-info-card {
    min-height: auto;
  }

  .contact-page .contact-careers-grid {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .contact-page .contact-section-header {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-page .contact-card-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-page .contact-careers-cta {
    border-radius: 22px !important;
  }

  .contact-page .contact-careers-grid {
    padding: 32px;
  }

  .contact-page .contact-careers-signal {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-info-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .contact-page .contact-info-card {
    padding: 1.35rem !important;
    border-radius: 20px !important;
  }

  .contact-page .contact-careers-cta {
    padding: 2rem 1.25rem !important;
  }

  .contact-page .contact-careers-grid {
    padding: 0;
  }

  .contact-page .contact-careers-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-page .contact-careers-overlay {
    background:
      linear-gradient(180deg, rgba(10, 14, 46, 0.96) 0%, rgba(10, 14, 46, 0.88) 62%, rgba(23, 61, 255, 0.48) 100%);
  }

  .contact-page .contact-careers-signal {
    border-radius: 20px;
    padding: 20px;
  }

  .contact-page .contact-careers-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .contact-page .contact-careers-media {
    border-radius: 24px 24px 0 0;
  }

  .contact-page .contact-careers-content {
    border-radius: 0 0 24px 24px;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-careers-cta {
    border-radius: 22px !important;
    padding: 6px !important;
  }

  .contact-page .contact-careers-media,
  .contact-page .contact-careers-media img {
    min-height: 280px;
  }

  .contact-page .contact-careers-media {
    border-radius: 18px 18px 0 0;
  }

  .contact-page .contact-careers-content {
    border-radius: 0 0 18px 18px;
    padding: 1.5rem;
  }

  .contact-page .contact-careers-title {
    font-size: clamp(2rem, 13vw, 3rem);
  }
}

@media (max-width: 768px) {
  .contact-page .contact-office-section {
    min-height: 650px;
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .contact-page .contact-simple-card {
    min-height: auto;
    padding: 2rem;
  }

  .contact-page .contact-simple-icon {
    margin-bottom: 2rem;
  }

  .contact-page .contact-office-details {
    padding: 1.5rem;
  }

  .contact-page .contact-office-city {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .contact-page .contact-careers-grid {
    min-height: auto;
  }

  .contact-page .contact-careers-visual {
    padding: 0 2rem 2rem;
    min-height: 300px;
    justify-content: flex-start;
    display: none;
  }

  .contact-page .contact-careers-photo-card--main {
    width: min(220px, 45%);
    transform: translate(20px, 0);
  }

  .contact-page .contact-careers-photo-card--side {
    width: min(215px, 44%);
    transform: translate(0, -18px);
  }
}

@media (max-width: 640px) {
  .contact-page .contact-careers-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .contact-page .contact-careers-cta {
    border-radius: 16px !important;
  }

  .contact-page .contact-careers-cta::after {
    border-radius: 16px;
  }

  .contact-page .contact-careers-content {
    padding: 2rem 1.35rem 0rem;
  }

  .contact-page .contact-careers-title {
    font-size: clamp(1.9rem, 11vw, 2.7rem);
  }

  .contact-page .contact-careers-copy {
    margin-bottom: 1.35rem;
  }

  .contact-page .contact-careers-primary {
    width: 100%;
  }

  .contact-page .contact-careers-visual {
    min-height: 245px;
    padding: 0 1rem 1.5rem;
  }

  .contact-page .contact-careers-photo-card {
    border-width: 4px;
    border-radius: 20px;
  }

  .contact-page .contact-careers-photo-card--main,
  .contact-page .contact-careers-photo-card--side {
    width: 46%;
  }
}

@media (max-width: 768px) {
  .contact-page .group\/pin .relative {
    transform: scale(0.85);
  }

  .contact-page .group\/pin:hover .relative {
    transform: scale(1);
  }

  .contact-page .absolute.bottom-6.left-1\/2 {
    display: none !important;
    /* Hide map tooltips on tiny mobile screens for space */
  }
}

/* ========================================= */
/* DM Process Section Responsive */
/* ========================================= */
@media(max-width: 992px) {
    .dm-process-container {
        flex-direction: column;
    }
    .dm-process-visual {
        height: 350px;
        min-height: auto;
    }
    .dm-process-content {
        padding: 40px 30px;
    }
    .dm-process-step {
        margin-bottom: 25px;
    }
}
@media(max-width: 576px) {
    .dm-process-content {
        padding: 30px 10px 20px 20px;
    }
    .dm-process-timeline {
        padding-left: 20px;
    }
    .dm-process-indicator {
        left: -30px;
        width: 18px;
        height: 18px;
    }
    .dm-process-title {
        font-size: 20px !important;
    }
    .dm-process-desc {
        font-size: 0.95rem;
        padding-right: 0px;
    }
    .dm-process-step {
        padding: 10px;
    }
}
/* Single Post Responsive Styles */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    .blog-card .blog-image {
        flex: 0 0 auto;
        height: 180px;
    }
}
