/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Bai+Jamjuree:wght@400;500;600;700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  --first-color: hsl(14, 98%, 50%);
  --first-color-alt: hsl(14, 98%, 46%);
  --black-color: hsl(0, 0%, 0%);
  --black-color-light: hsl(0, 0%, 40%);
  --white-color: hsl(0, 0%, 96%);
  --title-color: hsl(0, 0%, 0%);
  --text-color: hsl(0, 0%, 35%);
  --text-color-light: hsl(0, 0%, 64%);
  --body-color: hsl(0, 0%, 88%);
  --container-color: hsl(0, 0%, 83%);

  --body-font: "Bai Jamjuree", sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color .4s, color .4s;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-bold);
  transition: color .4s;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== THEME ===============*/
.nav__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
  transition: color .3s;
}

body.dark-theme {
  --first-color: hsl(14, 80%, 55%);
  --first-color-alt: hsl(14, 76%, 49%);
  --black-color: hsl(0, 0%, 100%);
  --black-color-light: hsl(0, 0%, 60%);
  --white-color: hsl(0, 0%, 6%);
  --title-color: hsl(0, 0%, 95%);
  --text-color: hsl(0, 0%, 70%);
  --body-color: hsl(0, 0%, 8%);
  --container-color: hsl(0, 0%, 12%);
}

.dark-theme .shadow-header {
  box-shadow: 0 1px 12px hsla(0, 0%, 0%, .6);
}

.dark-theme .home__shadow,
.dark-theme .about__shadow,
.dark-theme .contact__mail {
  background-color: hsl(0, 0%, 14%);
}

.dark-theme .about__box {
  background-color: hsl(0, 0%, 10%);
}

.dark-theme .services__card:hover,
.dark-theme .skills__card:hover,
.dark-theme .projects__card:hover {
  background-color: hsl(0, 0%, 12%);
}

.dark-theme .contact__input,
.dark-theme .contact__label {
  color: var(--white-color);
}

.dark-theme .footer {
  background-color: hsl(0, 0%, 4%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

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

.section {
  padding-block: 4rem 2rem;
}

.section__title-1,
.section__title-2 {
  position: relative;
  font-size: var(--h1-font-size);
  width: max-content;
  margin: .75rem auto 2rem;
}

.section__title-1 span,
.section__title-2 span {
  position: relative;
  z-index: 5;
}

.section__title-1::after,
.section__title-2::after {
  content: "";
  width: 40px;
  height: 28px;
  background-color: hsla(14, 98%, 50%, .2);
  position: absolute;
  top: -4px;
  right: -8px;
}

.section__title-2::after {
  top: initial;
  bottom: -4px;
}

.geometric-box {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  rotate: -30deg;
}

.geometric-box::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--black-color);
  left: -5px;
  top: -5px;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow .4s, background-color .4s;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.nav__logo-circle,
.nav__toggle {
  width: 32px;
  height: 32px;
  background-color: var(--black-color);
  color: var(--white-color);
  display: grid;
  place-items: center;
}

.nav__logo-circle {
  border-radius: 50%;
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

.nav__menu {
  transition: top .4s;
}

@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, .75);
    width: 100%;
    padding-block: 1.8rem 5rem;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

.nav__title,
.nav__name,
.nav__close {
  color: var(--white-color);
}

.nav__title {
  display: block;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 3.5rem;
}

.nav__name {
  position: relative;
  width: max-content;
  margin: 0 auto 3rem;
  font-size: var(--h2-font-size);
}

.nav__name::after,
.nav__name::before {
  content: "";
  width: 40px;
  height: 1px;
  background-color: var(--text-color-light);
  position: absolute;
  top: 50%;
  left: -4rem;
}

.nav__name::before {
  left: initial;
  right: -4rem;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  transition: color .3s;
}

.nav__link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: var(--white-color);
  position: absolute;
  left: 0;
  bottom: -.5rem;
  transition: width .3s;
}

.nav__link:hover::after {
  width: 25%;
}

.nav__close {
  position: absolute;
  font-size: 1.5rem;
  top: 1rem;
  right: 1.5rem;
  cursor: pointer;
}

.show-menu {
  top: 0;
}

.shadow-header {
  box-shadow: 0 1px 16px hsla(0, 0%, 0%, .12);
}

.active-link {
  color: var(--first-color);
}

.active-link::after {
  background-color: var(--first-color);
  width: 25%;
}

/*=============== HOME ===============*/
.home__container {
  padding-top: 2rem;
}

.home__name {
  font-size: var(--biggest-font-size);
  text-align: center;
}

.home__perfil {
  position: relative;
  justify-self: center;
}

.home__image {
  width: 220px;
}

.home__img {
  position: relative;
  z-index: 10;
}

.profile__photo {
  filter: drop-shadow(0 14px 22px hsla(0, 0%, 0%, .22));
}

.about__img.profile__photo {
  background-color: transparent;
  object-fit: contain;
}

.home__shadow {
  width: 100%;
  height: 100%;
  background-color: var(--container-color);
  position: absolute;
  bottom: -.75rem;
  right: -.75rem;
  border: 4px solid var(--black-color);
  z-index: 5;
  transition: background-color .4s;
}

.home__arrow,
.home__line {
  position: absolute;
  filter: invert(1);
  width: 50px;
  transition: filter .4s;
}

.home__arrow {
  left: 40%;
  bottom: -4rem;
}

.home__line {
  right: -2rem;
  bottom: -.5rem;
}

.home__perfil .geometric-box {
  top: 2.5rem;
  left: -.7rem;
  z-index: 10;
}

.home__social {
  height: max-content;
  position: absolute;
  left: -3rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  display: grid;
  row-gap: 1rem;
}

.home__social-link {
  background-color: var(--black-color-light);
  color: var(--white-color);
  font-size: 1.25rem;
  padding: 6px;
  display: grid;
  place-items: center;
  transition: background-color .3s;
}

.home__social-link:hover {
  background-color: var(--black-color);
}

.home__info {
  margin-top: 4rem;
}

.home__description {
  text-align: center;
  color: var(--title-color);
  margin-bottom: 1.5rem;
}

.home__description b {
  background: linear-gradient(90deg, hsla(14, 98%, 50%, .35), hsla(14, 98%, 50%, 0));
}

.home__scroll {
  display: block;
  width: max-content;
  margin: 0 auto;
}

.home__scroll-text {
  display: none;
}

.home__scroll-box {
  background-color: var(--black-color);
  color: var(--white-color);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  overflow: hidden;
  transition: background-color .4s;
}

.home__scroll-box i {
  animation: scroll-down 3s infinite;
}

@keyframes scroll-down {
  0% {
    transform: translateY(-1rem);
    opacity: 0;
  }

  50% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(.6rem);
    opacity: 0;
  }
}

/*=============== BUTTON ===============*/
.button,
.button__ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: .5rem;
}

.button {
  background-color: var(--black-color);
  padding: 1.1rem 1.5rem;
  color: var(--white-color);
  font-weight: var(--font-medium);
  transition: background-color .4s;
}

.button i {
  font-size: 1.25rem;
}

.button:hover {
  background-color: var(--first-color);
}

.button__ghost {
  border: 3px solid var(--black-color);
  color: var(--black-color);
  padding: .5rem;
  transition: border .4s, color .4s;
}

.button__ghost i {
  font-size: 1.25rem;
}

.button__ghost:hover {
  border-color: var(--first-color);
}

/*=============== ABOUT ===============*/
.about {
  background-color: var(--container-color);
  transition: background-color .4s;
}

.about__container {
  row-gap: 0;
}

.about__perfil {
  position: relative;
  justify-self: center;
  margin-block: 2.5rem 4.5rem;
}

.about__image {
  width: 220px;
}

.about__img {
  position: relative;
  border: 4px solid var(--white-color);
  z-index: 1;
}

.about__shadow,
.about__line,
.about__box {
  position: absolute;
}

.about__shadow {
  width: 150px;
  height: 385px;
  background-color: var(--body-color);
  top: -2.5rem;
  right: -3.5rem;
  border-bottom: 4px solid var(--first-color);
  transition: background-color .4s;
}

.about__perfil .geometric-box {
  top: 1.5rem;
  right: -2.8rem;
}

.about__line {
  filter: invert(1);
  right: -1.25rem;
  top: 6rem;
  width: 55px;
  transition: filter .4s;
}

.about__box {
  width: 40px;
  height: 40px;
  background-color: var(--first-color);
  right: -.5rem;
  bottom: 1.5rem;
}

.about__info {
  padding-left: 1.25rem;
}

.about__description {
  position: relative;
  color: var(--title-color);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.about__description::after {
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--title-color);
  position: absolute;
  left: -1.75rem;
  top: .6rem;
}

.about__list {
  list-style: square;
  color: var(--title-color);
  margin-bottom: 3rem;
  line-height: 1.65;
}

.about__buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 1rem;
}

/*=============== SERVICES ===============*/
.services__container {
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 2rem;
  padding-top: 1rem;
}

.services__card {
  position: relative;
}

.services__content {
  height: 100%;
  background-color: var(--body-color);
  border: 4px solid var(--black-color);
  padding: 6rem 1rem 3rem;
  z-index: 5;
  position: relative;
  transition: background-color .4s, border .4s;
}

.services__border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--first-color);
  top: 0;
  left: 0;
  transition: transform .4s;
}

.services__card:hover .services__border {
  transform: translate(.75rem, .75rem);
}

.services__icon {
  position: relative;
  display: inline-block;
}

.services__icon i {
  font-size: 2rem;
  color: var(--black-color);
  position: relative;
  z-index: 5;
}

.services__box {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--first-color);
  right: -2px;
  top: -2px;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-block: 1.25rem 1rem;
}

.services__description {
  line-height: 1.65;
}



/*=============== SKILLS ===============*/
.skills__container {
  grid-template-columns: 250px;
  justify-content: center;
  row-gap: 2rem;
  padding-top: 1rem;
}

.skills__card {
  position: relative;
}

.skills__content {
  height: 100%;
  min-height: 205px;
  background-color: var(--body-color);
  border: 4px solid var(--black-color);
  padding: 2.75rem 1rem 2rem;
  z-index: 5;
  position: relative;
  display: grid;
  place-items: center;
  row-gap: 1.2rem;
  transition: background-color .4s, border .4s, transform .4s;
}

.skills__border {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--first-color);
  top: 0;
  left: 0;
  transition: transform .4s;
}

.skills__card:hover .skills__border {
  transform: translate(.75rem, .75rem);
}

.skills__card:hover .skills__content {
  transform: translateY(-.25rem);
}

.skills__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  position: relative;
  z-index: 5;
}

.skills__logo-wide {
  width: 112px;
}

