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

:root {
  --accent-purple: #800080;
  --accent-purple-hover: #6a3a87;
  --accent-green: #1f5a3a;
  --page-bg-light-purple: #faf6ff;
  --footer-purple: #5f2577;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 18%, rgba(31, 90, 58, 0.08), transparent 35%),
    radial-gradient(circle at 88% 12%, rgba(106, 58, 135, 0.12), transparent 40%),
    linear-gradient(180deg, var(--page-bg-light-purple) 0%, #f3eaff 45%, #eee2ff 100%);
}

li {
  list-style-type: none;
}

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

a {
  text-decoration: none;
}

button {
  cursor: pointer;
}

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

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

/* ABOUT CARD */
.about__card--backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.about__card--backdrop.about__card--open {
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 50;
  opacity: 1;
  visibility: visible;
}

.about__card {
  background-color: rgb(245, 245, 245);
  border-radius: 20px;
  border: 2px solid rgba(31, 90, 58, 0.28);
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  padding: 44px;
  max-width: 620px;
  width: 90%;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: transform 320ms ease, opacity 320ms ease;
}

.about__card--backdrop.about__card--open .about__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about__card--close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #242424;
  cursor: pointer;
  transition: color 250ms ease;
}

.about__card--close:hover {
  color: var(--accent-purple-hover);
}

.about__card--title {
  font-size: 32px;
  color: #242424;
  margin-bottom: 8px;
}

.about__card--subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 16px;
}

.about__card--para {
  color: #2f2f2f;
  margin-bottom: 20px;
}

.about__card--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about__card--chips span {
  background-color: rgba(106, 58, 135, 0.12);
  color: #4e2b62;
  border: 1px solid rgba(106, 58, 135, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about__card--chips span i {
  font-size: 14px;
  color: #7b3f9b;
}

.about__card--chips span strong {
  font-size: 13px;
  font-weight: 700;
}

/* CONTACT CARD */
.contact__card--backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.contact__card--backdrop.contact__card--open {
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 50;
  opacity: 1;
  visibility: visible;
}

.contact__card {
  background-color: rgb(245, 245, 245);
  border-radius: 20px;
  border: 2px solid rgba(31, 90, 58, 0.28);
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  padding: 48px;
  max-width: 520px;
  width: 90%;
  position: relative;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: transform 320ms ease, opacity 320ms ease;
}

.contact__card--backdrop.contact__card--open .contact__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.contact__card--close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: #242424;
  cursor: pointer;
  transition: color 250ms ease;
}

.contact__card--close:hover {
  color: var(--accent-purple-hover);
}

.contact__card--title {
  font-size: 32px;
  color: #242424;
  margin-bottom: 8px;
}

.contact__card--subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
}

.contact__card--form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__form--group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form--group label {
  font-size: 14px;
  font-weight: 700;
  color: #242424;
}

