@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");

* {
  font-family: "Roboto", sans-serif;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* border: 1px solid rgba(0, 128, 0, 0.5); */
}

p {
  line-height: 1.5;
  font-size: 16px;
  font-weight: 500;
}

.footer__copyright {
  cursor: default;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  cursor: default;
  z-index: 69;
}





.title,
.header__para,
.nav__link--anchor,
.fa-adjust,
.projects__title {
  transition: 300ms color ease-in-out !important;
}

section {
  transition: 300ms background-color ease-in-out !important;
}

.cursor__hover:hover {
  cursor: pointer;
}

.darkTheme footer .container {
  background-color: #101010;
}

.darkTheme .title,
.darkTheme .header__para,
.darkTheme .nav__link--anchor,
.darkTheme .fa-adjust,
.darkTheme .projects__title {
  color: #fff;
}

.darkTheme .scroll__icon {
  border-color: #fff !important;
}

.darkTheme .scroll__icon:after {
  background-color: #fff !important;
}

.darkTheme section {
  background-color: #101010;
}

.darkTheme #personal-logo {
  filter: none;
}

.darkTheme .link__hover-effect--black:after {
  background-color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
  background-color: transparent;
  transition: 500ms all ease;
}

::-webkit-scrollbar-thumb {
  background-image: linear-gradient(
    180deg,
    rgba(0, 140, 250, 0.5),
    rgba(0, 60, 115, 0.5)
  );
  border-top-left-radius: 9999px;
  border-bottom-left-radius: 9999px;
}

.darkTheme::-webkit-scrollbar {
  background-color: #101010;
}

a {
  color: #242424;
  text-decoration: none;
}

li {
  list-style: none;
}