.skills__fallback {
  width: 72px;
  height: 72px;
  display: none;
  place-items: center;
  text-align: center;
  font-size: var(--small-font-size);
  font-weight: var(--font-bold);
  color: var(--title-color);
  border: 3px solid var(--black-color);
  background-color: var(--first-color);
}

.skills__fallback.is-visible {
  display: grid;
}

.skills__name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
}

/*=============== PROJECTS ===============*/
.projects {
  background-color: var(--container-color);
  transition: background-color .4s;
}

.projects__container {
  row-gap: 2rem;
}

.projects__card {
  padding: 1rem 1rem 2rem;
  background-color: var(--white-color);
  transition: background-color .4s, transform .4s;
}

.projects__image {
  position: relative;
  margin-bottom: .75rem;
  overflow: hidden;
}

.projects__img {
  border-radius: .2rem;
  transition: transform .5s;
}

.projects__button {
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  padding: 1rem;
}

.projects__content {
  margin-bottom: 1.25rem;
}

.projects__subtitle {
  position: relative;
  display: inline-block;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin-bottom: .75rem;
  padding-left: 1.75rem;
}

.projects__subtitle::after {
  content: "";
  width: 20px;
  height: 1px;
  background-color: var(--text-color);
  position: absolute;
  top: 50%;
  left: 0;
}

.projects__title {
  font-size: var(--h3-font-size);
  margin-bottom: .75rem;
}

.projects__description {
  line-height: 1.6;
}

.projects__buttons {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.projects__link {
  display: flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: color .3s;
}

.projects__link i {
  font-size: 1rem;
  color: var(--title-color);
  transition: color .3s;
}

.projects__link:hover,
.projects__link:hover i {
  color: var(--first-color);
}

.projects__card:hover {
  transform: translateY(-.35rem);
}

.projects__card:hover .projects__img {
  transform: scale(1.04);
}


/*=============== CERTIFICATES ===============*/
.certificates {
  background-color: var(--container-color);
}

.certificates__container {
  display: grid;
  gap: 2rem;
}

.certificates__card {
  max-width: 760px;
  margin: 0 auto;
}

.certificates__image {
  background-color: var(--white-color);
}

.certificates__img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/*=============== CONTACT ===============*/
.contact {
  padding-bottom: 0;
}

.contact__container {
  position: relative;
  grid-template-rows: 300px max-content max-content;
  row-gap: 0;
}

.contact__data {
  position: relative;
  width: 300px;
  height: 300px;
  background-color: var(--container-color);
  padding: 3rem 1.5rem 3.5rem;
  margin-left: auto;
  border-bottom: 4px solid var(--first-color);
  z-index: 5;
  transition: background-color .4s;
}

.contact__data .section__title-2 {
  margin: 0 0 1.5rem;
  transform: translateX(-3rem);
}

.contact__description-1 {
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
}

.contact__description-2 {
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.contact__data .geometric-box {
  top: 2rem;
  right: 2.5rem;
}

.contact__mail {
  position: relative;
  background-color: var(--black-color);
  padding: 5rem 1.5rem 2.5rem;
  margin-top: -2.5rem;
  transition: background-color .4s;
}

.contact__title {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  margin-bottom: 2rem;
  text-align: center;
}

.contact__form,
.contact__group {
  display: grid;
  row-gap: 1.25rem;
}

.contact__box {
  position: relative;
  width: 100%;
  height: 58px;
}

.contact__input,
.contact__button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  outline: none;
  border: none;
}

.contact__input {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--black-color);
  border: 3px solid var(--black-color-light);
  color: var(--white-color);
  padding: .5rem 1rem;
  font-weight: var(--font-medium);
  transition: border .4s, background-color .4s;
}

.contact__input::placeholder {
  color: var(--text-color-light);
  transition: opacity .4s;
}

.contact__input:focus {
  border: 3px solid var(--white-color);
}

.contact__input:focus::placeholder {
  opacity: 0;
}

.contact__label {
  position: absolute;
  top: 8px;
  left: 10px;
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  background-color: var(--black-color);
  padding: 8px;
  pointer-events: none;
  transition: top .4s, opacity .4s, background-color .4s;
  opacity: 0;
}

.contact__area {
  height: 10rem;
}

.contact__area textarea {
  resize: none;
  padding-top: 1rem;
}

.contact__button {
  background-color: var(--first-color);
  cursor: pointer;
  border: 0;
}

.contact__input:focus + .contact__label,
.contact__input:not(:placeholder-shown).contact__input:not(:focus) + .contact__label {
  opacity: 1;
  top: -16px;
}

.contact__message {
  color: var(--white-color);
  font-size: var(--small-font-size);
  text-align: center;
}

.contact__social {
  display: grid;
  row-gap: 1rem;
  background-color: hsl(0, 0%, 10%);
  padding-block: 1rem 2rem;
  text-align: center;
}

.contact__social-arrow {
  width: 32px;
  margin: 0 auto;
  filter: invert(1);
}

