@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

html {
  font-size: 62.5%;
}

body {
  width: 100%;
  height: 100vh;
  overflow-x: hidden;
  background-color: black;
  color: white;
}

/* Header */
header {
  margin-top: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 9%;
  background-color: transparent;
  filter: drop-shadow(10px);
  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);
  text-shadow: 0 0 10px #b74b4b
}

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;
}

/* Section */
section {
  min-height: 100vh;
  padding: 5rem 9% 5rem;
}

section .title {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
section .title span {
  color: white;
  font-size: 30px;
  font-weight: 600;
  position: relative;
  padding-bottom: 8px;
}
section .title span::before,
section .title span::after {
  content: "";
  position: absolute;
  height: 3px;
  width: 100%;
  background: #b74b4b;
  bottom: 0;
  left: 0;
}
section .title span::after {
  bottom: -7px;
  width: 70%;
  left: 50%;
  transform: translateX(-50%);
}

/* Home */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8rem;
  background-color: black;
  padding-top: 120px;
}

.home-content h1 {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1.3;
}
.home-content h1 span {
  color: #b74b4b;
  text-shadow: 0 0 10px #b74b4b;
}

.home-content h3 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.home-content p {
  font-size: 1.6rem;
  text-align: justify;
}

.home-img {
  border-radius: 50%;
}
.home-img img {
  position: relative;
  width: 32vw;
  border-radius: 100%;
  box-shadow: 0 0 25px #b74b4b;
  cursor: pointer;
  transition: 0.2s linear;
  margin-top: auto;
  overflow: hidden;
}
.home-img img:hover {
  animation: animate 1.5s ease-in-out infinite;
}

/* Social Icons */
.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: 3rem 1.5rem 3rem 0;
  transition: 0.3s ease;
  color: #b74b4b;
}
.social-icons a:hover {
  color: black;
  transform: scale(1.3) translateY(-5px);
  background-color: #b74b4b;
  box-shadow: 0 0 25px #b74b4b;
}

/* Button */
button {
  padding: 16px 36px;
  margin-top: 20px;
  background-color: #b74b4b;
  color: white;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(183, 75, 75, 0.5s);
}
button a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  height: 100%;
}
button:hover {
  background-color: transparent;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  transform: scale(1.1);
  box-shadow: 0 0 40px #b74b4b;
}

section .button {
  margin: 16px 0;
}
section .button button {
  outline: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 25px;
  font-weight: 400;
  background: #b74b4b;
  color: #fff;
  border: 2px solid transparent;
  transition: all 0.4s ease;
}
section .button button:hover {
  border-color: #b74b4b;
  background-color: #fff;
  color: #b74b4b;
}

/* Keahlian */
.skills {
  background: black;
}
.skills .content {
  padding: 40px 0;
}
.skills .skills-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skills-details .text {
  width: 50%;
}
.skills-details p {
  color: white;
  font-size: 1.6rem;
  text-align: justify;
}
.skills-details .boxes {
  width: 45%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.skills-details .box {
  width: calc(50% - 20px);
  margin: 20px 0;
}
.skills-details .boxes .topic {
  color: #b74b4b;
}
.skills-details .boxes .per {
  color: #b74b4b;
  font-size: 60px;
}
section .topic {
  color: white;
  font-size: 25px;
  font-weight: 500;
}

/* portofolio */
.portofolio {
    padding: 4rem 10%;
    background: black;
    color: #fff;
}

.portofolio .content p {
  font-size: 1.6rem;
  text-align: justify;
  margin-bottom: 2rem;
}

.portofolio .boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portofolio .box {
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portofolio .box:hover {
  transform: translateY(-10px);
  box-shadow: 0 6px 20px rgba(183, 75, 75, 0.4);
}

.portofolio .box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portofolio .box .text {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 1rem;
  color: #b74b4b;
}

.portofolio .box p {
  font-size: 0.95rem;
  color: #aaa;
  margin: 0 1rem 1.5rem 1rem;
  line-height: 1.6;
}

/* education & contact */
.education {
  background: black;
  padding: 4rem 10%;
  color: #fff;
}

.education .content {
  max-width: 1000px;
  margin: 0 auto;
}

.education .content p {
  font-size: 1.6rem;
  text-align: justify;
  margin-bottom: 2rem;
}

.education .boxes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.education .box {
  background: #111;
  padding: 2rem;
  border-left: 4px solid #b74b4b;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education .box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(183, 75, 75, 0.4);
}

.education .box h3 {
  font-size: 1.8rem;
  color: #b74b4b;
  margin-bottom: 0.5rem;
}

.education .box span {
  display: block;
  font-size: 1.4rem;
  color: #aaa;
  margin-bottom: 1rem;
}

.education .box p {
  font-size: 1.5rem;
  color: #ddd;
  line-height: 1.6;
}


.education,
.contact {
  background: black;
}
.contact .content {
  margin: 0 auto;
  padding: 30px 0;
}
.contact .text {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 10px;
  color: white;
  text-align: center;
}
.contact .text p {
  color: white;
  text-align: center;
  font-size: 24px;
}
.contact .whatsapp, .email {
  font-size: 40px;
  vertical-align: middle;
  margin-right: 10px;
}
.contact .whatsapp {
  color: green;
}

/* Footer */
footer {
  background-color: #b74b4b;
  text-align: center;
  padding: 15px 0;
}
footer p {
  color: black;
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 1000px) {
  .home {
    gap: 4rem;
  }
}

@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;
  }

  .home {
    flex-direction: column;
    margin: 5rem 4rem;
  }
  .home .home-content h3 {
    font-size: 2.5rem;
  }
  .home .home-content h1 {
    font-size: 5rem;
  }
  .home-img img {
    width: 70vw;
    margin-top: 4rem;
  }
}