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

:root {
  --primary-color: #181818;
  --secondary-color: #282828;
  --background-color: #1d1d1d;

  --color-black: #000000;
  --color-white: #ffffff;
  --color-grey: #909096;
  --color-grey-stroke: #3b3b3b;
  --color-accent: #64ffda;

  --text-roboto: "Roboto", sans-serif;
  --text-righteous: "Righteous", cursive;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--background-color);
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

/* =====================
   SCROLL REVEAL
   ===================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   HERO
   ===================== */

.hero {
  position: relative;
  height: 100dvh;
  width: 100%;
}

.hero__welcome {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background-color: var(--primary-color);
  background: radial-gradient(ellipse at 50% 40%, #1f1f2e 0%, var(--primary-color) 70%);
}

.hero__toggle {
  position: fixed;
  top: 10px;
  right: 20px;
  width: 30px;
  height: 25px;
  z-index: 1000;
  cursor: pointer;
  padding: 1px 2px;
  background-color: var(--primary-color);
  border-radius: 5px;
  transition: opacity var(--transition-fast);
}

.hero__toggle:hover {
  opacity: 0.7;
}

.hero__toggle-bar {
  margin-bottom: 5px;
  width: 100%;
  height: 4px;
  background-color: var(--color-white);
  transition: all 0.3s;
  border-radius: 2px;
}

.hero__presentation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  line-height: 1.3;
  padding: 20px;
  width: 100%;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--text-roboto);
  color: var(--color-white);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  text-wrap: balance;
  animation: fadeInDown 1s ease-out;
}

.hero__title-name {
  font-weight: bold;
  display: block;
  color: var(--color-accent);
}

.hero__subtitle {
  font-weight: 400;
  font-size: 1rem;
  font-family: monospace;
  color: var(--color-grey);
  margin: 10px auto;
  width: 33ch;
  white-space: nowrap;
  overflow: hidden;
  border-right: solid 4px var(--color-accent);
  animation: typing 2s steps(10) infinite,
    blinking 0.5s infinite step-end alternate;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-grey);
  font-family: var(--text-roboto);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.hero__scroll-indicator::after {
  content: '';
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-grey), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes typing {
  from {
    width: 0;
  }
}

@keyframes blinking {
  50% {
    border-color: transparent;
  }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@media (min-width: 769px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .hero {
    width: calc(100% - 130px);
    margin-left: 130px;
  }

  .hero__toggle {
    display: none;
  }

  .hero__title {
    font-size: 4rem;
  }
}

/* =====================
   SIDEBAR
   ===================== */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  width: 130px;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  border-right: 1px solid var(--color-grey-stroke);
  z-index: 999;
}

.sidebar--open {
  transform: translateX(0);
}

.sidebar__header {
  width: 100%;
  height: 120px;
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid var(--color-grey-stroke);
}

.sidebar__logo {
  font-size: 70px;
  font-family: var(--text-righteous);
  color: var(--color-white);
  width: 100%;
  text-wrap: nowrap;
  text-align: center;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

.sidebar__logo:hover {
  color: var(--color-accent);
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.25);
}

.sidebar__logo-tagline {
  font-size: 12px;
  font-weight: 400;
  font-family: var(--text-roboto);
  color: var(--color-grey);
  width: 100%;
  text-wrap: nowrap;
  text-align: center;
}

.sidebar__menu {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
}

.sidebar__menu-item {
  width: 100%;
  border-top: 1px solid var(--secondary-color);
  border-bottom: 1px solid var(--secondary-color);
  transition: background-color var(--transition-fast);
}

.sidebar__menu-item:hover {
  background-color: var(--secondary-color);
}

.sidebar__menu-item > a {
  color: var(--color-grey);
  font-family: var(--text-roboto);
  padding: 15px;
  display: block;
  cursor: pointer;
  transition: color var(--transition-fast), padding-left var(--transition-base);
}

.sidebar__menu-item:hover > a {
  color: var(--color-accent);
  padding-left: 20px;
}

.sidebar__menu-item--current > a {
  color: var(--color-accent);
  border-left: 2px solid var(--color-accent);
  padding-left: 13px;
}

.sidebar__menu-item--has-submenu .sidebar__menu-toggle::after {
  content: "▼";
  float: right;
}

.sidebar__menu-item--active .sidebar__menu-toggle::after {
  content: "▲";
}

