@media screen and (max-width: 1024px) {
  p, a, .about-intro, .exp-details, .contact-subtitle, 
  .form-group input, .form-group textarea {
    font-size: 14px;
  }

  .section-container {
    padding: 0 1.5rem;
  }

  .social-icon {
    font-size: 18px;
  }

  .about-content {
    gap: 2rem;
  }

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

  .experience-item {
    margin-bottom: 3rem;
  }

  .exp-details li {
    margin-bottom: 30px;
    padding-left: 14px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section,
  .projects-section,
  .about-section,
  .education-section,
  .contact-section {
    padding: 3rem 1rem;
  }

  .hamburger {
    display: flex;
    z-index: 1000;
  }

  .line {
    transition: all 0.3s ease-in-out;
  }

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

  .hamburger.active .line:nth-child(2) {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: -100%;
    left: 0;
    flex-direction: column;
    background-color: #fff;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .nav-menu.active {
    top: 50px;
  }

  .btn-contact {
    display: none;
  }

  /* Hero Section */
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    min-height: auto;
    padding: 2rem 0;
  }

  /* Grids */
  .projects-grid,
  .skills-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact-info {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- SMALL PHONES (Max width: 480px) --- */
@media screen and (max-width: 480px) {
  /* Layout & Spacing */
  .hero-section,
  .projects-section,
  .about-section,
  .education-section,
  .contact-section {
    padding: 2rem 0.75rem;
  }

  .section-container {
    padding: 0 0.5rem;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  /* Typography & UI Elements */
  .logo {
    font-size: 1.2rem;
  }

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

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

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  /* Cards & Grid details */
  .experience-item,
  .project-card,
  .education-card {
    padding: 1.25rem 1rem;
  }

  .skills-grid {
    gap: 0.75rem;
  }

  .skill-category {
    padding: 0.75rem;
  }

  .skill-category h4 {
    font-size: 0.85rem;
  }

  /* Media Reset */
  img, table, canvas, iframe {
    max-width: 100%;
    height: auto;
  }
}

/* --- TINY SCREENS (Max width: 350px) --- */
@media screen and (max-width: 350px) {
  .education-card h4 {
    font-size: 1rem;
  }

  .edu-desc {
    font-size: 0.85rem;
  }
}