/* Additional responsive design styles */
@media (max-width: 992px) {
  .header-content {
    padding: 0.5rem 0;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  nav ul li {
    margin: 0.5rem;
  }
  
  .hero {
    height: 50vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .technical-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  .hero {
    height: 40vh;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .animation-gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .animation-viewer {
    padding: 1rem;
  }
  
  .animation-slide {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .hero {
    height: 30vh;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .animation-gallery {
    grid-template-columns: 1fr;
  }
  
  .animation-controls button {
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
    margin: 0 3px;
  }
  
  .technical-content {
    padding: 1rem;
  }
}

/* Mobile navigation menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
}

/* Accessibility improvements */
:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--light-text);
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  header, footer, .animation-controls, .animation-indicators, .mobile-menu-toggle {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  .technical-content {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  a {
    text-decoration: none;
    color: #000;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  p, li {
    page-break-inside: avoid;
  }
  
  .hero {
    height: auto;
    background: none;
    color: #000;
  }
  
  .hero h1, .hero p {
    color: #000;
  }
}
