/* ===== RESPONSIVE STYLES ===== */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  /* Hero section */
  #hero {
    min-height: 80vh;
    text-align: center;
  }
  
  #hero h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  #hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Sections padding */
  #about,
  #services,
  #features,
  #priceplan,
  #team,
  #reviews,
  #faq,
  #gallery,
  #contact {
    padding: 3rem 0;
  }
  
  /* Service cards */
  #services .service-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  /* Price cards */
  #priceplan .price-card {
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
  }
  
  #priceplan .price-card.featured {
    transform: none;
  }
  
  #priceplan .price-card:hover {
    transform: none;
  }
  
  /* Team cards */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Review cards */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* FAQ cards */
  #faq .faq-card {
    padding: 1.5rem;
  }
  
  /* Gallery items */
  #gallery .gallery-item {
    margin-bottom: 1.5rem;
  }
  
  /* Contact form */
  #contact .contact-form {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  /* Footer */
  #footer .footer-section {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  /* Navbar */
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  /* No animations on mobile as per requirements */
  * {
    animation: none !important;
    transition: none !important;
  }
  
  #about .feature-card:hover,
  #services .service-card:hover,
  #team .team-card:hover,
  #gallery .gallery-item:hover {
    transform: none !important;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Hero adjustments */
  #hero h1 {
    font-size: 2.25rem;
  }
  
  /* Service cards in 2 columns */
  #services .row .col-md-4:nth-child(3n+1) {
    clear: both;
  }
  
  /* Price cards adjustments */
  #priceplan .price-card.featured {
    transform: scale(1.05);
  }
  
  /* Contact form */
  #contact .contact-form {
    padding: 2.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Hero section */
  #hero h1 {
    font-size: 2.5rem;
  }
  
  /* Services grid */
  #services .service-card {
    margin-bottom: 2rem;
  }
  
  /* Team grid */
  #team .team-card {
    margin-bottom: 2rem;
  }
  
  /* Reviews grid */
  #reviews .review-card {
    margin-bottom: 2rem;
  }
  
  /* Gallery grid */
  #gallery .gallery-item {
    margin-bottom: 2rem;
  }
  
  #gallery .gallery-item img {
    height: 200px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  /* Hero section */
  #hero {
    min-height: 90vh;
  }
  
  /* Gallery items */
  #gallery .gallery-item img {
    height: 220px;
  }
  
  /* Contact section layout */
  #contact .contact-info {
    padding: 3rem 2rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Full desktop styles - using defaults from main.css */
  
  /* Container max-width adjustments */
  .container {
    max-width: 1140px;
  }
  
  /* Gallery items */
  #gallery .gallery-item img {
    height: 250px;
  }
  
  /* Enhanced hover effects for desktop */
  #services .service-card:hover {
    transform: translateY(-15px);
  }
  
  #about .feature-card:hover {
    transform: translateY(-8px);
  }
}

/* Print styles */
@media print {
  /* Hide navigation and interactive elements */
  #header,
  #footer,
  .btn,
  button {
    display: none !important;
  }
  
  /* Adjust colors for print */
  * {
    background: white !important;
    color: black !important;
  }
  
  /* Adjust spacing */
  section {
    padding: 1rem 0 !important;
    margin: 0 !important;
  }
  
  /* Page breaks */
  section {
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0066cc;
    --color-secondary: #6600cc;
    --color-tertiary: #009900;
    --color-quaternary: #cc0000;
    --color-quinary: #cc9900;
  }
  
  /* Increase border thickness */
  .card,
  .btn,
  .form-control {
    border-width: 2px;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  /* Remove all animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  /* Remove hover transforms */
  #about .feature-card:hover,
  #services .service-card:hover,
  #team .team-card:hover,
  #gallery .gallery-item:hover,
  #priceplan .price-card:hover {
    transform: none !important;
  }
}

/* Dark mode support (optional) */

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
  #hero {
    min-height: 100vh;
    padding: 2rem 0;
  }
  
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }
  
  #hero p {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}

/* Focus styles for accessibility */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus,
  .form-control:focus,
  .nav-link:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
  }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Navbar responsive improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--color-white);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

body {
    overflow-x: hidden;
}