button {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

section {
  background-color: rgb(245, 245, 245);
}

.cursor--pointer {
  cursor: pointer;
}

textarea {
  resize: none;
  overflow: hidden;
  height: 29px;
  transition: 500ms height ease-in-out;
  padding: 5px 10px 0px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

textarea:focus {
  height: 180px;
  padding: 20px 10px;
}

input {
  padding: 6px 10px;
}

nav,
.scroll,
.header {
  opacity: 1;
  visibility: visible;
  transition: all 600ms 600ms;
}

.modal--open nav,
.modal--open .scroll,
.modal--open .header {
  opacity: 0;
  visibility: hidden;
  transition: all 400ms 200ms;
}

#contact__form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form__submit {
  background-color: #0087cd;
  border: 0px;
  padding: 16px 32px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border-radius: 2px;
  transition: all 400ms ease;
  border: 2px solid transparent;
  margin-top: 20px;
}

.form__submit:hover {
  background-color: transparent;
  border: 2px solid #fff;
}

.form__submit:active {
  background-color: transparent;
  border: 2px solid #0087cd;
  transition: 100ms all linear;
}

.form__item {
  width: 100%;
  margin-bottom: 20px;
}

input,
textarea {
  width: 100%;
  background-color: #242424;
  color: #fff;
  outline: none;
  border: 1px solid #c0c4cc;
  border-top: none;
  border-right: none;
  border-left: none;
  transition: all 400ms ease;
}

input:hover,
textarea:hover {
  border-color: #fff;
}

input:focus,
textarea:focus {
  border-color: #0087cd;
}

label {
  font-size: 14px;
  font-weight: 900;
}

label::before {
  content: "* ";
  color: #0087cd;
}

.container {
  padding: 50px 0;
  width: 100%;
}

.row {
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
}

.text--blue {
  color: #0087cd !important;
  display: inline-block;
}
.text--purple {
  color: #80F;
  display: inline-block;
}
.text--bold {
  font-weight: 900;
}

.title {
  font-size: 120px;
  margin-bottom: 24px;
  line-height: 1;
  text-align: left;
  cursor: default;
}

.title span {
  width: 100%;
}

.social__links {
  margin-top: 16px;
  display: flex;
  flex-direction: row;
}

.social__link {
  background-color: #0087cd;
  width: 32px;
  height: 32px;
  padding: 6px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.social__link:not(:last-child) {
  margin-right: 8px;
}

.click {
  transition: all 300ms ease;
}

.click:hover {
  transform: scale(1.1);
}

.click:active {
  transform: scale(0.9);
}
.link__hover-effect {
  position: relative;
}

.link__hover-effect:hover:after {
  left: 0;
  width: 100%;
}

.link__hover-effect:after {
  content: "";
  position: absolute;
  bottom: -3px;
  right: 0;
  height: 3px;
  width: 0;
  transition: all 300ms ease;
  border-radius: 9999px;
}

.link__hover-effect2 {
  position: relative;
}

.link__hover-effect2:hover:after {
  left: 0;
  width: 100%;
}

.link__hover-effect2:after {
  content: "";
  position: absolute;
  bottom: -7.5px;
  right: 0;
  height: 3px;
  width: 0;
  transition: all 300ms ease;
  border-radius: 9999px;
}

.link__hover-effect--black:after {
  background-color: #000;
}
.link__hover-effect--white:after {
  background-color: #fff;
}
.link__hover-effect--blue:after {
  background-color: #6700cdd1;
  box-shadow: 0px 0px 5px rgba(116, 0, 205, 0.564);
}

/* KEYFRAMES */

@keyframes scroll {
  0% {
    transform: translateY(3px);
  }
  100% {
    transform: translateY(-3px);
  }
}

@keyframes spinner {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ANIMATIONS */

.scroll__icon:after {
  animation: scroll 1000ms infinite alternate-reverse;
}

.fa-spinner {
  animation: spinner 1000ms infinite linear;
}

/* LANDING PAGE */

#landing-page {
  min-height: 100vh;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  z-index: 69;
}

.header__para {
  font-weight: 500;
  font-size: 24px;
  line-height: 2;
  max-width: 450px;
}

.mail__button {
  z-index: 999;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  font-size: 32px;
  border: none;
  background-color: #242424;
  color: white;
  right: 30px;
  bottom: 40px;
  position: fixed;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.mail__button--link {
  width: 32px !important;
  height: 32px !important;
}

.fa-envelope {
  color: white;
}

.scroll {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 69;
}

.scroll__icon {
  width: 20px;
  height: 30px;
  border: 2px solid #242424;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 69;
}

.scroll__icon:after {
  content: "";
  background-color: #242424;
  border-radius: 2px;
  width: 4px;
  height: 6px;
  z-index: 69;
}

/* NAVIGATION */
.personal-logo--container {
  width: 50px;
  height: 50px;
}

#personal-logo {
  transition: all 500ms ease;
  width: 50px;
  height: 50px;
  filter: invert();
  transition: 300ms ease-in-out all;
}

#personal-logo:hover {
  transform: scale(0.9);
  cursor: pointer;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100px;
}

.nav__link--anchor:first-child {
  cursor: pointer;
}

.nav__link--list {
  list-style: none;
  display: flex;
}

.nav__link a {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #242424;
}

.nav__link {
  margin: 0 12px;
}

.fa-adjust {
  font-size: 20px;
}

/* MODAL */

.modal--open .modal {
  z-index: 999;
  visibility: visible;
  box-shadow: 0 10px 80px rgba(0, 0, 0, 0.25);
}

.modal--open .modal__about {
  transform: translateX(0%);
}

.modal--open .modal__contact {
  transform: translateX(0%);
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 700px;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 0px rgba(0, 0, 0, 0);
  visibility: hidden;
  z-index: -1;
  transition: box-shadow 650ms 0.35s ease, visibility 1s, z-index 1s;
}

.modal__half {
  width: 50%;
  padding: 40px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.modal__contact {
  padding-top: 66px;
  transform: translateX(110%);
  transition: all 750ms ease-in-out;
}

.modal__about {
  background-color: rgb(245, 245, 245);
  transform: translateX(-110%);
  transition: all 750ms ease-in-out;
}
.modal__contact {
  background-color: #242424;
  color: #fff;
}

.modal__languages {
  display: flex;
  width: 100%;
}

.modal__language--container {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}

.modal__language--img {
  width: 60px;
  height: 60px;
}

.modal__title {
  font-size: 26px;
  text-align: left;
  width: 100%;
}

.modal__sub-title {
  margin: 12px 0 24px 0;
  text-align: left;
  width: 100%;
}

.mode__para--container {
  width: 100%;
}

.model__para {
  margin-bottom: 40px;
  line-height: 1.75;
  font-size: 18px;
  max-width: 370px;
}

.modal__language--container {
  transition: 300ms all ease;
}

.modal__language--container:hover {
  filter: brightness(75%);
  transform: scale(0.9);
}

.modal__language--container:hover .language__name {
  transform: scale(1);
}

.language__name {
  position: absolute;
  bottom: -24px;
  text-align: center;
  transform: scale(0);
  transition: 300ms all ease;
  font-weight: 500;
}

.modal__overlay {
  visibility: visible;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
  opacity: 0;
  transition: 0ms all ease;
}

.modal__overlay--visible {
  opacity: 1;
  z-index: 1;
  transition: 500ms all ease;
}

.modal__overlay--succes {
  background-color: rgb(0, 170, 0);
  padding: 28px;
}

.modal__overlay--loading {
  background-color: #242424;
  font-size: 80px;
}

.overlay--succes__text {
  text-align: center;
  font-size: 28px;
  font-weight: 900;
}

.modal__exit {
  position: absolute;
  top: 30px;
  right: 35px;
  font-size: 36px;
  color: #fff;
  z-index: 999;
}

.modal__exit:hover {
  cursor: pointer;
}

/* CONTACT LIST */
.contact__list {
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.contact__item {
  width: 100%;
}

.contact__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  transition: all 300ms ease;
  font-size: 16px;
  font-weight: 500;
}

.contact__link:hover {
  border-color: #0087cd;
  background-color: rgba(0, 135, 205, 0.1);
}

.contact__icon {
  color: #0087cd;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* PROJECTS */
.projects__title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  z-index: 69;
  position: relative;
}

.project {
  margin: 0px auto 120px auto;
  max-width: 900px;
  z-index: 69;
}

.project__img {
  width: 100%;
  transition: all 450ms ease;
  height: 515px;
}

.project__wrapper {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.25);
  transition: all 450ms ease;
  height: 515px;
  z-index: 69;
}

.project:first-child {
  margin-top: 12px;
}

@media (hover: hover) {
  .project__wrapper:hover .project__description {
    opacity: 1;
    transform: translateY(-50%);
  }

  .project__wrapper:hover .project__img {
    transform: scale(1.07);
    filter: blur(5px);
  }

  .project__wrapper:hover .project__wrapper--bg {
    opacity: 0.5;
  }

  .project__wrapper:hover {
    transform: scale(1.05);
  }
}

.project__description {
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 90px;
  color: #fff;
  max-width: 550px;
  transform: translateY(100%);
  background-color: transparent;
  transition: opacity 300ms, transform 450ms ease;
}

.project__wrapper--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: #242424;
  transition: all 450ms ease;
}

