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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #252525;
}

a {
  color: #fff;
  text-decoration: none;
}

/* NAVBAR */
.navbar {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 25px 9%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background-color: rgba(37, 37, 37, 0.8);
  backdrop-filter: blur(5px);
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.2s;
}

@keyframes show-content {
  100% {
    visibility: visible;
    opacity: 1;
  }
}

.navbar .logo {
  font-size: 30px;
  font-weight: 700;
}

.navbar ul {
  display: flex;
}

.navbar ul li {
  list-style: none;
  margin-left: 35px;
}

.navbar ul li a {
  font-size: 20px;
  font-weight: 500;
  transition: 0.5s;
}

.navbar ul li:hover a,
.navbar ul li.active a {
  color: #feee91;
}

/* HOME SECTION */
.home {
  display: flex;
  align-items: center;
  gap: 50px;
  min-height: 100vh;
  padding: 60px 9% 0;
  color: #fff;
  visibility: hidden;
  opacity: 0;
  animation: show-content 1.5s linear forwards;
  animation-delay: 1.6s;
}

.home-info h1 {
  font-size: 55px;
}

.home-info h2 {
  display: inline-block;
  font-size: 32px;
  margin-top: -10px;
}

.home-info h2 span {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 0.7px #feee91;
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-info h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 2px solid #feee91;
  color: #feee91;
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }

  70%,
  90% {
    width: 100%;
  }
}

.home-info p {
  font-size: 16px;
  margin: 10px 0 25px;
}

.home-info .btn-sci {
  display: flex;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 10px 30px;
  background: #feee91;
  border: 2px solid #feee91;
  border-radius: 40px;
  box-shadow: 0 0 10px #feee91;
  font-size: 16px;
  color: #252525;
  font-weight: 600;
  transition: 0.5s;
}

.btn:hover {
  background: transparent;
  color: #feee91;
  box-shadow: none;
}

.home-info .btn-sci .sci {
  margin-left: 20px;
}

.home-info .btn-sci .sci a {
  display: inline-flex;
  padding: 8px;
  border: 2px solid #feee91;
  border-radius: 50%;
  font-size: 20px;
  color: #feee91;
  margin: 0 8px;
  transition: 0.5s;
}

.home-info .btn-sci .sci a:hover {
  background: #feee91;
  color: #252525;
  box-shadow: 0 0 10px #feee91;
}

.home-img .img-box {
  position: relative;
  width: 32vw;
  height: 32vw;
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: conic-gradient(transparent, transparent, transparent, #feee91);
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: #252525;
  border-radius: 50%;
  border: 0.1px solid #252525;
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  display: block;
  width: 99%;
  object-fit: cover;
  mix-blend-mode: lighten;
}

.bars-animation {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.bars-animation .bars {
  width: 100%;
  height: 100%;
  background: #252525;
  transform: translateY(-100%);
  animation: show-bars 0.5s ease-in-out forwards;
  animation-delay: calc(0.1s * var(--i));
}

@keyframes show-bars {
  100% {
    transform: translateY(0%);
  }
}

/* BAGIAN PENDIDIKAN */
.main {
  width: 100%;
  background-color: #1e1e1e;
  padding: 80px 0;
  text-align: center;
}

.main h1 {
  font-size: 50px;
  color: #feee91;
  margin-bottom: 50px;
}

.education-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0 5%;
}

.education-card {
  background-color: #333;
  border-radius: 15px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #444;
}

.education-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(254, 238, 145, 0.2);
}

.education-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #feee91;
}

.education-card h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
}

