/* Responsive Design - Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-green);
    padding: 1rem;
    display: none;
  }
  
  .navbar-nav.active {
    display: flex;
  }
  
  .services-grid,
  .features-grid,
  .priceplan-grid,
  .team-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .container {
    padding: 0 10px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .services-grid,
  .priceplan-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid,
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile Navigation Toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .navbar-toggle {
    display: block;
  }
}

/* Disable animations on mobile for better performance */
@media (max-width: 767.98px) {
  .service-item:hover,
  .feature-item:hover,
  .team-member:hover,
  .about-feature:hover,
  .coreinfo-item:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  .shape {
    animation: none;
  }
  
  /* Disable Swiper autoplay on mobile */
  .swiper-autoplay {
    --swiper-autoplay-delay: 0;
  }
}

/* Tablet specific adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    padding-top: 100px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .service-item img,
  .blog-item img {
    height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../SUP_images/hero-bg@2x.webp');
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Print styles */
@media print {
  header,
  footer,
  .navbar,
  .btn-submit,
  .swiper-pagination,
  .shape {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .hero {
    min-height: auto;
    padding: 40px 0;
  }
  
  .service-item,
  .feature-item,
  .team-member,
  .blog-item {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  .shape {
    animation: none;
  }
  
  .swiper {
    --swiper-autoplay-delay: 0;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --soft-cream: #2d3748;
    --soft-cream-light: #4a5568;
    --soft-cream-dark: #1a202c;
    --primary-green-dark: #e2e8f0;
  }
  
  body {
    background-color: var(--soft-cream-dark);
    color: var(--soft-cream-light);
  }
  
  .service-item,
  .feature-item,
  .team-member,
  .blog-item,
  .about-feature,
  .coreinfo-item {
    background: var(--soft-cream);
    color: var(--soft-cream-light);
  }
  
  .contact-form {
    background: var(--soft-cream);
    color: var(--soft-cream-light);
  }
  
  .form-control {
    background-color: var(--soft-cream-dark);
    color: var(--soft-cream-light);
    border-color: var(--primary-green);
  }
}

/* Focus management for keyboard navigation */
@media (any-hover: none) {
  .nav-link:hover,
  .service-item:hover,
  .feature-item:hover,
  .team-member:hover {
    transform: none;
  }
}

/* Container queries for modern browsers */
@supports (container-type: inline-size) {
  .services-grid {
    container-type: inline-size;
  }
  
  @container (max-width: 600px) {
    .service-item {
      padding: 1rem;
    }
  }
}

/* Flexible grid adjustments */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .services-grid,
  .coreinfo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1600px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 1.8rem;
  }
  
  .section {
    padding: 100px 0;
  }
} 