/*
0 - 600px:      Phone
600 - 900px:    Tablet portrait
900 - 1200px:   Tablet landscape
[1200 - 1800] is where our normal styles apply
1800px + :      Big desktop
$breakpoint arguement choices:
- phone
- tab-port
- tab-land
- big-desktop

Inside media queries 1em is always 16px i.e 1em = 16px at every screen size only inside media queries
*/
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
  font-family: inherit; }

html {
  font-size: 62.5%;
  scroll-behavior: smooth; }
  @media only screen and (max-width: 75em) {
    html {
      font-size: 59%; } }
  @media only screen and (max-width: 56.25em) {
    html {
      font-size: 56%; } }
  @media only screen and (min-width: 112.5em) {
    html {
      font-size: 65%; } }

body {
  box-sizing: border-box;
  position: relative;
  line-height: 1.5;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
  font-family: 'Source Sans Pro', sans-serif; }

a {
  text-decoration: none;
  color: inherit; }

li {
  list-style: none; }

input:focus,
button:focus,
a:focus,
textarea:focus {
  outline: none; }

button {
  border: none;
  cursor: pointer; }

textarea {
  resize: none; }

.heading-primary {
  font-size: 6rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center; }
  @media only screen and (max-width: 37.5em) {
    .heading-primary {
      font-size: 4.5rem; } }

.heading-sec__mb-bg {
  margin-bottom: 11rem; }
  @media only screen and (max-width: 56.25em) {
    .heading-sec__mb-bg {
      margin-bottom: 8rem; } }

.heading-sec__mb-med {
  margin-bottom: 9rem; }
  @media only screen and (max-width: 56.25em) {
    .heading-sec__mb-med {
      margin-bottom: 8rem; } }

