/* Responsive Styles */

/* Mobile Menu Button */
.mobile-menu-button {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  padding: 0.5rem;
}

/* Media Queries for Responsiveness */
/* Tablets and smaller devices */
@media (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100vh;
    background-color: var(--dark-light);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    overflow-y: auto;
    z-index: 1000;
    padding: 2rem;
  }
  
  .nav-links li {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .nav-links.active {
    display: flex;
    pointer-events: auto;
    z-index: 1002;
  }

  .nav-links.active li {
    transform: translateY(0);
    opacity: 1;
  }
  
  /* Staggered animation for links */
  .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
  .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
  .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
  .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
  .nav-links.active li:nth-child(6) { transition-delay: 0.6s; }
  .nav-links.active li:nth-child(7) { transition-delay: 0.7s; }


  .nav-links a {
    font-size: 1.2rem;
  }

  .mobile-menu-button {
    display: block; /* Show on mobile */
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem 0;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    max-width: 100%;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image .profile-img-container {
    width: 220px;
    height: 220px;
  }

  .about-content {
    flex-direction: column;
    gap: 3rem;
  }
  
  .section-heading h2 {
    font-size: 2rem;
  }

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

  .skills-container {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-content {
    flex-direction: column;
    gap: 2rem;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-greeting {
    font-size: 1rem;
  }
  
  .hero-image .profile-img-container {
    width: 180px;
    height: 180px;
  }

  .about-card {
    padding: 1.5rem;
  }
}

/* Extra Small Devices (e.g., iPhone SE) */
@media (max-width: 400px) {
    :root {
        --h1-font-size: 2.2rem;
        --h2-font-size: 1.6rem;
        --h3-font-size: 1.2rem;
        --p-font-size: 0.9rem;
    }

    section {
        padding: 40px 15px;
    }

    .hero {
        padding: 80px 15px 40px;
        min-height: auto;
    }

    .hero-content h1 {
        line-height: 1.3;
    }

    .hero-content .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .project-card {
        padding: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
}
