/* Responsive Styles */

/* Tablet Devices */
@media screen and (max-width: 992px) {
  html {
    font-size: 56.25%; /* 1rem = 9px */
  }

  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 4rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .about-content {
    flex-direction: column;
  }

  .about-stats {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
  html {
    font-size: 50%; /* 1rem = 8px */
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .nav-links {
    position: fixed;
    top: 7rem;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 2rem;
    box-shadow: var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .about-stats {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .skills-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1.5rem;
  }

  .skill-icon {
    font-size: 3.5rem;
  }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .image-container {
    width: 25rem;
    height: 25rem;
  }

  .project-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-links .btn {
    width: 100%;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .skill-card {
    padding: 1.5rem 1rem;
  }

  .skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .skill-card h3 {
    font-size: 1.4rem;
  }
}
