/*****************************/
/*       MEDIA QUERIES       */
/*****************************/

@media all and (max-width: 1053px) {
  /* header */
  .header-title {
    font-size: 2.7em;
    letter-spacing: 24px;
  }

  .header-subtitle {
    font-size: 1.2em;
    letter-spacing: 13.5px;
  }

  .header-icon {
    width: 220px;
  }

  .header-icon img {
    width: 15px;
  }

  .header-content-inner {
    max-width: 900px;
  }

  .glowing-line-container::before,
  .glowing-line-container::after {
    width: 12%;
  }

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 450px;
    height: 450px;
  }

  .header-small .sphere-2 {
    width: 400px;
    height: 400px;
  }

  .header-smaller .sphere-2 {
    width: 350px;
    height: 350px;
  }
}

@media all and (max-width: 990px) {
  /* header */
  .header-large {
    height: 450px;
  }

  .header-small {
    height: 350px;
  }

  .header-smaller {
    height: 300px;
  }

  .header-title {
    font-size: 1.85em;
    letter-spacing: 14px;
  }

  .header-subtitle {
    font-size: 0.85em;
    letter-spacing: 9px;
  }

  .header-icon {
    width: 150px;
    height: 25px;
    line-height: 25px;
  }

  .header-icon img {
    width: 13px;
  }

  .header-content-inner {
    max-width: 600px;
  }

  .glowing-line-container::before,
  .glowing-line-container::after {
    width: 11%;
  }

  /* navbar */
  .navbar {
    font-size: 0.9em;
  }

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 300px;
    height: 300px;
  }

  .header-small .sphere-2 {
    width: 270px;
    height: 270px;
  }

  .header-smaller .sphere-2 {
    width: 240px;
    height: 240px;
  }

  /* quote II */
  .quote-2 {
    font-size: 1.6rem;
  }

  .quote-2 .author {
    font-size: 1.1rem;
  }
}

@media all and (max-width: 870px) {
  .categories .grid-thumbnail .thumbnail-info {
    font-size: 1.4rem;
  }
}

@media all and (max-width: 770px) {
  /* quote I */
  /* .component {
    font-size: 1.4rem;
  } */

  /* .component blockquote.quote {
    padding: 3.5rem 3.5rem;
  } */

  /* navbar */
  .navbar {
    font-size: 0.8em;
  }

  /* rouded image about */
  .rounded-image {
    border: 2px solid #8972b7;
  }

  /* youtube container */
  .video-border {
    border: solid 3px #fff;
  }

  /* carousel border */
  .carousel .carousel-inner img {
    border: solid 3px #fff;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 60px;
    height: 60px;
    background-size: 40px 40px;
  }

  /* quote II */
  .quote-2 {
    font-size: 1.5rem;
  }

  .quote-2 .author {
    font-size: 1rem;
  }

  .carousel-caption p {
    padding: 0.2rem;
    font-size: 1rem; /* Add padding for better readability */
  }
}

/* Allows the category section to display the ALL PROJECTS sections aligned at the bottom */
@media (min-width: 701px) {
  .categories > .grid-thumbnail:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
  .categories > .grid-thumbnail:nth-child(odd):last-child img,
  .categories > .grid-thumbnail:nth-child(odd):last-child .thumbnail-info {
    height: 80px;
    padding: 0;
  }
}

