/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-padding: 2rem 0;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
    --font-size-xl: 1.125rem;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Hero Section Mobile */
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .hero-section::before {
    display: none; /* Remove decorative elements on mobile */
  }
  
  /* Typography Mobile */
  h1 {
    font-size: var(--font-size-2xl);
  }
  
  h2 {
    font-size: var(--font-size-xl);
  }
  
  /* Cards Mobile */
  .card {
    margin-bottom: 1rem;
  }
  
  .service-card,
  .price-plan,
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Team Photos Mobile */
  .team-photo {
    width: 150px;
    height: 150px;
  }
  
  /* Gallery Mobile */
  .gallery-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* No animations on mobile */
  .sal-animate {
    transition: none !important;
    transform: none !important;
  }
  
  .card:hover {
    transform: none;
  }
  
  .gallery-item:hover {
    transform: none;
  }
  
  .price-plan:hover {
    transform: none;
  }
  
  .price-plan.featured {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Still no animations on small mobile */
  .sal-animate {
    transition: none !important;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .gallery-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-photo {
    width: 180px;
    height: 180px;
  }
  
  /* Enable light animations on tablets */
  .sal-animate {
    transition-duration: 0.3s;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-section {
    min-height: 100vh;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .gallery-row {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    max-width: 1200px;
  }
}

/* Navigation Mobile Specific */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    padding: 1rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .breadcrumb,
  footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card,
  .price-plan,
  .contact-form {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  a {
    text-decoration: underline;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --neutral-50: #ffffff;
    --neutral-100: #f5f5f5;
    --neutral-200: #e0e0e0;
    --neutral-300: #c0c0c0;
    --neutral-400: #808080;
    --neutral-500: #606060;
    --neutral-600: #404040;
    --neutral-700: #202020;
    --neutral-800: #101010;
    --neutral-900: #000000;
  }
  
  .card,
  .price-plan,
  .contact-form,
  .faq-card,
  .review-card {
    border: 2px solid var(--neutral-800);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero-section {
    min-height: 70vh;
  }
  
  section {
    padding: var(--section-padding-sm);
  }
}

/* Focus Management */
@media (any-hover: hover) {
  .card:hover,
  .gallery-item:hover,
  .price-plan:hover {
    transform: translateY(-4px);
  }
}

/* Touch Device Optimizations */
@media (any-pointer: coarse) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .form-control {
    min-height: 44px;
  }
  
  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Specific Mobile Navbar Fixes */
@media (max-width: 991.98px) {
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
  }
  
  .navbar-brand {
    font-size: var(--font-size-lg);
  }
}

/* Form Responsiveness */
@media (max-width: 575.98px) {
  .contact-form .row > div {
    margin-bottom: 1rem;
  }
  
  .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Footer Responsiveness */
@media (max-width: 767.98px) {
  footer .row > div {
    margin-bottom: 2rem;
    text-align: center;
  }
  
  footer .row > div:last-child {
    margin-bottom: 0;
  }
}

/* Services Grid Responsiveness */
@media (max-width: 575.98px) {
  .services-grid .col-md-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .services-grid .col-md-4:nth-child(odd) {
    margin-bottom: 2rem;
  }
}

/* Price Plans Mobile Layout */
@media (max-width: 767.98px) {
  .price-plan.featured {
    margin: 1rem 0;
    transform: none;
  }
}

/* Team Section Mobile */
@media (max-width: 575.98px) {
  .team-member {
    margin-bottom: 3rem;
  }
}

/* FAQ Mobile Layout */
@media (max-width: 575.98px) {
  .faq-card {
    padding: 1.5rem;
  }
}

/* Reviews Mobile Layout */
@media (max-width: 575.98px) {
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
} 

.hero-content {
    padding-top: 225px;
}
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