.sidebar__submenu {
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.sidebar__submenu-item {
  background-color: var(--color-grey-stroke);
}

.sidebar__submenu-item > a {
  color: var(--color-white);
  font-family: var(--text-roboto);
  padding: 15px;
  display: block;
  border-bottom: 1px solid var(--secondary-color);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sidebar__submenu-item > a:hover {
  background-color: var(--secondary-color);
  color: var(--color-accent);
}

.sidebar__social {
  position: fixed;
  bottom: 10%;
  left: 0;
  padding: 5px 0;
  width: 130px;
  text-align: center;
}

.sidebar__social-item {
  display: inline-block;
  transition: transform var(--transition-fast);
}

.sidebar__social-item:hover {
  transform: scale(1.25) translateY(-2px);
}

.sidebar__social-item > a {
  color: var(--color-grey);
  font-size: 25px;
  transition: color var(--transition-fast);
}

.sidebar__social-item--linkedin > a:hover {
  color: #0077b5;
}

.sidebar__social-item--github > a:hover {
  color: #c9d1d9;
}

.sidebar__social-item--instagram > a:hover {
  color: #e4405f;
}

@media (min-width: 1025px) {
  .sidebar {
    transform: translateX(0);
    display: block;
  }
}

/* =====================
   WRAPPER
   ===================== */

.wrapper {
  position: relative;
  width: 100%;
  background-color: var(--background-color);
  padding: 0.625rem 1.25rem;
}

@media (min-width: 1025px) {
  .wrapper {
    width: calc(100% - 130px);
    margin-left: 130px;
  }
}

/* =====================
   SECTION
   ===================== */

.section {
  height: auto;
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.section__title {
  font-size: 2em;
  width: 100%;
  font-family: var(--text-roboto);
  font-weight: 800;
  color: var(--color-white);
  text-align: center;
  position: relative;
  padding-bottom: 0.5rem;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
  transition: width var(--transition-base);
}

.section__title:hover::after {
  width: 120px;
}

.section__body {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 1rem;
}

.section__column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  flex: 1;
}

@media (min-width: 481px) {
  .section {
    padding: 20px;
  }

  .section__title {
    font-size: 2.5em;
  }
}

@media (min-width: 769px) {
  .section__title {
    font-size: 4em;
  }

  .section__body {
    flex-direction: row;
    margin-top: 3rem;
  }

  .section__column {
    padding: 0 20px 30px;
  }
}

@media (min-width: 1401px) {
  .section__body {
    justify-content: center;
    align-items: flex-start;
  }

  .section__column {
    padding: 0 20px;
    justify-content: flex-start;
    align-items: flex-start;
  }
}

/* =====================
   ABOUT
   ===================== */

.about__body {
  display: block;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.about__intro {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about__image {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

@media (min-width: 769px) {
  .about__intro {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(48px, 6vw, 88px);
  }
}

.about__image > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 72% center;
  filter: grayscale(35%);
  display: block;
  transition: filter 0.5s ease, transform 0.5s ease;
}

.about__title {
  width: auto;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  text-align: left;
}

.about__title::after {
  margin-right: 0;
  margin-left: 0;
}

.about__body .content__paragraph {
  max-width: 65ch;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  margin: 0 0 1.1rem;
  text-wrap: pretty;
}

.about__image:hover > img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

/* =====================
   CONTENT
   ===================== */

.content__paragraph {
  font-family: var(--text-roboto);
  font-weight: 300;
  font-size: 24px;
  color: var(--color-grey);
  line-height: 1.6;
  margin-bottom: 10px;
  text-align: left;
  text-wrap: pretty;
}

/* =====================
   CARD (EXPERIENCE)
   ===================== */

.experience-list {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.card {
  width: 260px;
  height: 260px;
  background-color: #2a2a2a;
  margin: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  color: var(--color-white);
  font-family: var(--text-roboto);
  border: 1px solid var(--color-grey-stroke);
  border-radius: 4px;
  transition: transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--color-accent);
  border-color: var(--color-accent);
}

.card__header,
.card__body,
.card__footer {
  width: 100%;
}

.card__header > h1 {
  text-align: center;
  font-size: 23px;
  font-weight: 500;
  color: var(--color-accent);
}

.card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 90px;
}

.card__body > p,
.card__footer > p {
  font-family: var(--text-roboto);
  text-align: center;
  font-size: 18px;
}

.card__footer > p {
  font-size: 14px;
  color: var(--color-grey);
}

/* =====================
   SKILLS & EXPERIENCE
   ===================== */

.skills__body {
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.skills__title {
  width: auto;
  margin-bottom: 2rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1;
  text-align: left;
}

.skills__title::after {
  margin-right: 0;
  margin-left: 0;
}

.skills__content,
.skills__experience {
  padding-right: 0;
  padding-left: 0;
}

.skills__content .content__paragraph {
  max-width: 62ch;
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
}

.skills__experience .experience-list {
  position: relative;
  display: grid;
  width: 100%;
  gap: 20px;
  padding-left: 28px;
}

.skills__experience .experience-list::before {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 5px;
  width: 1px;
  background-color: var(--color-grey-stroke);
}

.skills__experience .card {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 24px;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  background-color: #242424;
}

.skills__experience .card::before {
  content: '';
  position: absolute;
  top: 30px;
  left: -28px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--background-color);
  border-radius: 50%;
  background-color: var(--color-accent);
  transform: translateX(-1px);
}

.skills__experience .card:hover {
  transform: translateX(6px);
}

.skills__experience .card__header > h1,
.skills__experience .card__body > p,
.skills__experience .card__footer > p {
  text-align: left;
}

.skills__experience .card__header > h1 {
  font-size: 1.25rem;
  font-weight: 600;
}

.skills__experience .card__body {
  height: auto;
  align-items: flex-start;
  gap: 4px;
}

.skills__experience .card__body > p {
  font-size: 1rem;
}

.skills__experience .card__body > p:last-child {
  color: var(--color-grey);
  font-size: 0.875rem;
}

.skills__experience .card__footer > p {
  max-width: 42ch;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .skills__body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(48px, 6vw, 88px);
  }
}

/* =====================
   WHATSAPP
   ===================== */

.whatsapp {
  position: fixed;
  width: 80px;
  height: 80px;
  bottom: 10px;
  right: 10px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  font-size: 40px;
  z-index: 1000;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.whatsapp > i {
  margin-top: 15px;
}

/* =====================
   FOOTER
   ===================== */

footer {
  background-color: var(--background-color);
  color: var(--color-white);
  width: 100%;
  font-family: var(--text-roboto);
}

.footer__content {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  position: relative;
}

.footer__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

.footer__copyright {
  font-size: 14px;
  color: var(--color-grey);
}

/* =====================
   PARTICLES
   ===================== */

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
}
