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

:root {
  --primary-color: #E14D2A;
  --primary-color-dark: #F2F2F2;
  --body-bg: #ecf0f1;
  --body-color: #555;
  --box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 16px 0 rgba(0,0,0,0.2);
  --scrollbar-width: 10px;
  --nav-menu-bg: ##fafafab0;
  /* --nav-menu-bg: #e4dedeb0; */
}

.dark-mode:root {
  --body-bg: #212529;
  --body-color: #899095;
  --nav-menu-bg: #212529b0;
  /* --nav-menu-bg: #31353ab0; */
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

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

body {
  background-color: var(--body-bg);
  color: var(--body-color);
  background-size: cover;
  height: 92vh;
}

body.active {
  overflow-y: hidden;
}

::-webkit-scrollbar {
  width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8a311d;
}

a {
  text-decoration: none;
  color: var(--body-color);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8vh;
  padding-top: 20px;
  max-width: 1280px;
  margin: 0 auto;
  background-color: var(--body-bg);
  z-index: 2000;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  margin: 5px auto;
  background-color: #fff;
  transition: all .3s ease-in-out;
}

.nav-menu {
  display: flex;
  gap: 60px;
  list-style-type: none;
  font-size: 1.6rem;
}

.nav-link {
  cursor: pointer;
  letter-spacing: 4px;
}

.nav-theme-btn button {
  background-color: transparent;
  cursor: pointer;
}

.nav-theme-btn button img {
  width: 30px;
}

html.dark-mode .nav-theme-btn button img {
  filter: invert(1);
}

.nav-link::after {
  content: '';
  display: block;
  border-bottom: 3px solid var(--primary-color);
  border-radius: 3px;
  margin-top: 2px;
  transform: scaleX(0);
  transform-origin: 0% 50%;
  transition: transform 250ms ease-in-out;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-menu.active .nav-link:hover::after {
  transform: scaleX(0);
}

.nav-link.register {
  display: none;
}

.logo {
  font-size: 2.4rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.contact-me-btn {
  border: none;
  background: var(--primary-color);
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 800;
  transition: 250ms ease-in-out;
  letter-spacing: 4px;
}

.contact-me-btn:hover {
  cursor: pointer;
  transform: scale(1.05);
}

.contact-me-btn-mobile {
  display: none;
  border: none;
  background: var(--primary-color);
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 800;
  transition: 250ms ease-in-out;
  letter-spacing: 4px;
  transform: translateY(60px);
  font-size: 1.35em;
  color: #000;
}

.contact-container {
  height: 92vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.contact {
  display: flex;
  width: 80%;
  height: 80%;
  border-radius: 5px;
}

.text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.text h1 {
  font-size: 5.6rem;
}

.text-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  gap: 20px;
}

.presentation-with-name {
  display: flex;
  gap: 15px;
}

.developer-name {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  background-image: linear-gradient(90deg, rgba(170,145,163,1) 0%, rgba(231,76,60,1) 44%, rgba(231,76,60,1) 75%);
}

.photo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.photo-content {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

/* .photo-content::after {
  content: attr(age);
  text-align: center;
  font-size: 1.8rem;
  font-weight: bolder;
  margin-top: 10px;
  display: block;
  transform: scaleY(0);
  transition: transform 250ms ease-in-out;
} */

.photo-content:hover::after {
  transform: scaleY(1);
}

.photo-content img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.dev-age {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bolder;
  margin-top: 10px;
}

.social-medias {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-left: 15px;
}

.social-media {
  font-size: 4.0rem;
  cursor: pointer;
  color: var(--body-color);
  transition: 150ms ease-in-out;
}

.github:hover {
  color: #333;
}

.linkedin:hover {
  color: rgb(88, 88, 184);
}

.facebook:hover {
  color: rgb(46, 46, 192);
}

.instagram:hover {
  color: rgb(216, 66, 91);
}

.about-me-container,
.skills-container,
.projects-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

.about-me {
  display: flex;
  width: 80%;
  height: 80%;
  flex-direction: column;
  /* border: 1px solid red; */
}

.about-me h1 {
  font-size: 4rem;
  letter-spacing: 4px;
  text-align: center;
}

.about-me-image-and-content {
  display: flex;
  height: 100%;
}

.about-me-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
  flex-direction: column;
}

.about-me-image-content {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

.about-me-image-content img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  transition: 500ms ease;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

.about-me-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 100%;
}

.about-me-content p {
  font-size: 2rem;
}

.skills {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: 80%;
  flex-direction: column;
}

.skills h1 {
  position: relative;
  top: -180px;
  font-size: 4rem;
  letter-spacing: 4px;
}

.skills-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--body-bg);
  border-radius: 5px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(1.5px);
  transition: 350ms ease;
  position: relative;
}

html.dark-mode .skill-image {
  background-color: #35393c;
}

.skill-image .skill-name {
  position: absolute;
  font-weight: bolder;
  font-size: 2.0rem;
  transition: 300ms ease-in-out;
  opacity: 0;
}

.skill-image:hover .skill-name {
  transform: translateY(-90px);
  opacity: 1;
}

.skill-individual-name {
  font-size: 2rem;
  font-weight: bold;
}

.skill-image:hover {
  transform: translateY(-10px);
}

.skill-image:hover img {
  filter: grayscale(0);
}

.skill-image img {
  width: 80%;
  height: 80%;
  filter: grayscale(100%);
  transition: 350ms ease;
}

.projects {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  
}
.projects > h1 {
  position: relative;
  top: -100px;
  font-size: 4rem;
  letter-spacing: 4px;
}

.projects-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.projects-content .project-card {
  width: 20em;
  height: 10em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  backdrop-filter: blur(5px);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: var(--box-shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
  overflow: hidden;
  font-size: 1.6rem;
}

.projects-content .project-card:hover {
  box-shadow: var(--box-shadow-hover);
}

.projects-content .project-card img {
  border-radius: 5px 5px 0 0;
  width: 100%;
}

.card-container {
  padding: 2px 16px;
}

.project-card:hover .card-container h1 {
  letter-spacing: 8px;
}

.card-container h1 {
  transform: rotate(-45deg);
  letter-spacing: 4px;
  transition: 200ms ease-in-out;
  background-color: var(--primary-color);
  padding: 10px;
  width: 15em;
  text-align: center;
  color: #333;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  background: #111;
  height: auto;
  width: 100%;
  padding: 30px 0;
  color: var(--body-color);
  font-size: 1.6rem;
}

.footer .languages {
  margin-top: 5px;
}

.footer .languages button:nth-child(2) {
  margin-left: 10px;
}

.footer .languages .language {
  background-color: transparent;
  cursor: pointer;
}

.footer .languages .language img {
  width: 50px;
  height: 35px;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background-color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  transition: 500ms ease;
  opacity: 0;
  z-index: 100;
  transform: translateY(100px);
}

.back-to-top.show-btn {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
}

@media screen and (max-width: 1400px) {
  nav {
    max-width: 1000px;
  }

  .contact-container {
    max-width: 1000px;
  }
}

/* @media screen and (max-width: 1200px) {} */

@media screen and (max-width: 992px) {}

@media screen and (max-width: 768px) {
  .contact-me-btn {
    display: none;
  }

  .contact-me-btn-mobile {
    display: block;
  }

  .nav-link.register.active {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    transform: translateX(8px);
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  html .hamburger span {
    background-color: black;
  }

  html.dark-mode .hamburger span {
    background-color: white;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }

  .nav-menu {
    position: fixed;
    right: -100%;
    top: 8vh;
    gap: 0;
    border-radius: 0 0 20px 20px;
    background-color: var(--nav-menu-bg);
    text-align: center;
    flex-direction: column;
    width: 100%;
    transition: .3s;
    z-index: 1000;
    height: 100%;
    backdrop-filter: blur(3px);
  }

  .nav-link {
    margin: 16px 0;
  }

  .nav-menu.active {
    right: 0;
  }

  #developed-by {
    margin-left: 20px;
  }
}

@media screen and (max-width: 576px) {
  html {
    font-size: 54%;
  }

  nav {
    margin: 0 30px; 
  }

  .text h1 {
    font-size: 4.6rem;
  }

  .contact-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 30px;
  }

  .photo-content {
    width: 30rem;
    height: 30rem;
  }

  .about-me-content {
    width: 100%;
  }

  .about-me-image-content {
    width: 20rem;
    height: 20rem;
    margin-top: 40px;
  }

  .presentation-with-name {
    margin: 0 auto;
  }

  .about-me-image-and-content {
    flex-direction: column;
    align-items: center;
  }

  .skills-content {
    flex-wrap: wrap;
    /* row-gap: 20px; */
    justify-content: center;
  }

  .skills {
    justify-content: space-evenly;
  }

  .skills h1 {
    top: 0;
  }

  .footer {
    flex-direction: column;
  }
}