html {
  --font-primary: "Poppins", sans-serif;
  --font-secondary: "Raleway", sans-serif;

  /* Dark Theme Colors */
  --bg-color: #000000;
  --text-color: #ffffff;
  --primary-color: #9443d8;
  --primary-color-darker: #7a37b3;
  --primary-color-shadow: #9543d885;
  --surface-color: rgba(27, 26, 40, 0.75);
  --surface-border-color: rgba(255, 255, 255, 0.1);
  --text-secondary-color: #c4c4c4;

  color: var(--text-color);
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  background-image: radial-gradient(
      circle 600px at var(--mouse-x, -1000px) var(--mouse-y, -1000px),
      rgba(255, 255, 255, 0.122),
      transparent 80%
    ),
    linear-gradient(150deg, var(--bg-color), #9e00ff);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body {
  font-family: var(--font-primary);
  position: relative;
  background-color: transparent;
}

body.body-no-scroll {
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 15px;
}

.header .logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  border: 2.5px solid var(--text-color);
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  line-height: 58px;
  font-family: var(--font-secondary);
  transition: 0.2s;
}

.header a:hover .logo {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.header .menu .menu-list {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header .menu li a {
  font-size: 20px;
  text-transform: capitalize;
  padding: 10px 20px;
  transition: 0.2s;
}

.header .menu .dropdown:hover > a {
  background-color: var(--primary-color);
  color: var(--text-color);
  border-radius: 12px 12px 0 0;
}

.header .menu .projects-li:hover > a {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50px;
}

.header .menu .dropdown {
  position: relative;
}

.header .menu .dropdown > a i {
  font-size: 14px;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.header .menu .dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px); 
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-color);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid var(--surface-border-color);
  border-radius: 0px 0px 12px 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  width: 183px;
  padding: 8px;
  list-style: none;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow: hidden;
}

.header .menu .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.header .menu .dropdown:hover > a i {
  transform: rotate(180deg);
}

.header .menu .dropdown-menu li a,
.header .menu .dropdown-menu li button {
  padding: 12px 16px;
  display: block;
  white-space: nowrap;
  font-size: 16px;
  text-transform: none;
  transition: background-color 0.2s ease;
  width: 100%;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.header .menu .dropdown-menu li a:hover,
.header .menu .dropdown-menu li button:hover {
  background-color: var(--primary-color);
}

.header,
.home {
  margin: 0 auto;
  max-width: 1120px;
}

.home {
  display: flex;
  min-height: calc(100vh - 125px);
  align-items: center;
  gap: 40px;
  justify-content: space-between;
}

.home .informations {
  display: flex;
  flex-direction: column;
  gap: 15px;
  letter-spacing: 2px;
  padding: 0 15px;
  max-width: 60%;
}

.home .informations .informations {
  max-width: 100%;
}

.home .informations h1 {
  font-family: var(--font-secondary);
  font-size: 45px;
  margin-bottom: 20px;
}

.home .informations p {
  font-family: var(--font-secondary);
  font-size: 20px;
  margin-bottom: 8px;
}

.home .social-media {
  display: flex;
  gap: 20px;
}

.home .social-media li a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--text-color);
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  text-align: center;
}

.home .social-media li a i {
  font-size: 26px;
  color: var(--text-color);
  position: relative;
  z-index: 2;
  transition: color 0.4s ease-in-out;
  text-align: center;
}

.home .social-media li a::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: top 0.4s ease-in-out;
}

.home .social-media li a:hover {
  border-color: transparent;
}

.home .social-media li a:hover::before {
  top: 0;
}

.home .social-media li:nth-child(1) a::before {
  background: #0077b5;
}

.home .social-media li:nth-child(2) a::before {
  background-color: #dd4b39;
}

.home .social-media li:nth-child(3) a::before {
  background-color: #272626;
}

.home .social-media li:nth-child(4) a::before {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
}

.home .photo-container .foto {
  max-width: 400px;
  border-radius: 50%;
}

