/* Responsive Utilities & Overrides */

/* Mobile First Approach */

/* Small Devices (Landscape phones, 576px and up) */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  .section {
    padding: var(--space-xl) 0;
  }
  
  .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
  }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
}

@media (max-width: 991px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.4s ease, visibility 0.4s;
    z-index: 1000;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
  }

  /* Solid background overlay */
  .header.menu-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-bg-dark);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }
  
  .trust-content {
    justify-content: center;
  }
  
  .project-overlay {
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.4));
  }

  .ms-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .ms-left-col {
    padding-right: 0;
  }
  
  .ms-preview-body {
    flex-direction: column;
  }
  
  .ms-stat-card {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    margin-bottom: 1rem;
    animation: none !important;
  }
  
  .ms-preview-pane {
    padding: 1.5rem;
    min-height: auto;
  }
}
