@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    word-break: normal;
    hyphens: none;
    white-space: normal;
  }
  .hero-content h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }
  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }
  .hero-btns {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }
}
@media screen and (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .about-text h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .about-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .stat-item h3 {
    font-size: 1.8rem;
  }
  .stat-item p {
    font-size: 0.85rem;
  }
}
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .skill-item {
    padding: 15px;
  }
  .skill-item h4 {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
    word-break: normal;
    hyphens: none;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .hero-content h2 {
    font-size: 1.1rem;
  }
  .section-header h2 {
    font-size: 1.6rem;
  }
  .about-text h2 {
    font-size: 1.6rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skill-item {
    padding: 12px;
  }
  .skill-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  .skill-item h4 {
    font-size: 0.85rem;
  }
  .about-stats {
    grid-template-columns: 1fr;
  }
}
@media screen and (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .section-padding {
    padding: 50px 0;
  }
  p, li, .btn, .nav-link, .timeline-content, .project-content p, .project-highlights li {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
@media screen and (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: -0.5px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    display: block;
  }
  .hero-text h1 span {
    display: inline;
  }
}
