/* Responsive Design Stylesheet for Lab Website */

/* This file contains additional responsive design rules to ensure the website 
   displays properly on all devices from mobile phones to large desktop screens */

/* Base responsive settings are in style.css, this adds additional refinements */

/* Extra small devices (phones, 576px and down) */
@media (max-width: 576px) {
  .logo-text h1 {
    font-size: 1.2rem;
  }
  
  .logo-text p {
    font-size: 0.8rem;
  }
  
  .logo img {
    height: 40px;
    width: auto;
  }
  
  .hero {
    height: 300px;
    margin-top: 80px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .about-text h3 {
    font-size: 1.5rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .contact-map {
    min-height: 250px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Small devices (landscape phones, 576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    margin-bottom: 15px;
    justify-content: center;
  }
  
  .hero {
    margin-top: 120px;
  }
  
  .research-areas {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .team-members {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Medium devices (tablets, 768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .logo-text h1 {
    font-size: 1.3rem;
  }
  
  .research-areas {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large devices (desktops, 992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

/* Print styles */
@media print {
  header, footer, .hero, .contact-map, .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body.dark-mode-support {
    background-color: #121212;
    color: #f0f0f0;
  }
  
  body.dark-mode-support header,
  body.dark-mode-support .research-area,
  body.dark-mode-support .team-member,
  body.dark-mode-support .news-item,
  body.dark-mode-support .contact-info {
    background-color: #1e1e1e;
    color: #f0f0f0;
  }
  
  body.dark-mode-support a {
    color: #90caf9;
  }
  
  body.dark-mode-support .section-title h2 {
    color: #90caf9;
  }
}
