/* Responsive Design - Mobile First Approach */

/* Large Desktop */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-text h1 {
    font-size: 4rem;
  }
  
  .section-header h2 {
    font-size: 3rem;
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .hero-text h1 {
    font-size: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Mobile Large */
@media (max-width: 767px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    min-height: 80vh;
    margin-top: 120px;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text h2 {
    font-size: 1.2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header h3 {
    font-size: 1.1rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .priceplan-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .coreinfo-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .contact-form {
    padding: 2rem;
    margin: 2rem auto 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* Disable animations on mobile for better performance */
  .service-card:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover {
    transform: none;
  }
  
  /* Swiper adjustments for mobile */
  .swiper {
    padding: 1rem 0;
  }
  
  .review-item {
    margin: 0 0.5rem;
    padding: 1.5rem;
  }
}

/* Mobile Small */
@media (max-width: 575px) {
  .container {
    padding: 0 10px;
  }
  
  #sitename {
    font-size: 1.5rem;
  }
  
  .nav-menu {
    font-size: 0.9rem;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text h2 {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 1.6rem;
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .priceplan-card,
  .team-member,
  .coreinfo-item {
    padding: 1.5rem;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  .priceplan-price {
    font-size: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.8rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .team-member img {
    width: 100px;
    height: 100px;
  }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .priceplan-card,
  .team-member,
  .coreinfo-item {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1rem;
  }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
  
  .hero-text h1 {
    font-size: 1.8rem;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image img,
  .service-card img,
  .team-member img,
  .gallery-item img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 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;
    scroll-behavior: auto !important;
  }
  
  .hero::before {
    animation: none;
  }
  
  .service-card:hover,
  .about-feature:hover,
  .blog-item:hover,
  .gallery-item:hover,
  #site_submit_btn:hover {
    transform: none;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .breadcrumb,
  .contact-form,
  #site_submit_btn {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero,
  section {
    background: white !important;
    box-shadow: none !important;
  }
  
  .service-card,
  .about-feature,
  .feature-item,
  .priceplan-card,
  .team-member,
  .coreinfo-item,
  .blog-item,
  .review-item {
    background: white !important;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3) !important;
    break-inside: avoid;
  }
} 