@media all and (max-width: 700px) {
  /* header */
  .header-large {
    height: 400px;
  }

  .header-small {
    height: 325px;
  }

  .header-smaller {
    height: 250px;
  }

  .header-title {
    font-size: 1.45em;
    letter-spacing: 9px;
    margin-bottom: 4px;
  }

  .header-subtitle {
    font-size: 0.7em;
    letter-spacing: 6px;
    margin-bottom: 4px;
  }

  .header-icon {
    width: 115px;
    height: 20px;
    line-height: 20px;
  }

  .header-icon img {
    width: 10px;
  }

  .header-content-inner {
    max-width: 450px;
  }

  /* quote I */
  /* .component {
    font-size: 1.1rem;
  } */

  /* .component blockquote.quote {
    padding: 3rem 3rem;
  } */

  /* navbar */
  .navbar {
    font-size: 0.64em;
  }

  /* grid and featured containers */
  .big-grid-single-column,
  .big-grid-two-columns,
  .small-grid-three-columns {
    grid-template-columns: repeat(1, 1fr);
  }

  .categories .grid-thumbnail .thumbnail-info,
  .grid-thumbnail .thumbnail-info {
    font-size: 5vw;
  }

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 220px;
    height: 220px;
  }

  .header-small .sphere-2 {
    width: 205px;
    height: 205px;
  }

  .header-smaller .sphere-2 {
    width: 190px;
    height: 190px;
  }

  .header-large .sphere-2 span:nth-child(2),
  .header-small .sphere-2 span:nth-child(2),
  .header-smaller .sphere-2 span:nth-child(2) {
    border: 4px solid #fff;
  }

  .header-large .sphere-2 span:nth-child(3),
  .header-small .sphere-2 span:nth-child(3),
  .header-smaller .sphere-2 span:nth-child(3) {
    border: 4px solid #ff3b88;
  }

  /* used in about page */
  .rounded-image {
    border: 3px solid #8972b7;
    box-shadow: 0 0 7px #fff;
  }

  /* experience */
  /* all reduce by 3 units. courses reduce by 4 units */
  .experience {
    font-size: 17px;
  }

  /* heading e.g., Summary */
  .experience h2 {
    font-size: 24px;
  }

  /* job and degree title */
  .heading-container .title {
    font-size: 11px;
  }

  /* date */
  .heading-container .italic:not(.pink) {
    font-size: 13px;
  }

  /* courses */
  .course-info span {
    font-size: 17px;
  }

  .same-line .bold {
    min-width: 150px;
  }

  .heading-separator {
    top: -13px;
  }

  .summary.active {
    margin-left: calc(90px + 24px);
    animation: expandSeparator 1.3s forwards;
  }

  .work-experience.active {
    margin-left: calc(180px + 24px);
    animation: expandSeparator 3s forwards;
  }

  .education.active {
    margin-left: calc(100px + 24px);
    animation: expandSeparator 1.5s forwards;
  }

  .courses-certifications.active {
    margin-left: calc(275px + 24px);
    animation: expandSeparator 5s forwards;
  }

  .skills.active {
    margin-left: calc(45px + 24px);
    animation: expandSeparator 0.9s forwards;
  }

  .publications.active {
    margin-left: calc(130px + 24px);
    animation: expandSeparator 2s forwards;
  }

  .additional-info.active {
    margin-left: calc(250px + 24px);
    animation: expandSeparator 4.5s forwards;
  }

  /* quote II */
  .quote-2 {
    font-size: 1.3rem;
  }

  .quote-2 .author {
    font-size: 0.9rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-size: 30px 30px;
  }

  .carousel-caption p {
    font-size: 0.8rem;
  }
}

@media all and (max-width: 550px) {
  .page-container {
    padding: 20px;
  }

  .navigation-section {
    margin-top: 1.5rem;
  }
}

