@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

li {
  list-style-type: none;
}

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

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

section {
  background-color:  #faf8f5;
  transition: all 300ms ease;
}

input,
textarea {
  width: 100%;
  background-color: #242424;
  color: white;
  outline: none;
  border: 3px solid #c0c4cc;
  border-top: none;
  border-left: none;
  border-right: none;
  height: 40px;
  transition: all 300ms ease;
}

textarea {
  resize: vertical;
  height: 100px;
  margin-top: 8px;
}

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

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

input:focus,
textarea:focus {
  border-color: #4169e1;
}

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

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

.click {
  cursor: pointer;
  transition: all 300ms ease;
}

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

.click:active {
  transform: scale(0.8);
}

.title {
  font-size: clamp(48px, 8vw, 80px);
}

.blue {
  color: #4169e1 !important;
}

.link__hover-effect {
  position: relative;
}

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

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

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

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

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

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

.dark-theme .title,
.dark-theme .section__title,
.dark-theme .section___sub-title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-solid fa-circle-half-stroke,
.dark-theme .header__para,
.dark-theme .header__sub-title {
  color: white;
}

.dark-theme section {
  background-color: #242424;
}

.dark-theme #personal-logo {
  filter: none;
}

.dark-theme .mail__btn {
  background-color: white;
  color: #242424;
}

/* 

LANDING PAGE

*/
#landing-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.header {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  padding: 0 30px;
}

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

.social__list {
  margin-top: 16px;
  display: flex;
}

.social__link {
  background-color: #4169e1;
  color: white;
  padding: 6px;
  width: 32px;
  height: 32px;
  font-size: 14px;
  margin-right: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.mail__btn {
  width: 70px;
  height: 70px;
  font-size: 32px;
  border-radius: 50%;
  border: none;
  background-color: #242424;
  color: white;
  position: fixed;
  bottom: 32px;
  right: 40px;
  z-index: 100;
}

/* 

NAVIGATION 

*/

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

#personal-logo {
  width: 90px;
  height: 90px;
  border: 5px solid #4169e1;
  border-radius: 50%;
  background-color: transparent;
  object-fit: cover;
}

.nav__link--list {
  display: flex;
}

.nav__link {
  margin: 0 12px;
}

.nav__link--anchor {
  font-size: 16px;
  color: #242424;
  font-weight: 700;
}

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

/* 

MODAL

*/

.modal {
  position: absolute;
  top: min(50%, 40px);
  left: 50%;
  transform: translate(-50%, 0);
  width: 90%;
  max-width: 1100px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  z-index: 60;
  visibility: hidden;
  transition:
    visibility 1s,
    z-index 1s,
    box-shadow 0.5s,
    ease;
  z-index: -1;
}

.modal--open .modal {
  z-index: 60;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.55);
  visibility: visible;
}

.modal__half {
  width: 50%;
  padding: 40px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  transition: all 300ms ease-in;
}

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

.modal__about {
  background-color: rgb(245, 245, 245);
  transform: translateX(-110%);
}

.skill-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #4169e1;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  margin: 4px;
  border: none;
}

.modal__languages {
  display: flex;
  flex-wrap: wrap;
}

.modal__language {
  width: 25%;
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 300ms ease;
}

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

.modal__language:hover {
  filter: brightness(80%);
  transform: scale(0.9);
}

.language__name {
  position: absolute;
  bottom: -10px;
  transform: scale(0);
  transition: 300ms ease;
}

.modal__language i {
  font-size: 40px;
}

.modal__contact {
  background-color: #242424;
  color: white;
  transform: translateX(110%);
}

.modal__title {
  font-size: 26px;
}

.modal__sub-title {
  margin: 12px 0 24px 0;
  font-size: 14px;
}

.modal__para {
  margin-bottom: 12px;
  line-height: 1.75;
}

.form__item {
  margin-bottom: 20px;
}

.form__error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form__error--visible {
  display: block;
}

.input--error {
  border-color: #ff6b6b !important;
}

.form__submit {
  background-color: #4169e1;
  border: 2px solid #4169e1;
  color: white;
  font-weight: 700;
  width: 100%;
  max-width: 240px;
  padding: 12px 24px;
  font-size: 20px;
  transition: all 300ms ease;
}

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

.form__submit:active {
  border-color: #4169e1;
  color: #4169e1;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

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

.modal__overlay--success {
  background-color: #4bb543;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  padding: 28px;
}

.modal__overlay--visible {
  z-index: 1;
  display: flex;
}

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

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

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

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

/* 

PROJECTS

*/

.section__title {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
}

.project {
  margin-bottom: 115px;
}

.project:last-child {
  margin-bottom: 40px;
}

.project__img {
  width: 100%;
  transition: all 600ms ease;
}

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

.project__wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  overflow: hidden;
}

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

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

