/* ===== RESPONSIVE DESIGN STYLES ===== */

/* Mobile First Approach */
/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .hero {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .service-card,
  .price-card {
    margin-bottom: 2rem;
  }
  
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  .navbar-nav .nav-link {
  font-size: 10px;
    padding: 0.75rem 1rem !important;
  }
  
  /* Disable animations on mobile for better performance */
  .hero-decorative {
    animation: none;
  }
  
  .service-card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .team-photo:hover {
    transform: none;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .service-card {
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 175px;
    height: 175px;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .navbar-nav .nav-link::after {
    width: 60%;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Reduce motion effects on tablets */
  .hero-decorative {
    animation-duration: 8s;
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  
  .service-card {
    padding: 1.75rem;
  }
  
  .price-card {
    padding: 2rem 1.5rem;
  }
  
  .team-photo {
    width: 190px;
    height: 190px;
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .container {
    max-width: 1140px;
  }
  
  .service-card {
    padding: 2.25rem;
  }
  
  .price-card {
    padding: 2.75rem 2.25rem;
  }
}

/* Ultra-wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .section {
    padding: 6rem 0;
  }
}

/* ===== SWIPER RESPONSIVE SETTINGS ===== */
/* Disable autoplay and effects on mobile devices */
@media (max-width: 767.98px) {
  .swiper-slide {
    transition: none;
  }
  
  .swiper-wrapper {
    transition-timing-function: linear;
  }
}

/* ===== CONTAINER RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 575.98px) {
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .container {
    max-width: 960px;
  }
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 10px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav .nav-link {
  font-size: 10px;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 0.5rem;
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* ===== RESPONSIVE FORMS ===== */
@media (max-width: 767.98px) {
  .contact-form {
    padding: 1.5rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ===== RESPONSIVE GALLERY ===== */
@media (max-width: 575.98px) {
  .gallery-item {
    margin-bottom: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-item img {
    height: 225px;
  }
}

/* ===== RESPONSIVE TEXT SIZING ===== */
@media (max-width: 575.98px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.375rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.125rem; }
  
  .price-amount {
    font-size: 2rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .price-amount {
    font-size: 2.5rem;
  }
}

/* ===== RESPONSIVE SPACING ===== */
@media (max-width: 575.98px) {
  .section-header {
    margin-bottom: 2rem;
  }
  
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .hero-decorative,
  .btn,
  .contact-form {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
    color: #000;
    background: #fff;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #000;
    page-break-after: avoid;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero::before {
    background-image: url('../images/hero-bg@2x.webp');
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: 70vh;
  }
  
  .navbar {
    padding: 0.25rem 0;
  }
}

/* ===== REDUCED MOTION PREFERENCES ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-decorative,
  .service-card:hover,
  .gallery-item:hover,
  .team-photo:hover,
  .price-card:hover {
    animation: none;
    transform: none;
    transition: none;
  }
  
  .navbar-nav .nav-link::after {
    transition: none;
  }
}