@media all and (max-width: 500px) {
  /* header */
  .header-large {
    height: 350px;
  }

  .header-small {
    height: 250px;
  }

  .header-smaller {
    height: 200px;
  }

  .header-title {
    font-size: 1.1em;
    letter-spacing: 8px;
    margin-bottom: 2px;
  }

  .header-subtitle {
    font-size: 0.55em;
    letter-spacing: 4.7px;
    margin-bottom: 4px;
  }

  .header-icon {
    width: 90px;
    height: 15px;
    line-height: 15px;
  }

  .header-icon img {
    width: 8px;
  }

  .header-content-inner {
    max-width: 350px;
  }

  .glowing-line-container::before,
  .glowing-line-container::after {
    height: 0.25em;
  }

  .glowing-line-container::before {
    left: 4%;
  }

  .glowing-line-container::after {
    right: 4%;
  }

  /* navbar */
  .navbar {
    font-size: 0.8em;
  }

  /* rounded image */
  .rounded-image {
    margin: 30px auto 50px auto;
  }

  /* quote II */
  .quote-2 {
    margin-top: 60px;
  }

  /* experience */
  /* all reduce by 3 units. courses reduce by 4 units */
  .experience {
    font-size: 16px;
  }

  /* heading e.g., Summary */
  .experience h2 {
    font-size: 20px;
  }

  /* job and degree title */
  .heading-container .title {
    font-size: 9px;
  }

  /* date */
  .heading-container .italic:not(.pink) {
    font-size: 10px;
  }

  /* courses */
  .course-info span {
    font-size: 16px;
  }

  .year {
    flex: 0 0 50px;
    text-align: left;
  }

  .same-line .bold {
    min-width: 120px;
  }

  .heading-separator {
    top: -10px;
  }

  .summary.active {
    margin-left: calc(75px + 24px);
    animation: expandSeparator 1.4s forwards;
  }

  .work-experience.active {
    margin-left: calc(150px + 24px);
    animation: expandSeparator 3s forwards;
  }

  .education.active {
    margin-left: calc(80px + 24px);
    animation: expandSeparator 1.5s forwards;
  }

  .courses-certifications.active {
    margin-left: calc(225px + 24px);
    animation: expandSeparator 6s forwards;
  }

  .skills.active {
    margin-left: calc(35px + 24px);
    animation: expandSeparator 0.8s forwards;
  }

  .publications.active {
    margin-left: calc(105px + 24px);
    animation: expandSeparator 2s forwards;
  }

  .additional-info.active {
    margin-left: calc(205px + 24px);
    animation: expandSeparator 5s forwards;
  }

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 180px;
    height: 180px;
  }

  .header-large .sphere-2 span:nth-child(2),
  .header-small .sphere-2 span:nth-child(2),
  .header-smaller .sphere-2 span:nth-child(2) {
    border: 3px solid #fff;
  }

  .header-large .sphere-2 span:nth-child(3),
  .header-small .sphere-2 span:nth-child(3),
  .header-smaller .sphere-2 span:nth-child(3) {
    border: 3px solid #ff3b88;
  }

  .header-small .sphere-2 {
    width: 160px;
    height: 160px;
  }

  .header-smaller .sphere-2 {
    width: 150px;
    height: 150px;
  }

  /* used in about page */
  .rounded-image {
    border: 2px solid #8972b7;
    box-shadow: 0 0 5px #fff;
  }

  /* quote II */
  .quote-2 {
    font-size: 1.2rem;
  }

  .quote-2 .author {
    font-size: 0.9rem;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-size: 20px 20px;
  }

  .carousel-caption p {
    padding: 0.1rem;
    font-size: 0.7rem;
    margin-bottom: 0;
  }

  .experience ul {
    margin-right: 50px;
  }
}

@media all and (max-width: 400px) {
  /* header */
  .header-large {
    height: 300px;
  }

  .header-small {
    height: 200px;
  }

  .header-smaller {
    height: 150px;
  }

  .header-title {
    font-size: 0.98em;
    letter-spacing: 6px;
    margin-bottom: 2px;
  }

  .header-subtitle {
    font-size: 0.47em;
    letter-spacing: 4.2px;
    margin-bottom: 4px;
  }

  .header-icon {
    width: 70px;
    height: 15px;
    line-height: 15px;
  }

  .header-icon img {
    width: 6px;
  }

  .header-content-inner {
    max-width: 300px;
  }

  .glowing-line-container::before,
  .glowing-line-container::after {
    height: 0.2em;
  }

  /* .glowing-line-container::before {
    left: 5%;
  }

  .glowing-line-container::after {
    right: 5%;
  } */

  /* quote I */
  /* .component {
    font-size: 0.9rem;
  } */

  /* .component blockquote.quote {
    padding: 2.7rem 2.7rem;
  } */

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 150px;
    height: 150px;
  }

  .header-small .sphere-2 {
    width: 135px;
    height: 135px;
  }

  .header-smaller .sphere-2 {
    width: 120px;
    height: 120px;
  }

  /* experience */
  /* all reduce by 3 units. courses reduce by 2 units */
  .experience {
    font-size: 14px;
  }

  /* heading e.g., Summary */
  .experience h2 {
    font-size: 16px;
  }

  /* job and degree title */
  .heading-container .title {
    font-size: 8px;
  }

  /* date */
  .heading-container .italic:not(.pink) {
    font-size: 9px;
  }

  /* courses */
  .course-info span {
    font-size: 14px;
  }

  .same-line .bold {
    min-width: 100px;
  }

  .summary.active {
    margin-left: calc(60px + 24px);
    animation: expandSeparator 1.5s forwards;
  }

  .work-experience.active {
    margin-left: calc(115px + 24px);
    animation: expandSeparator 3.2s forwards;
  }

  .education.active {
    margin-left: calc(65px + 24px);
    animation: expandSeparator 1.5s forwards;
  }

  .courses-certifications.active {
    margin-left: calc(175px + 24px);
    animation: expandSeparator 5s forwards;
  }

  .skills.active {
    margin-left: calc(25px + 24px);
    animation: expandSeparator 1s forwards;
  }

  .publications.active {
    margin-left: calc(80px + 24px);
    animation: expandSeparator 2s forwards;
  }

  .additional-info.active {
    margin-left: calc(160px + 24px);
    animation: expandSeparator 5s forwards;
  }

  /* footer */
  .footer-copywrite {
    font-size: 12px;
  }

  /* quote II */
  .quote-2 {
    font-size: 1rem;
  }

  .quote-2 .author {
    font-size: 0.8rem;
  }

  .quote-container {
    margin: 15px 0 15px 0;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 20px 20px;
  }

  .carousel-caption p {
    font-size: 0.6rem;
  }
}

