/* Mobile First Responsive Design */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography Adjustments */
  :root {
    --font-size-h1: 1.5rem;
    --font-size-h2: 1.25rem;
    --font-size-h3: 1.1rem;
    --navbar-brand-size: 1rem;
  }
  
  /* Disable all animations on mobile */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    -webkit-animation: none !important;
    -webkit-transition: none !important;
    -webkit-transform: none !important;
  }
  
  /* Hero Section */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  .hero-decorative {
    display: none;
  }
  
  /* Navigation */
  .navbar-brand {
    font-size: 1rem !important;
  }
  
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1rem;
  }
  
  .card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Team Photos */
  .team-photo {
    width: 120px;
    height: 120px;
  }
  
  /* Contact Form */
  .contact-form {
    padding: 1.5rem;
  }
  
  /* Gallery */
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  /* Social links */
  .social-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Sections */
  section {
    padding: 2rem 0;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
  
  /* Footer */
  footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Disable all animations on small devices */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    animation-duration: 0s !important;
    transition-duration: 0s !important;
    -webkit-animation: none !important;
    -webkit-transition: none !important;
    -webkit-transform: none !important;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  /* Social links */
  .social-link:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  /* Reduce motion on tablets */
  .card:hover {
    transform: translateY(-2px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.02);
  }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero-decorative {
    display: block;
  }
  
  /* Full animations enabled for desktop */
  .card:hover {
    transform: translateY(-5px);
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-decorative {
    width: 200px;
    height: 200px;
  }
  
  .hero-decorative:before {
    width: 120px;
    height: 120px;
    top: -60px;
    left: -60px;
  }
}

/* Print Styles */
@media print {
  * {
    animation: none !important;
    transition: none !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .breadcrumb,
  footer {
    display: none;
  }
  
  .hero-decorative {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #4a4a4a;
    --text-color: #000000;
    --background-color: #ffffff;
  }
  
  .card {
    border: 2px solid #000000;
  }
}

/* Specific Mobile Navigation Fixes */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--background-color);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--accent-light);
  }
  
  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }
} 

.hero-section h1 {
    padding-top: 250px;
}