.heading-sec__main {
  display: block;
  font-size: 4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative; }
  .heading-sec__main--lt {
    color: #fff; }
    .heading-sec__main--lt::after {
      content: '';
      background: #fff !important; }
  .heading-sec__main::after {
    content: '';
    position: absolute;
    top: calc(100% + 1.5rem);
    height: 5px;
    width: 3rem;
    background: #0062b9;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px; }
    @media only screen and (max-width: 37.5em) {
      .heading-sec__main::after {
        top: calc(100% + 1.2rem); } }

.heading-sec__sub {
  display: block;
  text-align: center;
  color: #777;
  font-size: 2rem;
  font-weight: 500;
  max-width: 80rem;
  margin: auto;
  line-height: 1.6; }
  @media only screen and (max-width: 37.5em) {
    .heading-sec__sub {
      font-size: 1.8rem; } }
  .heading-sec__sub--lt {
    color: #eee; }

.heading-sm {
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px; }

.main-container {
  max-width: 120rem;
  margin: auto;
  width: 92%; }

.btn {
  background: #fff;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  font-weight: 700;
  border-radius: 5px;
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.15);
  transition: transform .3s; }
  .btn:hover {
    transform: translateY(-3px); }
  .btn--bg {
    padding: 1.5rem 8rem;
    font-size: 2rem; }
  .btn--med {
    padding: 1.5rem 5rem;
    font-size: 1.6rem; }
  .btn--theme {
    background: #0062b9;
    color: #fff; }
  .btn--theme-inv {
    color: #0062b9;
    background: #fff;
    border: 2px solid #0062b9;
    box-shadow: none;
    padding: calc(1.5rem - 2px) calc(5rem - 2px); }

.sec-pad {
  padding: 12rem 0; }
  @media only screen and (max-width: 56.25em) {
    .sec-pad {
      padding: 8rem 0; } }

.text-primary {
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
  width: 100%;
  line-height: 1.6; }
  @media only screen and (max-width: 37.5em) {
    .text-primary {
      font-size: 2rem; } }

.d-none {
  display: none; }

.home-hero {
  color: #fff;
  background: linear-gradient(to right, rgba(0, 98, 185, 0.8), rgba(0, 98, 185, 0.8)), url(../../assets/svg/common-bg.svg);
  background-position: center;
  height: 100vh;
  min-height: 80rem;
  max-height: 120rem;
  position: relative; }
  @media only screen and (max-width: 37.5em) {
    .home-hero {
      height: unset;
      min-height: unset; } }
  .home-hero__socials {
    position: absolute;
    top: 50%;
    left: 0;                     /* adjust horizontally if needed */
    transform: translateY(-50%);
    border-left: 2px solid #eee; /* only left border — removes bottom box artifact */
    padding-left: 0.8rem;        /* space between line and icons */
    display: flex;
    flex-direction: column;
    gap: 0;                      /* separators handled by link border */
  }
  .home-hero__mouse-scroll-cont {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%); }
    @media only screen and (max-width: 37.5em) {
      .home-hero__mouse-scroll-cont {
        display: none; } }
  .home-hero__social {
    width: 5rem; }
  .home-hero__social-icon-link {
    width: 100%;
    display: block;
    padding: 1.2rem;
    border-bottom: 2px solid #eee;
    transition: background .3s;
  }
  .home-hero__social-icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .home-hero__social:last-child .home-hero__social-icon-link,
  .home-hero__social-icon-link--bd-none {
    border-bottom: 0;
  }
  .home-hero__social-icon {
    width: 100%; }
  .home-hero__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90rem;
    width: 92%; }
    @media only screen and (max-width: 37.5em) {
      .home-hero__content {
        padding: 19rem 0 13rem 0;
        margin: auto;
        position: static;
        transform: translate(0, 0); } }
  .home-hero__info {
    margin: 3rem auto 0 auto;
    max-width: 80rem; }
  .home-hero__cta {
    margin-top: 5rem;
    text-align: center; }

.about {
  background: #fafafa; }
  .about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10rem; }
    @media only screen and (max-width: 56.25em) {
      .about__content {
        grid-template-columns: 1fr;
        grid-gap: 8rem; } }
    .about__content-title {
      font-weight: 700;
      font-size: 2.8rem;
      margin-bottom: 3rem; }
      @media only screen and (max-width: 37.5em) {
        .about__content-title {
          font-size: 2.4rem; } }
    .about__content-details-para {
      font-size: 1.8rem;
      color: grey;
      max-width: 60rem;
      line-height: 1.7;
      margin-bottom: 1rem; }
      .about__content-details-para--hl {
        font-weight: 700;
        margin: 0 3px; }
      .about__content-details-para:last-child {
        margin-bottom: 4rem; }

.projects__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-gap: 5rem;
  margin-bottom: 11rem;
  align-items: center; /* vertically center image and content */
}
  @media only screen and (max-width: 56.25em) {
    .projects__row {
      grid-template-columns: 1fr;
      grid-gap: 2rem;
      margin-bottom: 8rem; } }
  @media only screen and (max-width: 56.25em) {
    .projects__row {
      text-align: center; } }
  .projects__row:last-child {
    margin-bottom: 0; }
  .projects__row-img-cont {
    overflow: hidden;
    border-radius: 8px; /* rounded corners for image container */
    /* center image inside the container */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .projects__row-img {
    width: 100%;
    display: block;
    object-fit: cover; }
  .projects__row-content {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start; }
    @media only screen and (max-width: 56.25em) {
      .projects__row-content {
        align-items: center; } }
    .projects__row-content-title {
      font-weight: 700;
      font-size: 2.8rem;
      margin-bottom: 2rem; }
      @media only screen and (max-width: 37.5em) {
        .projects__row-content-title {
          font-size: 2.4rem; } }
    .projects__row-content-desc {
      font-size: 1.8rem;
      color: grey;
      max-width: 60rem;
      line-height: 1.7;
      margin-bottom: 3rem; }
      @media only screen and (max-width: 37.5em) {
        .projects__row-content-desc {
          font-size: 1.7rem; } }

.contact {
  background: linear-gradient(to right, rgba(0, 98, 185, 0.8), rgba(0, 98, 185, 0.8)), url(../../assets/svg/common-bg.svg);
  background-size: cover;
  background-position: center; }
  .contact__form-container {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 4rem;
    margin-top: 6rem;
    max-width: 80rem;
    text-align: right;
    width: 95%;
    border-radius: 5px;
    margin: 5rem auto 0 auto; }
    @media only screen and (max-width: 37.5em) {
      .contact__form-container {
        padding: 3rem; } }
  .contact__form-field {
    margin-bottom: 4rem; }
    @media only screen and (max-width: 37.5em) {
      .contact__form-field {
        margin-bottom: 3rem; } }
  .contact__form-label {
    color: #666;
    font-size: 1.4rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
    text-align: left; }
  .contact__form-input {
    color: #333;
    padding: 2rem;
    width: 100%;
    border: 1px solid #ebebeb;
    font-size: 1.6rem;
    letter-spacing: 0px;
    background: #f0f0f0;
    border-radius: 5px;
    font-weight: 600;
    /* Code for Modern Browsers */
    /* Code for WebKit, Blink, Edge */
    /* Code for Internet Explorer 10-11 */
    /* Code for Microsoft Edge */
    /* Code for Mozilla Firefox 4 to 18 */
    /* Code for Mozilla Firefox 19+ */ }
    .contact__form-input::placeholder {
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
    .contact__form-input::-webkit-input-placeholder {
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
    .contact__form-input:-ms-input-placeholder {
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
    .contact__form-input::-ms-input-placeholder {
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
    .contact__form-input:-moz-placeholder {
      opacity: 1;
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
    .contact__form-input::-moz-placeholder {
      opacity: 1;
      color: #999;
      font-weight: 600;
      font-size: 1.6rem; }
  .contact__btn {
    width: 30%;
    padding: 2rem 4rem;
    font-size: 1.6rem; }
    @media only screen and (max-width: 37.5em) {
      .contact__btn {
        width: 100%; } }

.project-cs-hero {
  color: #fff;
  background: linear-gradient(to right, rgba(0, 98, 185, 0.8), rgba(0, 98, 185, 0.8)), url(../../assets/svg/common-bg.svg);
  background-size: cover;
  background-position: center;
  position: relative; }
  @media only screen and (max-width: 37.5em) {
    .project-cs-hero {
      height: unset;
      min-height: unset; } }
  .project-cs-hero__content {
    padding: 25rem 0 17rem 0;
    max-width: 90rem;
    width: 92%;
    margin: auto; }
    @media only screen and (max-width: 37.5em) {
      .project-cs-hero__content {
        padding: 19rem 0 13rem 0;
        margin: auto;
        position: static;
        transform: translate(0, 0); } }
  .project-cs-hero__info {
    margin: 3rem auto 0 auto;
    max-width: 80rem; }
  .project-cs-hero__cta {
    margin-top: 5rem;
    text-align: center; }

  /* Project hero trailer video (rounded like images) */
  .project-cs-hero__video-cont {
    max-width: 1100px;
    margin: 2.4rem auto 1.6rem;
    padding: 0 6%;
    box-sizing: border-box;
  }

  .project-cs-hero__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* match image rounding */
    overflow: hidden;
    background: #000;
  }

  @media only screen and (max-width: 56.25em) {
    .project-cs-hero__video-cont { margin: 1.6rem auto; }
  }

.project-details__content {
    /* keep original top padding, reduce only bottom padding */
    padding: 8rem 0 0rem; /* top right/left bottom */
  max-width: 90rem;
  margin: auto; }
  @media only screen and (max-width: 37.5em) {
    /* preserve top padding on small screens and reduce bottom */
    .project-details__content { padding: 8rem 0 3rem; }
  }
  .project-details__content-title {
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 3rem; }
    @media only screen and (max-width: 37.5em) {
      .project-details__content-title {
        font-size: 2.4rem; } }

.project-details__showcase-img-cont {
  width: 100%;
  margin-bottom: 6rem; }

.project-details__showcase-img {
  width: 100%; }

.project-details__content-main {
  width: 100%;
  max-width: 70rem;
  margin: auto; }

.project-details__desc {
  margin: 0 0 7rem 0; }
  .project-details__desc-para {
    font-size: 1.8rem;
    line-height: 1.7;
    color: grey;
    margin-bottom: 2rem; }

  /* Restore bullets for specific project lists that reuse paragraph styles
     (we globally disable list-style earlier; enable discs for this class only) */
  ul.project-details__desc-para {
    list-style-type: disc;
    list-style-position: outside;
    margin: 0 0 2rem 1.6rem; /* keep paragraph spacing but indent for bullets */
    padding-left: 0; /* left indent handled by margin */
  }
  ul.project-details__desc-para li {
    margin-bottom: 0.6rem; /* small gap between items */
  }
  /* Ensure bullets show even though we reset lists site-wide */
  ul.project-details__desc-para li {
    list-style-type: disc;
    display: list-item; /* ensure marker is rendered */
    margin-left: 0; /* controlled on the ul for consistent spacing */
  }

  /* Slightly smaller subtitle used for micro-headings inside project content (e.g. 'Goal') */
  .project-details__content-subtitle {
    font-weight: 700;
    font-size: 2.0rem; /* slightly smaller than the main content title */
    margin: 1rem 0 0.6rem; /* tighten spacing between subtitle and paragraph */
    color: #222;
  }

.project-details__tools-used {
  margin: 0 0 7rem 0; }
  .project-details__tools-used-list {
    display: flex;
    flex-wrap: wrap; }
  .project-details__tools-used-item {
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
    font-size: 1.6rem;
    background: rgba(153, 153, 153, 0.2);
    border-radius: 5px;
    font-weight: 600;
    color: #777; }

/* Prevent fixed header from covering anchored sections (e.g. #entities) */
.project-highlight-target {
  /* desktop header ~6rem (60px) plus small spacing */
  scroll-margin-top: 8.5rem;
}

@media only screen and (max-width: 56.25em) {
  /* smaller screens have taller header padding; reduce offset slightly */
  .project-highlight-target { scroll-margin-top: 7.2rem; }
}

/* Fallback for older browsers: add top padding to target when :target is active */
.project-highlight-target:target {
  padding-top: 8.5rem;
  margin-top: -8.5rem;
}

.project-details__links {
  margin: 0 0; }
  .project-details__links-btn {
    margin-right: 2rem; }
    @media only screen and (max-width: 37.5em) {
      .project-details__links-btn {
        margin-right: 0;
        width: 70%;
        margin-bottom: 2rem;
        text-align: center; } }
    .project-details__links-btn:last-child {
      margin: 0; }
      @media only screen and (max-width: 37.5em) {
        .project-details__links-btn:last-child {
          margin: 0; } }

.header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  background: #000;
  background: #fff;
  box-shadow: 0 10px 100px rgba(0, 0, 0, 0.1); }
  .header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5rem; }
    @media only screen and (max-width: 56.25em) {
      .header__content {
        padding: 0 2rem; } }
  .header__logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    transition: color .3s; }
    .header__logo-container:hover {
      color: #0062b9; }
  .header__logo-img-cont {
    width: 5rem;
    height: 5rem;
    border-radius: 50px;
    overflow: hidden;
    margin-right: 1.5rem;
    background: #0062b9; }
    @media only screen and (max-width: 56.25em) {
      .header__logo-img-cont {
        width: 4.5rem;
        height: 4.5rem;
        margin-right: 1.2rem; } }
  .header__logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block; }
  .header__logo-sub {
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px; }
  .header__links {
    display: flex; }
    @media only screen and (max-width: 37.5em) {
      .header__links {
        display: none; } }
  .header__link {
    padding: 2.2rem 3rem;
    display: inline-block;
    font-size: 1.6rem;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    transition: color .3s; }
    .header__link:hover {
      color: #0062b9; }
    @media only screen and (max-width: 56.25em) {
      .header__link {
        padding: 3rem 1.8rem;
        font-size: 1.5rem; } }
  .header__main-ham-menu-cont {
    display: none;
    width: 3rem;
    padding: 2.2rem 0; }
    @media only screen and (max-width: 37.5em) {
      .header__main-ham-menu-cont {
        display: block; } }
  .header__main-ham-menu {
    width: 100%; }
  .header__main-ham-menu-close {
    width: 100%; }
  .header__sm-menu {
    background: #fff;
    position: absolute;
    width: 100%;
    top: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
    -webkit-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 5px 5px 0px rgba(0, 0, 0, 0.1); }
    .header__sm-menu--active {
      visibility: hidden;
      opacity: 0; }
      @media only screen and (max-width: 37.5em) {
        .header__sm-menu--active {
          visibility: visible;
          opacity: 1; } }
  .header__sm-menu-link a {
    display: block;
    text-decoration: none;
    padding: 2.5rem 3rem;
    font-size: 1.6rem;
    color: #333;
    text-align: right;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color .3s; }
    .header__sm-menu-link a:hover {
      color: #0062b9; }
  .header__sm-menu-link:first-child a {
    border-top: 1px solid #eee; }
  .header__sm-menu-link-last {
    border-bottom: 0; }

.main-footer {
  background: #000;
  color: #fff; }
  .main-footer__upper {
    display: flex;
    justify-content: space-between;
    padding: 8rem 0; }
    @media only screen and (max-width: 56.25em) {
      .main-footer__upper {
        padding: 6rem 0; } }
    @media only screen and (max-width: 37.5em) {
      .main-footer__upper {
        display: block; } }
  .main-footer__row-1 {
    order: 2; }
    @media only screen and (max-width: 56.25em) {
      .main-footer__row-1 {
        margin-bottom: 5rem; } }
  .main-footer__row-2 {
    width: 40%;
    order: 1;
    max-width: 50rem; }
    @media only screen and (max-width: 56.25em) {
      .main-footer__row-2 {
        width: 100%; } }
  .main-footer__short-desc {
    margin-top: 2rem;
    color: #eee;
    font-size: 1.5rem;
    line-height: 1.7; }
  .main-footer__social-cont {
    margin-top: 2rem; }
  .main-footer__icon {
    margin-right: 1rem;
    width: 2.5rem; }
    .main-footer__icon--mr-none {
      margin-right: 0; }
  .main-footer__lower {
    padding: 4rem 0;
    border-top: 1px solid #444;
    color: #eee;
    font-size: 1.2rem;
    text-align: left;
    text-align: center; }
    .main-footer__lower a {
      text-decoration: underline;
      font-weight: bold;
      margin-left: 2px; }
    @media only screen and (max-width: 56.25em) {
      .main-footer__lower {
        padding: 3.5rem 0; } }

.skills {
  display: flex;
  flex-wrap: wrap; }
  .skills__skill {
    padding: 1rem 2rem;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
    font-size: 1.6rem;
    background: rgba(153, 153, 153, 0.2);
    border-radius: 5px;
    font-weight: 600;
    color: #777; }

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid #eee;
  border-radius: 60px;
  position: relative;
  overflow: hidden; }
  .mouse::before {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #eee;
    border-radius: 50%;
    opacity: 1;
    animation: wheel 1.3s infinite;
    -webkit-animation: wheel 1.3s infinite; }

@keyframes wheel {
  to {
    opacity: 0;
    top: 27px; } }

@-webkit-keyframes wheel {
  to {
    opacity: 0;
    top: 27px; } }

/* Center contact/social icons */
.contact__socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2rem;
}

.contact__socials img,
.contact__socials .main-footer__icon {
  width: 40px;
  height: 40px;
  display: block;
}
/* optional smaller icons on very small screens */
@media only screen and (max-width: 37.5em) {
  .contact__socials img { width: 32px; height: 32px; }
}

/* Utility: underlined links — place at end so it overrides earlier rules */
a.link--underline,
.link--underline {
  text-decoration: underline;
  text-decoration-color: #0062b9;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

/* Extra specificity for places that target anchors directly */
.header__sm-menu-link a.link--underline,
.header__links a.link--underline {
  text-decoration: underline;
  text-decoration-color: #0062b9;
}

/* Hover state */
a.link--underline:hover,
.link--underline:hover {
  text-decoration-color: #004a86;
}

.about__img-cont {
  display: flex;
  flex-direction: column; /* stack image then caption */
  align-items: center;    /* center horizontally */
  padding: 0 6%;
  box-sizing: border-box;
}

.about__img {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  margin: 0rem 0 0;
  max-height: 60vh;
  object-fit: contain;
}

/* Video variant that matches about__img styling */
.about__video {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  margin: 2.4rem 0 0;
  max-height: 60vh;
  object-fit: contain;
}

.about__img-caption {
  display: block;
  text-align: center;
  color: #777;
  font-size: 1.4rem;
  margin: 0.8rem 0 2.4rem;
  max-width: 1100px;
  width: 100%;
}

.about .heading.heading-sec__mb-med {
  margin-bottom: 0.8rem; /* tighten heading spacing above image */
}

/* smaller caption bottom margin so projects section sits closer */
.about__img-caption {
  margin: 0.8rem 0 1.2rem; /* top, left/right, bottom */
  font-size: 1.4rem; /* keep previous sizing */
}

/* reduce the section's bottom padding only for about */
.about.sec-pad {
  padding-bottom: 8rem; /* adjust to taste (smaller than default) */
}

/* Tighten vertical spacing for contact section */
.contact.sec-pad {
  padding-top: 8rem;
  padding-bottom: 1rem;
}

/* even tighter on small screens */
@media only screen and (max-width: 37.5em) {
  .contact.sec-pad {
    padding-top: 5rem;   /* ~16px */
    padding-bottom: 0.66rem;/* ~16px */
  }
}

/* Project meta — match site typography and spacing */
.project-meta {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  color: #6f6f6f;               /* muted body color */
  font-size: 1.6rem;           /* consistent with other body text */
  line-height: 1.4;
}

/* Project Highlights divider */
.project-highlights {
  display: flex;
  gap: 4rem;
  margin: 3rem 0 4rem;
}
.project-highlight {
  flex: 1 1 50%;
  background: #fff; /* neutral background */
  color: #222; /* dark text for contrast */
  padding: 1.6rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  text-align: center;
  border: 1px solid #e6e6e6; /* subtle gray border */
}
.project-highlight__title {
  font-size: 1.8rem; /* slightly smaller */
  margin-bottom: 1rem;
  color: #222;
}
.project-highlight__gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  height: auto;
  display: block;
  margin: 0 auto 0.8rem;
  border-radius: 6px;
}
.project-highlight__btn {
  display: inline-block;
  margin-top: 1rem;
}

/* Make sure captions inside accent panels are readable */
.project-highlight .about__img-caption {
  color: #6f6f6f;
  font-size: 1.4rem;
  margin: 0.8rem 0 1.2rem;
}

@media only screen and (max-width: 56.25em) {
  .project-highlights { flex-direction: column; }
  .project-highlight { width: 100%; }
}

.project-meta li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

/* label (Role:, Platform:, etc.) */
.project-meta li > strong {
  font-weight: 700;
  color: #222;                 /* darker label to stand out */
  min-width: 8.4rem;          /* aligns the values in a column — adjust if needed */
  display: inline-block;
  font-size: 1.6rem;
}

/* value text (links or plain text) */
.project-meta a,
.project-meta span {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

/* style links to match site underlined style — core visual */
.project-meta a {
  text-decoration: underline;
  text-decoration-color: #0062b9;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.project-meta a:hover {
  text-decoration-color: #004a86;
}

/* compact on small screens */
@media only screen and (max-width: 37.5em) {
  .project-meta {
    font-size: 1.4rem;
  }
  .project-meta li > strong {
    min-width: 6.4rem;
  }
}

.projects__row-content-desc {
  margin-bottom: 0.6rem; /* was larger — reduce to taste */
}

.project-meta {
  margin-top: 0.4rem;
  margin-bottom: 1.8rem; /* extra space below meta so button sits farther down */
  gap: 0.4rem;
  font-size: 1.6rem;
}

/* smaller screens */
@media only screen and (max-width: 37.5em) {
  .project-meta {
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
}

/* If your .projects__row-content uses gap, ensure it's compact on small screens */
@media only screen and (max-width: 37.5em) {
  .projects__row-content-desc { margin-bottom: 0.4rem; }
  .project-meta { margin-top: 0.3rem; margin-bottom: 0.8rem; font-size: 1.4rem; }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2.4rem;
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 50%;
  background: #0062b9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  z-index: 1200;
  transition: transform .2s ease, opacity .2s ease;
}
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top.d-none { display: none !important; }

@media only screen and (max-width: 37.5em) {
  .back-to-top { right: 1rem; bottom: 1.6rem; width: 3.6rem; height: 3.6rem; font-size: 1.8rem; }
}

/* Code styling: inline and block */
code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  background: rgba(0,0,0,0.04);
  color: #0062b9;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 1.5rem;
  line-height: 1.2;
  white-space: pre-wrap;
}

pre {
  background: #0f1724;
  color: #e6eef8;
  padding: 1.6rem;
  border-radius: 6px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 1.6rem 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Ensure long inline code doesn't break layout */
code {
  word-break: break-word;
}