/* Responsive styles */
@media (max-width: 1200px) {
  .container {
    width: 95%;
  }
}

@media (max-width: 992px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .timeline-alt::after {
    left: 31px;
  }
  
  .timeline-container {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-container::before {
    left: 60px;
    border: medium solid #f5f5f5;
    border-width: 10px 10px 10px 0;
    border-color: transparent #f5f5f5 transparent transparent;
  }
  
  .left::after, .right::after {
    left: 15px;
  }
  
  .right {
    left: 0%;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo {
    margin-bottom: 1rem;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  nav ul li {
    margin: 0.5rem 0;
  }
  
  .hamburger {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }
  
  .show-menu {
    display: flex;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .social-icons {
    flex-wrap: wrap;
  }
  
  .footer-links {
    flex-direction: column;
  }
  
  .footer-links li {
    margin: 0.5rem 0;
  }
  
  .theme-toggle {
    top: auto;
    bottom: 20px;
    right: 70px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .publication-title {
    font-size: 1.2rem;
  }
}

/* Print styles */
@media print {
  header, footer, .back-to-top, .theme-toggle, .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .container {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
  
  .card, .timeline-item, .publication {
    page-break-inside: avoid;
    border: 1px solid #ddd;
  }
  
  .grid {
    display: block;
  }
  
  .card {
    margin-bottom: 20pt;
  }
}
