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

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

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  background-color: black;
  color: white;
}

/* ==== HEADER & NAV ==== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

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

nav a {
  font-size: 1.8rem;
  color: white;
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
  border-bottom: 3px solid #b74b4b;
}

@media (max-width: 995px) {
  nav {
    position: absolute;
    display: none;
    top: 0;
    right: 0;
    width: 40%;
    border-left: 3px solid #b74b4b;
    border-bottom: 3px solid #b74b4b;
    border-bottom-left-radius: 2rem;
    padding: 1rem;
    background-color: #161616;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.1);
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    font-size: 2rem;
    margin: 3rem 0;
  }

  nav a:hover,
  nav a.active {
    padding: 1rem;
    border-radius: 0.5rem;
    border-bottom: 0.5rem solid #b74b4b;
  }
}

/* ==== SECTION ==== */
section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

/* ==== CONTACT ==== */
.about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding-top: 12rem;
  padding-bottom: 5rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content .about-img {
  text-align: center;
  margin-bottom: 2rem;
}

.about-content .about-img img {
  width: 50vw;
  max-width: 250px;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px #b74b4b;
  object-fit: cover;
}

/* ==== Typing Effect ==== */
.about-content h1.typing-effect {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #b74b4b;
  animation: typing 2.5s steps(30, end), blink-caret 0.75s step-end 3;
  font-size: 4rem;
  color: #b74b4b;
  margin-bottom: 2rem;
  display: inline-block;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  0%, 100% { border-color: #b74b4b; }
  50% { border-color: transparent; }
}

/* ==== Fade-in Effect ==== */
.about-content p.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-content p.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== Social Icons ==== */
.social-icons {
  margin: 2rem 0;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background-color: transparent;
  border: 0.2rem solid #b74b4b;
  font-size: 2rem;
  border-radius: 50%;
  margin: 1rem;
  transition: 0.3s ease;
  color: #b74b4b;
}

.social-icons a:hover {
  color: black;
  background-color: #b74b4b;
  transform: scale(1.2);
  box-shadow: 0 0 20px #b74b4b;
}

/* ==== Responsive ==== */
@media (max-width: 995px) {
  .about-content {
    text-align: center;
  }

  .about-content .about-img img {
    width: 70vw;
    max-width: 200px;
  }

  .about-content h1.typing-effect {
    font-size: 3.2rem;
  }

  .about-content p.fade-in {
    font-size: 1.4rem;
  }
}