.contact__social-data {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.contact__social-description-1 {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  margin-bottom: .5rem;
}

.contact__social-description-2 {
  color: var(--white-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.contact__social-links {
  display: flex;
  justify-content: center;
  column-gap: .75rem;
}

.contact__social-link {
  background-color: var(--black-color-light);
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  transition: background-color .3s;
}

.contact__social-link:hover {
  background-color: var(--first-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--black-color);
  transition: background-color .4s;
}

.footer__container {
  padding-block: 3rem 2rem;
  row-gap: 2.5rem;
}

.footer__links {
  display: flex;
  justify-content: center;
  column-gap: 2rem;
}

.footer__link {
  color: var(--white-color);
  transition: color .3s;
}

.footer__link:hover {
  color: var(--text-color-light);
}

.footer__copy {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
  text-align: center;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: .6rem;
  background-color: hsl(0, 0%, 65%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 45%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 35%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--black-color);
  display: inline-flex;
  padding: 8px;
  font-size: 1.25rem;
  color: var(--white-color);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s, background-color .4s;
}

.scrollup:hover {
  transform: translateY(-.5rem);
}

.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }

  .home__image {
    width: 180px;
  }

  .about__image {
    width: 180px;
  }

  .about__shadow {
    height: 330px;
    right: -2.5rem;
  }

  .contact__data {
    width: 100%;
  }

  .contact__data .section__title-2 {
    transform: translateX(0);
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .projects__container {
    grid-template-columns: 350px;
    justify-content: center;
  }

  .contact__data {
    width: 350px;
    padding: 4rem 1.5rem;
    margin-inline: auto;
  }

  .contact__container {
    grid-template-columns: 500px;
    justify-content: center;
  }

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

  .contact__social {
    background-color: transparent;
  }

  .contact__social-arrow {
    filter: none;
  }

  .contact__social-description-1 {
    color: var(--text-color);
  }

  .contact__social-description-2 {
    color: var(--title-color);
  }

  .dark-theme .contact__social-arrow {
    filter: invert(1);
  }
}

@media screen and (min-width: 768px) {
  .services__container {
    grid-template-columns: repeat(2, 250px);
  }

  .skills__container {
    grid-template-columns: repeat(2, 250px);
  }

  .projects__container {
    grid-template-columns: repeat(2, 350px);
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title-1::after,
  .section__title-2::after {
    width: 70px;
    height: 48px;
  }

  .geometric-box {
    transform: scale(1.2);
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
    column-gap: 3rem;
  }

  .nav__close,
  .nav__toggle,
  .nav__title,
  .nav__name {
    display: none;
  }

  .nav__menu {
    margin-left: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 3rem;
  }

  .nav__link {
    color: var(--text-color);
    font-size: var(--normal-font-size);
  }

  .nav__link:hover {
    color: var(--title-color);
  }

  .nav__link::after {
    background-color: var(--title-color);
  }

  .active-link {
    color: var(--first-color);
  }

  .nav__link-button {
    background-color: var(--black-color);
    color: var(--white-color);
    padding: 1.1rem 1.5rem;
  }

  .nav__link-button:hover {
    color: var(--white-color);
    background-color: var(--first-color);
  }

  .nav__link-button::after {
    background-color: transparent;
  }

  .change-theme {
    color: var(--text-color);
  }

  .change-theme:hover {
    color: var(--title-color);
  }

  .home__container {
    grid-template-columns: repeat(2, 460px);
    gap: 2rem 4rem;
    align-items: center;
    padding-block: 6rem 5rem;
  }

  .home__perfil {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .home__image {
    width: 350px;
  }

  .home__shadow {
    right: -1.25rem;
    bottom: -1.25rem;
    border: 6px solid var(--black-color);
  }

  .home__name,
  .home__description {
    text-align: initial;
  }

  .home__name {
    align-self: flex-end;
  }

  .home__info {
    margin-top: 0;
    align-self: flex-start;
  }

  .home__description {
    position: relative;
    font-size: var(--h2-font-size);
    margin-bottom: 5.5rem;
    padding-left: 3rem;
  }

  .home__description::after {
    content: "";
    width: 32px;
    height: 2px;
    background-color: var(--title-color);
    position: absolute;
    left: 0;
    top: 1rem;
  }

  .home__scroll {
    margin: 0;
    display: flex;
    align-items: center;
    column-gap: .75rem;
  }

  .home__scroll-text {
    display: block;
    color: var(--text-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
  }

  .home__scroll-box {
    width: 44px;
    height: 44px;
  }

  .home__arrow {
    width: 70px;
    left: -8rem;
    bottom: 5rem;
  }

  .home__line {
    width: 70px;
    right: -3rem;
    bottom: -2rem;
  }

  .home__social {
    left: initial;
    right: -6rem;
  }

  .home__social-link {
    font-size: 1.5rem;
    padding: .5rem;
  }

  .about__container {
    grid-template-columns: 440px 525px;
    gap: 1rem 7rem;
    align-items: center;
    padding-block: 1rem;
  }

  .about__perfil {
    order: -1;
    grid-row: 1 / 3;
  }

  .about__image {
    width: 350px;
  }

  .about__img {
    border: 8px solid var(--white-color);
  }

  .about__shadow {
    width: 240px;
    height: 615px;
    top: -4rem;
    right: -5.5rem;
    border-bottom: 6px solid var(--first-color);
  }

  .about__perfil .geometric-box {
    right: -4rem;
    top: 4.5rem;
  }

  .about__line {
    width: 80px;
    right: -2rem;
    top: 10rem;
  }

  .about__box {
    width: 64px;
    height: 64px;
    right: -.75rem;
  }

  .about__container .section__title-1 {
    align-self: flex-end;
    margin-inline: 0;
  }

  .about__info {
    align-self: flex-start;
    padding-left: 3rem;
  }

  .about__description {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
  }

  .about__description::after {
    width: 32px;
    height: 2px;
    left: -3rem;
    top: 1rem;
  }

  .about__list {
    margin-bottom: 5rem;
  }

  .about__buttons {
    justify-content: initial;
  }

  .services__container {
    grid-template-columns: repeat(3, 282px);
    gap: 4rem 5rem;
    padding-block: 3rem 5rem;
  }

  .skills__container {
    grid-template-columns: repeat(3, 250px);
    gap: 3rem 4rem;
    padding-block: 3rem 5rem;
  }

  .skills__content {
    border: 6px solid var(--black-color);
    min-height: 220px;
  }

  .skills__border {
    border-width: 6px;
  }

  .services__content {
    padding: 6.5rem 1.5rem 3.5rem;
    border: 6px solid var(--black-color);
  }

  .services__icon i {
    font-size: 3rem;
  }

  .services__box {
    width: 32px;
    height: 32px;
  }

  .services__title {
    margin-bottom: 1.5rem;
  }

  .projects__container {
    grid-template-columns: repeat(3, 352px);
    padding-block: 3rem 1rem;
  }

  .projects__card {
    padding: 1.25rem 1.25rem 2.5rem;
  }

  .projects__image {
    margin-bottom: 1rem;
  }

  .projects__content {
    margin-bottom: 2rem;
  }

  .projects__button {
    right: 1.25rem;
  }

  .contact__container {
    grid-template-columns: 440px 670px;
    grid-template-rows: initial;
    padding-bottom: 2rem;
  }

  .contact__mail {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    padding: 7rem 5.5rem 6rem 7.5rem;
    margin-top: 0;
  }

  .contact__title {
    font-size: var(--h2-font-size);
    text-align: initial;
  }

  .contact__box {
    height: 60px;
  }

  .contact__area {
    height: 12rem;
  }

  .contact__button {
    margin-top: 1.25rem;
    width: max-content;
  }

  .contact__data {
    width: 392px;
    height: 375px;
    padding: 4.5rem 3.5rem 3.5rem;
    margin: 7.5rem 0 0 8rem;
    border-bottom: 6px solid var(--first-color);
  }

  .contact__data .section__title-2 {
    margin: 0 0 2rem;
    transform: translateX(-6.5rem);
  }

  .contact__social {
    margin-left: 8rem;
    text-align: initial;
  }

  .contact__social-data {
    flex-direction: row;
    align-items: center;
    column-gap: 1.25rem;
  }

  .contact__social-arrow {
    width: 40px;
  }

  .contact__social-link {
    font-size: 1.5rem;
    padding: .5rem;
  }

  .footer__container {
    padding-block: 4rem;
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
  }

  .footer__links {
    column-gap: 3rem;
    order: 1;
  }

  .scrollup {
    right: 3rem;
  }
}

/*=============== HOME EXTRA BUTTONS ===============*/
.home__buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.home__buttons .button {
  width: max-content;
}

/*=============== CERTIFICATES ENHANCED ===============*/
.certificates {
  background-color: var(--container-color);
  transition: background-color .4s;
}

.certificates__intro {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

.certificates__container {
  display: grid;
  justify-content: center;
}

.certificates__card {
  position: relative;
  display: grid;
  gap: 1.5rem;
  background-color: var(--white-color);
  border: 4px solid var(--black-color);
  padding: 1.25rem;
  max-width: 980px;
  transition: background-color .4s, transform .4s;
}

.certificates__card:hover {
  transform: translateY(-.35rem);
}

.certificates__preview {
  position: relative;
  background: linear-gradient(135deg, rgba(235,188,174,.22), rgba(255,255,255,.92));
  border: 2px solid rgba(0,0,0,.08);
  padding: 1rem;
  overflow: hidden;
}

.certificates__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background-color: var(--black-color);
  color: var(--white-color);
  font-size: var(--smaller-font-size);
  padding: .45rem .8rem;
}

.certificates__img {
  width: 100%;
  display: block;
  object-fit: contain;
  border-radius: .25rem;
}

.certificates__content {
  display: grid;
  align-content: center;
}

.certificates__list {
  display: grid;
  gap: .6rem;
  margin: 1.15rem 0 1.4rem;
  color: var(--title-color);
}

.certificates__list li {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.certificates__list i {
  color: var(--first-color);
  font-size: 1.1rem;
}

@media screen and (min-width: 768px) {
  .certificates__card {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    padding: 1.5rem;
  }
}

/*=============== SERVICES - CONCEPT 2 ===============*/
.services {
  background-color: var(--body-color);
}

.services__intro {
  text-align: center;
  margin-bottom: 2rem;
}

.services__eyebrow-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: .75rem;
}

.services__eyebrow-wrap::before,
.services__eyebrow-wrap::after {
  content: "";
  width: 72px;
  height: 1px;
  background-color: var(--black-color);
  opacity: .45;
}

.services__eyebrow {
  font-size: var(--normal-font-size);
  letter-spacing: .22rem;
  color: var(--title-color);
}

.services__main-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  line-height: 1;
  font-weight: var(--font-semi-bold);
  color: var(--black-color);
  margin-bottom: 1rem;
}

.services__main-title span {
  color: var(--first-color);
}

.services__summary {
  max-width: 620px;
  margin-inline: auto;
  color: var(--text-color);
  line-height: 1.7;
}

.services__container {
  display: grid;
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
  gap: 2rem;
  padding-top: 2.5rem;
}

.services__card {
  position: relative;
}

.services__panel {
  position: relative;
  min-height: 440px;
  background: linear-gradient(180deg, #f4efe9 0%, #efe8e0 100%);
  clip-path: polygon(24% 4%, 76% 4%, 98% 50%, 76% 96%, 24% 96%, 2% 50%);
  border: 3px solid var(--black-color);
  padding: 4.25rem 2rem 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0,0,0,.06);
}

.services__panel::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 8px;
  height: 60%;
  background-color: var(--first-color);
}

.services__icon-hex {
  width: 132px;
  height: 112px;
  margin: 0 auto 1.75rem;
  background-color: var(--white-color);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  border: 2px solid rgba(0,0,0,.1);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.services__icon-img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.services__title {
  font-size: var(--h2-font-size);
  margin-bottom: .9rem;
  color: var(--black-color);
}

.services__line {
  display: block;
  width: 34px;
  height: 4px;
  background-color: var(--first-color);
  border-radius: 999px;
  margin: 0 auto 1.25rem;
}

.services__description {
  line-height: 1.8;
  color: var(--title-color);
}

@media screen and (min-width: 768px) {
  .services__container {
    grid-template-columns: repeat(2, minmax(0, 320px));
  }
}

@media screen and (min-width: 1150px) {
  .services__container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    align-items: stretch;
    padding-block: 3rem 4rem;
  }

  .services__panel {
    min-height: 500px;
    padding-inline: 2.1rem;
  }

  .services__title {
    font-size: 2rem;
  }
}

/*=============== SERVICES DARK MODE FIX ===============*/
.dark-theme .services__panel {
  background: linear-gradient(180deg, #f4efe9 0%, #efe8e0 100%);
  border-color: #111111;
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
}

.dark-theme .services__icon-hex {
  background-color: #ffffff;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
}

.dark-theme .services__title {
  color: #111111;
}

.dark-theme .services__description {
  color: #3f3f3f;
}

.dark-theme .services__line {
  background-color: var(--first-color);
}

/*=============== PREMIUM PROJECTS SLIDER ===============*/
.projects {
  background: radial-gradient(circle at 12% 20%, hsla(14, 98%, 50%, .16), transparent 28%),
              linear-gradient(135deg, hsl(0, 0%, 6%) 0%, hsl(0, 0%, 10%) 100%);
  color: hsl(0, 0%, 82%);
  overflow: hidden;
  position: relative;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(hsla(14, 98%, 50%, .22) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .08;
  pointer-events: none;
}

.projects__header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 2.5rem;
}

.projects .section__title-1 span,
.projects .section__title-1 {
  color: #ffffff;
}

.projects__intro {
  max-width: 680px;
  margin: 1rem auto 0;
  color: hsl(0, 0%, 72%);
  line-height: 1.7;
}

.projects__showcase {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding-block: 1rem 3rem;
}

.projects__slider {
  position: relative;
  min-height: 540px;
}

.project-slide {
  display: grid;
  grid-template-columns: .95fr 1.25fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  min-height: 540px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  position: absolute;
  inset: 0;
}

.project-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  position: relative;
}

.project-slide__info {
  padding: 1rem 0;
}

.project-slide__number {
  display: block;
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: var(--font-bold);
  line-height: .85;
  color: hsla(14, 98%, 62%, .75);
  margin-bottom: 2.2rem;
}

.project-slide__category {
  display: block;
  color: #ffffff;
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  letter-spacing: .06rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}

.project-slide__category::before {
  content: "";
  width: 1.4rem;
  height: 2px;
  background-color: var(--first-color);
  position: absolute;
  left: 0;
  top: 50%;
}

.project-slide__title {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.project-slide__description {
  color: hsl(0, 0%, 78%);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.project-slide__techs {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid hsla(0, 0%, 100%, .14);
}

.project-slide__techs span {
  border: 1px solid hsla(14, 98%, 50%, .35);
  color: hsl(14, 98%, 66%);
  background-color: hsla(14, 98%, 50%, .08);
  padding: .45rem .8rem;
  border-radius: 2rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-semi-bold);
}

.project-slide__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.project-slide__main-link,
.project-slide__github {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.6rem;
  transition: transform .3s, background-color .3s, color .3s;
}

.project-slide__main-link {
  background-color: var(--first-color);
}

.project-slide__github {
  background-color: hsla(0, 0%, 100%, .08);
  border: 1px solid hsla(0, 0%, 100%, .12);
}

.project-slide__main-link:hover,
.project-slide__github:hover {
  transform: translateY(-.35rem);
  background-color: #ffffff;
  color: var(--first-color);
}

.project-slide__visual {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 360px;
  background-color: hsl(0, 0%, 14%);
  border: 1px solid hsla(0, 0%, 100%, .10);
  box-shadow: 0 30px 80px hsla(0, 0%, 0%, .38);
}

.project-slide__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid hsla(14, 98%, 58%, .26);
  pointer-events: none;
}

.project-slide__img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transition: transform .6s ease;
}

.project-slide.is-active .project-slide__visual:hover .project-slide__img {
  transform: scale(1.035);
}

.projects__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 3.6rem;
  height: 3.6rem;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-color: hsla(0, 0%, 100%, .09);
  color: #ffffff;
  font-size: 2rem;
  transition: background-color .3s, transform .3s, color .3s;
}

.projects__nav--prev {
  left: 48%;
}

.projects__nav--next {
  right: .5rem;
}

.projects__nav:hover {
  background-color: var(--first-color);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.projects__counter {
  position: absolute;
  right: 0;
  bottom: 1rem;
  color: hsla(0, 0%, 100%, .62);
  font-size: var(--small-font-size);
  letter-spacing: .12rem;
  font-weight: var(--font-semi-bold);
}

.dark-theme .projects {
  background: radial-gradient(circle at 12% 20%, hsla(14, 98%, 50%, .18), transparent 28%),
              linear-gradient(135deg, hsl(0, 0%, 5%) 0%, hsl(0, 0%, 8%) 100%);
}

@media screen and (max-width: 992px) {
  .projects__showcase {
    min-height: auto;
  }

  .projects__slider {
    min-height: 760px;
  }

  .project-slide {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: 760px;
  }

  .project-slide__visual {
    order: -1;
  }

  .projects__nav--prev {
    left: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .projects__slider {
    min-height: 780px;
  }

  .project-slide {
    min-height: 780px;
  }

  .project-slide__number {
    margin-bottom: 1.3rem;
  }

  .project-slide__visual,
  .project-slide__img {
    min-height: 220px;
  }

  .projects__nav {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    top: 35%;
  }

  .projects__nav--prev {
    left: .5rem;
  }

  .projects__nav--next {
    right: .5rem;
  }

  .project-slide__actions a {
    width: 3.4rem;
    height: 3.4rem;
  }
}


/*=============== PROJECTS SLIDER FIX: ARROWS + REAL LOGOS ===============*/
.project-slide__techs--logos {
  gap: 1rem;
  align-items: center;
}

.project-slide__techs--logos span {
  display: none;
}

.project-slide__tech-logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border: 1px solid hsla(0, 0%, 100%, .12);
  border-radius: .7rem;
  padding: .42rem;
  box-shadow: 0 10px 24px hsla(0, 0%, 0%, .20);
  transition: transform .25s ease, background-color .25s ease, border-color .25s ease;
}

.project-slide__tech-logo--wide {
  width: 3rem;
}

.project-slide__tech-logo:hover {
  transform: translateY(-.25rem);
  background-color: hsl(18, 100%, 94%);
  border-color: hsla(14, 98%, 50%, .45);
}

.projects__nav {
  width: 4.1rem;
  height: 4.1rem;
  background: hsla(0, 0%, 100%, .18);
  color: #ffffff;
  border: 1px solid hsla(0, 0%, 100%, .28);
  box-shadow: 0 18px 40px hsla(0, 0%, 0%, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.projects__nav i {
  pointer-events: none;
}

.projects__nav--prev {
  left: calc(45% + .5rem);
}

.projects__nav--next {
  right: 1.25rem;
}

.projects__nav:hover {
  background-color: var(--first-color);
  border-color: var(--first-color);
  color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

@media screen and (max-width: 992px) {
  .projects__nav--prev {
    left: 1rem;
  }

  .projects__nav--next {
    right: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .project-slide__tech-logo {
    width: 2rem;
    height: 2rem;
    border-radius: .55rem;
    padding: .35rem;
  }

  .project-slide__tech-logo--wide {
    width: 2.65rem;
  }

  .projects__nav {
    width: 3.2rem;
    height: 3.2rem;
  }
}


/* =====================================================
   FINAL VISUAL REDESIGN — Selected portfolio sections
   Theme: beige / black / orange / clean professional
===================================================== */
:root{
  --soft-card: rgba(255,255,255,.72);
  --soft-card-solid: #f7f5f2;
  --soft-border: rgba(17,17,17,.08);
  --soft-shadow: 0 24px 60px rgba(0,0,0,.08);
  --soft-shadow-small: 0 16px 38px rgba(0,0,0,.075);
  --soft-beige: #f1e5dc;
}

.section__title-1,
.section__title-2{
  letter-spacing: .02em;
}

/* ---------- ACCUEIL / HERO SELECTED DESIGN ---------- */
.home{
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 28%, rgba(255,72,0,.09), transparent 18rem),
    linear-gradient(135deg, rgba(255,255,255,.42), rgba(255,255,255,0));
  overflow: hidden;
}
.home::before{
  content:"";
  position:absolute;
  right:-13rem;
  bottom:-16rem;
  width: 34rem;
  height: 34rem;
  border-radius:50%;
  border:1px solid rgba(255,72,0,.22);
  opacity:.75;
  z-index:-1;
}
.home::after{
  content:"";
  position:absolute;
  top: 9rem;
  right: 42%;
  width: 8rem;
  height: 8rem;
  background-image: radial-gradient(rgba(0,0,0,.22) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity:.22;
  z-index:-1;
}
.home__container{
  position:relative;
}
.home__eyebrow{
  display:none;
}
.home__name{
  font-weight:800;
  letter-spacing:.01em;
  line-height:.95;
}
.home__description{
  max-width: 560px;
  line-height: 1.55;
}
.home__description b{
  background: linear-gradient(90deg, rgba(255,72,0,.22), rgba(255,72,0,0));
  padding-inline: .12rem;
}
.home__tags{
  display:flex;
  flex-wrap:wrap;
  gap:.75rem;
  margin-bottom:1.75rem;
}
.home__tags span{
  padding:.7rem 1rem;
  border:1px solid rgba(0,0,0,.08);
  border-radius:.7rem;
  background:rgba(255,255,255,.5);
  color:var(--title-color);
  font-weight:700;
  box-shadow:0 12px 24px rgba(0,0,0,.045);
}
.home__image{
  background: rgba(255,255,255,.42);
  border: 2px solid rgba(255,255,255,.78);
  border-radius: 1.7rem;
  padding: 1rem 1rem 0;
  box-shadow: var(--soft-shadow);
}
.home__shadow{
  border:0;
  background:linear-gradient(135deg, rgba(255,255,255,.52), rgba(255,72,0,.18));
  border-radius:1.7rem;
  bottom: -1rem;
  right: -1rem;
  z-index:0;
}
.home__social{
  gap:.75rem;
}
.home__social-link{
  border-radius:.7rem;
  background: rgba(255,255,255,.78);
  color:#111;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 26px rgba(0,0,0,.08);
}
.home__social-link:hover{
  color:#fff;
  background:var(--first-color);
}
.home__buttons .button{
  min-width: 190px;
  border-radius:.35rem;
  box-shadow:0 18px 30px rgba(0,0,0,.12);
}
.home__scroll{
  gap:1rem;
}
.home__scroll-box{
  border-radius:50%;
  background:rgba(255,255,255,.72);
  color:#111;
  border:1px solid rgba(0,0,0,.08);
}
.home__scroll-text{
  position:relative;
}
.home__scroll-text::after{
  content:"";
  display:inline-block;
  width:90px;
  height:2px;
  background:linear-gradient(90deg, rgba(0,0,0,.18), var(--first-color));
  margin-left:1rem;
  vertical-align:middle;
}

/* ---------- À PROPOS SELECTED DESIGN ---------- */
.about{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(circle at 6% 40%, rgba(255,72,0,.08), transparent 18rem),
    linear-gradient(135deg, var(--container-color), rgba(255,255,255,.18));
}
.about::after{
  content:"";
  position:absolute;
  right:8%;
  top:6rem;
  width:12rem;
  height:12rem;
  background-image:radial-gradient(rgba(0,0,0,.18) 1px, transparent 1px);
  background-size:14px 14px;
  opacity:.18;
  z-index:-1;
}
.about__image{
  background: rgba(255,255,255,.50);
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--soft-shadow);
  padding: .8rem .8rem 0;
}
.about__img{
  border:0;
  border-radius: 1.2rem;
}
.about__shadow{
  border:0;
  border-radius:1.8rem;
  background:linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,72,0,.14));
}
.about__box{
  border-radius:.2rem;
}
.about__description{
  margin-bottom:1.2rem;
}
.about__highlights{
  display:grid;
  gap:.9rem;
  padding-block:1.25rem;
  margin-bottom:1.25rem;
  border-top:1px solid rgba(0,0,0,.12);
  border-bottom:1px solid rgba(0,0,0,.12);
}
.about__highlight{
  display:grid;
  grid-template-columns: 48px 1fr;
  align-items:center;
  gap:1rem;
  color:var(--title-color);
  line-height:1.5;
}
.about__highlight i{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:.8rem;
  background:rgba(255,255,255,.72);
  color:#111;
  font-size:1.25rem;
  box-shadow:0 10px 20px rgba(0,0,0,.06);
}
.about__buttons .button{
  border-radius:.35rem;
  min-width: 190px;
  box-shadow:0 18px 30px rgba(0,0,0,.12);
}
.about__buttons .button__ghost{
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.62);
  border-radius:.35rem;
  padding:1rem;
}

/* ---------- EXPERTISE SELECTED DESIGN ---------- */
.services{
  position:relative;
  isolation:isolate;
  background: radial-gradient(circle at 82% 58%, rgba(255,72,0,.10), transparent 22rem), var(--body-color);
}
.services::before{
  content:"";
  position:absolute;
  left:3%;
  top:18rem;
  width:22rem;
  height:22rem;
  border:1px solid rgba(255,255,255,.55);
  border-radius:4rem;
  transform:rotate(45deg);
  z-index:-1;
}
.services__main-title{
  letter-spacing:.03em;
  text-transform:uppercase;
}
.services__summary{
  max-width:720px;
}
.services__panel{
  min-height: 420px;
  clip-path:none;
  border:none;
  border-radius: 1.6rem;
  background:linear-gradient(145deg, rgba(255,255,255,.72), rgba(245,239,233,.58));
  box-shadow: 0 18px 60px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4rem 2.2rem 3rem;
}
.services__panel::after{
  width:0;
}
.services__icon-hex{
  width:112px;
  height:96px;
  background:rgba(255,255,255,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 16px 28px rgba(0,0,0,.08);
}
.services__icon-img{
  width:68px;
  height:68px;
}
.services__line{
  height:3px;
  width:42px;
}
.services__description{
  max-width:265px;
  margin-inline:auto;
}

/* ---------- SKILLS SELECTED DESIGN ---------- */
.skills{
  background: radial-gradient(circle at 92% 100%, rgba(255,72,0,.06), transparent 20rem), var(--body-color);
}
.skills__intro{
  text-align:center;
  max-width:660px;
  margin:-1rem auto 2rem;
  line-height:1.7;
}
.skills__container{
  align-items:stretch;
}
.skills__border{
  display:none;
}
.skills__content{
  border:0!important;
  min-height:180px;
  border-radius:1rem;
  background:rgba(255,255,255,.64);
  box-shadow:var(--soft-shadow-small);
  border:1px solid rgba(255,255,255,.8)!important;
  overflow:hidden;
}
.skills__content::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:1.45rem;
  width:34px;
  height:2px;
  transform:translateX(-50%);
  background:rgba(255,72,0,.42);
}
.skills__content:hover{
  transform:translateY(-.45rem);
  box-shadow:0 24px 70px rgba(0,0,0,.12);
}
.skills__logo{
  width:76px;
  height:76px;
}
.skills__logo-wide{
  width:120px;
}
.skills__name{
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:.7rem;
}

/* ---------- CERTIFICATS SELECTED DESIGN ---------- */
.certificates{
  position:relative;
  isolation:isolate;
  background:radial-gradient(circle at 100% 20%, rgba(255,72,0,.06), transparent 20rem), var(--body-color);
}
.certificates__intro{
  margin-bottom:3rem;
}
.certificates__card{
  max-width:1050px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:1.1rem;
  background:rgba(255,255,255,.64);
  box-shadow:var(--soft-shadow);
  padding:1.6rem;
  overflow:hidden;
}
.certificates__preview{
  border:1px solid rgba(255,72,0,.18);
  border-radius:.85rem;
  background:rgba(255,255,255,.50);
}
.certificates__badge{
  border-radius:.5rem;
}
.certificates__content .projects__subtitle{
  padding-left:0;
  display:flex;
  align-items:center;
  gap:.6rem;
  font-size:var(--normal-font-size);
}
.certificates__content .projects__subtitle::after{
  display:none;
}
.certificates__content .projects__subtitle::before{
  content:"\ea6a";
  font-family:"remixicon";
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,72,0,.12);
  color:#111;
}
.certificates__content .projects__title{
  font-size:clamp(1.35rem, 2.5vw, 2rem);
  margin-block:1rem;
}
.certificates__content .projects__description{
  max-width:450px;
}
.certificates__list{
  border-top:1px solid rgba(0,0,0,.10);
  border-bottom:1px solid rgba(0,0,0,.10);
  padding-block:1rem;
}
.certificates__list i{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,72,0,.14);
}
.certificates__content .projects__buttons{
  gap:1.4rem;
}
.certificates__content .projects__link{
  padding:.95rem 1.25rem;
  border-radius:.35rem;
  color:#111;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.54);
}
.certificates__content .projects__link:first-child{
  background:#111;
  color:#fff;
}
.certificates__content .projects__link:first-child i{
  color:#fff;
}
.certificates__content .projects__link:hover{
  color:#fff;
  background:var(--first-color);
  border-color:var(--first-color);
}
.certificates__content .projects__link:hover i{
  color:#fff;
}