.education-card p {
  color: #ccc;
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

/* BAGIAN KETERAMPILAN */
.skills-section {
  padding: 80px 9%;
  background-color: #252525;
  color: #fff;
}

.skills-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.skills-content h1 {
  font-size: 50px;
  color: #feee91;
  margin-bottom: 30px;
}

.skills-content h2 {
  font-size: 28px;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #feee91;
  display: inline-block;
  padding-bottom: 5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.skill-item {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.3s, background-color 0.3s, color 0.3s;
}

.skill-item:hover {
  background-color: #feee91;
  color: #252525;
  transform: scale(1.05);
}

.skill-item i {
  font-size: 40px;
}

.abilities-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.abilities-list p {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: fit-content;
}

.abilities-list i {
  color: #feee91;
  font-size: 24px;
}

/* BAGIAN PROYEK */
.project-section {
  padding: 80px 9%;
  background-color: #1e1e1e;
  text-align: center;
}

.project-section h1 {
  font-size: 50px;
  color: #feee91;
  margin-bottom: 50px;
}

.project-carousel .project-card {
  background-color: #333;
  color: #fff;
  border-radius: 15px;
  padding: 25px;
  margin: 0 15px;
  text-align: left;
  border: 1px solid #444;
  transition: transform 0.3s;
  min-height: 350px; /* Menyamakan tinggi kartu */
  display: flex;
  flex-direction: column;
}

.project-carousel .project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 150px; /* Menyamakan tinggi gambar */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 22px;
  color: #feee91;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Tech Tags untuk Project Cards */
.project-tech {
  margin: 10px 0;
}

.tech-tag {
  background: #feee91;
  color: #1a1a2e;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
  display: inline-block;
}

/* Project Links Container */
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.project-link {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-link:hover {
  transform: translateY(-2px);
}

.github-link {
  background: #333;
  color: white;
}

.github-link:hover {
  background: #555;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.demo-link {
  background: #feee91;
  color: #1a1a2e;
}

.demo-link:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(254, 238, 145, 0.4);
}

/* Slick Carousel Dots & Arrows */
.slick-dots li button:before {
  font-size: 12px;
  color: #fff;
}

.slick-dots li.slick-active button:before {
  color: #feee91;
}

.slick-prev:before, .slick-next:before {
  color: #feee91;
  font-size: 25px;
}

/* BAGIAN KONTAK */
.contact-section {
  background-color: #252525;
  text-align: center;
  padding: 70px 9%;
  color: #fff;
}

.contact-section h2 {
  font-size: 40px;
  color: #feee91;
  margin-bottom: 15px;
}

.contact-section p {
  font-size: 18px;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto 30px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  color: #252525;
  background-color: #feee91;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s,
    color 0.3s;
  border: 2px solid #feee91;
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #feee91;
  background-color: transparent;
  color: #feee91;
}

.contact-btn i {
  font-size: 24px;
}

/* FOOTER */
.footer {
  position: relative;
  bottom: 0;
  width: 100%;
  background-color: black;
  padding: 20px 0;
}

.footer .copyright {
  text-align: center;
  font-size: 16px;
  color: white;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-thumb {
  background-color: #feee91;
}

::-webkit-scrollbar-track {
  background-color: rgba(0, 0, 0, 0.6);
  width: 50px;
}

/* NAVBAR RESPONSIVE */

#menu-icon {
  display: none;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 992px) {
  .navbar {
    padding: 25px 5%;
  }

  #menu-icon {
    display: block;
  }

  .navbar ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background-color: rgba(37, 37, 37, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar ul li {
    margin: 15px 0;
    margin-left: 0;
  }

  .navbar ul li a {
    display: block;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .home {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
    gap: 30px;
  }

  .home-info h1 {
    font-size: 40px;
  }
  
  .home-info h2 {
    font-size: 24px;
  }

  .home-info .btn-sci {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .btn {
    padding: 14px 40px;
  }

  .home-info .btn-sci .sci {
    display: flex;
    gap: 10px;
    margin: 0;
  }
  
  .home-info .btn-sci .sci a {
    font-size: 24px;
    padding: 10px;
  }

  .home-info p {
    max-width: 80%;
    margin: 10px auto 25px auto;
  }
  
  .home-img .img-box {
    width: 60vw;
    height: 60vw;
  }
}