@font-face {
  font-family: 'Humanist521BT';
  src: url('../fonts/Humanist521BT.ttf') format('truetype');
}

@font-face {
  font-family: 'TypoGraphica';
  src: url('../fonts/TypoGraphica_demo.otf') format('opentype');
}

/* Base */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* clips flying cards without breaking position:sticky */
  max-width: 1920px;
  margin-inline: auto;
}

body {
  margin: 0;
  font-family: "Humanist521BT", sans-serif;
  font-size: 0.938rem;
  font-weight: 500;
  color: #a2acbd;
  background-color: #000000;
  line-height: 1.6;
}

/* Skills Scroll Classes */
.skills-side-title {
  position: absolute;
  right: 100%;
  margin-right: clamp(1rem, 2vw, 2.5rem);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  height: fit-content;
  display: flex;
  justifyContent: center;
}

.skills-heading-text {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: normal;
  letter-spacing: 4px;
  color: #e4a109;
  font-family: 'TypoGraphica', impact, sans-serif;
  margin: 0;
  white-space: nowrap;
  line-height: 1.1;
}

.skills-red-line {
  display: none; /* Only visible on mobile */
}

.skills-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skills-list-item {
  font-size: clamp(2.5rem, 7vw, 7rem);
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 0;
  color: #fff;
}



h1,
h2,
h3,
ul,
p {
  margin: 0;
}

h2,
h3 {
  font-weight: 600;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Class CSS */
.section {
  padding: 3rem 0 2rem;
}

.section-title,
.section-subtitle {
  text-align: center;
}

.section-title {
  position: relative;
  font-size: 1.5rem;
  padding: 2rem 0 0 0;
  text-align: center;
  letter-spacing: 0.1rem;
  color: #f9f9f9;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 0.15rem;
  bottom: -0.25rem;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #e4a109;
}

.section-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #a2acbd;
  margin: 1.8rem 3rem;
}

/* Layout */
.bd-container {
  max-width: 1024px;
  width: calc(100% - 2rem);
  margin-left: 1rem;
  margin-right: 1rem;
}

.bd-grid {
  display: grid;
  gap: 1.5rem;
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #2a3749;
}

.nav {
  height: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    padding-top: 1.5rem;
    text-align: center;
    background-color: #2a3749;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(165, 146, 146, 0.1);
    border-radius: 0 0 1rem 1rem;
  }
}

.nav__item {
  margin-bottom: 1.5rem;
}

.nav__link {
  color: #f9f9f9;
  transition: 0.3s;
}

.nav__link:hover {
  color: #e4a109;
  text-decoration-line: underline;
}

.nav__logo,
.nav__toggle {
  color: #f9f9f9;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: 900;
}

.nav__logo:hover,
.nav__toggle:hover {
  color: #e4a109;
  transition: 0.3s ease;
}

.show-menu {
  top: 3rem;
}

.active-link {
  position: relative;
}

.active-link:after {
  content: "";
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 70%;
  height: 3px;
  background-color: #e4a109;
}

/* Change background header */
.scroll-header {
  background-color: rgba(42, 55, 73, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(24, 22, 22, 0.301);
}

.scroll-header .nav__logo,
.scroll-header .nav__toggle,
.scroll-header .nav__link {
  color: #f9f9f9;
}

.scroll-header .nav__link:hover {
  color: #a2acbd;
}

.scroll-header .nav__menu {
  background-color: transparent;
}

.home {
  background-color: transparent;
  margin-bottom: 4rem;
}

.home__container {
  position: relative;
  height: calc(100vh - ($header-height));
  grid-template-rows: repeat(2, max-content);
  align-content: space-around;
}

.home__data {
  color: #f9f9f9;
  padding: 1rem 0.35rem;
  z-index: 10;
}

.home__greeting {
  display: block;
  font-weight: 700;
  color: #a2acbd;
}

.home__title {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #e4a109;
  line-height: 2rem;
  padding-bottom: 1rem;
  padding-top: 0.5rem;
}

.home__career {
  display: block;
  color: #e4a109;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.home__description {
  color: #a2acbd;
}

.home button {
  margin-top: 1.5rem;
}

.home-btn {
  color: #f9f9f9;
  background-color: black;
  border: 0;
  margin: 0.1rem;
}

.home__hire {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: #e4a109;
  color: #2a3749;
  padding: 0.5rem 2rem;
  border: 1px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 #b37d04;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.home__hire:active {
  box-shadow: 0 0 0 #b37d04;
  transform: translateY(4px);
}

.home__hire:hover {
  background-color: #2a3749;
  color: #e4a109;
  border: 1px #e4a109 solid;
  transition: 0.3s ease-in;
}

.home__hire:focus {
  outline: 0;
}

.home__download {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  background-color: #2a3749;
  color: #e4a109;
  padding: 0.5rem 0.65rem;
  border: 1px #e4a109 solid;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 0 #1c2532;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.home__download:active {
  box-shadow: 0 0 0 #1c2532;
  transform: translateY(4px);
}

.home__download:hover {
  background-color: #e4a109;
  color: #2a3749;
  transition: 0.3s;
}

.home__download:focus {
  outline: 0;
}

.home__social {
  display: flex;
  flex-direction: column;
  width: max-content;
  font-size: 1.3rem;
  margin-top: 6rem;
}

.home__icon {
  cursor: pointer;
  margin: 0.5rem;
  color: #f9f9f9;
}

.home__icon:hover {
  color: #e4a109;
  transition: 0.3s;
}

.home__icon:focus {
  outline: 0;
}

.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
}

