@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;
  font-family: "Poppins", sans-serif;
  text-decoration: none;
  border: none;
  outline: none;
}

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

body {
  width: 100%;
  background-color: #000;
  color: #fff;
  overflow-x: hidden; /* allow vertical scroll */
}

/* ================= HEADER / NAVBAR ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 9%;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 3.5rem;
  font-weight: 800;
  color: #f14902;
  transition: 0.3s ease;
}

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

nav {
  display: flex;
  align-items: center;
}

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

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

#menu-btn {
  font-size: 2.8rem;
  color: #f14902;
  cursor: pointer;
  display: none;
}

section {
  min-height: 100vh;
  padding: 12rem 9% 5rem; /* top padding prevents overlap with fixed header */
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: #000;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

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

span {
  color: #f14902;
}

.home-img img {
  width: 32vw;
  max-width: 350px;
  border-radius: 50%;
  transition: 0.3s ease;
}
.home-content ul,
li {
  list-style: none;
  font-size: 1.5rem;
  margin: 1rem 0;
}
.home-img img:hover {
  transform: scale(1.05);
}
.home-content a {
  display: inline-flex;

  transition: 0.3s ease;
}
.home-content a:hover {
  border-bottom: 0.4rem solid #f14902;
}
.education-icons img {
  border-radius: 50%;
}
.education-content p {
  font-size: 1.8rem;
  margin-top: 1rem;
  color: #ddd;
}
.education-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skills {
  background-color: #000;
}

.skills h1 {
  font-size: 5rem;
  text-align: center;
}

.skills-timeline {
  position: relative;
  max-width: 1000px;
  margin: 5rem auto 0;
  padding-left: 4rem;
}

.skills-timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 3px;
  height: 100%;
  background: #f14902;
}

.skill-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 4rem;
}
hr {
  color: #f14902;
}
.skill-icon {
  position: absolute;
  left: -5px;
  top: 0;
  width: 40px;
  height: 40px;
  background: #000;
  border: 3px solid #f14902;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f14902;
  font-size: 1.8rem;
  transition: 0.3s ease;
}

.skill-content h3 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: #f14902;
}

.skill-content p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #ddd;
}
#job {
  font-size: 3rem;
}
.skill-item:hover .skill-icon {
  background: #f14902;
  color: #000;
  transform: scale(1.1);
}

.skill-item:hover .skill-content h3 {
  color: #fff;
  border-bottom: 0.3rem solid #f14902;
}

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

.social-icons a:hover {
  background-color: #f14902;
  border-color: #f14902;
  transform: scale(1.2);
}

.typing-text {
  font-size: 34px;
  font-weight: 600;
  min-width: 280px;
}
.typing-text span {
  position: relative;
}
.typing-text span::before {
  content: "Computer Programmer";
  color: #f14902;
  animation: words 8s infinite;
}
.typing-text span::after {
  content: "";
  position: relative;
  width: calc(100%+8px);
  height: 100%;
  background-color: #000000;
  border-left: 3px solid #000000;
  right: -8;
  animation: cursor 0.7s infinite;
}
@keyframes cursor {
  to {
    border-left: 3px solid #f14902;
  }
}
@keyframes words {
  0%,
  20% {
    content: "Programmer";
  }
  21%,
  40% {
    content: "Web Developer";
  }
  41%,
  60% {
    content: "Java Developer";
  }
  61%,
  80% {
    content: "Software Engineer";
  }
  81%,
  100% {
    content: "Tech Enthusiast";
  }
}

@media (max-width: 995px) {
  #menu-btn {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 35%;

    background: rgba(238, 184, 149, 0.8);
    border-left: 3px solid #f14902;
    padding: 2rem;
    display: none;
    flex-direction: column;
  }

  nav.active {
    display: flex;
  }

  nav a {
    color: #000000;
    margin: 2rem 0;
    font-size: 2rem;
  }

  .home {
    flex-direction: column;
    gap: 4rem;
    text-align: center;
  }

  .home-img img {
    width: 60vw;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }

  .skills-timeline {
    padding-left: 2rem;
  }

  .skill-item {
    padding-left: 3rem;
  }
}
