/* =================== Responsive Fixes =================== */

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
  .hero-text h1 {
    font-size: 3.2rem;
  }
}

/* Laptops & Desktops (992px - 1439px) */
@media (max-width: 1200px) {
  .nav-links ul {
    gap: 3rem;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 992px) {
  .navbar {
    padding: 0 20px;
    height: auto;
  }

  .logo-text {
    font-size: 28px;
  }

  /* Navbar collapse background */
  .navbar-collapse {
    background-color: #0c2d4c;
    padding: 1rem;
    border-radius: 8px;
  }

  .hero {
    flex-direction: column; /* stack */
  }

  .hero-left,
  .hero-right {
    width: 100%;
    height: 50vh; /* split into halves */
  }

  .hero-left {
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-row {
    flex-direction: column;
  }

  .about-col {
    border-right: none !important;
    margin-bottom: 30px;
  }

  .why .row {
    flex-direction: column;
  }

  .why-box {
    text-align: center;
  }

  .footer-right {
    text-align: center !important;
    margin-top: 20px;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 768px) {
  .logo-img {
    width: 50px;
    height: 50px;
  }

  .logo-text {
    font-size: 22px;
  }

  /* Navbar collapse background */
  .navbar-collapse {
    background-color: #0c2d4c;
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links ul {
    display: none; /* hide links - replace with hamburger later */
  }

  .hero-left {
    padding: 30px 15px;
    min-height: 100vh; /* hero takes full screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .hero-right {
    height: 40vh;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text .subtitle {
    font-size: 1rem;
  }

  .hero-text .description {
    font-size: 0.9rem;
  }

  .btn {
    padding: 8px 18px;
    font-size: 0.9rem;
  }

  .wrapper .card {
    min-height: auto;
    margin-bottom: 2rem;
  }

  #partners h3 {
    font-size: 1.6rem;
  }

  #partners p.lead {
    font-size: 0.9rem;
  }

  .footer-projects {
    flex-direction: column;
    gap: 10px;
  }
  .why-box {
    text-align: start;
  }
  .navbar-nav {
    gap: 1rem !important;
  }
  .mobile-logo img {
    height: auto;
    width: 70%;
  }
}

/* Small Mobile (<575px) */
@media (max-width: 575px) {
  .hero-right {
    display: none; /* hide image on very small screens */
  }

  .hero-left {
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Navbar collapse background */
  .navbar-collapse {
    background-color: #0c2d4c;
    padding: 1rem;
    border-radius: 8px;
  }

  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .about-text {
    font-size: 0.85rem;
  }

  .why-box h5 {
    font-size: 1rem;
  }

  .site-footer {
    padding: 40px 0 20px;
  }

  .site-footer .footer-logo {
    font-size: 1.2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .social-icons a {
    font-size: 1rem;
    margin-right: 12px;
  }

  .navbar-nav {
    gap: 1rem !important;
  }

  .why-box {
    text-align: start;
    font-size: 0.9rem !important;
  }
  .btn-dark {
    margin-bottom: 0.5rem;
  }
  .mobile-logo img {
    height: auto;
    width: 50%;
  }
  .hero-left {
    height: auto;
  }
  .user-icon {
    height: 2.5rem;
    width: 2.5rem;
  }
}