.contact__form--group input,
.contact__form--group textarea {
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.contact__form--group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__card--submit {
  background-color: var(--accent-purple);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 300ms ease;
  margin-top: 8px;
}

.contact__card--submit:hover {
  background-color: var(--accent-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(106, 58, 135, 0.3);
}

.contact__card--submit:active {
  transform: translateY(0);
}

.contact__card--submit:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.contact__card--status {
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.contact__card--status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contact__card--status.is-success {
  color: #176a3b;
}

.contact__card--status.is-error {
  color: #a11f39;
}

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: #f06449;
}

.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: 120px;
  margin-bottom: 12px;
  text-align: left;
  line-height: 1;
}

.purple {
  color: var(--accent-purple) !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,
.scroll,
.header {
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: all 600ms 800ms;
}

.modal--open nav,
.modal--open .scroll,
.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-adjust,
.dark-theme .header__para
{
  color: white;
}
.dark-theme section {
  background-color: #242424;
}
.dark-theme #personal-logo {
  filter: none;
}
.dark-theme .scroll__icon {
  border-color: white;
}
.dark-theme .scroll__icon:after,
.dark-theme .link__hover-effect--black:after {
  background-color: white;
}
.dark-theme .mail__btn {
  background-color: white;
  color: #242424;
}

.dark-theme {
  background:
    radial-gradient(circle at 14% 20%, rgba(106, 58, 135, 0.2), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(31, 90, 58, 0.15), transparent 40%),
    linear-gradient(180deg, #050505 0%, #0b0b0f 55%, #111118 100%);
}

.dark-theme body {
  background: transparent;
}

.dark-theme .header__para,
.dark-theme .section__title,
.dark-theme .nav__link--anchor,
.dark-theme .fa-adjust,
.dark-theme .footer__social--link,
.dark-theme .footer__copyright {
  color: #f5f5f7;
}

.dark-theme p {
  color: #f1f1f6;
}

.dark-theme .about__card--subtitle {
  color: #555;
}

.dark-theme .about__card--para {
  color: #2f2f2f;
}

.dark-theme .project__description--sub-title {
  color: #dedee6;
}

.dark-theme .social__list a {
  color: #d6b7ff;
}

.dark-theme .social__list a:hover {
  color: #e9d7ff;
}

.dark-theme .project__wrapper {
  border-color: rgba(214, 183, 255, 0.24);
  box-shadow: 0 20px 80px 0 rgba(0, 0, 0, 0.62);
}

.dark-theme .project__wrapper:hover {
  border-color: rgba(214, 183, 255, 0.72);
}

.dark-theme footer {
  background-color: var(--footer-purple);
}
/* 

  LANDING PAGE 
  
*/
#landing-page {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: visible;
  background: transparent;
}

.header {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  padding: 0 30px;
}

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

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

.social__list a {
  font-size: 24px;
  color: var(--accent-purple);
}

.social__list a:hover {
  color: var(--accent-purple-hover);
}

.social__link {
  background-color: #176a3b;
  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: 78px;
  height: 78px;
  font-size: 36px;
  border-radius: 50%;
  border: none;
  background-color: #242424;
  color: white;
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 100;
  box-shadow: 0 10px 22px 0 rgba(0, 0, 0, 0.2);
  transition: all 300ms ease;
  z-index: 2;
}

.mail__btn:hover {
  transform: scale(1.1);
  color: var(--accent-purple-hover);
}

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

.scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

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

.scroll__icon:after {
  content: "";
  width: 4px;
  height: 6px;
  background-color: #242424;
  border-radius: 2px;
  animation: scroll 1000ms infinite alternate-reverse;
}

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

/* 

  NAVIGATION 
  
*/

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

#personal-logo {
  width: 50px;
  height: 50px;
  filter: none;
}

.nav__link--list {
  display: flex;
}

.nav__link {
  margin: 0 12px;
}

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

.nav__link--anchor:hover {
  color: var(--accent-purple-hover);
}

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

/* 

  MODAL 
  
*/
.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 1100px;
  height: 700px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  visibility: hidden;
  z-index: -1;
  transition: visibility 1s, z-index 1s, box-shadow 0.5s ease;
}
.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%);
}

.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: all 300ms ease;
}

.modal__language--img {
  width: 100%;
}

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

.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__submit {
  background-color: #f06449;
  border: 2px solid #f06449;
  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: #f06449;
  color: #f06449;
}

.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 
  
*/

#projects {
  position: relative;
  margin-top: -2px;
  padding-top: 2px;
  background: transparent;
}

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

.project {
  margin-bottom: 135px;
}

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

.project__wrapper {
  position: relative;
  z-index: 3;
  border-radius: 20px;
  border: 2px solid rgba(31, 90, 58, 0.28);
  box-shadow: 0 20px 80px 0 rgb(0, 0, 0, 0.45);
  overflow: hidden;
  transition: border-color 350ms ease, box-shadow 350ms ease, transform 350ms ease;
}

.project__wrapper:hover {
  border-color: rgba(106, 58, 135, 0.8);
  box-shadow: 0 24px 90px 0 rgb(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

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

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

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

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

.project__wrapper--bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(31, 90, 58, 0.85), rgba(106, 58, 135, 0.85));
  opacity: 0; 
  transition: all 450ms ease;
  visibility: hidden;
}

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

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

.project__description--link {
  color: white;
  font-size: 20px;
  margin-right: 16px;
  transition: color 250ms ease;
}

.project__description--link:hover {
  color: #c7f0dd;
}

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

/* 

  FOOTER 
  
*/

footer {
  position: relative;
  background-color: var(--footer-purple);
  display: flex;
  padding: 6% 0;
  z-index: 4;
}

.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

  shapes on the first row 
  height = 15vh
  
  shapes on the second row 
  height = 50vh
  
  shapes on the third row 
  height = 80vh

  shapes on the first column
  width = 5vw
  
  shapes on the second column
  width = 50vw

  shapes on the third column
  width = 80vw

*/
.shape {
  position: fixed;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  animation: float-shape 9s ease-in-out infinite, pulse-shape 6s ease-in-out infinite;
  transition: transform 220ms ease-out, opacity 220ms ease, visibility 220ms ease;
}

