/* Responsive Styles */

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

/* Medium devices (tablets, up to 992px) */
@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  html {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h1 .position {
    font-size: 2rem;
  }

  .about-content,
  .contact-content,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    grid-column: span 2;
  }
}

/* Small devices (landscape phones, up to 768px) */
@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }

  html {
    font-size: 14px;
  }

  section {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero h1 .position {
    font-size: 1.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Mobile menu styles */
  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .mobile-menu a {
    font-size: 1.5rem;
    font-weight: 500;
  }

  .close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Adjustments for skills and projects */
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    grid-column: span 1;
  }

  /* Theme toggle and back to top */
  #theme-toggle,
  #back-to-top {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Extra small devices (phones, up to 576px) */
@media (max-width: 576px) {
  .container {
    max-width: 100%;
    padding: 0 1rem;
  }

  html {
    font-size: 12px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero h1 .position {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .filter-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .skills-filter,
  .project-filter {
    margin-bottom: 2rem;
  }

  .info-items {
    gap: 1rem;
  }

  .info-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-icon {
    margin-bottom: 0.5rem;
    margin-right: 0;
  }

  .social-links-large a {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }

  .contact-item {
    flex-direction: column;
  }

  .contact-icon {
    margin-bottom: 0.75rem;
    margin-right: 0;
  }

  /* Adjust AOS animations for smaller screens */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translateY(30px);
  }

  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translateY(0);
  }
}