.project__description--link {
  color: #fff;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project__description--link:not(:last-child) {
  margin-right: 16px;
}

.project__description--title {
  font-size: 40px;
}

.project__description--sub-title {
  margin: 8px 0;
}

.project__description--para {
  margin: 16px 0;
}

.modal__languages--title {
  margin-bottom: 32px;
  margin-top: -10px;
  font-size: 24px;
}

/* FOOTER */

footer {
  background: #242424;
  display: flex;
  z-index: 69;
}

footer .container {
  z-index: 69;
  padding: 80px 0px;
  background: #242424;
}

.footer__social--link,
.footer__copyright {
  color: #fff;
}

.footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 69;
}

.footer__logo--container {
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__logo--img {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 300ms all ease;
}

.footer__logo--img:hover {
  transform: scale(0.9);
}

.footer__social--list {
  width: 100%;
  display: flex;
  justify-content: space-between;
  max-width: 300px;
  margin: 24px 0 28px 0;
}

/* SHAPES */

.shape {
  position: fixed;
  width: 25px;
  height: 25px;
  z-index: 1;
}

.shape--0 {
  top: 20vh;
  left: 10vw;
}
.shape--1 {
  top: 20vh;
  left: 50vw;
}
.shape--2 {
  top: 20vh;
  left: 80vw;
}
.shape--3 {
  top: 50vh;
  left: 10vw;
}
.shape--4 {
  top: 50vh;
  left: 50vw;
}
.shape--5 {
  top: 50vh;
  left: 80vw;
}
.shape--6 {
  top: 85vh;
  left: 10vw;
}
.shape--7 {
  top: 85vh;
  left: 50vw;
}
.shape--8 {
  top: 85vh;
  left: 80vw;
}

@media (max-width: 820px) {
  
  nav {
    padding: 0px 30px;
  }

  .header {
    padding: 0px 30px;
  }

  .shape {
    display: none;
  }

  .nav__link:first-child {
    display: none;
  }

  .project {
    padding: 0px 60px;
  }

  .scroll__icon {
    transform: scale(2) !important;
  }

  .project__wrapper {
    height: 400px;
  }

  .project__img {
    height: 400px;
  }

  .project__description--para {
    font-size: 18px;
  }

  .modal__half {
    padding: 40px 40px;
  }
}

@media (max-width: 768px) {
  .message__area:focus .projects__title {
    z-index: -1;
  }
  .modal {
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column-reverse;
    border-radius: 0;
  }

  .message__area:focus .first__project {
    margin-top: 300px !important;
  }

  .project:first-child {
    margin-top: 130px;
  }

  .modal__half {
    width: 100%;
    padding: 40px 40px;
  }

  .modal__about {
    z-index: 999;
  }

  nav {
    padding: 0px 20px;
  }

  .shape {
    display: none;
  }

  .nav__link:first-child {
    display: none;
  }

  .title {
    font-size: 60px;
  }

  .header {
    padding: 0px 30px;
  }

  .header__para {
    line-height: 1.5;
    font-size: 18px;
  }

  .projects__title {
    padding: 0px 10px;
  }

  .project {
    padding: 0px 40px;
  }

  .project__wrapper {
    height: 390px;
  }

  .project__img {
    height: 390px;
  }

  .project__description--para {
    display: none;
  }

  .project__description {
    left: 50%;
    transform: translateY(100%) translateX(-50%);
  }

  .project__description--title {
    font-size: 30px;
    text-align: center;
  }

  .project__description--sub-title {
    text-align: center;
  }

  .project__description--links {
    justify-content: center;
    display: flex;
  }

  ::-webkit-scrollbar {
    width: 0px;
  }

  ::-webkit-scrollbar-thumb {
    width: 0px;
  }
}

@media (max-width: 480px) {
  .project__wrapper {
    height: 200px;
  }

  .project__description--title {
    font-size: 20px;
  }
  .project__description--sub-title {
    font-size: 12px;
  }

  .project__img {
    height: 200px;
  }

  .project__description {
    left: 50%;
    transform: translateY(100%) translateX(-50%);
  }
}

@media (max-width: 390px) {
  .project__wrapper {
    height: 180px;
  }

  .project__img {
    height: 180px;
  }
}

/* Narrow desktop (cursor + small window): tweak hover-overlay centering */
@media (hover: hover) and (max-width: 768px) {
  .project__wrapper:hover .project__description {
    transform: translateY(-40%) translateX(-50%);
  }
}

@media (hover: hover) and (max-width: 480px) {
  .project__wrapper:hover .project__description {
    transform: translateY(-50%) translateX(-50%);
  }
}

/* Touch devices (no hover): stacked project cards with always-visible description */
@media (hover: none) {
  .project {
    margin: 0 auto 48px;
    padding: 0 16px;
    max-width: 560px;
  }

  .project:first-child {
    margin-top: 12px;
  }

  .project__wrapper {
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: #242424;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
    transform: none;
  }

  .project__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    transform: none;
    filter: none;
  }

  .project__wrapper--bg {
    display: none;
  }

  .project__description {
    opacity: 1;
    position: static;
    top: auto;
    left: auto;
    transform: none;
    color: #fff;
    max-width: none;
    padding: 22px 24px 26px;
    background-color: transparent;
  }

  .project__description--title {
    font-size: 22px;
    text-align: left;
    margin: 0;
  }

  .project__description--sub-title {
    font-size: 13px;
    text-align: left;
    color: #0087cd;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin: 6px 0 14px;
  }

  .project__description--para {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 20px;
  }

  .project__description--links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .project__description--link {
    background-color: #0087cd;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 8px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

  .project__description--link:not(:last-child) {
    margin-right: 0;
  }

  /* Enlarge header social circles to meet 44×44 tap target on touch */
  .social__link {
    width: 44px;
    height: 44px;
    padding: 10px;
    font-size: 18px;
  }

  .social__link:not(:last-child) {
    margin-right: 10px;
  }

  /* Enlarge footer social text links to meet 44px tap target on touch */
  .footer__social--link {
    padding: 12px 10px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
