/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  h3 { font-size: 2rem; }
}

/* Large Devices (992px and up) */
@media (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .navbar-nav {
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (max-width: 767.98px) {
  .container {
    max-width: 540px;
    padding: 0 20px;
  }
  
  /* Typography adjustments */
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
  
  /* Header adjustments */
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    width: 100%;
  }
  
  /* Hero section */
  .hero {
    min-height: 80vh;
    padding: 2rem 0;
  }
  
  .hero-content {
    gap: 1.5rem;
  }
  
  /* Section padding */
  .section {
    padding: 60px 0;
  }
  
  /* Grid adjustments */
  .about-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .priceplan-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Contact form */
  .contact-form {
    padding: 2rem;
    margin: 2rem auto 0;
  }
  
  /* FAQ */
  .faq-accordion {
    margin: 2rem auto 0;
  }
  
  /* Disable animations on mobile for better performance */
  .shape {
    animation: none;
  }
  
  /* Swiper adjustments for mobile */
  .swiper-slide {
    padding: 0 10px;
  }
}

/* Small Devices (576px and up) */
@media (max-width: 575.98px) {
  .container {
    max-width: 100%;
    padding: 0 15px;
  }
  
  /* Typography for small screens */
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.2rem; }
  h6 { font-size: 1.1rem; }
  
  p {
    font-size: 1rem;
  }
  
  /* Header */
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  /* Hero section */
  .hero {
    min-height: 70vh;
    padding: 1rem 0;
  }
  
  .hero-text h1 {
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Section adjustments */
  .section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  /* Cards and components */
  .feature-card,
  .service-card,
  .team-member,
  .review-card,
  .blog-card {
    padding: 1.5rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  /* Team grid for very small screens */
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  /* Gallery grid for very small screens */
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  /* Contact form */
  .contact-form {
    padding: 1.5rem;
    margin: 1.5rem auto 0;
  }
  
  .form-control {
    padding: 0.8rem;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* FAQ */
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Service features list */
  .service-features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  /* Hide decorative shapes on very small screens */
  .shape {
    display: none;
  }
  
  /* Adjust margins and paddings */
  .mt-4, .mb-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
  .mt-3, .mb-3 { margin-top: 1rem; margin-bottom: 1rem; }
}

/* Extra Small Devices (480px and down) */
@media (max-width: 479.98px) {
  /* Further reduce typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  /* Reduce section padding even more */
  .section {
    padding: 30px 0;
  }
  
  /* Navbar adjustments */
  .navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  /* Hero adjustments */
  .hero {
    min-height: 60vh;
  }
  
  /* Card padding */
  .feature-card,
  .service-card,
  .team-member,
  .review-card,
  .blog-card,
  .coreinfo-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
  
  /* Team photo size */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Service price */
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Footer adjustments */
  footer {
    padding: 2rem 0 1rem;
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
  }
  
  .navbar-nav {
    flex-direction: row;
    gap: 1rem;
  }
  
  .navbar {
    flex-direction: row;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Ensure crisp images and icons on retina displays */
  .hero-image img,
  .service-image img,
  .team-photo img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  
  header,
  footer,
  .navbar,
  .btn-primary {
    display: none !important;
  }
  
  .section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
}

/* Accessibility improvements for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .shape,
  .swiper-slide {
    animation: none !important;
    transition: none !important;
  }
  
  .service-card:hover,
  .team-member:hover,
  .feature-card:hover,
  .blog-card:hover,
  .gallery-item:hover {
    transform: none !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --medium-gray: #a0a0a0;
    --dark-gray: #e0e0e0;
    --black: #ffffff;
  }
  
  body {
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .feature-card,
  .service-card,
  .team-member,
  .review-card,
  .blog-card,
  .contact-form,
  .faq-item {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
} 