/* ======= RESPONSIVE STYLES ======= */

/* Large devices (desktops, up to 1200px) */
@media (max-width: 1200px) {
    .hero-content h1 {
      font-size: 2.5rem;
    }
    
    .hero-content h2 {
      font-size: 1.5rem;
    }
  }
  
  /* Medium devices (tablets, up to 992px) */
  @media (max-width: 992px) {
    .hero {
      flex-direction: column;
      text-align: center;
      padding: 3rem 5%;
    }
    
    .hero-content {
      flex: 0 0 100%;
      margin-bottom: 3rem;
    }
    
    .hero-buttons {
      justify-content: center;
    }
    
    .about-grid {
      grid-template-columns: 1fr;
    }
    
    .about-image {
      margin: 0 auto;
    }
    
    .timeline::after {
      left: 31px;
    }
    
    .timeline-item {
      width: 100%;
      padding-left: 80px;
      padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
      left: 0;
    }
    
    .timeline-dot {
      left: 15px;
      right: auto;
    }
    
    .contact-container {
      grid-template-columns: 1fr;
    }
  }
  
  /* Small devices (landscape phones, up to 768px) */
  @media (max-width: 768px) {
    header {
      padding: 1rem;
    }
    
    .nav-links {
      position: absolute;
      right: 0;
      top: 0;
      height: 100vh;
      background-color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 50%;
      transform: translateX(100%);
      transition: transform 0.5s ease-in;
      box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
      margin: 1.5rem 0;
    }
    
    .burger {
      display: block;
    }
    
    .nav-active {
      transform: translateX(0%);
    }
    
    .highlights {
      flex-direction: column;
    }
    
    .highlight-card {
      margin-bottom: 1.5rem;
    }
    
    .about-buttons {
      flex-direction: column;
      gap: 1rem;
    }
    
    .about-buttons .btn {
      width: 100%;
    }
    
    .skills-category-container {
      gap: 1rem;
    }
    
    .skill-category {
      width: 160px;
    }
    
    .project-links {
      flex-direction: column;
    }
    
    .project-links .btn {
      width: 100%;
    }
  }
  
  /* Extra small devices (phones, up to 576px) */
  @media (max-width: 576px) {
    .hero-content h1 {
      font-size: 2rem;
    }
    
    .hero-content h2 {
      font-size: 1.2rem;
    }
    
    .hero-buttons {
      flex-direction: column;
      gap: 1rem;
    }
    
    .hero-buttons .btn {
      width: 100%;
    }
    
    .section-title {
      font-size: 1.8rem;
    }
    
    .about-details {
      grid-template-columns: 1fr;
    }
    
    .contact-item {
      flex-direction: column;
      text-align: center;
    }
    
    .contact-item i {
      margin-right: 0;
      margin-bottom: 1rem;
    }
    
    .modal-content {
      width: 95%;
      margin: 5% auto;
      padding: 1.5rem;
    }
  }
  
  /* Nav toggle animation */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }