/* // X-Small devices (portrait phones, less than 576px) */
@media only screen and (max-width: 575px) {
  /* Hero Section */

  .hero-highlights,
  .hero-chips {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-card {
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-kicker {
    text-align: left;
    padding-left: 10px;
    padding-top: 30px;
  }

  .hero-title {
    text-align: left;
    padding-left: 10px;
    padding-top: 5px;
  }

  .lead {
    font-size: 16px;
    font-weight: 300;
  }

  /* About Section */

  .about-badge {
    font-size: 13px;
    padding: 8px 16px;
  }

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

  .section-subtitle {
    font-size: 14px;
  }

  .about-avatar {
    width: 55px;
    height: 55px;
  }

  /* Skills Section */

  .skill-card {
    padding: 18px;
  }

  .skill-chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .skill-card-title {
    font-size: 16px;
  }

  /* education section */

  .edu-timeline::before {
    left: 18px;
  }

  .edu-item {
    gap: 12px;
    margin-bottom: 28px;
  }

  .edu-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .edu-card {
    padding: 16px;
  }

  .edu-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .edu-header h5 {
    font-size: 16px;
  }

  .edu-desc {
    font-size: 13px;
  }

  /* Contact Section */

  .contact-info {
    margin-bottom: 25px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  .contact-item h6 {
    font-size: 15px;
  }

  .contact-item p {
    font-size: 13px;
  }

  .contact-form .form-control {
    padding: 10px 12px;
    font-size: 13px;
  }

  .btn-submit {
    width: 100%;
    padding: 12px;
  }

  .contact-item > div:last-child {
    min-width: 0;
  }

  .contact-item p {
    overflow-wrap: anywhere;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .footer-name {
    width: 100%;
    margin-bottom: 0;
  }

  .footer-social a {
    margin: 0 8px;
  }

  /* responsive safety */

  .hero {
    min-height: 100svh;
    padding-top: 92px;
    padding-bottom: 46px;
  }

  .hero-title {
    font-size: clamp(2.55rem, 13vw, 3.2rem);
    overflow-wrap: anywhere;
  }

  .hero-card {
    padding: 18px 14px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stat {
    min-width: 0;
    padding: 12px 8px;
  }

  .stat-num {
    font-size: 16px;
  }

  .stat-label {
    font-size: 11px;
    overflow-wrap: anywhere;
  }

  .social-icon {
    width: 52px;
    height: 52px;
    font-size: 21px;
  }

  .meta-item {
    gap: 10px;
  }

  .meta-value {
    min-width: 0;
    max-width: 68%;
    overflow-wrap: anywhere;
  }

  .projects {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .projects-slider {
    -webkit-overflow-scrolling: touch;
  }

  /* projects section */

  .p-media {
    padding: 12px;
  }

  .p-body {
    padding: 16px 16px 14px;
  }

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 190px;
  }

  .p-top {
    flex-wrap: wrap;
    gap: 8px;
  }

  .p-name {
    font-size: 1.2rem;
  }

  .p-links {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .p-link {
    width: auto;
    justify-content: flex-start;
    white-space: nowrap;
    font-size: 0.95rem;
  }

  /* controls always visible on touch devices */
  .p-cbtn {
    opacity: 1;
  }
}

/* // Small devices (landscape phones, 576px and up) */
@media only screen and (min-width: 576px) and (max-width: 767px) {
  /* Hero Section */

  .hero-highlights,
  .hero-chips {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-card {
    max-width: 520px;
    margin: 0 auto;
  }

  .hero {
    min-height: 100svh;
    padding-top: 92px;
    padding-bottom: 46px;
  }

  .meta-value {
    min-width: 0;
    max-width: 72%;
    overflow-wrap: anywhere;
  }

  .hero-kicker {
    text-align: left;
    padding-left: 40px;
    padding-top: 30px;
  }

  .hero-title {
    text-align: left;
    padding-left: 40px;
    padding-top: 10px;
  }

  /* About Section */

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

  /* Skills Section */

  .skill-chip {
    font-size: 12px;
  }

  /* Education Section */

  .edu-timeline::before {
    left: 22px;
  }

  .edu-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }

  .edu-card {
    padding: 18px;
  }

  .edu-header h5 {
    font-size: 17px;
  }

  /* Contact Section */

  .contact-info {
    margin-bottom: 30px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
  }

  .btn-submit {
    width: 100%;
  }

  /* projects section */

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 205px;
  }

  .p-top {
    flex-wrap: wrap;
  }

  .p-name {
    font-size: 1.28rem;
  }

  .p-links {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
  }

  .p-link {
    width: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .p-cbtn {
    opacity: 1;
  }
}

/* // Medium devices (tablets, 768px and up) */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  /* Hero Section */

  .hero-highlights,
  .hero-chips {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-kicker {
    text-align: left;
    padding-left: 80px;
    padding-top: 40px;
  }

  .hero-title {
    text-align: left;
    padding-left: 80px;
    padding-top: 10px;
  }

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

  .hero-card {
    max-width: 520px;
    margin: 0 auto;
  }

  /* About Section */

  .about-profile,
  .about-card-advanced {
    max-width: 720px;
    margin: auto;
  }

  /* Skills Section */

  .skills-track {
    animation-duration: 25s;
  }

  /* Education Section */

  .edu-timeline {
    max-width: 100%;
  }

  .edu-timeline::before {
    left: 26px;
  }

  .edu-icon {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }

  .edu-card {
    padding: 20px;
  }

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

  /* Contact Section */

  .contact-form .form-control {
    padding: 12px 14px;
  }

  .contact-icon {
    width: 58px;
    height: 58px;
  }

  /* projects section */

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 215px;
  }

  .p-links {
    gap: 14px;
  }

  .p-link {
    white-space: nowrap;
  }
}

/* // Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {
  /* About Section */
  .about-card-advanced {
    padding: 24px;
  }

  .meta-label {
    padding-right: 5px;
  }

  /* Education Section */

  .edu-card {
    padding: 22px;
  }

  /* Contact Section */

  .contact-info {
    margin-bottom: 35px;
  }

  .contact-icon {
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .contact-form .form-control {
    padding: 11px 14px;
  }

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

  /* projects section */

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 230px;
  }
}

/* // X-Large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {
  /* education section */
  .edu-timeline {
    max-width: 900px;
    margin: auto;
  }

  /* contact section */

  .contact-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  /* projects section */

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 240px;
  }
}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media only screen and (min-width: 1400px) and (max-width: 1600px) {
  /* education section */

  .edu-timeline {
    max-width: 950px;
    margin: auto;
  }

  /*contact section */

  .contact-section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  /* projects section */

  .p-carousel .carousel-inner,
  .p-carousel .carousel-item {
    height: 250px;
  }
}


/* Very narrow phones: prevent text/control crowding without changing the design. */
@media only screen and (max-width: 359px) {
  .container {
    --bs-gutter-x: 1.25rem;
  }

  .hero-card-top {
    align-items: flex-start;
  }

  .hero-stats {
    gap: 6px;
  }

  .stat {
    padding-inline: 6px;
  }

  .p-body {
    padding-inline: 14px;
  }

  .p-top {
    gap: 7px;
  }

  .p-name {
    font-size: 1.12rem;
  }

  .p-type {
    padding-inline: 0.55rem;
  }

  .p-tags {
    gap: 7px;
  }

  .p-pill {
    font-size: 0.8rem;
    padding: 0.35rem 0.58rem;
  }

  .p-links {
    gap: 16px;
  }

  .p-link {
    font-size: 0.9rem;
    gap: 7px;
  }
}