.shape__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.72;
  filter: grayscale(1) saturate(0.35) brightness(1.08);
}

.shape__img--logo {
  opacity: 0.2;
  filter: grayscale(1) saturate(0.2) brightness(1.15);
}

.shape__img--leaf {
  opacity: 0.7;
  filter: saturate(1.15) brightness(1.26) drop-shadow(0 0 10px rgba(214, 183, 255, 0.35));
}

.shape--0 {
  top: 15vh;
  left: 5vw;
  width: 22px;
  height: 22px;
  animation-duration: 8s;
}
.shape--1 {
  top: 15vh;
  left: 50vw;
  width: 30px;
  height: 30px;
  animation-duration: 11s;
  animation-delay: -2s;
}
.shape--2 {
  top: 15vh;
  left: 80vw;
  width: 24px;
  height: 24px;
  animation-duration: 10s;
  animation-delay: -1s;
}
.shape--3 {
  top: 50vh;
  left: 5vw;
  width: 28px;
  height: 28px;
  animation-duration: 9s;
  animation-delay: -3s;
}
.shape--4 {
  top: 50vh;
  left: 50vw;
  width: 36px;
  height: 36px;
  animation-duration: 12s;
  animation-delay: -4s;
}
.shape--5 {
  top: 50vh;
  left: 80vw;
  width: 22px;
  height: 22px;
  animation-duration: 8.5s;
  animation-delay: -2.5s;
}
.shape--6 {
  top: 80vh;
  left: 5vw;
  width: 32px;
  height: 32px;
  animation-duration: 10.5s;
  animation-delay: -3.5s;
}
.shape--7 {
  top: 80vh;
  left: 50vw;
  width: 22px;
  height: 22px;
  animation-duration: 9.5s;
  animation-delay: -1.5s;
}
.shape--8 {
  top: 80vh;
  left: 80vw;
  width: 34px;
  height: 34px;
  animation-duration: 12.5s;
  animation-delay: -4.5s;
}

@keyframes float-shape {
  0% {
    margin-top: 0;
  }

  50% {
    margin-top: -16px;
  }

  100% {
    margin-top: 0;
  }
}

@keyframes pulse-shape {
  0% {
    opacity: 0.34;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.34;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shape {
    animation: none;
    transition: none;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .shape {
    opacity: 0.28;
  }

  .shape--2,
  .shape--5,
  .shape--8 {
    display: none;
  }
}

/* ADDED AFTER TUTORIAL */
.footer__logo--popper {
  position: absolute;
  right: 0;
  top: 16px;
  font-weight: 700;
  opacity: 0;
  transition: all 300ms ease;
  color: white;
}

.footer__anchor {
  position: relative;
}

.footer__anchor:hover .footer__logo--popper {
  transform: translateX(60px);
  opacity: 1;
}

/* Small phones, tablets, large smart phones */
@media (max-width: 768px) {
  .title {
    font-size: 80px;
  }
  .header {
    max-width: 720px;
    padding: 0 24px;
  }
  .header__para {
    font-size: 20px;
    line-height: 1.7;
    max-width: 520px;
  }
  .social__list {
    margin-top: 20px;
    gap: 20px;
  }
  .mail__btn {
    width: 72px;
    height: 72px;
    font-size: 32px;
    right: 24px;
    bottom: 24px;
  }
  .about__card,
  .contact__card {
    width: calc(100% - 28px);
    padding: 34px 22px;
    border-radius: 16px;
    transform: translateY(20px) scale(0.98);
  }
  .modal {
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column-reverse;
    border-radius: 0;
  }
  .modal__half {
    width: 100%;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .title {
    font-size: 52px;
    margin-bottom: 8px;
  }
  .header {
    padding: 0 18px;
  }
  .header__para {
    font-size: 18px;
    line-height: 1.6;
    max-width: 100%;
  }
  .social__list {
    margin-top: 16px;
    gap: 18px;
  }
  .social__list a {
    font-size: 22px;
  }
  .mail__btn {
    width: 66px;
    height: 66px;
    font-size: 30px;
    right: 16px;
    bottom: 16px;
  }
  .about__card,
  .contact__card {
    width: calc(100% - 20px);
    padding: 28px 18px;
    border-radius: 14px;
  }
  .nav__link:first-child {
    display: none;
  }
  .project__description--para {
    display: none;
  }
  .project__description {
    left: 0;
    padding: 0;
    width: 100%;
    text-align: center;
  }
  .project__description--sub-title {
    margin-bottom: 8px;
  }
  .modal__half {
    padding: 40px;
  }
}