/* ---------- PROJECTS ICONS FIX: preferred logos + no broken image blocks ---------- */
.project-slide__tech-logo{
  background:#fff;
  border-radius:.75rem;
}
.project-slide__tech-logo[alt="Power BI"],
.project-slide__tech-logo[alt="Grafana"],
.project-slide__tech-logo[alt="Autodesk Fusion"],
.project-slide__tech-logo[alt="CATIA"],
.project-slide__tech-logo[alt="SolidWorks"]{
  padding:.45rem;
}

/* ---------- DARK MODE CLEAN READABILITY ---------- */
.dark-theme .home,
.dark-theme .skills,
.dark-theme .services,
.dark-theme .certificates{
  background-color:var(--body-color);
}
.dark-theme .home__tags span,
.dark-theme .home__image,
.dark-theme .home__social-link,
.dark-theme .about__image,
.dark-theme .about__highlight i,
.dark-theme .about__buttons .button__ghost,
.dark-theme .skills__content,
.dark-theme .certificates__card,
.dark-theme .certificates__preview{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.12)!important;
  color:#f5f5f5;
}
.dark-theme .home__social-link,
.dark-theme .about__highlight i{
  color:#fff;
}
.dark-theme .home__scroll-box{
  color:#fff;
  background:rgba(255,255,255,.12);
}
.dark-theme .services__panel{
  background:linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  border:1px solid rgba(255,255,255,.11);
}
.dark-theme .services__title,
.dark-theme .services__description{
  color:#f2f2f2;
}
.dark-theme .services__icon-hex{
  background:rgba(255,255,255,.10);
}
.dark-theme .certificates__content .projects__link{
  color:#fff;
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
}
.dark-theme .certificates__content .projects__link:first-child{
  background:#fff;
  color:#111;
}
.dark-theme .certificates__content .projects__link:first-child i{
  color:#111;
}
.dark-theme .certificates__content .projects__subtitle::before,
.dark-theme .certificates__list i{
  color:#fff;
}
.dark-theme .about__highlights,
.dark-theme .certificates__list{
  border-color:rgba(255,255,255,.12);
}

