/* Media Queries */
@media (max-width: 1199px) {
  /* About Section Adjustments */
  .about-section .about-content .personal-info .info-item p span {
    display: block;
    margin-left: 0;
  }

  /* Timeline Adjustment */
  .about-section .timeline-item {
    padding: 20px;
  }
}

@media (max-width: 991px) {
  /* General */
  .container {
    padding: 0 30px;
  }

  /* Home Section */
  .home-section .home-text h2 {
    font-size: 40px;
  }
  .home-section .home-text h1 {
    font-size: 24px;
  }

  /* About Section */
  .about-section .about-img {
    margin-bottom: 30px;
  }

  /* Service Section */
  .service-section .service-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Portfolio Section */
  .portfolio-section .portfolio-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Testimonial Adjustment */
  .testimonial-section .testi-item {
    padding: 25px;
  }
}

@media (max-width: 767px) {
  /* General */
  .container {
    padding: 0 15px;
  }

  /* Home Section */
  .home-section .home-text,
  .home-section .home-img {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .home-section .home-text {
    order: 2;
    text-align: center;
  }
  .home-section .home-img {
    margin-bottom: 30px;
  }

  /* About Section */
  .about-section .about-info,
  .about-section .about-img,
  .about-section .about-content .experience,
  .about-section .about-content .education,
  .about-section .about-content .skills,
  .about-section .about-content .personal-info {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Timeline Mobile */
  .about-section .timeline:before {
    left: 35px;
  }
  .about-section .timeline .timeline-item:nth-child(odd),
  .about-section .timeline .timeline-item:nth-child(even) {
    padding: 0;
    text-align: left;
  }
  .about-section .timeline .timeline-item-inner {
    margin-left: 75px;
  }
  .about-section .timeline .icon {
    left: -65px !important;
  }

  /* Service Section */
  .service-section .service-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Portfolio Section */
  .portfolio-section .portfolio-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .portfolio-filter {
    flex-wrap: wrap;
  }
  .portfolio-filter .filter-item {
    margin-bottom: 10px;
  }

  /* Testimonial Section */
  .testimonial-section .testi-item {
    padding: 20px;
  }
  .testimonial-section .testi-item p {
    font-size: 14px;
  }

  /* Contact Section */
  .contact-section .contact-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Contact Form */
  .contact-form table td {
    display: block;
    width: 100% !important;
  }
  .contact-form table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  /* Portfolio & Contact Adjustments */
  .portfolio-section .portfolio-item,
  .contact-section .contact-info-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Testimonial Mobile */
  .testimonial-section .testi-item {
    padding: 15px;
  }
  .testimonial-section .testi-item img {
    width: 60px;
    height: 60px;
  }
  .testimonial-section .testi-item span {
    font-size: 14px;
  }

  /* About Image Adjustment */
  .about-section .about-img {
    margin-bottom: 20px;
  }

  /* Timeline Mobile */
  .about-section .timeline .timeline-item-inner {
    margin-left: 55px;
    padding: 15px;
  }
  .about-section .timeline .icon {
    height: 30px;
    width: 30px;
    line-height: 30px;
    left: -50px !important;
  }
}

@media (max-width: 480px) {
  /* Home Section */
  .home-section .home-text h2 {
    font-size: 32px;
    line-height: 1.2;
  }
  .home-section .home-text h1 {
    font-size: 20px;
  }

  /* Navigation */
  .nav-menu {
    width: 100%;
  }

  /* About Tabs */
  .about-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }
  .about-tabs .tab-item {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 2px 0;
    padding: 8px 10px;
    font-size: 14px;
  }

  /* Social Links */
  .social-links {
    margin-top: 15px;
  }

  /* Contact Form */
  .form-control {
    padding: 10px;
    font-size: 14px;
  }
  textarea.form-control {
    height: 120px;
  }

  /* Timeline Mobile */
  .about-section .timeline-item h3 {
    font-size: 16px;
  }
  .about-section .timeline-item p {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  /* Extreme Mobile Adjustments */
  .home-section .home-text h2 {
    font-size: 28px;
  }
  .home-section .home-text h1 {
    font-size: 18px;
  }

  .testimonial-section .testi-item p {
    font-size: 13px;
    line-height: 1.5;
  }

  .about-section .timeline .timeline-item-inner {
    margin-left: 45px;
    padding: 10px;
  }
  .about-section .timeline .icon {
    left: -40px !important;
  }
}
