:root {
  --bg: #0f0f0f;
  --text: #ffffff;
  --accent: #04ff8c;
  --font-weight-extralight: 200;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
  --font-style-normal: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Poppins, sans-serif;
  font-weight: var(--font-style-normal);
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
}

.desktop__header,
.mobile__header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: linear-gradient(to right, #000000, #1a1a1a);
  padding: min(20px, 5%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.desktop__header {
  display: flex;
  height: 100px;
}

.desktop__header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  width: 100%;
  gap: 20px;
}

.desktop__header nav .logo {
  width: clamp(50px, 7vw, 70px);
}

.desktop__header nav .logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.desktop__header .nav-links {
  display: flex;
  width: 100%;
  max-width: 450px;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.desktop__header .nav-links li {
  list-style: none;
  transition: transform 0.3s ease;
}

.desktop__header .nav-links li:hover {
  transform: scale(1.25);
}

.desktop__header .nav-links li:hover a {
  color: var(--accent);
}

.desktop__header .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  transition: color 0.3s ease;
}

.download__curriculum a {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.download__curriculum a:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 5px 5px 10px rgba(4, 255, 140, 0.5);
  border: 2px solid var(--bg);
}

.mobile__header {
  display: none;
  justify-content: space-between;
  background: transparent;
}

.mobile__header .logo {
  width: clamp(50px, 7vw, 70px);
}

.mobile__header .logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.mobile__header .menu-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(15vw, 8vw, 60px);
  height: clamp(15vw, 8vw, 60px);
  cursor: pointer;
}

.mobile__header .menu-icon img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.mobile__header nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100%;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
  background: linear-gradient(to right, #000000, #1a1a1a);
  z-index: 1000;
  padding: min(20px, 5%);
  box-sizing: border-box;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
}

.mobile__header nav.active {
  display: flex;
}

.mobile__header nav .top__menu__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile__header nav .top__menu__nav .close__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  transition: color 0.3s ease;
}

.mobile__header nav .top__menu__nav .close__menu img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.mobile__header nav .nav-links li {
  list-style: none;
  width: 100%;
  padding: 10px 0;
  border-bottom: 2px solid var(--accent);
}

.mobile__header nav .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  transition: color 0.3s ease;
}

.social__links,
.mobile__header nav .socials .social__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 5vw, 40px);
  list-style: none;
}

.social__links .social__links__button,
.mobile__header nav .socials .social__links__button {
  display: block;
  width: clamp(30px, 6vw, 40px);
  height: clamp(30px, 6vw, 40px);
  transition: transform 0.3s ease;
}

.social__links .social__links__button:hover,
.mobile__header nav .socials .social__links__button:hover {
  transform: scale(1.1);
}

.social__links .social__links__button img,
.mobile__header nav .socials .social__links__button img {
  width: 100%;
  height: 100%;
}

#home {
  display: flex;
  min-height: 100dvh;
  justify-content: center;
  align-items: center;
  padding: 50px min(20px, 5%);
  flex-wrap: wrap;
}

#home h1 {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  color: var(--accent);
  width: 100%;
}

#home .text__profission {
  font-size: clamp(1.7rem, 5vw, 2.2rem);
  width: 100%;
}

#dynamicText {
  display: inline-block;
  min-width: clamp(70px, 15vw, 90px);
  text-align: left;
  color: var(--accent);
}

.hero {
  width: clamp(600px, 45vw, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-top: 8%;
}

.hero .text__2 {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  text-align: left;
  width: 100%;
}

.home__avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: clamp(250px, 40vw, 300px);
  margin-bottom: min(60px, 5%);
  margin-top: 8%;
}

.avatar__wrapper{
  clip-path: url(#avatar-clip);
  position: relative;
  width: 100%; 
  aspect-ratio: 1;
}

.avatar__container {
  width: 100%;
  height: 100%;
  padding: 10px;
  box-shadow: none;
  background: #04ff8c;
}

.avatar__container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#avatar-clip);
}

img-container::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(135deg, #38f8d7, #22d3ee);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  z-index: -1;
}


.hero .button__hero {
  width: clamp(150px, 20vw, 200px);
  margin-top: 60px;
  padding: 10px 20px;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: 5px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 700;
  text-align: center;
}

.hero .social__links {
  margin-top: 40px;
  list-style: none;
}

h2 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 20px;
  border-left: 5px solid var(--accent);
  padding-left: 10px;
}


#about,
#portfolio,
#contact {
  padding: 60px min(20px, 5%);
  max-width: 1024px;
  margin: auto;
}

#about {
  display: flex;
  min-height: 80dvh;
  align-items: center;
}

