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

body {
  font-family: "Roboto Condensed", sans-serif;
  background-color: #32313a;
}

html {
  scroll-behavior: smooth;
}

.navbar {
  width: 100%;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #32313a;
  padding: 20px 50px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  z-index: 20;
}

.logo {
  font-size: 24px;
  color: white;
}

nav {
  position: relative;
  border-radius: 8px;
  font-size: 0;
}
nav a {
  font-size: 15px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
  line-height: 50px;
  position: relative;
  z-index: 1;
  display: inline-block;
  text-align: center;
}
nav .animation {
  position: absolute;
  height: 100%;
  /* height: 5px; */
  top: 0;
  /* bottom: 0; */
  z-index: 0;
  background: #1abc9c;
  border-radius: 8px;
  transition: all 0.5s ease 0s;
}
nav a:nth-child(1) {
  width: 100px;
}
nav .start-home,
a:nth-child(1):hover ~ .animation {
  width: 100px;
  left: 0;
}
nav a:nth-child(2) {
  width: 110px;
}
nav a:nth-child(2):hover ~ .animation {
  width: 110px;
  left: 100px;
}
nav a:nth-child(3) {
  width: 100px;
}
nav a:nth-child(3):hover ~ .animation {
  width: 100px;
  left: 210px;
}
nav a:nth-child(4) {
  width: 160px;
}
nav a:nth-child(4):hover ~ .animation {
  width: 160px;
  left: 310px;
}
nav a:nth-child(5) {
  width: 120px;
}
nav a:nth-child(5):hover ~ .animation {
  width: 120px;
  left: 470px;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100vh;
  border-bottom: 2px solid #43414c;
}

.opening {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20vh;
  flex-direction: column;
  flex: 1;
}

.opening h2 {
  position: relative;
  color: #43414c;
  font-size: 50px;
  margin-top: 5px;
  margin-bottom: 15px;
  -webkit-text-stroke: 0vw #525159;
  text-transform: uppercase;
  overflow: hidden;
}

.opening h2::before {
  position: absolute;
  content: attr(data-text);
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: #3bba8c;
  -webkit-text-stroke: 0 #32313a;
  border-right: 2px solid #3bba8c;
  overflow: hidden;
  white-space: nowrap;
  animation: animate 6s linear infinite;
}

@keyframes animate {
  0%,
  10% {
    width: 0;
  }
  70%,
  90% {
    width: 100%;
  }
}

.opening p {
  font-size: 30px;
  color: rgb(240, 237, 231);
}

.button-start {
  margin-top: 30px;
  padding: 10px 20px;
  background-color: #32313a;
  color: white;
  border-radius: 15px;
  cursor: pointer;
  text-align: center;
  font-size: 20px;
}

.button-start:hover {
  background-color: #3bba8c;
  transition: 0.2s ease-in;
  transform: translateY(-5px);
}

.button-start p {
  margin: 0;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
  height: 100vh;
  color: white;
  /* border: 2px solid red; */
}

.profile-picture {
  display: flex;
  /* flex: 1; */
  justify-content: right;
  /* margin-right: 10px; */
  align-items: center;
  height: 100vh;
  width: 65vh;
  /* border: 2px solid red; */
}

.profile-picture img {
  width: 250px;
  height: 350px;
  border-radius: 10%;
  object-fit: cover;
  border: 5px solid #3bba8c;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 20vw;
  height: 25vw;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.profile-picture img:hover {
  transform: translateY(-5px);
}

.about-me {
  display: flex;
  flex: 2;
  padding-left: 50px;
  padding-right: 250px;
  justify-content: center;
  /* align-items: center; */
  flex-direction: column;
  /* border: 2px solid blue; */
  height: 100vh;
}

.about-me h2 {
  font-size: 40px;
  margin-bottom: 15px;
}

.about-me p {
  font-size: 20px;
  text-align: justify;
}

.about-me .cv {
  display: inline-block;
  text-align: center;
  padding: 15px 30px;
  background-color: #3bba8c;
  color: white;
  width: 200px;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.about-me .cv:hover {
  background-color: #32a67b;
  transform: translateY(-2px);
}

.skill {
  height: 100vh;
  color: white;
  border-top: 2px solid #43414c;
}

.skill-header {
  font-size: 30px;
  text-align: center;
  color: #fff;
  padding: 1rem;
  position: relative;
  margin-bottom: 50px;
  margin-top: 100px;
}

.skill-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 4px;
  width: 100px;
  background-color: #32a67b;
}

.skill-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
  align-items: center;
  text-align: center;
  grid-gap: 1rem;
  padding: 1rem 80px;
  font-size: 1.2rem;
}

.skill-box {
  padding: 1rem;
  color: #ddd;
  cursor: pointer;
  /* border: 2px solid red; */
}

.skill-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
}

.skill-title h3 {
  color: white;
  margin: 0.5rem;
}

.skill-img {
  width: 90px;
  height: 90px;
  position: relative;
  border-radius: 45px;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skill-icon {
  width: 50px;
  z-index: 2;
}

.contact {
  height: 100vh;
  color: white;
  /* border: 2px solid red; */
}

.navbar .nav-link.active {
  color: #3bba8c;
  font-weight: bold;
}