.home__img img {
  width: 240px;
  filter: drop-shadow(1rem 0.8rem 2rem rgba(7, 7, 7, 0.76));
}

.contact__inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1rem;
}

.contact__input,
.contact__button {
  outline: none;
  font-family: #a2acbd;
  font-size: 0.938rem;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #2a3749;
  color: #2a3749;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  resize: none;
}

.contact::placeholder {
  color: #a2acbd;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.contact__button {
  cursor: pointer;
  border: none;
}

.modal__container.show {
  pointer-events: auto;
  opacity: 1;
}

.services {
  background-color: transparent;
  padding-bottom: 4rem;
}

.services__section {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #f9f9f9;
  letter-spacing: 0.25rem;
}

.services__container {
  display: grid;
  row-gap: 1.5rem;
}

.services__data {
  display: grid;
  padding: 2rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: 0.4s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.services__data:nth-of-type(4) img {
  height: 230px;
}

.services__img {
  width: 230px;
  margin-bottom: 3rem;
  justify-self: center;
}

.services__title {
  color: #e4a109;
  margin-bottom: 0.5rem;
}

.services__description {
  color: #f9f9f9;
}

.portfolio {
  background-color: transparent;
  padding-bottom: 4rem;
}

.portfolio__section {
  display: flex;
  justify-content: center;
  text-align: center;
  color: #f9f9f9;
  letter-spacing: 0.25rem;
}

.portfolio__container {
  display: flex;
  row-gap: 1.5rem;
}

.portfolio__data {
  display: grid;
  padding: 1.5rem 1rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: 0.4s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.portfolio__img {
  width: 300px;
  height: auto;
  margin-bottom: 1.5rem;
  justify-self: center;
}

.portfolio__img img {
  border-radius: 8px;
  box-shadow: 0 1px 2.2px rgba(0, 0, 0, 0.076),
    0 2.3px 5.3px rgba(0, 0, 0, 0.109), 0 4.4px 10px rgba(0, 0, 0, 0.135),
    0 7.8px 17.9px rgba(0, 0, 0, 0.161), 0 14.6px 33.4px rgba(0, 0, 0, 0.194),
    0 35px 80px rgba(0, 0, 0, 0.27);
}

.portfolio__title {
  color: #e4a109;
  margin-bottom: 1rem;
}

.portfolio__description {
  color: #f9f9f9;
  margin-bottom: 1.5rem;
}

.portfolio__link {
  margin-bottom: 3rem;
}

.portfolio__link span {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #e4a109;
  padding: 0.5rem 1rem;
  border: 1px #e4a109 solid;
  cursor: pointer;
  border-radius: 8px;
}

.portfolio__link span:hover {
  background-color: #e4a109;
  color: #2a3749;
  transition: 0.3s;
}

.swiper-pagination {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: 1rem;
}

.swiper-pagination .swiper-pagination-bullet {
  background-color: #a2acbd;
}

.swiper-pagination .swiper-pagination-bullet-active {
  background-color: #e4a109;
}

.footer {
  background-color: transparent;
}

.footer__container {
  display: grid;
  text-align: center;
}

.footer__copy {
  text-align: center;
  font-weight: 100;
  color: #e4a109;
}

.footer__copy-link {
  color: #e4a109;
  text-decoration: underline;
}

.footer__box {
  display: flex;
  flex-direction: column;
}

.footer__box p {
  padding-bottom: 0.3rem;
  color: #f9f9f9;
}

.footer__box a {
  color: #a2acbd;
}

@media (min-width: 506px) {
  .home__img img {
    width: 300px;
    height: auto;
  }
  .home__container,
  .services__container {
    grid-template-columns: repeat(1, 1fr);
  }
  .services__container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}

@media (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 2rem;
  }
  .section-title {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .nav {
    height: calc($header-height + 1.5rem);
  }
  .nav__list {
    display: flex;
  }
  .nav__item {
    margin-right: 1.5rem;
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .home__container {
    height: 100vh;
    grid-template-rows: max-content 0.5fr;
    grid-template-columns: repeat(2, 1fr);
    align-content: flex-end;
  }
  .home__greeting {
    font-size: 1.25rem;
    margin-bottom: 0.3rem;
  }
  .home__title {
    font-size: 2.1rem;
  }
  .home__career {
    font-size: 1.2rem;
    margin-top: 0.5rem;
  }
  .home__description {
    font-size: 1rem;
  }
  .home__social {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 1.8rem;
  }
  .home__social a {
    margin-right: 1.5rem;
  }
  .home__img {
    width: max-content;
    top: 100px;
  }
  .home__img img {
    width: 380px;
    height: auto;
  }
  .services__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio__title {
    font-size: 1.5rem;
  }
  .portfolio__img {
    width: max-content;
  }
  .portfolio__img img {
    width: 550px;
  }
  .portfolio__description {
    margin: 2rem 5rem;
  }
  .portfolio__link span {
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .bd-container {
    margin-left: auto;
    margin-right: auto;
  }
  .home__data {
    padding-top: 2rem;
  }
  .home__img {
    height: 670px;
  }
}

/* ==== Skills + Portfolio two-column layout ==== */
/* Desktop: side by side */
.skills-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Mobile/Tablet: stacked */
@media (max-width: 900px) {
  .skills-portfolio-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Force skills panel to wrap its content and disable sticky on mobile */
  .skills-portfolio-grid > div:first-child {
    position: relative !important;
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    padding: 1rem 0;
  }
}

/* ===== GLOBAL MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
  body {
    margin: 0 !important;
  }

  /* --- Hero / Header --- */
  .header {
    height: 100vh !important;
  }
  
  .header__text-box {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    padding-bottom: 2rem !important; /* adjust to calce the text inside the hero1.png box */
    height: 100vh !important;
  }

  .hero-text-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    position: absolute !important;
    bottom: 20% !important; /* Aligns text with the wooden frame */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 85% !important;
  }

  .hero-buttons-wrapper {
    display: none !important;
  }

  .hero-greeting {
    display: none !important;
  }

  .heading-primary span {
    font-size: clamp(2rem, 7vw, 2.5rem) !important;
    text-shadow: 0px 4px 10px rgba(0,0,0,0.8) !important;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 1.2rem) !important;
    text-shadow: 0px 2px 5px rgba(0,0,0,0.8) !important;
    margin-top: 5px !important;
  }

  /* --- Skills & Portfolio Alignment --- */
  .skills-scroll-container {
    padding: 2rem 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .skills-scroll-inner {
    margin-left: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
  
  /* Skills heading mobile overrides */
  .skills-side-title {
    position: relative !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  .skills-red-line {
    display: block !important;
    width: 50px !important; /* Make it a small centered dash like typical designs */
    height: 4px !important;
    background-color: #ef233c !important;
    margin: 10px auto 0 auto !important;
  }

  .skills-list-container {
    align-items: center !important;
    text-align: center !important;
    justify-content: center !important;
    width: 100% !important;
    display: flex !important;
  }

  .skills-list-item {
    font-size: clamp(2rem, 8vw, 3rem) !important;
    text-align: center !important;
    white-space: normal !important;
    width: 100% !important;
    display: block !important;
  }
  
  #work {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* --- About section --- */
  /* Force photo on top, text below */
  .about__content {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 3rem;
  }

  .about__photo-container {
    order: -1 !important; /* photo first */
    flex: unset !important;
    margin: 0 !important;
    min-width: unset !important;
    width: 100%;
  }

  .about__text {
    flex: unset !important;
    font-size: 1.5rem !important;
    width: 100%;
  }

  .about__text p:first-child {
    font-size: 2rem !important;
  }

  /* --- ScrollHighlight Skills --- */
  /* Already handled by skills-portfolio-grid → just ensure font scales */
  /* The ScrollHighlight component uses clamp() so it auto-adjusts */

  /* --- Scroll indicator — hide on very small screens --- */
  body > div + header .motion-scroll-indicator {
    display: none;
  }
}

/* Extra-small phones */
@media (max-width: 480px) {
  .heading-primary span {
    font-size: clamp(2.2rem, 8vw, 3rem) !important;
  }

  .about__text p:first-child {
    font-size: 1.8rem !important;
  }
}