/* ---------- RESPONSIVE FINAL TUNING ---------- */
@media screen and (min-width:1150px){
  .home__container{
    grid-template-columns: 1fr .9fr;
    gap: 3rem 7rem;
    min-height: 760px;
  }
  .home__eyebrow{
    display:block;
    grid-column:1 / 2;
    align-self:end;
    font-size:.85rem;
    letter-spacing:.4rem;
    text-transform:uppercase;
    color:var(--text-color);
    margin-bottom:-1.5rem;
  }
  .home__name{
    font-size:clamp(4.8rem, 7vw, 7rem);
  }
  .home__image{
    width:440px;
  }
  .home__perfil{
    align-self:center;
  }
  .home__description{
    font-size:1.25rem;
  }
  .home__social{
    right:-5.2rem;
  }
  .about__container{
    grid-template-columns: 440px 560px;
    gap: 2rem 7rem;
  }
  .about__image{
    width:390px;
  }
  .services__container{
    grid-template-columns:repeat(3, minmax(0, 310px));
    gap:3rem;
  }
  .skills__container{
    grid-template-columns:repeat(3, minmax(0, 290px));
    gap:2rem 3rem;
  }
  .skills__content{
    min-height:190px;
  }
  .certificates__card{
    grid-template-columns: 1.08fr .92fr;
    gap:3rem;
  }
}
@media screen and (max-width:767px){
  .home__tags{justify-content:center;}
  .home__buttons{justify-content:center;}
  .about__highlights{font-size:var(--small-font-size);}
  .services__panel{min-height:360px;}
  .certificates__content .projects__buttons{flex-direction:column; align-items:stretch;}
  .certificates__content .projects__link{justify-content:center;}
}

/* =====================================================================
   FINAL OVERRIDES - HOME & ABOUT EXACT MATCH REQUEST
   ===================================================================== */
