/* Responsive Design - Mobile First */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  :root {
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 22px;
    --font-size-2xl: 28px;
    --font-size-3xl: 32px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  .gallery-item img {
    height: 280px;
  }
  
  .contact-form {
    padding: 2.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  section {
    padding: var(--section-padding);
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .gallery-item img {
    height: 320px;
  }
  
  .decorative-shape {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  :root {
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 36px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3rem;
  }
}

/* Mobile-specific adjustments */
@media (max-width: 575px) {
  :root {
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --section-padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
    text-align: center;
  }
  
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .team-member {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .team-photo {
    width: 80px;
    height: 80px;
  }
  
  .review-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .decorative-shape {
    display: none;
  }
  
  .navbar-brand {
    font-size: var(--font-size-base);
  }
  
  .btn-primary {
    padding: 0.5rem 1.5rem;
    font-size: var(--font-size-sm);
  }
}

/* Tablet portrait adjustments */
@media (min-width: 576px) and (max-width: 767px) {
  .hero-section {
    min-height: 85vh;
  }
  
  .service-card {
    margin-bottom: 1.77rem;
  }
  
  .team-member {
    margin-bottom: 1.70rem;
  }
  
  .review-card {
    margin-bottom: 1.72rem;
  }
  
  .gallery-item img {
    height: 240px;
  }
}

/* Print styles */
@media print {
  .hero-section {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .faq-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid #c1c1c1;
  }
  
  .decorative-shape {
    display: none;
  }
  
  .btn-primary {
    display: none;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .service-card:hover,
  .team-member:hover,
  .gallery-item:hover img {
    transform: none;
  }
}

/* DISABLE ALL ANIMATIONS ON MOBILE DEVICES */
@media screen and (max-width: 768px) {
  * {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
    transform: none !important;
  }
  
  /* EXCEPTIONS: Allow essential Bootstrap functionality */
  .navbar-collapse,
  .navbar-collapse.show,
  .navbar-collapse.collapsing,
  .collapse,
  .collapse.show,
  .collapsing,
  .modal,
  .modal-dialog,
  .dropdown-menu,
  .dropdown-toggle {
    animation-duration: inherit !important;
    transition-duration: inherit !important;
    transform: inherit !important;
  }
  
  /* Keep Bootstrap collapse functionality working */
  .navbar-collapse {
    transition: height 0.35s ease !important;
  }
  
  .collapsing {
    transition: height 0.35s ease !important;
  }
  
  /* Disable all hover effects on mobile */
  .service-card:hover,
  .service-card:focus,
  .service-card:active {
    transform: none !important;
    box-shadow: 0 5px 6px -1px rgba(0, 0, 0, 0.1) !important;
  }
  
  .team-member:hover,
  .team-member:focus,
  .team-member:active {
    transform: none !important;
  }
  
  .gallery-item:hover img,
  .gallery-item:focus img,
  .gallery-item:active img {
    transform: none !important;
  }
  
  .btn-primary:hover,
  .btn-primary:focus,
  .btn-primary:active {
    transform: none !important;
    background-color: var(--primary-color-1) !important;
    border-color: var(--primary-color-1) !important;
  }
  
  .back-to-top-btn:hover,
  .back-to-top-btn:focus,
  .back-to-top-btn:active {
    transform: none !important;
    background: var(--primary-color-1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }
  
  .breadcrumb-item img:hover,
  .breadcrumb-item img:focus,
  .breadcrumb-item img:active {
    filter: opacity(0.7) !important;
  }
  
  .navbar-brand:hover,
  .navbar-brand:focus,
  .navbar-brand:active {
    color: inherit !important;
  }
  
  .nav-link:hover,
  .nav-link:focus,
  .nav-link:active {
    color: inherit !important;
  }
  
  /* Disable any transform-based positioning except essential layout */
  .hero-bg-element::before {
    transform: rotate(45deg) !important; /* Keep essential layout transform */
  }
  
  .modal-dialog {
    transform: translate(-50%, -50%) !important; /* Keep essential modal centering */
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color-1: #091089;
    --primary-color-2: #76016c;
    --primary-color-3: #006367;
    --primary-color-4: #14880d;
    --primary-color-5: #ffbb15;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .faq-card,
  .contact-form {
    border: 2px solid #000;
  }
}

/* Additional mobile optimizations */
@media (max-width: 575px) {
  .hero-section::before {
    display: none;
  }
  
  .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .service-price {
    font-size: var(--font-size-xl);
  }
  
  .text-gradient {
    font-size: var(--font-size-2xl);
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
  }
  
  .navbar-collapse {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--primary-light-1);
  }
  
  .back-to-top-btn {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
}

/* Tablet landscape optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .service-card {
    min-height: 300px;
  }
  
  .team-member {
    min-height: 200px;
  }
  
  .review-card {
    min-height: 180px;
  }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .hero-section {
    min-height: 100vh;
  }
  
  .service-card {
    padding: 3rem;
  }
  
  .contact-form {
    padding: 3.5rem;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  :root {
    --font-size-base: 13px;
    --font-size-lg: 15px;
    --font-size-xl: 17px;
    --font-size-2xl: 19px;
    --font-size-3xl: 22px;
  }
  
  .service-card,
  .team-member,
  .review-card,
  .faq-card {
    padding: 1rem;
  }
  
  .contact-form {
    padding: 1.25rem;
  }
  
  .team-photo {
    width: 70px;
    height: 70px;
  }
} 

.hero-section h1 {
    padding-top: 225px;
}