/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 2rem;
  }
  
  .hero-shape {
    width: 400px;
    height: 400px;
  }
  
  .services-grid,
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2.2rem;
    --h3-size: 1.8rem;
    --space-lg: 3rem;
  }
  
  .hero-section {
    height: auto;
    padding: 100px 0;
  }
  
  .hero-shape {
    width: 300px;
    height: 300px;
  }
  
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .about-container {
    flex-direction: column;
  }
  
  .about-image {
    margin-bottom: var(--space-md);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
  :root {
    --base-font-size: 15px;
    --h1-size: 2.2rem;
    --h2-size: 1.8rem;
    --h3-size: 1.5rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
  }
  
  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
  }
  
  .nav-menu.active {
    height: auto;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-item {
    margin: 10px 0;
  }
  
  .services-grid,
  .priceplan-grid,
  .blog-grid,
  .coreinfo-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-shape {
    display: none;
  }
  
  .section-padding {
    padding: var(--space-md) 0;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .service-image,
  .blog-image {
    height: 180px;
  }
  
  .service-features {
    columns: 1;
  }
  
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
  
  .team-image {
    height: 250px;
  }
  
  .page-header {
    height: 200px;
  }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --base-font-size: 14px;
    --h1-size: 2rem;
    --h2-size: 1.6rem;
    --h3-size: 1.4rem;
    --space-md: 1.2rem;
    --space-lg: 2rem;
  }
  
  .section-title::after {
    width: 60px;
  }
  
  .hero-section {
    padding: 80px 0;
  }
  
  .btn {
    padding: 10px 20px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-column:not(:last-child) {
    margin-bottom: 30px;
  }
  
  .services-select {
    flex-direction: column;
  }
  
  .service-option {
    width: 100%;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin: 0 auto;
  }
  
  .team-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .page-header {
    height: 150px;
  }
  
  .page-header::before {
    height: 40px;
  }
  
  .gallery-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation Reduction Based on Preference */
@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-shape,
  .service-card:hover,
  .team-card:hover,
  .priceplan-card:hover,
  .blog-card:hover,
  .coreinfo-card:hover,
  .feature-card:hover,
  .btn:hover {
    transform: none !important;
  }
  
  .service-card:hover .service-image img,
  .blog-card:hover .blog-image img,
  .team-card:hover .team-image img,
  .gallery-item:hover img {
    transform: none !important;
  }
}

/* Mobile (landscape and portrait) adjustments */
@media only screen and (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    height: auto;
    min-height: 450px;
  }
  
  .page-header {
    height: 180px;
  }
} 