.home{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 14%, rgba(255,120,60,.12), transparent 22rem),
    linear-gradient(180deg, #f0efef 0%, #ededed 100%);
}
.home::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(255,255,255,.7), transparent 23rem),
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 55%);
  pointer-events:none;
}
.home::after{
  content:"";
  position:absolute;
  top: 7.5rem;
  right: 16%;
  width: 8rem;
  height: 8rem;
  background-image: radial-gradient(rgba(0,0,0,.13) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity:.4;
}
.home__container{
  position:relative;
  display:grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(460px, .97fr);
  align-items:center;
  column-gap: 3.5rem;
  row-gap: 2rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
  min-height: calc(100vh - 5rem);
  z-index:1;
}
.home__content{max-width: 37rem;}
.home__eyebrow{
  display:flex;
  align-items:center;
  gap:.8rem;
  margin-bottom: 1.25rem;
  font-size: .95rem;
  letter-spacing: .42rem;
  text-transform: uppercase;
  color: var(--title-color);
  font-weight: 500;
}
.home__eyebrow-dot{
  width: .7rem;
  height: .7rem;
  border-radius:50%;
  background: var(--first-color);
  flex: 0 0 auto;
}
.home__name{
  font-size: clamp(5rem, 8.4vw, 8.1rem);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 800;
  margin-bottom: 2rem;
  max-width: 26rem;
}
.home__description{
  position:relative;
  max-width: 35rem;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2.2rem;
  padding-left: 2.9rem;
}
.home__description::before{
  content:"";
  position:absolute;
  left: 0;
  top: .85rem;
  width: 2rem;
  height: 2px;
  background: #111;
}
.home__description b{
  background:none;
  font-weight: 800;
}
.home__tags{display:none !important;}
.home__buttons{margin-bottom: 1.9rem;}
.home__buttons .button{
  min-width: 230px;
  justify-content:center;
  border-radius: .2rem;
  padding: 1.2rem 1.5rem;
}
.home__scroll{
  display:flex;
  align-items:center;
  gap: 1rem;
}
.home__scroll-box{
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.62);
  color:#222;
}
.home__scroll-box i{font-size:1.3rem;}
.home__scroll-text{
  font-size: 1rem;
  color: var(--text-color);
}
.home__scroll-text::after{
  content:"";
  display:inline-block;
  width: 7.5rem;
  height: 2px;
  margin-left: 1rem;
  vertical-align: middle;
  background: linear-gradient(90deg, rgba(0,0,0,.18), var(--first-color));
}
.home__visual{position:relative;}
.home__perfil{
  position:relative;
  width: 100%;
  max-width: 40rem;
  margin-left:auto;
  padding-right: 5.6rem;
}
.home__image{
  position:relative;
  width: 100%;
  aspect-ratio: 1.36 / 1;
  min-height: 24rem;
  border-radius: 2rem;
  overflow: visible;
  background: rgba(248,238,233,.95);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 30px 60px rgba(0,0,0,.08);
  padding: 0;
}
.home__shadow{
  position:absolute;
  inset: auto -1.25rem -1.35rem 1.25rem;
  height: 100%;
  border-radius: 2rem;
  background: rgba(235, 214, 203, .7);
  z-index: -1;
}
.home__img.profile__photo,
.home__img{
  position:absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(72%, 24rem);
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  z-index: 2;
}
.home__frame-accent{
  position:absolute;
  inset: 1rem 1rem auto auto;
  width: calc(100% - 2rem);
  height: calc(100% - 1rem);
  border-radius: 1.7rem;
  border: 2px solid rgba(255,255,255,.55);
  pointer-events:none;
}
.home__corner-square{
  position:absolute;
  left: -1rem;
  top: 1.05rem;
  width: 1.7rem;
  height: 1.7rem;
  background: var(--first-color);
  border: 4px solid #111;
  transform: rotate(-28deg);
  z-index: 4;
}
.home__motion-lines{
  position:absolute;
  right: -1.2rem;
  bottom: 1.6rem;
  width: 5rem;
  height: 2.8rem;
  z-index: 4;
}
.home__motion-lines::before,
.home__motion-lines::after,
.home__motion-lines span{
  content:"";
  position:absolute;
  right: 0;
  height: .3rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
}
.home__motion-lines::before{ width: 4rem; top: 0; }
.home__motion-lines::after{ width: 4.7rem; top: 1rem; }
.home__image::after{
  content:"";
  position:absolute;
  right: 0;
  bottom: .3rem;
  width: 3.3rem;
  height: .3rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.94);
  z-index:4;
}
.home__social{
  position:absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display:grid;
  gap: 1rem;
}
.home__social-link{
  width: 3.7rem;
  height: 3.7rem;
  display:grid;
  place-items:center;
  border-radius: .95rem;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 28px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  color:#222;
  font-size: 1.35rem;
}
.home__plane-badge{
  position:absolute;
  left: 5rem;
  bottom: -2.4rem;
  width: 8.8rem;
  height: 8.8rem;
  border-radius:50%;
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  display:grid;
  place-items:center;
  z-index:5;
}
.home__plane-ring{
  position:absolute;
  inset: .8rem;
  border-radius:50%;
  border: 1px solid rgba(0,0,0,.14);
}
.home__plane-ring::before{
  content:"RIGUEUR • INTÉGRITÉ • PERFECTION";
  position:absolute;
  inset: .85rem;
  display:grid;
  place-items:center;
  font-size: .68rem;
  letter-spacing: .16rem;
  color: rgba(0,0,0,.52);
  text-align:center;
  line-height: 1.55;
}
.home__plane-center{
  position:relative;
  width: 3.1rem;
  height: 3.1rem;
  border-radius:50%;
  background: rgba(255,255,255,.98);
  display:grid;
  place-items:center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.home__plane-center i{
  color: var(--first-color);
  font-size: 1.65rem;
  transform: rotate(18deg);
}
.home .home__arrow,
.home .home__line,
.home .geometric-box{display:none !important;}

.about{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 89% 8%, rgba(255,120,60,.06), transparent 18rem),
    linear-gradient(180deg, #f0efef 0%, #ededed 100%);
}
.about::after{
  content:"";
  position:absolute;
  top: 5rem;
  right: 5rem;
  width: 8rem;
  height: 8rem;
  background-image: radial-gradient(rgba(0,0,0,.13) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity:.35;
}
.about__container{
  position:relative;
  display:grid;
  grid-template-columns: minmax(340px, .94fr) minmax(0, 1.06fr);
  align-items:center;
  gap: 4.5rem;
}
.about__perfil{
  position:relative;
  min-height: 42rem;
  display:flex;
  align-items:flex-start;
}
.about__bg-panel{
  position:absolute;
  left: 8rem;
  top: 5.7rem;
  width: 18rem;
  height: 32rem;
  background: rgba(239, 218, 208, .74);
  border-radius: 1.8rem;
}
.about__image{
  position:relative;
  width: 35rem;
  max-width: 100%;
  height: 27rem;
  margin-top: 9rem;
  background: rgba(255,255,255,.54);
  border-radius: 1.8rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.82);
  box-shadow: 0 28px 50px rgba(0,0,0,.09);
  padding: 0;
}
.about__img.profile__photo,
.about__img{
  position:absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(66%, 21rem);
  max-width:none;
  height:auto;
  object-fit:contain;
}
.about__accent-square{
  position:absolute;
  width: 4.2rem;
  height: 4.2rem;
  right: 2rem;
  top: 19rem;
  background: var(--first-color);
  border-radius: .25rem;
  box-shadow: 1.5rem 0 0 rgba(255,255,255,.96), 2.2rem 0 0 rgba(255,255,255,.96);
}
.about__plane-card{
  position:absolute;
  left: 0;
  bottom: 2rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,.1);
  display:grid;
  place-items:center;
  z-index: 4;
}
.about__plane-card::before{
  content:"";
  position:absolute;
  left: -.25rem;
  bottom: -.35rem;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  background: var(--first-color);
  z-index:-1;
}
.about__plane-card i{
  color: var(--first-color);
  font-size: 1.8rem;
}
.about__dots{
  position:absolute;
  left: 1rem;
  top: 19rem;
  width: 3.2rem;
  height: 3.2rem;
  background-image: radial-gradient(var(--first-color) 1.2px, transparent 1.2px);
  background-size: 8px 8px;
  opacity:.6;
}
.about__info{max-width: 42rem;}
.about__heading{margin-bottom: 1.2rem;}
.about__eyebrow{
  display:flex;
  align-items:center;
  gap:.8rem;
  margin-bottom: .8rem;
  color: var(--first-color);
  font-size: 1.05rem;
  font-weight:700;
  letter-spacing:.08rem;
}
.about__eyebrow-line{
  width: 3rem;
  height: 2px;
  background: rgba(0,0,0,.3);
}
.about__title{
  font-size: clamp(4.3rem, 7vw, 6.3rem);
  line-height: .96;
  font-weight: 800;
  color: var(--title-color);
  letter-spacing: -.05em;
}
.about__title span{color: var(--first-color);}
.about__lead{
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-color);
  margin-bottom: 1.9rem;
}
.about__lead b,
.about__closing b,
.about__highlight b{color: var(--title-color);}
.about__highlights{
  display:grid;
  gap: 1.2rem;
  padding-block: 1.6rem;
  margin-bottom: 1.8rem;
  border-top: 1px solid rgba(0,0,0,.14);
  border-bottom: 1px solid rgba(0,0,0,.14);
}
.about__highlight{
  display:grid;
  grid-template-columns: 4.2rem 1fr;
  align-items:center;
  gap: 1.2rem;
  color: var(--text-color);
  line-height:1.55;
}
.about__icon{
  width: 3.6rem;
  height: 3.6rem;
  border-radius: .95rem;
  background: rgba(255,255,255,.92);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04);
  color:#151515;
  font-size: 1.5rem;
}
.about__closing{
  font-size: 1.14rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.about__buttons{
  display:flex;
  align-items:stretch;
  gap: 1rem;
  flex-wrap: wrap;
}
.about__contact-button{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  min-width: 17rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 20px 35px rgba(0,0,0,.12);
}
.about__contact-button i:first-child{
  width: 3rem;
  height: 3rem;
  display:grid;
  place-items:center;
  background: var(--first-color);
  border-radius: .9rem;
  font-size: 1.4rem;
}
.about__contact-button span{flex:1; text-align:left;}
.about__mini-card{
  min-width: 9rem;
  padding: 1rem 1.1rem;
  display:flex;
  align-items:center;
  gap: .9rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 28px rgba(0,0,0,.06);
  color: var(--title-color);
}
.about__mini-card i{
  font-size: 1.55rem;
  color:#111;
}
.about__mini-card span{
  display:block;
  font-weight:700;
  line-height:1.1;
}
.about__mini-card small{
  display:block;
  margin-top: .15rem;
  color: var(--text-color);
  font-size: .84rem;
}
.about .section__title-1,
.about__shadow,
.about__line,
.about__box,
.about .geometric-box{display:none !important;}

@media screen and (max-width: 1150px){
  .home__container{grid-template-columns: 1fr; min-height: auto; row-gap: 3rem;}
  .home__content{max-width: 100%; order:1;}
  .home__visual{order:2;}
  .home__perfil{max-width: 38rem; margin-inline:auto; padding-right: 5rem;}
  .home__plane-badge{left: 2rem;}
  .about__container{grid-template-columns: 1fr; gap: 3rem;}
  .about__perfil{min-height: 34rem; max-width: 40rem; margin-inline:auto;}
  .about__info{max-width: 100%;}
}
@media screen and (max-width: 768px){
  .home__container{padding-top: 2rem;}
  .home__name{font-size: 4.4rem; max-width: 20rem;}
  .home__description{padding-left: 0;}
  .home__description::before{display:none;}
  .home__perfil{padding-right: 0;}
  .home__social{right: .5rem;}
  .home__image{min-height: 18rem; border-radius: 1.5rem;}
  .home__shadow{inset: auto -.8rem -.8rem .8rem;}
  .home__plane-badge{width: 6.8rem; height: 6.8rem; bottom: -1.5rem; left: 1rem;}
  .home__plane-ring::before{font-size: .5rem; letter-spacing: .07rem;}
  .home__plane-center{width: 2.5rem; height: 2.5rem;}
  .home__buttons .button{min-width: 0; width: 100%;}
  .home__scroll-text::after{width: 4.2rem;}
  .about__perfil{min-height: auto;}
  .about__bg-panel{width: 12rem; height: 21rem; left: 4.5rem; top: 5rem;}
  .about__image{height: 19rem; margin-top: 7.5rem; width: calc(100% - 2rem);}
  .about__img.profile__photo, .about__img{width: min(68%, 14rem);} 
  .about__accent-square{width: 3.2rem; height: 3.2rem; right: 1rem; top: 13rem; box-shadow: 1rem 0 0 rgba(255,255,255,.96), 1.5rem 0 0 rgba(255,255,255,.96);}
  .about__plane-card{width: 4.2rem; height: 4.2rem; bottom: 1rem;}
  .about__title{font-size: 3.4rem;}
  .about__lead, .about__closing{font-size: 1rem;}
  .about__highlight{grid-template-columns: 3.5rem 1fr; gap: .9rem;}
  .about__icon{width: 3rem; height: 3rem; font-size: 1.25rem;}
  .about__contact-button, .about__mini-card{width: 100%;}
}


/* =====================================================================
   FINAL FIX - PHOTO FILLS THE FRAME + PLANE BADGE POSITION
   ===================================================================== */

/* Home portrait: no empty area inside the frame */
.home__image{
  aspect-ratio: 1.42 / 1 !important;
  min-height: clamp(28rem, 39vw, 39rem) !important;
  overflow: hidden !important;
  display: block !important;
}

.home__img.profile__photo,
.home__img{
  height: 112% !important;
  width: auto !important;
  max-width: none !important;
  left: 50% !important;
  bottom: -1.3rem !important;
  transform: translateX(-50%) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

/* Keep the aviation badge at the lower-left side of the frame */
.home__plane-badge{
  left: -2.8rem !important;
  bottom: -2.2rem !important;
  z-index: 6 !important;
}

/* About portrait: same correction, image centered and larger */
.about__image{
  height: clamp(29rem, 38vw, 38rem) !important;
  overflow: hidden !important;
}

.about__img.profile__photo,
.about__img{
  height: 112% !important;
  width: auto !important;
  max-width: none !important;
  left: 50% !important;
  bottom: -1.3rem !important;
  transform: translateX(-50%) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

/* Stronger exact layout for the about visual */
.about__bg-panel{
  height: 35rem !important;
}

@media screen and (max-width: 768px){
  .home__image{
    min-height: 24rem !important;
  }

  .home__img.profile__photo,
  .home__img{
    height: 112% !important;
    bottom: -1rem !important;
  }

  .home__plane-badge{
    left: -1rem !important;
    bottom: -1.4rem !important;
  }

  .about__image{
    height: 25rem !important;
  }

  .about__img.profile__photo,
  .about__img{
    height: 112% !important;
    bottom: -1rem !important;
  }
}


/* =====================================================================
   FINAL PHOTO POSITION FIX - centered professional size like reference
   ===================================================================== */

/* ACCUEIL: photo centered, professional size, no crop, aviation badge bottom-left */
.home__image{
  aspect-ratio: 1.42 / 1 !important;
  min-height: clamp(26rem, 32vw, 34rem) !important;
  overflow: hidden !important;
}

.home__img.profile__photo,
.home__img{
  width: min(92%, 38rem) !important;
  height: auto !important;
  max-width: none !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.home__plane-badge{
  width: 8rem !important;
  height: 8rem !important;
  left: -2.2rem !important;
  bottom: -1.9rem !important;
  z-index: 8 !important;
}

/* À PROPOS: same reference style, photo centered without excessive zoom */
.about__image{
  height: clamp(26rem, 32vw, 34rem) !important;
  overflow: hidden !important;
}

.about__img.profile__photo,
.about__img{
  width: min(92%, 38rem) !important;
  height: auto !important;
  max-width: none !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.about__bg-panel{
  height: 31rem !important;
}

@media screen and (max-width: 768px){
  .home__image{
    min-height: 22rem !important;
  }

  .home__img.profile__photo,
  .home__img{
    width: 96% !important;
    bottom: 0 !important;
  }

  .home__plane-badge{
    width: 6.5rem !important;
    height: 6.5rem !important;
    left: -1rem !important;
    bottom: -1.2rem !important;
  }

  .about__image{
    height: 22rem !important;
  }

  .about__img.profile__photo,
  .about__img{
    width: 96% !important;
    bottom: 0 !important;
  }
}


/* =====================================================================
   ABSOLUTE FINAL FIX - exact centering and no empty top space
   ===================================================================== */

/* HOME RIGHT VISUAL */
.home__image{
  min-height: clamp(26rem, 31vw, 32rem) !important;
  aspect-ratio: 1.38 / 1 !important;
  overflow: hidden !important;
}

.home__img.profile__photo,
.home__img{
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: 86% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.home__plane-badge{
  left: 1.2rem !important;
  bottom: -1.7rem !important;
  width: 7.4rem !important;
  height: 7.4rem !important;
  z-index: 9 !important;
}

.home__plane-ring::before{
  font-size: .60rem !important;
  letter-spacing: .12rem !important;
  line-height: 1.42 !important;
}

.home__plane-center{
  width: 2.8rem !important;
  height: 2.8rem !important;
}

/* ABOUT LEFT VISUAL */
.about__perfil{
  min-height: 41rem !important;
}

.about__bg-panel{
  left: 8rem !important;
  top: 4rem !important;
  width: 18rem !important;
  height: 31rem !important;
}

.about__image{
  width: 36rem !important;
  max-width: 100% !important;
  height: 32rem !important;
  margin-top: 6.5rem !important;
  overflow: hidden !important;
}

.about__img.profile__photo,
.about__img{
  position: absolute !important;
  left: 50% !important;
  bottom: 0 !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  height: 85% !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}

.about__accent-square{
  right: 1.4rem !important;
  top: 18.1rem !important;
}

.about__plane-card{
  left: .8rem !important;
  bottom: 1.2rem !important;
  width: 4.8rem !important;
  height: 4.8rem !important;
}

.about__plane-card i{
  font-size: 1.75rem !important;
}

@media screen and (max-width: 1150px){
  .home__image{
    min-height: 24rem !important;
  }

  .home__img.profile__photo,
  .home__img{
    height: 84% !important;
  }

  .about__perfil{
    min-height: 36rem !important;
  }

  .about__bg-panel{
    top: 3.6rem !important;
    left: 6rem !important;
    width: 15rem !important;
    height: 27rem !important;
  }

  .about__image{
    width: 32rem !important;
    height: 28rem !important;
    margin-top: 6rem !important;
  }

  .about__img.profile__photo,
  .about__img{
    height: 84% !important;
  }
}

@media screen and (max-width: 768px){
  .home__image{
    min-height: 19rem !important;
  }

  .home__img.profile__photo,
  .home__img{
    height: 84% !important;
  }

  .home__plane-badge{
    left: .3rem !important;
    bottom: -1.1rem !important;
    width: 5.8rem !important;
    height: 5.8rem !important;
  }

  .home__plane-ring::before{
    font-size: .46rem !important;
    letter-spacing: .06rem !important;
  }

  .home__plane-center{
    width: 2.2rem !important;
    height: 2.2rem !important;
  }

  .about__perfil{
    min-height: 28rem !important;
  }

  .about__bg-panel{
    left: 4.7rem !important;
    top: 3rem !important;
    width: 11rem !important;
    height: 19rem !important;
  }

  .about__image{
    width: calc(100% - 1rem) !important;
    height: 20rem !important;
    margin-top: 6rem !important;
  }

  .about__img.profile__photo,
  .about__img{
    height: 82% !important;
  }

  .about__plane-card{
    width: 4rem !important;
    height: 4rem !important;
    left: .5rem !important;
    bottom: .8rem !important;
  }
}


/* User final request: remove circular airplane badge from home section */
.home__plane-badge{display:none !important;}

/* =====================================================================
   LANGUAGE SWITCHER - FR / EN
   ===================================================================== */
.language-switcher{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.language-switcher__btn{
  border: none;
  outline: none;
  cursor: pointer;
  padding: .42rem .72rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-color);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05rem;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.language-switcher__btn:hover{
  color: var(--title-color);
  transform: translateY(-1px);
}

.language-switcher__btn.is-active{
  background: var(--first-color);
  color: #fff;
}

.dark-theme .language-switcher{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.dark-theme .language-switcher__btn.is-active{
  color: #fff;
}

@media screen and (max-width: 768px){
  .language-switcher{
    gap: .25rem;
    padding: .2rem;
  }

  .language-switcher__btn{
    padding: .35rem .55rem;
    font-size: .72rem;
  }
}


/* =====================================================================
   FINAL NAVBAR FIX - professional spacious FR / EN bar
   ===================================================================== */
.header{
  min-height: 5.25rem;
  background: rgba(232,232,232,.92) !important;
  border-bottom: 1px solid rgba(0,0,0,.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav.container{
  width: min(96%, 1480px);
  max-width: 1480px;
  margin-inline: auto;
}

.nav{
  min-height: 5.25rem;
  height: 5.25rem;
  column-gap: 1.4rem;
}

.nav__logo{
  flex: 0 0 auto;
  min-width: 168px;
  white-space: nowrap;
  gap: .72rem;
  font-size: 1rem;
  line-height: 1;
}

.nav__logo-circle{
  width: 38px;
  height: 38px;
  font-size: .95rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.nav__logo-name{
  display: inline-block;
  white-space: nowrap;
  line-height: 1.1;
  font-size: 1rem;
  letter-spacing: .01rem;
}

.nav__menu{
  flex: 1 1 auto;
  min-width: 0;
}

.nav__list{
  width: 100%;
}

.nav__buttons{
  flex: 0 0 auto;
  column-gap: .95rem;
  margin-left: .6rem;
}

@media screen and (min-width: 1150px){
  .nav__menu{
    margin-left: 1.25rem !important;
  }

  .nav__list{
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: clamp(.65rem, 1.15vw, 1.45rem) !important;
  }

  .nav__item{
    flex: 0 0 auto;
  }

  .nav__link{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    font-size: .98rem !important;
    font-weight: 700;
    letter-spacing: .01rem;
    padding: .95rem .62rem;
    border-radius: .2rem;
  }

  .nav__link::after{
    bottom: .45rem;
    left: .62rem;
  }

  .active-link::after{
    width: 1.15rem !important;
  }

  .nav__link:hover::after{
    width: 1.15rem !important;
  }

  .nav__link-button{
    padding: 1.05rem 1.75rem !important;
    min-width: 118px;
    background: #050505 !important;
    color: #fff !important;
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(0,0,0,.10);
  }

  .nav__link-button:hover{
    background: var(--first-color) !important;
  }

  .change-theme{
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 24px rgba(0,0,0,.05);
    font-size: 1.22rem;
  }

  .language-switcher{
    height: 48px;
    padding: .32rem;
    gap: .32rem;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 14px 32px rgba(0,0,0,.08);
  }

  .language-switcher__btn{
    min-width: 52px;
    height: 38px;
    padding: 0 .9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .04rem;
  }

  .language-switcher__btn.is-active{
    background: var(--first-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255,61,0,.28);
  }
}

@media screen and (max-width: 1320px) and (min-width: 1150px){
  .nav.container{
    width: min(98%, 1320px);
  }
  .nav__logo{
    min-width: 142px;
    gap: .52rem;
  }
  .nav__logo-name{
    font-size: .9rem;
  }
  .nav__list{
    column-gap: .46rem !important;
  }
  .nav__link{
    font-size: .86rem !important;
    padding-inline: .42rem;
  }
  .nav__link-button{
    min-width: 98px;
    padding-inline: 1.1rem !important;
  }
  .nav__buttons{
    column-gap: .55rem;
    margin-left: .25rem;
  }
  .change-theme{
    width: 38px;
    height: 38px;
  }
  .language-switcher{
    height: 42px;
  }
  .language-switcher__btn{
    min-width: 43px;
    height: 32px;
    font-size: .76rem;
    padding-inline: .68rem;
  }
}

@media screen and (max-width: 1150px){
  .header{
    min-height: 4.5rem;
  }
  .nav{
    min-height: 4.5rem;
    height: 4.5rem;
  }
  .nav__logo{
    min-width: auto;
  }
  .nav__logo-name{
    white-space: nowrap;
  }
  .nav__buttons{
    column-gap: .6rem;
  }
  .language-switcher{
    height: 40px;
    padding: .22rem;
  }
  .language-switcher__btn{
    min-width: 40px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .62rem;
  }
}

.dark-theme .header{
  background: rgba(15,15,15,.92) !important;
  border-bottom-color: rgba(255,255,255,.08);
}

.dark-theme .change-theme,
.dark-theme .language-switcher{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.10);
}

/* =====================================================================
   FINAL MOBILE NAV FIX - clean professional fullscreen menu
   ===================================================================== */
@media screen and (max-width: 1150px){
  .header{
    height: 4.25rem !important;
    min-height: 4.25rem !important;
    background: rgba(236,236,236,.96) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }

  .nav{
    height: 4.25rem !important;
    min-height: 4.25rem !important;
    width: min(100% - 1.5rem, 980px) !important;
    column-gap: .7rem !important;
  }

  .nav__logo{
    min-width: 0 !important;
    max-width: 160px !important;
    gap: .55rem !important;
    overflow: hidden !important;
  }

  .nav__logo-circle{
    width: 36px !important;
    height: 36px !important;
    flex: 0 0 36px !important;
  }

  .nav__logo-name{
    max-width: 112px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: .95rem !important;
  }

  .nav__buttons{
    gap: .45rem !important;
    margin-left: auto !important;
  }

  .change-theme{
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.72) !important;
    border: 1px solid rgba(0,0,0,.07) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.06) !important;
    color: #111 !important;
  }

  .language-switcher{
    height: 38px !important;
    padding: .18rem !important;
    gap: .18rem !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.84) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.06) !important;
  }

  .language-switcher__btn{
    min-width: 36px !important;
    height: 30px !important;
    padding: 0 .48rem !important;
    font-size: .72rem !important;
    border-radius: 999px !important;
  }

  .nav__toggle{
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    flex: 0 0 38px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,.10) !important;
  }

  .nav__menu{
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: -120% !important;
    width: 100% !important;
    height: 100dvh !important;
    padding: 5.5rem 1.25rem 2rem !important;
    background: rgba(10,10,10,.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
    transition: top .35s ease !important;
  }

  .nav__menu.show-menu,
  .show-menu{
    top: 0 !important;
  }

  .nav__title,
  .nav__name{
    display: none !important;
  }

  .nav__close{
    position: fixed !important;
    top: 1.1rem !important;
    right: 1.15rem !important;
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.10) !important;
    border: 1px solid rgba(255,255,255,.18) !important;
    color: #fff !important;
    font-size: 1.45rem !important;
    z-index: 10001 !important;
  }

  .nav__list{
    width: min(100%, 360px) !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .78rem !important;
    row-gap: .78rem !important;
    margin: 0 auto !important;
  }

  .nav__item{
    width: 100% !important;
  }

  .nav__link{
    width: 100% !important;
    min-height: 54px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .95rem 1.2rem !important;
    border-radius: 1rem !important;
    background: rgba(255,255,255,.075) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.92) !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: .02rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .nav__link::after{
    display: none !important;
  }

  .nav__link.active-link,
  .nav__link:hover{
    background: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: #fff !important;
  }

  .nav__link-button{
    background: #fff !important;
    color: #111 !important;
    border-color: #fff !important;
    box-shadow: 0 18px 38px rgba(0,0,0,.22) !important;
  }

  .nav__link-button:hover,
  .nav__link-button.active-link{
    background: var(--first-color) !important;
    color: #fff !important;
    border-color: var(--first-color) !important;
  }

  .dark-theme .header{
    background: rgba(14,14,14,.96) !important;
  }

  .dark-theme .change-theme,
  .dark-theme .language-switcher{
    background: rgba(255,255,255,.09) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #fff !important;
  }
}

@media screen and (max-width: 420px){
  .nav{
    width: calc(100% - 1rem) !important;
  }

  .nav__logo-name{
    max-width: 88px !important;
    font-size: .88rem !important;
  }

  .language-switcher__btn{
    min-width: 32px !important;
    font-size: .68rem !important;
    padding-inline: .38rem !important;
  }

  .change-theme,
  .nav__toggle{
    width: 35px !important;
    height: 35px !important;
  }

  .nav__menu{
    padding-top: 5rem !important;
  }

  .nav__list{
    width: min(100%, 320px) !important;
    gap: .65rem !important;
  }

  .nav__link{
    min-height: 50px !important;
    font-size: .98rem !important;
  }
}

/* =====================================================================
   FINAL MOBILE MENU FIX - compact dropdown, does NOT cover the page
   ===================================================================== */
@media screen and (max-width: 1150px){
  .nav__menu{
    position: fixed !important;
    top: 4.85rem !important;
    left: .85rem !important;
    right: .85rem !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    max-height: 0 !important;
    padding: 0 .85rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    overflow: hidden !important;
    transform: translateY(-12px) scale(.985) !important;
    background: rgba(248,248,248,.98) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 1.35rem !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.16) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    display: block !important;
    z-index: 999 !important;
    transition: max-height .28s ease, opacity .22s ease, visibility .22s ease, transform .28s ease, padding .28s ease !important;
  }

  .nav__menu.show-menu,
  #nav-menu.show-menu{
    top: 4.85rem !important;
    max-height: min(74vh, 560px) !important;
    padding: 1rem !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    transform: translateY(0) scale(1) !important;
  }

  .nav__title,
  .nav__name{
    display: none !important;
  }

  .nav__close{
    position: absolute !important;
    top: .75rem !important;
    right: .75rem !important;
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 50% !important;
    background: #111 !important;
    border: 0 !important;
    color: #fff !important;
    font-size: 1.35rem !important;
    z-index: 1000 !important;
  }

  .nav__list{
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: .65rem !important;
    margin: 3rem 0 0 !important;
    padding: 0 !important;
  }

  .nav__item{
    width: 100% !important;
  }

  .nav__link{
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: .85rem .7rem !important;
    border-radius: 1rem !important;
    background: #f1f1f1 !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    color: #151515 !important;
    font-size: .96rem !important;
    font-weight: 800 !important;
    letter-spacing: .01rem !important;
    line-height: 1.15 !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  .nav__link::after{
    display: none !important;
  }

  .nav__link.active-link,
  .nav__link:hover{
    background: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: #fff !important;
  }

  .nav__link-button{
    background: #111 !important;
    border-color: #111 !important;
    color: #fff !important;
  }

  .dark-theme .nav__menu{
    background: rgba(24,24,24,.98) !important;
    border-color: rgba(255,255,255,.10) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.40) !important;
  }

  .dark-theme .nav__link{
    background: rgba(255,255,255,.07) !important;
    border-color: rgba(255,255,255,.10) !important;
    color: rgba(255,255,255,.92) !important;
  }

  .dark-theme .nav__link.active-link,
  .dark-theme .nav__link:hover{
    background: var(--first-color) !important;
    border-color: var(--first-color) !important;
    color: #fff !important;
  }
}

@media screen and (max-width: 430px){
  .nav__menu{
    left: .55rem !important;
    right: .55rem !important;
    top: 4.55rem !important;
    border-radius: 1.15rem !important;
  }

  .nav__menu.show-menu,
  #nav-menu.show-menu{
    top: 4.55rem !important;
    max-height: min(68vh, 500px) !important;
    padding: .8rem !important;
  }

  .nav__list{
    grid-template-columns: 1fr !important;
    gap: .5rem !important;
    margin-top: 2.8rem !important;
  }

  .nav__link{
    min-height: 46px !important;
    font-size: .92rem !important;
    border-radius: .9rem !important;
  }
}

/* =====================================================================
   FINAL DARK MODE FIX - HOME / ABOUT / SECTIONS VISIBILITY
   ===================================================================== */
body.dark-theme{
  background: #090909 !important;
  color: #d8d8d8 !important;
}

body.dark-theme .home,
body.dark-theme .about,
body.dark-theme .skills,
body.dark-theme .services,
body.dark-theme .certificates,
body.dark-theme .contact{
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 72, 0, .16), transparent 24rem),
    linear-gradient(180deg, #101010 0%, #080808 100%) !important;
  color: #d8d8d8 !important;
}

body.dark-theme .home::before,
body.dark-theme .about::before,
body.dark-theme .skills::before,
body.dark-theme .certificates::before{
  background:
    radial-gradient(circle at 72% 16%, rgba(255,255,255,.07), transparent 24rem),
    linear-gradient(135deg, rgba(255,255,255,.025), transparent 55%) !important;
  opacity: 1 !important;
}

body.dark-theme .home::after,
body.dark-theme .about::after{
  background-image: radial-gradient(rgba(255,255,255,.13) 1px, transparent 1px) !important;
  opacity: .45 !important;
}

body.dark-theme .home__name,
body.dark-theme .home__eyebrow,
body.dark-theme .home__description,
body.dark-theme .home__description b,
body.dark-theme .about__title,
body.dark-theme .about__lead,
body.dark-theme .about__lead b,
body.dark-theme .about__closing,
body.dark-theme .about__closing b,
body.dark-theme .about__highlight,
body.dark-theme .about__highlight b,
body.dark-theme .section__title-1,
body.dark-theme .section__title-2,
body.dark-theme .section__subtitle,
body.dark-theme .skills__name,
body.dark-theme .services__title,
body.dark-theme .services__description,
body.dark-theme .certificates__title,
body.dark-theme .certificates__description,
body.dark-theme .contact__title,
body.dark-theme .contact__description{
  color: #f5f5f5 !important;
  text-shadow: none !important;
}

body.dark-theme .home__scroll-text,
body.dark-theme .about__mini-card small,
body.dark-theme .certificates__text,
body.dark-theme .skills__label{
  color: #cfcfcf !important;
}

body.dark-theme .home__description::before,
body.dark-theme .about__eyebrow-line,
body.dark-theme .home__scroll-text::after{
  background: linear-gradient(90deg, rgba(255,255,255,.62), var(--first-color)) !important;
}

body.dark-theme .home__image,
body.dark-theme .about__image,
body.dark-theme .skills__content,
body.dark-theme .certificates__card,
body.dark-theme .certificates__preview,
body.dark-theme .about__mini-card{
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.38) !important;
}