@media all and (max-width: 350px) {
  /* header */
  .header-title {
    font-size: 0.79em;
    letter-spacing: 6px;
    margin-bottom: 2px;
  }

  .header-subtitle {
    font-size: 0.35em;
    letter-spacing: 4.3px;
  }

  .header-icon {
    width: 60px;
    height: 13px;
    line-height: 15px;
  }

  .header-icon img {
    width: 5px;
  }

  .header-content-inner {
    max-width: 250px;
  }

  .glowing-line-container::before,
  .glowing-line-container::after {
    margin-top: -0.05px;
  }

  .glowing-line-container::before {
    left: 3%;
  }

  .glowing-line-container::after {
    right: 3%;
  }

  /* quote I */
  /* .component {
    font-size: 0.8rem;
  } */

  /* .component blockquote.quote {
    padding: 2.5rem 2.5rem;
  } */

  /* header sphere effect */
  .header-large .sphere-2 {
    width: 130px;
    height: 130px;
  }

  .header-small .sphere-2 {
    width: 120px;
    height: 120px;
  }

  .header-smaller .sphere-2 {
    width: 110px;
    height: 110px;
  }

  /* experience */
  .experience {
    font-size: 13px;
  }

  /* heading e.g., Summary */
  .experience h2 {
    font-size: 14px;
  }

  /* job and degree title */
  .heading-container .title {
    font-size: 7px;
  }

  /* date */
  .heading-container .italic:not(.pink) {
    font-size: 8px;
  }

  /* courses */
  .course-info span {
    font-size: 13px;
  }

  .heading-separator {
    top: -9px;
  }

  .summary.active {
    margin-left: calc(50px + 24px);
    animation: expandSeparator 1.8s forwards;
  }

  .work-experience.active {
    margin-left: calc(100px + 24px);
    animation: expandSeparator 3s forwards;
  }

  .education.active {
    margin-left: calc(50px + 24px);
    animation: expandSeparator 1.8s forwards;
  }

  .courses-certifications.active {
    margin-left: calc(150px + 24px);
    animation: expandSeparator 5.3s forwards;
  }

  .skills.active {
    margin-left: calc(20px + 24px);
    animation: expandSeparator 0.8s forwards;
  }

  .publications.active {
    margin-left: calc(70px + 24px);
    animation: expandSeparator 2s forwards;
  }

  .additional-info.active {
    margin-left: calc(140px + 24px);
    animation: expandSeparator 5s forwards;
  }

  /* footer */
  .footer-copywrite {
    font-size: 10px;
  }

  /* quote II */
  .quote-2 {
    font-size: 0.8rem;
  }

  .quote-2 .author {
    font-size: 0.6rem;
  }

  .carousel-caption p {
    /* font-size: 0.5rem; */
    display: none;
  }
}