.home .photo-container img {
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.home .foto.sombra-interna {
  background: linear-gradient(to right, #8a35c8, #18c063, #00eea2);
  background-size: 180% 180%;
  animation: gradient-animation 5s ease infinite;
}

.projects {
  padding: 70px 0 70px;
  margin: 0 auto;
  max-width: 1400px;
}

.projects .title {
  text-align: center;
  padding: 60px 0;
  font-size: 45px;
  font-weight: 500;
  text-transform: uppercase;
}

.projects .projects-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}

.projects .project {
  max-width: 420px;
  max-height: none;
  min-height: 400px;
  background-color: #0c0c0c;
  border-radius: 12px;
  overflow: hidden;
  display: none;
  position: relative;
  border: 1px solid #2e2e2e;
  transition: transform 0.2s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.projects .project:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.projects .project.active {
  display: flex;
}

.projects .project a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.projects .project img {
  height: auto;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0px;
  background-color: #111;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.projects .project .project-content {
  background-color: #ffffff;
  color: #111;
  padding: 20px;
  flex-grow: 1;
}

.projects .project .project-content h3 {
  background-color: transparent;
  position: static;
  padding: 0;
  font-size: 1.4rem;
  margin-bottom: 18px;
  color: #111;
  text-transform: capitalize;
}

.projects .project .project-information {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  padding: 18px;
  background: linear-gradient(to top, rgba(12, 12, 12, 1) 20%, rgba(12, 12, 12, 0.7) 60%, transparent 100%);
  justify-content: flex-end;
}

.projects .project .technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  row-gap: 17px;
  justify-content: left;
}

.projects .project .technologies li span {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: background-color 0.3s ease;
}

.projects .project .technologies li span:hover {
  background-color: var(--primary-color-shadow);
  color: #fff;
}

.projects .project:hover .project-information {
  opacity: 1;
}

.projects .btn-show-projects {
  background: none;
  border: 1px solid var(--text-color);
  border-radius: 15px;
  width: 180px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.btn-show-projects {
  color: white;
}

.projects .btn-show-projects:hover {
  background-color: var(--primary-color);
  transition: 0.3s;
}

.projects .btn-show-projects.remover {
  display: none;
}

.certificates, .skills {
  background-color: rgba(22, 20, 37, 0.649);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.045);
  padding: 90px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.skills {
  margin-bottom: 5px;
}

.skills .title,
.certificates .title,
.form-container .title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 45px;
  font-weight: 500;
  text-transform: uppercase;
  filter: drop-shadow(0 0 10px var(--primary-color-shadow));
}

.certificates .title {
  filter: none;
  font-size: 40px;
  margin-bottom: 8px;
}

.certificates p {
  text-align: center;
  font-size: 25px;
  margin-bottom: 15px;
}


.skills .container-skills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: auto;
  flex-direction: row;
  flex: 1;
  flex-basis: auto;
  gap: 20px;
  border-radius: 14px;
  padding: 25px;
  background: var(--surface-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--surface-border-color);
}

.skills .container-skills:hover {
  animation: subtle-shake 0.4s ease-in-out;
}

.skills .container-skills .skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 120px;
  text-align: center;
  margin: 15px 0px;
  transition: transform 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(20px);
}

.skills .container-skills .skill-item img {
  width: 80px;
  height: 80px;
  transition: filter 0.3s ease-in-out;
}

.skills .container-skills .skill-item span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary-color);
  transition: color 0.3s ease;
}

.skills.in-view .container-skills .skill-item {
  animation: fadeInUp 0.6s ease forwards;
}

.skills.in-view .container-skills .skill-item:nth-child(1) { animation-delay: 0.1s; }
.skills.in-view .container-skills .skill-item:nth-child(2) { animation-delay: 0.2s; }
.skills.in-view .container-skills .skill-item:nth-child(3) { animation-delay: 0.3s; }
.skills.in-view .container-skills .skill-item:nth-child(4) { animation-delay: 0.4s; }
.skills.in-view .container-skills .skill-item:nth-child(5) { animation-delay: 0.5s; }
.skills.in-view .container-skills .skill-item:nth-child(6) { animation-delay: 0.6s; }

.skills .container-skills .skill-item:hover {
  transform: scale(1.1);
}

.skills .container-skills .skill-item:hover img {
  filter: drop-shadow(0 0 10px var(--primary-color-shadow));
}

.skills .container-skills .skill-item:hover span {
  color: #fff;
}

.certificates-container {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  margin: auto;
  position: relative;
}

.certificates-slide {
  display: flex;
  animation: slide 78s linear infinite;
}

.certificates-slide a {
  cursor: pointer;
  flex-shrink: 0;
  padding: 25px;
  margin: 0px 15px;
  width: 400px;
  height: 300px;
  background-color: #f3f3f3f4;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.certificates-slide a img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.certificates-container:hover .certificates-slide {
  animation-play-state: paused;
}

.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  background: rgb(27, 26, 26);
  padding: 65px 20px;
}

.form-container .title {
  margin: 0;
}

.form {
  display: flex;
  flex-direction: column;
  
  gap: 15px;
  max-width: 600px;
  margin: auto;
  width: 100%;
}

.form label {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 5px;
}

.form input,
.form textarea {
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border-color);
  border-radius: 8px;
  color: var(--text-color);
  font-family: var(--font-primary);
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form input::placeholder,
.form textarea::placeholder {
  color: #777;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color-shadow);
}

.form textarea {
  resize: vertical;
  min-height: 120px;
}

.form .btn-submit {
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  border-radius: 15px;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.form .btn-submit:hover {
  background-color: var(--primary-color-darker);
  transform: translateY(-2px);
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00bf82;
  color: #fff;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  font-size: 20px;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  visibility: hidden;
  align-items: center;
  transform: translateY(15px);
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

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

@keyframes subtle-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-0.80deg); }
  50% { transform: rotate(1deg); }
  75% { transform: rotate(-0.80deg); }
}