/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Typography adjustments for mobile */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  /* Hero section mobile */
  .hero-section {
    min-height: 70vh;
    padding: 2rem 0;
  }
  
  /* No animations on mobile */
  .hero-blob-1,
  .hero-blob-2 {
    animation: none;
    display: none;
  }
  
  /* Section padding reduction */
  .section-padding {
    padding: 3rem 0;
  }
  
  /* Card adjustments */
  .custom-card {
    margin-bottom: 1.5rem;
  }
  
  .custom-card:hover {
    transform: none;
  }
  
  /* Team cards mobile */
  .team-card img {
    height: 200px;
  }
  
  /* Gallery mobile */
  .gallery-item img {
    height: 200px;
  }
  
  .gallery-item:hover img {
    transform: none;
  }
  
  /* Contact form mobile */
  .contact-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Button adjustments */
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  /* Navigation mobile */
  .navbar-nav .nav-link {
    margin: 0.25rem 0;
    text-align: center;
  }
  
  /* Footer mobile */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  /* Services grid mobile */
  .services-grid {
    gap: 1rem;
  }
  
  /* Blog grid mobile */
  #blog_grid {
    gap: 1rem;
  }
  
  .blog-card:hover {
    transform: none;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  h1 {
    font-size: 2.25rem;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  /* Limited animations on small devices */
  .hero-blob-1,
  .hero-blob-2 {
    animation-duration: 12s;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .hero-section {
    min-height: 90vh;
  }
  
  .section-padding {
    padding: 4.5rem 0;
  }
  
  /* Gallery grid for tablets */
  .gallery-grid {
    gap: 1.5rem;
  }
  
  .gallery-item img {
    height: 220px;
  }
  
  /* Services grid for tablets */
  .services-grid {
    gap: 1.5rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-section {
    min-height: 100vh;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  /* Full animations on larger screens */
  .hero-blob-1,
  .hero-blob-2 {
    display: block;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  /* Enhanced spacing for large screens */
  .section-padding {
    padding: 6rem 0;
  }
  
  .container {
    max-width: 1140px;
  }
  
  /* Enhanced hero for large screens */
  .hero-blob-1 {
    width: 350px;
    height: 350px;
  }
  
  .hero-blob-2 {
    width: 250px;
    height: 250px;
  }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
  
  .section-padding {
    padding: 7rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .custom-card {
    border: 2px solid var(--kelp-dark);
  }
  
  .btn-primary,
  .btn-secondary {
    border-width: 2px;
  }
  
  .form-control {
    border-width: 3px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .hero-blob-1,
  .hero-blob-2 {
    display: none;
  }
  
  .hero-section {
    min-height: auto;
    background: white;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
  
  * {
    box-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }
  
  .section-padding {
    padding: 2rem 0;
  }
}

/* Focus visible enhancements */
@media (prefers-reduced-motion: no-preference) {
  .btn:focus-visible,
  .form-control:focus-visible,
  .nav-link:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
  }
} 

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