/* ==========================================
   MOBILE RESPONSIVE FIXES
   Clean, non-destructive mobile optimizations
   ========================================== */

/* ========== GLOBAL FIXES ========== */
html {
  overflow-x: hidden !important;
  /* NOTE: removed overflow-x: clip - it breaks position: fixed on mobile */
  /* Prevent Chrome/Edge mobile font inflation that causes layout shifts */
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  /* Ensure no horizontal scroll */
  max-width: 100%;
  width: 100%;
  /* NOTE: removed position: relative - it creates containing block that breaks position: fixed */
}

body {
  overflow-x: hidden !important;
  /* NOTE: removed overflow-x: clip - it breaks position: fixed on mobile */
  width: 100%;
  /* Use 100% instead of 100vw to avoid scrollbar width issues on Chrome/Edge */
  max-width: 100%;
  /* Prevent Chrome mobile font boosting */
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
  /* Reset any potential margin/padding causing overflow */
  margin: 0;
  padding: 0;
  /* NOTE: removed position: relative - it can affect fixed positioning on some browsers */
  /* Ensure body doesn't extend beyond viewport */
  min-width: 0;
}

/* CRITICAL: Lock base font size on mobile to prevent late recalculations */
@media (max-width: 768px) {
  html {
    font-size: 16px !important;
  }

  body {
    font-size: 1rem !important;
  }
}

/* Prevent any element from causing horizontal scroll - exclude pseudo-elements */
*:not(::before):not(::after) {
  max-width: 100%;
  box-sizing: border-box;
}