.project__description {
  position: absolute;
  top: 50%;
  left: 90px;
  transform: translateY(100%);
  opacity: 0;
  transition:
    opacity 500ms ease,
    transform 500ms ease;
  color: white;
  max-width: 550px;
}

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

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

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

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

.project__link,
.project__link:visited {
  color: white;
  font-size: 20px;
  margin-right: 16px;
}

.project__wrapper .project__description .project__link i,
.project__wrapper .project__description .project__link:visited i {
  color: white !important;
}

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

/* CERTIFICATE */

#certificate {
  padding: 20px 0 40px 0;
}

.certificate__wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.certificate__img {
  max-width: 600px;
  width: 90%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.certificate__link {
  display: inline-block;  /* makes the link wrap tightly around the image */
  transition: transform 0.3s ease;
}

.certificate__link:hover {
  transform: scale(1.02);  /* subtle zoom on hover */
}

.certificate__caption {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #555;
}

.certificate__caption a {
  text-decoration: underline;
}

/* FOOTER */

footer {
  position: relative;
  background-color: #242424;
  display: flex;
  padding: 6% 0;
}

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

.footer__logo--img {
  width: 70px;
}

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

.footer__social--link,
.footer__copyright {
  color: white;
}

/* SHAPES */

.shape {
  position: fixed;
  top: calc(15vh + 100px);
}

.shape--0 {
  left: 5vw;
}

.shape--1 {
  left: 50vw;
}

.shape--2 {
  left: 80vw;
}

.shape--3 {
  top: calc(50vh + 100px);
  left: 5vw;
}

.shape--4 {
  top: calc(50vh + 100px);
  left: 50vw;
}

.shape--5 {
  top: calc(50vh + 100px);
  left: 80vw;
}

.shape--6 {
  top: calc(80vh + 100px);
  left: 5vw;
}

.shape--7 {
  top: calc(80vh + 100px);
  left: 50vw;
}

.shape--8 {
  top: calc(80vh + 100px);
  left: 80vw;
}

/* Small phones, tablets, large smartphones */

@media (max-width: 768px) {
  .title {
    font-size: 70px;
  }

  .header__para {
    font-size: 20px;
  }

  .header {
    padding-top: 100px;
  }

  .nav {
    height: 80px;
    padding: 0px;
  }

  #personal-logo {
    width: 70px;
    height: 70px;
    border-width: 3px;
  }

  .modal {
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column-reverse;
    border-radius: 0;
  }

  .modal__half {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .header {
    padding-top: 90px;
  }

  nav {
    height: 70px;
    padding: 0 16px;
  }

  #personal-logo {
    width: 60px;
    height: 60px;
    border-width: 2px;
    margin-top: 0;
  }

  .project__description {
    left: 0;
    padding: 0 20px;
    width: 100%;
    text-align: center;
  }

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

  .project__description--sub-title {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .project__description--para {
    font-size: 12px;
    line-height: 1.4;
    margin: 6px 0;
  }

  .modal__half {
    padding: 24px;
  }

  .modal__title {
    font-size: 22px;
  }

  .modal__para {
    font-size: 14px;
  }

  .modal__language {
    width: 33.33%;
    padding: 12px;
  }

  .modal__language i {
    font-size: 32px;
  }

  .title {
    font-size: 48px;
  }

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

  .nav__link {
    margin: 0 8px;
  }

  .nav__link--anchor {
    font-size: 14px;
  }

  .certificate__img {
    max-width: 100%;
    width: 100%;
  }
}

/* Small phones */

@media (max-width: 480px) {
  #personal-logo {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }

  nav {
    height: 60px;
    padding: 0 12px;
  }

  .nav__link--anchor {
    font-size: 12px;
  }

  .nav__link {
    margin: 0 6px;
  }

  .title {
    font-size: 52px;
  }

  .header {
    padding-top: 80px;
  }

  .header__para {
    font-size: 18px;
  }

  .project__description--para {
    display: none;
  }

  /* Default state — overlay hidden, image visible */
  .project__description {
    left: 0;
    padding: 0 16px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(-50%);
  }

  .project__wrapper--bg {
    opacity: 0;
  }

  .project__img {
    transform: none;
    filter: none;
  }

  /* Tapped state — overlay shows on click/tap */
  .project__wrapper.tapped .project__description {
    opacity: 1;
  }

  .project__wrapper.tapped .project__wrapper--bg {
    opacity: 0.7;
  }

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

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

  .modal__half {
    padding: 24px;
  }

  .modal__para {
    font-size: 12px;
  }

  .form__item {
    margin-bottom: 16px;
  }

  .form__submit {
    font-size: 16px;
    padding: 10px 20px;
  }

  input,
  textarea {
    height: 36px;
    font-size: 16px;
  }

  textarea {
    height: 80px;
  }

  .footer__social--list {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .shape {
    opacity: 0.3;
    width: 30px;
  }
}
