/* Responsive Styles */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .container {
    max-width: 1140px;
  }
}

/* Medium Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: var(--font-size-lg);
  }
  
  .btn {
    padding: var(--space-3) var(--space-5);
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
}

/* Extra Small Devices (less than 576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .section-subtitle {
    font-size: 0.95rem;
  }
  
  .btn {
    padding: var(--space-2) var(--space-4);
    font-size: 0.9rem;
  }
}

/* Header Responsive */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.75rem 0;
  }
  
  .logo img {
    height: 35px;
  }
}

/* Hero Slider Responsive */
@media (max-width: 992px) {
  .hero-slider-section {
    /*height: 90vh;*/
  }
  
  .hero-slide-counter {
    display: none;
  }
  
  .hero-nav-wrapper {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-slider-section,
  .hero-slider-container,
  .hero-slide {
   /* height: 80vh;*/
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .hero-controls {
    gap: 1rem;
  }
  
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Cards Responsive */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1.5rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

/* Grid System Responsive */
@media (max-width: 991.98px) {
  .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, 
  .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, 
  .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, 
  .col-md-5, .col-md-6, .col-md-7, .col-md-8, 
  .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Sections Responsive */
@media (max-width: 768px) {
  .section {
    padding: var(--space-4) 0;
  }
  
  .section-lg {
    padding: var(--space-6) 0;
  }
  
  .section-header {
    margin-bottom: var(--space-3);
  }
  
  /* Preserve spacing for Problem to Partner sections on mobile */
  .section-problem,
  .section-about,
  .section-service,
  .section-contact,
  .section-partner {
    padding: var(--space-8) 0;
  }
  
  .section-problem .section-header,
  .section-about .section-header,
  .section-service .section-header,
  .section-contact .section-header,
  .section-partner .section-header {
    margin-bottom: var(--space-4);
  }
}

/* Footer Responsive */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-brand {
    margin-bottom: 2rem;
  }
}

/* Utilities Responsive */
@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-mobile-3 {
    margin-bottom: 1rem !important;
  }
  
  .mb-mobile-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .d-none-mobile {
    display: none !important;
  }
  
  .d-block-mobile {
    display: block !important;
  }
}

/* Forms Responsive */
@media (max-width: 768px) {
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    border-radius: var(--border-radius) !important;
    margin-bottom: 0.5rem;
  }
}

/* Tables Responsive */
@media (max-width: 768px) {
  .table-responsive-mobile {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Navigation Responsive */
@media (max-width: 1024px) {
  .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
  }
}

/* Spacing Responsive */
@media (max-width: 768px) {
  .py-5 {
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
  }
  
  .my-5 {
    margin-top: var(--space-4) !important;
    margin-bottom: var(--space-4) !important;
  }
}