#about .about__content {
  width: 100%;
  padding: min(20px, 5%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__content__text__image {
  display: flex;
  justify-content: space-between;
  gap: min(20px, 5%);
}

.about__content__text__image p {
  width: clamp(100%, 60vw, 60%);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

#about .about__content_img {
  width: clamp(100%, 40vw, 45%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 10px var(--accent);
  border-radius: 20px;
  border: 3px solid var(--bg);
}

.about__content_img img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.about__content__skills__container {
  width: clamp(50%, 30vw, 100%);
  display: flex;
  justify-content: space-between;
  padding: min(20px, 5%);
  flex-wrap: wrap;
  gap: min(20px, 5%);
}

.about__content__skills__container img,
.about__content__skills__container .javascript__image {
  width: clamp(60px, 10vw, 100px);
  height: clamp(60px, 10vw, 100px);
  background-color: #cbd5e1;
  padding: 5px;
  border-radius: 10px;
}

.about__content__skills__container .javascript__image {
  background-color: #f7df1e;
}

#portfolio {
  width: 100%;
}

.project__container {
  width: 100%;
  padding: 10px 0;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  border-radius: 20px;
  gap: min(40px, 5%);
}

.project__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: clamp(50%, 100vw, 320px);
  height: clamp(250px, 35vh, 250px);
  border: 2px solid var(--accent);
  border-radius: 20px;
  transition: transform .6s ease-in-out, box-shadow 0.5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: min(20px, 5%);
  background-color: #ffffff;
}

.project_wrapper_img-description{
  background-size:contain !important;
  background-color: #ffffff !important;
}

.project__wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0f0f0fd0;
  border-radius: 20px;
}

.project__wrapper:hover {
  transform: scale(1.05);
  box-shadow: 3px 3px 10px var(--accent);
}

.project__wrapper h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  text-align: center;
  color: var(--text);
  z-index: 1;
}

.project__content {
  width: clamp( 50%, 500px,100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project__content .list__image__stack {
  width: clamp(50%, 30vw, 30%);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: min(12px, 5%) 0;
  gap: min(10px, 5%);
}

.list__image__stack figure {
  text-align: center;
}

.list__image__stack li {
  list-style: none;
  display: flex;
  align-items: center;
}

.list__image__stack img {
  width: clamp(40px, 6vw, 30%);
  height: clamp(40px, 6vw, 30%);
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: rotateY(90deg);
  transition: all 0.6s ease;
  transform-origin: left center;
}

.list__image__stack figcaption {
  opacity: 0;
}

.list__stack__generator__IA{
  gap: min(40px, 15%) !important; 
}

.list__stack__generator__IA .logo__stack{
  object-fit: contain;
}

.list__stack__generator__IA img {
  width:50px ;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  padding: 2px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.project__access {
  display: flex;
  justify-content: flex-start;
  gap: min(30px, 5%);
  flex-wrap: wrap;
}

.project__access .access__button {
  width: clamp(150px, 15vw, 180px);
  color: var(--text);
  background-color: var(--bg);
  border: 2px solid var(--text);
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.project__access .access__button img {
  height: clamp(20px, 4vw, 30px);
  margin-right: 5px;
  filter: invert(1);
}

.project__access .access__button:hover {
  background-color: var(--accent);
  color: var(--bg);
  box-shadow: 5px 5px 10px var(--accent);
  border: 2px solid var(--bg);
}

.project__access .access__button:hover img {
  filter: none;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
textarea {
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

button {
  width: clamp(100px, 20vw, 20%);
  padding: 10px;
  background: var(--accent);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  font-size: clamp(1rem, 2vw, 1.25rem);
}

footer {
  text-align: center;
  padding: 20px;
  background: #111;
  font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

@media (max-width: 890px) {
  .desktop__header {
    display: none;
  }

  .mobile__header {
    display: flex;
    background: transparent;
  }

  #home {
    flex-direction: column-reverse;
  }

  .hero {
    align-items: center;
    width: 100%;
    padding: 0;
    margin-top: 20px;
  }

  .hero h1,
  .hero .text__profission,
  .hero .text__2 {
    text-align: center;
    width: 100%;
  }

  .hero .social__links {
    margin-top: 20px;
  }

  .hero .button__hero {
    margin-top: 30px;
  }

  #about {
    flex-direction: column;
    height: auto;
    min-height: 70vh;
  }

  .about__content {
    padding: 0;
  }

  .about__content__text__image {
    flex-direction: column;
  }

  .about__content__text__image p {
    width: 100%;
  }

  #about .about__content_img {
    width: 100%;
    margin-top: 30px;
  }

  .about__content__skills__container {
    width: 100%;
    margin-top: 10px;
  }

  .project__container {
    flex-direction: column;
    align-items: center;
  }

  .project__content {
    padding: max(20px, 5%);
  }
}