body.dark-theme .home__shadow,
body.dark-theme .about__bg-panel{
  background: rgba(255,72,0,.10) !important;
}

body.dark-theme .home__frame-accent,
body.dark-theme .home__image::after,
body.dark-theme .home__motion-lines::before,
body.dark-theme .home__motion-lines::after{
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.28) !important;
}

body.dark-theme .home__social-link,
body.dark-theme .about__icon,
body.dark-theme .about__mini-card,
body.dark-theme .home__scroll-box{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #fff !important;
}

body.dark-theme .home__social-link i,
body.dark-theme .about__icon i,
body.dark-theme .about__mini-card i,
body.dark-theme .home__scroll-box i{
  color: #fff !important;
}

body.dark-theme .home__corner-square{
  border-color: #080808 !important;
}

body.dark-theme .about__highlights,
body.dark-theme .certificates__list{
  border-color: rgba(255,255,255,.14) !important;
}

body.dark-theme .skills__content,
body.dark-theme .services__panel,
body.dark-theme .certificates__card{
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035)) !important;
}

body.dark-theme .project-slide__tech-logo{
  background: #fff !important;
}

/* Keep the dark menu compact and readable on mobile */
@media screen and (max-width: 1150px){
  body.dark-theme .nav__menu{
    background: rgba(18,18,18,.98) !important;
  }

  body.dark-theme .nav__link{
    color: #f5f5f5 !important;
    background: rgba(255,255,255,.08) !important;
  }
}
