/* Responsive Design - Mobile First Approach */

/* Extra Large Devices (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-title {
    font-size: 4.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Large Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }
  
  .hero-title {
    font-size: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Medium Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .priceplan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 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);
  }
}

/* Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 540px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .navbar-nav {
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  .services-grid,
  .team-grid,
  .priceplan-grid,
  .about-features,
  .features-grid,
  .coreinfo-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-card,
  .price-card,
  .team-member {
    padding: 2rem 1.5rem;
  }
  
  .contact-form {
    padding: 2rem;
  }
  
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  h3 { font-size: 1.8rem; }
  h4 { font-size: 1.5rem; }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575px) {
  .container {
    padding: 0 10px;
  }
  
  /* Header Mobile */
  header {
    padding: 0.5rem 0;
  }
  
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
  
  /* Hero Mobile */
  .hero {
    min-height: 80vh;
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-desc {
    font-size: 1rem;
  }
  
  /* Typography Mobile */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.3rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  p {
    font-size: 1rem;
  }
  
  /* Sections Mobile */
  section {
    padding: 60px 0;
  }
  
  .section-title {
    margin-bottom: 0.5rem;
  }
  
  .section-subtitle {
    margin-bottom: 0.5rem;
  }
  
  .section-desc {
    margin-bottom: 2rem;
  }
  
  /* Grid Layouts Mobile */
  .services-grid,
  .team-grid,
  .priceplan-grid,
  .about-features,
  .features-grid,
  .coreinfo-grid,
  .blog-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  /* Cards Mobile */
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .feature-item,
  .coreinfo-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .service-card img,
  .team-member img {
    width: 60px;
    height: 60px;
  }
  
  .service-price {
    font-size: 1.5rem;
  }
  
  /* Contact Form Mobile */
  .contact-form {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .form-control {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  
  .btn-primary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-section {
    margin-bottom: 1rem;
  }
  
  /* FAQ Mobile */
  .faq-accordion {
    margin-top: 2rem;
  }
  
  .faq-question,
  .faq-answer {
    padding: 1rem;
  }
  
  /* Blog Mobile */
  .blog-item img {
    height: 150px;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  /* Gallery Mobile */
  .gallery-item img {
    height: 200px;
  }
  
  /* Breadcrumb Mobile */
  .breadcrumb {
    margin-top: 60px;
    text-align: center;
  }
  
  .breadcrumb-item img {
    width: 16px;
    height: 16px;
  }
  
  /* Shapes Mobile - Reduce or hide */
  .shape {
    display: none;
  }
  
  /* Disable animations on mobile for better performance */
  .hero::before {
    animation: none;
  }
  
  .shape-1,
  .shape-2,
  .shape-3 {
    animation: none;
  }
}

/* Landscape Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 60vh;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  section {
    padding: 40px 0;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .service-card img,
  .team-member img,
  .gallery-item img,
  .blog-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,
  .shape-1,
  .shape-2,
  .shape-3 {
    animation: none !important;
  }
  
  .fade-in-up {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  .breadcrumb,
  .contact-form,
  .btn-primary {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .hero,
  section {
    padding: 20pt 0;
    page-break-inside: avoid;
  }
  
  .service-card,
  .price-card,
  .team-member {
    border: 1pt solid #ccc;
    page-break-inside: avoid;
  }
  
  .gallery-grid {
    display: none;
  }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
  .nav-link:focus,
  .btn-primary:focus,
  .form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --white: #1a1a1a;
    --light-gray: #2d2d2d;
    --gray: #a0a0a0;
    --dark-gray: #e0e0e0;
    --black: #ffffff;
  }
  
  body {
    background-color: var(--white);
    color: var(--dark-gray);
  }
  
  .service-card,
  .price-card,
  .team-member,
  .about-feature,
  .contact-form,
  .blog-item,
  .faq-item {
    background: var(--light-gray);
    color: var(--dark-gray);
  }
} 