/* Mobile Responsiveness Enhancements */
@media screen and (max-width: 992px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-content {
    width: 100%;
    text-align: center;
  }

  .profile-image-container {
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

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

  .skill-group {
    flex-direction: column;
  }

  .skill-category {
    width: 100%;
    margin-bottom: 30px;
  }

  .certifications-content {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .personal-info {
    flex-direction: column;
  }

  .info-item {
    width: 100%;
    margin-bottom: 20px;
  }

  .project-card {
    width: 100%;
  }

  .experience-counter {
    flex-wrap: wrap;
  }

  .counter-item {
    width: calc(50% - 20px);
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 32px;
  }

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

  .counter-item {
    width: 100%;
  }

  .experience-header {
    flex-direction: column;
  }

  .experience-icon {
    margin-bottom: 15px;
  }

  .nav-links a {
    margin: 0 8px;
  }

  .footer-links a {
    margin: 5px;
  }

  .social-icons {
    gap: 10px;
  }
}

/* Fix for mobile menu */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--background-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    margin: 15px 0;
    font-size: 18px;
    padding: 10px 20px;
    width: 80%;
    text-align: center;
    border-radius: 30px;
    transition: all 0.3s ease;
  }

  .nav-links a:hover,
  .nav-links a.active-link {
    background: var(--primary-color);
    color: white;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
  }

  .menu-bar {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left;
  }

  .mobile-menu-btn.active .menu-bar:first-child {
    transform: rotate(45deg);
    background-color: var(--primary-color);
  }

  .mobile-menu-btn.active .menu-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active .menu-bar:last-child {
    transform: rotate(-45deg);
    background-color: var(--primary-color);
  }
}