/* Additional fix for horizontal scroll - ensure no negative margins or positioning */
@media (max-width: 768px) {
  * {
    /* Prevent elements from extending beyond viewport */
    max-width: 100vw;
  }
  
  /* Ensure containers don't allow horizontal overflow */
  .container,
  section,
  header,
  footer,
  main {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  /* Fix for any absolute/fixed positioned elements - EXCLUDE widget */
  [style*="position: absolute"]:not(#linkai-chat-button):not(#linkai-chat-container),
  [style*="position: fixed"]:not(#linkai-chat-button):not(#linkai-chat-container) {
    left: auto !important;
    right: auto !important;
  }
}

/* Ensure wrapper elements clip overflow */
#wrapper,
.page-wrapper,
main {
  overflow-x: clip;
  max-width: 100%;
}

/* Key layout containers - strict overflow control */
/* NOTE: .quality-carousel-section removed - needs overflow:visible for 3D carousel side cards */
section,
.container,
.hero-container,
.hero-grid,
.hero-content,
.revolutionary-hero,
.what-we-build-section,
.departments-section-interactive,
.pricing-section-dark,
.faq-section,
.obca-showcase-section,
footer {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Quality carousel section needs overflow visible for 3D transformed cards */
.quality-carousel-section {
  max-width: 100%;
  overflow: visible !important;
}

/* Hero visual elements that extend outside - clip at container level */
.hero-ai-visual,
.ai-integration-graphic,
.ai-orbit {
  overflow-x: clip;
}

/* Two paths section should not have internal scroll */
.two-paths-section {
  overflow: visible;
}

.two-paths-section > .container,
.paths-container,
.path-card-clean,
.path-content {
  overflow: visible;
}

/* ========== PREVENT INTERNAL SCROLL ON ALL SECTIONS ========== */
/* Use overflow: hidden to prevent any scrollbars within these sections */
.solutions-section-new,
.ai-reality-section,
.integrations-section,
.workflow-glass-section,
.solutions-section,
.pricing-section-dark,
.faq-section-modern,
.contact-compact-section,
.departments-section-interactive {
  overflow: hidden !important;
}

/* Quality carousel - WHY QUALITY IMPLEMENTATION MATTERS */
/* IMPORTANT: Carousel needs overflow: visible for 3D transformed side cards to show */
.quality-carousel-wrapper,
.quality-carousel-3d,
.carousel-scene,
.carousel-container {
  overflow: visible !important;
}

/* Only the card inner content should clip overflow, not the cards themselves */
.carousel-card {
  overflow: visible !important;
}

.carousel-card .card-inner {
  overflow: hidden !important;
}

/* WHAT WE DELIVER section - solutions grid */
.solutions-grid-4,
.solutions-grid-5 {
  overflow: visible !important;
}

.solution-card-new {
  overflow: hidden !important;
}

/* PERSONALIZED SOLUTIONS / Pricing section */
.pricing-layout,
.pricing-card,
.pricing-card-dark,
.pricing-card-content,
.pricing-card-glow,
.pricing-info-cards,
.info-card-dark,
.pricing-features-dark,
.feature-item-dark {
  overflow: hidden !important;
}

/* FAQ section */
.faq-container,
.faq-item {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Departments section */
.dept-interactive-layout,
.dept-display-card,
.dept-buttons-panel {
  overflow: hidden !important;
}

/* Deliver morph (tabbed content) */
.deliver-morph-wrapper,
.deliver-morph-container,
.deliver-morph-content,
.deliver-panel,
.deliver-panel-inner {
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* ========== HERO VIDEO VISIBILITY ========== */
/* Desktop: show right-side video, hide inline mobile video */
.hero-video-mobile {
  display: none;
}

.hero-video-desktop {
  display: flex;
}

/* Mobile: show inline video, hide right-side video */
@media (max-width: 768px) {
  .hero-video-mobile {
    display: block;
    width: 100%;
    margin: 1.5rem 0;
  }

  .hero-video-desktop {
    display: none !important;
  }

  /* Disable ALL AOS animations on mobile to prevent layout shifts */
  [data-aos],
  [data-aos].aos-animate,
  [data-aos].aos-init,
  .aos-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
    /* Prevent any scale transforms that make content appear small */
    scale: 1 !important;
  }

  [data-aos][data-aos][data-aos-duration] {
    transition-duration: 0s !important;
  }

  /* Ensure all AOS animation types show immediately */
  [data-aos="fade-up"],
  [data-aos="fade-down"],
  [data-aos="fade-left"],
  [data-aos="fade-right"],
  [data-aos="fade-up-right"],
  [data-aos="fade-up-left"],
  [data-aos="zoom-in"],
  [data-aos="zoom-out"],
  [data-aos="slide-up"],
  [data-aos="flip-left"],
  [data-aos="flip-right"] {
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
  }

  /* Prevent any unwanted transforms on page load for subpages */
  body,
  html {
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
  }

  /* Ensure all sections and containers don't get scaled down */
  section,
  .container,
  .page-hero,
  .hero-container,
  .hero-grid,
  .hero-content,
  main,
  .page-wrapper {
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
  }

  /* Prevent any viewport-based scaling that might make content appear small */
  * {
    zoom: 1 !important;
  }
  
  /* Ensure no elements are scaled down on initial load */
  body > * {
    transform: scale(1) !important;
  }

  /* Link AI widget - appended to <html> element, use translate3d for iOS Safari hardware acceleration */
  html > #linkai-chat-button,
  #linkai-chat-button {
    -webkit-transform: translate3d(0,0,0) !important;
    transform: translate3d(0,0,0) !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    position: fixed !important;
    z-index: 2147483647 !important;
  }

  html > #linkai-chat-container,
  #linkai-chat-container {
    -webkit-transform: translate3d(0,0,0) !important;
    transform: translate3d(0,0,0) !important;
    position: fixed !important;
    z-index: 2147483646 !important;
  }
}

/* Floating action button removed */

/* ========== PREVENT OVERFLOW FROM GLOW/PSEUDO ELEMENTS ========== */
/* These elements have width: 200% and left: -50% which can cause horizontal scroll */
.usecase-card,
.dept-modern-card,
.dept-card-glow,
.solution-showcase-card,
.path-card-clean,
.detailed-card,
.process-step-card,
.agent-card,
.agentic-explanation-card,
.benefit-point {
  overflow: hidden;
}

/* Ensure all cards with glow effects don't overflow */
[class*="-card"]::before,
[class*="-card"]::after {
  pointer-events: none;
}

/* ========== HEADER/NAV MOBILE ========== */
@media (max-width: 992px) {
  .header {
    padding: 0.75rem 0;
  }

  .menu-toggle {
    z-index: 1001;
    position: relative;
    cursor: pointer;
  }

  .nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav.nav-active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    gap: 0;
    padding: 5rem 2rem 2rem;
    margin: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-list li a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    display: block;
    width: 100%;
    border-radius: 0;
  }

  .nav-list li a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    padding-left: 2rem;
  }

  /* Mobile Dropdown Styles */
  .nav-dropdown {
    width: 100%;
    position: relative;
  }

  .nav-dropdown .dropdown-toggle {
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
  }

  .nav-dropdown .dropdown-toggle:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
  }

  .nav-dropdown .dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
    margin-left: 0.25rem;
  }

  .nav-dropdown.active .dropdown-toggle {
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
  }

  .nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .nav-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(10, 10, 30, 0.95) 100%);
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 100%;
  }

  .nav-dropdown.active .dropdown-menu {
    max-height: 500px;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  }

  .nav-dropdown .dropdown-menu li {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    text-align: center;
  }

  .nav-dropdown .dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav-dropdown .dropdown-menu a {
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    text-align: center;
    transition: all 0.3s ease;
  }

  .nav-dropdown .dropdown-menu a:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
    padding-left: 1.5rem;
  }

  .btn-login-modern {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .btn-login-modern span {
    display: none;
  }
}

