@media screen and (max-width: 1024px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 20px;
  }
}

@media screen and (max-width: 992px) {
  section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px;
  }

  .contact-actions-col {
    padding: 24px;
  }

  .write-us-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease,
                visibility 0.25s ease;
    z-index: 999;
  }

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

  .nav-links-list {
    flex-direction: column;
    gap: 28px;
    width: 100%;
    text-align: center;
  }

  .nav-link {
    font-size: 18px;
    display: block;
    width: 100%;
    padding: 10px 0;
  }

  .hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-blue);
  }

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

  .hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-blue);
  }

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

  .exp-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .exp-meta {
    align-items: flex-start;
    border-top: 1px solid var(--bg-secondary);
    width: 100%;
    padding-top: 12px;
  }

  .experience-card {
    padding: 24px;
  }
}

@media screen and (max-width: 576px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 34px;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .section-title {
    font-size: 26px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-right {
    justify-content: center;
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .hero-section {
    padding-top: 95px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    font-size: 14.5px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

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

  .skill-list {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .experience-card,
  .about-card,
  .project-card,
  .skill-card,
  .community-card,
  .write-us-form-col {
    padding: 18px;
  }

  .profile-image-container {
    width: 80px;
    height: 80px;
  }
  
  .contact-buttons-grid .contact-btn {
    padding: 10px;
    font-size: 13px;
  }
}
