/* Responsive Design - Mobile First Approach */

/* Mobile Large Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
  
  /* Typography adjustments */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  body {
    font-size: 14px;
  }
  
  /* Header adjustments */
  header {
    padding: var(--spacing-xs) 0;
  }
  
  .navbar {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  #sitename {
    font-size: 1.25rem;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
  
  /* Hero Section */
  .hero {
    min-height: 80vh;
    margin-top: 120px;
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md) 0;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: var(--spacing-md);
  }
  
  .hero-image {
    position: static;
    transform: none;
    width: 80%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Grid adjustments */
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Spacing adjustments */
  section {
    padding: var(--spacing-md) 0;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Contact form */
  .contact-form {
    padding: var(--spacing-md);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Disable animations on mobile for better performance */
  @media (prefers-reduced-motion: no-preference) {
    .shape-1, .shape-2 {
      animation: none;
    }
  }
  
  /* Swiper adjustments */
  .swiper {
    padding: var(--spacing-sm) 0;
  }
  
  /* Hide decorative shapes on mobile */
  .shape {
    display: none;
  }
}

/* Small Mobile Devices (480px and down) */
@media (max-width: 480px) {
  
  /* Further typography adjustments */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
  
  body {
    font-size: 13px;
  }
  
  /* Navigation */
  #sitename {
    font-size: 1.125rem;
  }
  
  /* Hero adjustments */
  .hero {
    min-height: 70vh;
    margin-top: 140px;
  }
  
  /* Single column layouts */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Reduced spacing */
  section {
    padding: var(--spacing-sm) 0;
  }
  
  /* Contact form adjustments */
  .contact-form {
    padding: var(--spacing-sm);
  }
  
  /* Pricing cards - remove scale effect */
  .pricing-card:nth-child(2) {
    transform: none;
    border: 1px solid var(--accent);
  }
}

/* Tablet Devices (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  
  /* Typography */
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  
  /* Hero Section */
  .hero {
    margin-top: 90px;
  }
  
  .hero-content {
    max-width: 60%;
  }
  
  .hero-image {
    width: 35%;
  }
  
  /* Grid adjustments for tablet */
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 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(3, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Tablet/Small Desktop (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  
  /* Grid adjustments */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  
  .container {
    max-width: 1140px;
  }
  
  /* Full grid layouts */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .coreinfo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Extra Large Desktop (1400px and up) */
@media (min-width: 1400px) {
  
  .container {
    max-width: 1320px;
  }
  
  /* Enhanced typography for larger screens */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  
  /* Enhanced hero */
  .hero-content {
    max-width: 45%;
  }
  
  .hero-image {
    width: 50%;
  }
}

/* Print Styles */
@media print {
  
  * {
    box-shadow: none !important;
    background: white !important;
    color: black !important;
  }
  
  header, footer {
    display: none;
  }
  
  .hero {
    page-break-inside: avoid;
    margin-top: 0;
  }
  
  section {
    page-break-inside: avoid;
    padding: 1rem 0;
  }
  
  .shape, .swiper-pagination, .swiper-button-next, .swiper-button-prev {
    display: none;
  }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero::before {
    display: none;
  }
  
  .shape-1, .shape-2 {
    animation: none;
  }
  
  .swiper {
    scroll-behavior: auto;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  
  :root {
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
  }
  
  .form-control {
    border: 2px solid var(--primary-dark);
  }
  
  .btn-primary {
    border: 2px solid var(--primary-dark);
  }
}

/* Focus Visible for Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
}

/* Remove default focus styles */
*:focus {
  outline: none;
}

/* Specific responsive adjustments for Swiper */
@media (max-width: 767.98px) {
  .swiper-slide {
    margin-right: var(--spacing-sm);
  }
  
  .swiper-button-next, .swiper-button-prev {
    display: none;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
} 