/* ========== HERO SECTION ========== */
@media (max-width: 992px) {
  .revolutionary-hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-container {
    padding: 0 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Content first (video is now inline inside hero-content) */
  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
    margin-top: 1rem;
  }

  /* Keep video size consistent - no shrinking */
  .video-hero-container {
    max-width: 100%;
    width: 100%;
  }

  .youtube-container-hero {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.25);
  }

  .scroll-indicator {
    bottom: 1rem;
  }
}

/* ========== TWO PATHS SECTION ========== */
@media (max-width: 992px) {
  .two-paths-section {
    padding: 60px 0;
  }

  .paths-container {
    flex-direction: column;
    gap: 2rem;
  }

  .path-card-clean {
    max-width: 100%;
    width: 100%;
  }

  .paths-divider {
    flex-direction: row;
    width: 100%;
    padding: 1rem 0;
  }

  .divider-line {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .path-content h3 {
    font-size: 1.25rem;
  }

  .path-features li {
    font-size: 0.9rem;
  }
}

/* ========== VIDEO SHOWCASE ========== */
.video-showcase-section {
  overflow: visible;
}

@media (max-width: 768px) {
  .video-showcase-section {
    padding: 3rem 0;
  }

  .video-showcase-wrapper {
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .youtube-container {
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .youtube-container iframe {
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .video-showcase-section {
    padding: 2rem 0;
  }

  .video-showcase-wrapper {
    padding: 0 1rem;
  }

  .youtube-container {
    border-radius: 10px;
  }

  .youtube-container iframe {
    border-radius: 10px;
  }
}

/* ========== HOW WE TRANSFORM (WORKFLOW GLASS) ========== */
@media (max-width: 768px) {
  .workflow-glass-section {
    padding: 50px 0;
  }

  .workflow-bg-effects {
    display: none;
  }

  .workflow-header {
    margin-bottom: 2rem;
  }

  .workflow-badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.75rem;
  }

  .workflow-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .workflow-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .workflow-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
  }

  .workflow-timeline::before,
  .workflow-timeline::after {
    display: none;
  }

  .workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }

  .workflow-step:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
  }

  .workflow-step.highlighted {
    order: unset;
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
  }

  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1rem;
    flex-shrink: 0;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step-connector {
    display: none;
  }

  .step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
  }

  .step-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .step-icon i {
    font-size: 1.5rem;
  }

  .step-content {
    flex: 1;
    text-align: center;
    width: 100%;
  }

  .step-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }

  .step-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
  }

  .step-badge {
    position: absolute;
    top: -8px;
    left: 50px;
    font-size: 0.55rem;
    padding: 0.2rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .workflow-title {
    font-size: 1.35rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .step-icon {
    width: 36px;
    height: 36px;
  }

  .step-content h3 {
    font-size: 0.85rem;
  }

  .step-content p {
    font-size: 0.75rem;
  }
}

/* ========== WHAT WE DELIVER / SOLUTIONS ========== */
@media (max-width: 768px) {
  .solutions-section {
    padding: 50px 0;
  }

  /* Keep the animation, just adjust content inside */
  .deliver-content {
    padding: 1.25rem;
    flex-direction: column !important;
    text-align: center;
    gap: 0.75rem;
  }

  .deliver-content h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }

  .deliver-content p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
  }

  .state-icon-area {
    margin-bottom: 0.25rem;
  }

  .state-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .state-badge {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
  }

  .state-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    text-align: left;
    width: 100%;
  }

  .feature-item {
    font-size: 0.7rem;
    gap: 0.25rem;
  }

  .feature-item i {
    font-size: 0.65rem;
  }

  .tech-tags {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .consulting-grid,
  .support-options {
    gap: 0.5rem;
  }

  .consulting-item,
  .support-option {
    padding: 0.5rem;
    font-size: 0.7rem;
  }

  .integration-nodes {
    gap: 0.5rem;
  }

  .node-item i {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .node-item span {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .deliver-content {
    padding: 1rem;
    gap: 0.5rem;
  }

  .deliver-content h2 {
    font-size: 1.1rem;
  }

  .deliver-content p {
    font-size: 0.75rem;
  }

  .state-icon {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }

  .state-features {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .feature-item {
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  .magic-title {
    font-size: 1.5rem;
  }

  .morph-stage {
    max-width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .magic-title {
    font-size: 1.5rem;
  }

  .morph-stage {
    max-width: 260px;
    height: 260px;
  }
}

/* ========== ORCHESTRATION SECTION ========== */
@media (max-width: 992px) {
  .orchestration-section {
    padding: 60px 0;
  }

  .orchestration-canvas-new {
    padding: 30px 15px;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .orchestration-canvas-new {
    padding: 20px 10px;
    gap: 20px;
  }

  .workflow-layer {
    padding: 10px;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .workflow-node {
    min-width: 120px;
    max-width: 140px;
    padding: 10px 12px;
  }

  .node-icon {
    font-size: 1.25rem;
  }

  .node-label {
    font-size: 0.65rem;
  }

  .layer-title {
    font-size: 0.7rem;
  }

  .decision-branches {
    flex-direction: column;
    gap: 15px;
  }

  .branch {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .workflow-node {
    min-width: 100px;
    max-width: 120px;
    padding: 8px 10px;
  }

  .node-icon {
    font-size: 1rem;
  }

  .node-label {
    font-size: 0.6rem;
  }
}

/* ========== ARCHITECTURE SECTION ========== */
@media (max-width: 992px) {
  .arch-3d-scene {
    height: 400px;
  }

  .arch-node-3d {
    width: 100px;
    height: 90px;
  }

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

@media (max-width: 576px) {
  .arch-3d-scene {
    height: 300px;
  }

  .arch-node-3d {
    width: 80px;
    height: 70px;
    font-size: 0.7rem;
  }

  .arch-metrics-row {
    grid-template-columns: 1fr;
  }
}

/* ========== PRICING SECTION ========== */
@media (max-width: 992px) {
  .pricing-section-dark {
    padding: 60px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-title-dark {
    font-size: 1.5rem;
  }
}

/* ========== FAQ SECTION ========== */
@media (max-width: 992px) {
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .faq-section-modern {
    padding: 50px 0;
    overflow-x: hidden !important;
  }

  .faq-section-modern .container {
    padding: 0 1rem;
    overflow: hidden;
  }

  .faq-header {
    margin-bottom: 2rem;
  }

  .faq-title {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  .faq-subtitle {
    font-size: 0.95rem !important;
  }

  .faq-item {
    border-radius: 16px;
    margin-bottom: 0.75rem;
  }

  .faq-question {
    padding: 1rem;
    gap: 0.75rem;
  }

  .faq-icon {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px;
    font-size: 0.9rem !important;
    border-radius: 10px;
  }

  .faq-question span {
    font-size: 0.9rem !important;
    line-height: 1.4;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.8rem;
  }

  .faq-answer-content {
    padding: 0 1rem 1rem 1rem !important;
  }

  .faq-answer-content p {
    font-size: 0.9rem;
  }

  .faq-path {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .faq-path h4 {
    font-size: 0.85rem;
  }

  .faq-path ul li {
    font-size: 0.85rem;
  }

  .faq-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .faq-stat {
    padding: 0.75rem 1rem;
  }

  .faq-stat .stat-value {
    font-size: 1.5rem;
  }

  .faq-checklist li {
    font-size: 0.875rem;
  }

  .faq-highlight {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .faq-note {
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}

/* ========== CONTACT SECTION ========== */
@media (max-width: 768px) {
  .contact-compact-section {
    padding: 60px 0;
  }

  .contact-form-compact {
    padding: 1.5rem;
  }
}

/* ========== FOOTER ========== */
@media (max-width: 768px) {
  .footer-section {
    padding: 40px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* ========== MODAL ========== */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .login-modal-content {
    border-radius: 16px;
  }

  .login-modal-body {
    padding: 1.5rem;
  }
}

/* ========== TRUST BADGES ========== */
@media (max-width: 576px) {
  .trust-badges {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .trust-badge-item {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ========== GLOBAL MEDIA ELEMENTS ========== */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* ========== OBCA SECTION MOBILE SCROLL FIX ========== */
/* Disable pointer events on OBCA to allow scroll passthrough on mobile */
@media (max-width: 768px) {
  .obca-showcase-section {
    /* Allow touch events to pass through for scrolling */
    touch-action: pan-y;
  }

  .obca-neural-ecosystem,
  .ai-brain-container,
  .ai-brain {
    /* Disable pointer events on mobile so touch scrolling works */
    pointer-events: none;
  }

  /* Disable interactive elements on mobile */
  .obca-central-core,
  .neural-satellite {
    pointer-events: none;
    cursor: default;
  }

  /* Also disable hover effects that might interfere */
  .obca-central-core:hover,
  .neural-satellite:hover {
    transform: none;
    filter: none;
  }

  /* Reduce the height of the OBCA section on mobile */
  .obca-showcase-section .ai-brain {
    height: 350px;
  }
}

/* ========== TYPOGRAPHY SCALING ========== */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}

/* ========== AI INTEGRATION GRAPHIC (HERO) ========== */
@media (max-width: 992px) {
  .hero-ai-visual {
    order: 1;
    display: flex;
    justify-content: center;
  }

  .ai-integration-graphic {
    width: 280px;
    height: 280px;
    max-width: 100%;
  }

  .ai-orbit {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .hero-ai-visual {
    touch-action: pan-y;
    /* Remove scaling - let hero-enhanced.css handle sizing */
    transform: none;
    transform-origin: center;
    margin: 0 auto;
    max-width: 100%;
    overflow: visible;
  }

  /* Let hero-enhanced.css handle OBCA sizing */
  .obca-neural-system {
    max-width: 100%;
    overflow: visible;
  }

  /* Simplify animations on mobile for performance */
  .orbital-ring {
    animation-duration: 30s !important;
  }

  /* Show feature nodes on mobile */
  .feature-node {
    display: flex !important;
  }

  /* Show connectors on mobile */
  .fn-connector {
    display: block !important;
  }

  .core-text-line2 {
    font-size: 0.7rem !important;
  }

  /* Hide some neural nodes for cleaner look */
  .neural-node.n4, .neural-node.n5 {
    display: none;
  }

  /* Reduce particle count for performance */
  .particle {
    display: none !important;
  }
  .particle.p1, .particle.p2 {
    display: block !important;
  }

  /* Show data flow SVG (curved connectors) on mobile */
  .data-flow-svg {
    display: block !important;
  }

  .ai-integration-graphic {
    width: 240px;
    height: 240px;
    max-width: 100%;
  }

  .ai-orbit {
    width: 200px;
    height: 200px;
    /* Disable rotation animation on mobile for performance */
    animation: none;
  }

  .orbit-node {
    animation: none !important;
  }

  .business-core {
    width: 70px;
    height: 70px;
  }

  .business-icon {
    width: 50px;
    height: 50px;
  }

  .business-icon i {
    font-size: 1.25rem;
  }

  .business-label {
    font-size: 0.6rem;
  }

  .node-icon {
    width: 36px;
    height: 36px;
  }

  .node-icon i {
    font-size: 0.9rem;
  }

  .node-label {
    font-size: 0.55rem;
  }

  .obca-label {
    bottom: -20px;
    padding: 0.35rem 0.75rem;
  }

  .obca-text {
    font-size: 0.65rem;
  }

  .obca-full {
    font-size: 0.5rem;
  }

  .integration-connections {
    display: none;
  }

  .people-icons {
    display: none;
  }
}

/* ========== INTEGRATIONS DUAL CAROUSEL ========== */
@media (max-width: 768px) {
  .integrations-section {
    padding: 3rem 0 2rem;
  }

  .integrations-carousel {
    margin: 1rem 0;
    padding: 0.75rem 0;
  }

  .integrations-carousel.reverse {
    margin-top: 0;
  }

  .integration-item {
    min-width: 120px;
    padding: 1rem;
    margin: 0.5rem 0;
  }

  .integration-item i {
    font-size: 1.75rem;
  }

  .integration-item span {
    font-size: 0.75rem;
  }
}

/* ========== SOLUTIONS GRID (4 & 5 CARDS) ========== */
@media (max-width: 768px) {
  .solutions-section-new {
    padding: 3rem 0;
  }

  .solutions-grid-4,
  .solutions-grid-5 {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1rem;
  }

  .solution-card-new {
    padding: 1.5rem;
  }

  .solution-icon-new {
    width: 50px;
    height: 50px;
  }

  .solution-icon-new i {
    font-size: 1.25rem;
  }

  .solution-card-new h3 {
    font-size: 1.1rem;
  }

  .solution-desc {
    font-size: 0.9rem;
  }

  .solution-features-new li {
    font-size: 0.85rem;
  }
}
