/* ===== Reset & Font ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ===== Global (REVISI: Scroll-Padding) ===== */
html,
body {
  height: 100%;
  background-color: #0a1e2e;
  color: #ededed;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 100px;
}

/* ===== Header & Navigation (Desktop Default) ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: rgba(10, 30, 46, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid #0ef;
}

.logo {
  font-size: 25px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 1; /* Diubah dari 0 agar terlihat saat loading */
  animation: slideRight 1s ease forwards;
}

/* Menyembunyikan ikon hamburger di desktop */
#menu-icon {
  font-size: 36px;
  color: #0ef;
  cursor: pointer;
  display: none;
}

/* Gaya link navbar di desktop (horizontal) */
.navbar a {
  display: inline-block;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 35px;
  transition: 0.3s;
  opacity: 1;
  animation: none;
}

.navbar a:hover,
.navbar a.active {
  color: #0ef;
}

/* ===== HOME SECTION ===== */
.home {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #0a1e2e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 10% 60px;
  gap: 60px;
}

.home-content {
  max-width: 600px;
  flex: 1;
}

.home-content h3 {
  font-size: 28px;
  font-weight: 700;
  opacity: 0;
  animation: slideBottom 1s ease forwards;
  animation-delay: 0.7s;
}

.home-content h3:nth-of-type(2) {
  margin-bottom: 25px;
  animation: slideTop 1s ease forwards;
  animation-delay: 1s;
}

.home-content h1 {
  font-size: 56px;
  font-weight: 700;
  text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 1s;
}

.home-content h3 span {
  color: #0ef;
}

.home-content p {
  font-size: 18px;
  line-height: 1.6;
  margin-top: 10px;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 1.2s;
}

/* ===== Social Media Icons ===== */
.home-sci {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

.home-sci a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 2px solid #0ef;
  border-radius: 50%;
  color: #0ef;
  font-size: 20px;
  text-decoration: none;
  transition: 0.5s;
  opacity: 0;
  animation: slideLeft 0.1s ease forwards;
  animation-delay: calc(0.5s * var(--i));
}

.home-sci a:hover {
  background: #0ef;
  color: #081b29;
  box-shadow: 0 0 15px #0ef, 0 0 30px #0ef;
}

/* ===== Tombol (More About Me) ===== */
.btn-box {
  display: inline-block;
  padding: 14px 32px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 45px;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 2s;
  box-shadow: 0 0 10px #0ef, 0 0 30px #0ef;
  transition: 0.3s ease;
}

.btn-box:hover {
  box-shadow: 0 0 60px #0ef, 0 0 100px #0ef;
  transform: translateY(-3px);
}

/* ===== Image (kanan) ===== */
.home-img {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-img img {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: 2;
  border: 4px solid #0ef;
  animation: float 3s ease-in-out infinite;
  object-fit: cover;
}

.home-img::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0ef, #a020f0);
  z-index: 1;
  filter: blur(25px);
  animation: rotateGlow 8s linear infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 10%;
  gap: 3rem;
}

.about-img {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  opacity: 0;
  animation: slideRight 1s ease forwards;
  animation-delay: 0.3s;
}

.about-img img {
  max-width: 420px;
  width: 70%;
  height: auto;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  opacity: 0;
  animation: slideLeft 1s ease forwards;
  animation-delay: 0.6s;
}

.about-text h2 {
  font-size: 60px;
  margin-bottom: 15px;
}

.about-text h2 span {
  color: #0ef;
}

.about-text h4 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 1.7;
  margin: 15px 0 30px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  color: aliceblue;
  margin-bottom: 4rem;
}

/* ===== My Services ===== */
.container {
  padding: 90px 10%;
}

#services {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

.sub-title {
  text-align: center;
  font-size: 60px;
  padding-bottom: 30px;
  margin-top: 50px;
}
.sub-title span {
  color: #0ef;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 50px;
  animation: slideRight 2s ease forwards;
}

.services-list div {
  background-color: transparent;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: 0.5s;
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
}

.services-list div:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px #0ef, 0 0 50px #0ef;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
  color: #0ef;
}

.services-list div h2 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.services-list div p {
  font-size: 16px;
  line-height: 1.6;
  color: #ddd;
}

.read {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  text-decoration: none;
  font-weight: 600;
  margin-top: 20px;
  box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
  animation: slideTop 2s ease forwards;
  animation-delay: 0.1s;
}

.read:hover {
  box-shadow: 0 0 50px #0cf, 0 0 25px #0cf, 0 0 100px #0cf;
}

.services-list div:hover {
  transform: translateY(-10px);
}

/* ======================================================== */
/* ===== SKILLS SECTION (Progress Bar & Radial) ===== */
/* ======================================================== */

.skills {
  padding: 0 10% 120px;
  display: block;
}

.skills-content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: flex-start;
}

.container1 {
  width: 100%;
  padding: 0;
  margin-bottom: 0;
}

.Technical-bars .heading1 {
  font-size: 30px;
  text-align: left;
  text-decoration: underline;
  margin-bottom: 30px;
  color: #ededed;
}

.Professional-Skills .heading1 {
  font-size: 30px;
  text-align: center;
  text-decoration: underline;
  margin-bottom: 30px;
  color: #ededed;
}

/* --- TECHNICAL BARS (Garis) --- */
.Technical-bars .bar {
  margin: 25px 0;
}

.Technical-bars .bar .info {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 5px;
}
.Technical-bars .bar i {
  font-size: 20px;
  margin-right: 10px;
}

.Technical-bars .bar .info span {
  font-size: 17px;
  font-weight: 500;
  opacity: 1;
}

.progress-line {
  position: relative;
  border-radius: 10px;
  width: 100%;
  height: 8px;
  background-color: #0000008e;
}

.progress-line span {
  height: 100%;
  background-color: #0ef;
  position: absolute;
  border-radius: 10px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(1, 0, 0, 5, 1);
}

.Technical-bars .bar.animate .progress-line span {
  transform: scaleX(1);
}

.progress-line.html span {
  width: 90%;
}
.progress-line.css span {
  width: 60%;
}
.progress-line.javascript span {
  width: 85%;
}
.progress-line.react span {
  width: 75%;
}
.progress-line.networking span {
  width: 65%;
}

/* --- PROFESSIONAL SKILLS (Lingkaran) --- */
.radial-bars-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 10px;
  margin-top: 20px;
  width: 100%;
  justify-items: center;
}

.radial-bars {
  text-align: center;
  width: 150px;
  height: 220px;
  position: relative;
}

.radial-bars svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-bars .progress-bar {
  fill: none;
  stroke-width: 10;
  stroke: #0a1e2e;
  stroke-linecap: round;
}
.radial-bars .path {
  fill: none;
  stroke-width: 10;
  stroke: #0ef;
  stroke-dasharray: 502;
  stroke-dashoffset: 502;
  stroke-linecap: round;
}

.path-1 {
  animation: animate-path-90 1s 1s linear forwards;
}
.path-2 {
  animation: animate-path-75 1s 1s linear forwards;
}
.path-3 {
  animation: animate-path-65 1s 1s linear forwards;
}
.path-4 {
  animation: animate-path-85 1s 1s linear forwards;
}

.radial-bars .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  color: #ededed;
}

.radial-bars .text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  white-space: normal;
  width: 100%;
  padding: 0 5px;
  word-wrap: break-word;
}

/* ======================================================== */
/* ===== LATEST PROJECT (Portfolio Section) ===== */
/* ======================================================== */

.portfolio {
  background: #0a1e2e;
  padding: 120px 10% 80px;
}

.portfolio-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.portfolio-box {
  position: relative;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  min-height: 250px;
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.1), #0ef);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 1rem;
  text-align: center;
  transition: 0.5s ease;
  opacity: 0;
}

.portfolio-box:hover .portfolio-layer {
  height: 100%;
  opacity: 1;
}

.portfolio-layer h4 {
  font-size: 24px;
  font-weight: 700;
  color: #081b29;
  margin-bottom: 0.5rem;
}

.portfolio-layer p {
  font-size: 14px;
  color: #081b29;
  margin-bottom: 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: #081b29;
  border-radius: 50%;
  color: #0ef;
  font-size: 20px;
  text-decoration: none;
  margin-bottom: 1rem;
}

/* ======================================================== */
/* ===== CONTACT SECTION ===== */
/* ======================================================== */

.contact {
  padding: 120px 10%;
  background-color: #0a1e2e;
}

.container-contact {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrapper {
  display: flex;
  gap: 50px;
  margin-top: 50px;
  align-items: flex-start;
}

.contact-text {
  flex: 1;
  max-width: 500px;
}

.contact-text h2 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ddd;
}

.contact-list {
  margin-bottom: 30px;
}

.contact-list p {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.contact-list i {
  margin-right: 15px;
  font-size: 20px;
}

.contact-sci {
  margin-top: 10px;
  gap: 15px;
}
.contact-sci a {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.contact-form {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.contact-form form {
  width: 100%;
  max-width: 600px;
}

.contact-form form input,
.contact-form form textarea {
  width: 100%;
  background: #112e42;
  border: none;
  outline: none;
  padding: 15px;
  font-size: 16px;
  color: #ededed;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form form input:focus,
.contact-form form textarea:focus {
  box-shadow: 0 0 5px #0ef, 0 0 10px #0ef;
}

.contact-form form textarea {
  resize: none;
}

.contact-form form .btn-box {
  width: 100%;
  border: none;
  cursor: pointer;
  text-align: center;
  display: block;
  padding: 14px 32px;
  margin-top: 0;
  box-shadow: 0 0 10px #0ef, 0 0 30px #0ef;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ======================================================== */
/* ===== FOOTER ===== */
/* ======================================================== */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 10%;
  background: #112e42;
  border-top: 1px solid #0ef;
}

.footer-text p {
  font-size: 15px;
  color: #fff;
  text-shadow: 0 0 5px #0ef;
}

.footer-text p a {
  font-size: 15px;
  color: #fff;
  text-shadow: 0 0 5px #0ef;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  background: #0ef;
  border-radius: 8px;
  transition: 0.5s ease;
}

.footer-iconTop a i {
  font-size: 20px;
  color: #081b29;
}

.footer-iconTop a:hover {
  box-shadow: 0 0 10px #0ef;
}

/* ======================================================== */
/* ===== Keyframes (Tidak Berubah) ===== */
/* ======================================================== */

@keyframes animate {
  100% {
    transform: scaleX(1);
  }
}

@keyframes animate-path-90 {
  100% {
    stroke-dashoffset: 50.2;
  }
}
@keyframes animate-path-75 {
  100% {
    stroke-dashoffset: 125.5;
  }
}
@keyframes animate-path-65 {
  100% {
    stroke-dashoffset: 175.7;
  }
}
@keyframes animate-path-85 {
  100% {
    stroke-dashoffset: 75.3;
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideLeft {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideTop {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideBottom {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ======================================================== */
/* ===== RESPONSIVE MEDIA QUERIES FINAL (ADAPTIF) ===== */
/* ======================================================== */

/* Untuk Tablet dan Desktop Kecil (maks. 992px) */
@media (max-width: 992px) {
  /* Header */
  .header {
    padding: 20px 5%;
  }

  /* Skills Section */
  .skills-content-wrapper {
    max-width: 800px;
    grid-template-columns: 1fr;
    gap: 50px;
    display: block;
  }

  .container1 {
    margin-bottom: 50px;
  }

  .Technical-bars .heading1,
  .Professional-Skills .heading1 {
    text-align: center;
  }

  /* Projects Section - 2 Kolom */
  .portfolio-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Home Section */
  .home {
    flex-direction: column;
    text-align: center;
    padding: 120px 5% 60px;
    height: auto;
  }
  .home-content {
    order: 2;
    max-width: 100%;
  }
  .home-img {
    order: 1;
    margin-bottom: 30px;
  }
  .home-content h1 {
    font-size: 48px;
  }
  .home-img img {
    width: 280px;
    height: 280px;
  }
  .home-img::before {
    width: 320px;
    height: 320px;
  }

  /* About Section */
  .about {
    flex-direction: column;
    text-align: center;
    padding: 80px 5%;
  }
  .about-img img {
    width: 70%;
    margin-bottom: 30px;
  }
  .about-text h2 {
    font-size: 45px;
  }
  .about-text p {
    font-size: 16px;
  }

  /* Services Section */
  .services-list {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 50px auto 0;
  }

  /* Contact Section: Tumpuk kolom */
  .contact {
    padding: 80px 5%;
  }

  .contact-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .contact-text {
    max-width: 100%;
    text-align: center;
  }

  .contact-list {
    display: inline-block;
    text-align: left;
  }

  .contact-list p {
    justify-content: flex-start;
  }

  .contact-form {
    justify-content: center;
  }

  /* Footer */
  .footer {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px 5%;
  }

  .footer-iconTop {
    margin-bottom: 20px;
  }
}

/* Untuk Ponsel (maks. 768px dan lebih kecil) */
@media (max-width: 768px) {
  /* ===== HEADER/NAVBAR UNTUK MOBILE (HAMBURGER) ===== */
  #menu-icon {
    display: block; /* Tampilkan ikon hamburger */
    transition: all 0.3s ease;
  }

  .navbar {
    position: absolute;
    top: 100%; /* Mulai di bawah header */
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: #081b29; /* Warna latar belakang menu mobile */
    border-top: 1px solid rgba(0, 238, 255, 0.2);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);

    /* Logic untuk menyembunyikan/menampilkan */
    transform: translateY(-300px); /* Tersembunyi di atas */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
  }

  .navbar.active {
    transform: translateY(0); /* Terlihat */
    opacity: 1;
    visibility: visible;
  }

  .navbar a {
    display: block; /* Buat link menjadi blok penuh */
    font-size: 20px;
    margin: 1.5rem 0; /* Jarak vertikal antar link */
    text-align: left;
    margin-left: 0;
    padding-left: 1rem;
    border-left: 4px solid transparent;
    transition: border-left 0.3s ease;
  }

  .navbar a:hover,
  .navbar a.active {
    border-left: 4px solid #0ef; /* Indikator link aktif */
  }

  /* Judul Utama */
  .sub-title {
    font-size: 40px;
  }

  /* Skills Section */
  .skills {
    padding: 80px 5% 80px;
  }

  .heading1 {
    font-size: 24px;
    text-align: center;
  }

  /* Projects Section - 1 Kolom */
  .portfolio-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Ukuran Lingkaran Dikecilkan */
  .radial-bars {
    width: 110px;
    height: 180px;
  }

  .radial-bars .percentage {
    font-size: 16px;
  }

  .radial-bars .text {
    font-size: 13px;
    top: 100%;
    line-height: 1.2;
    padding: 0 5px;
    word-break: break-word;
    color: #fff;
  }

  /* Home Section */
  .home-content h1 {
    font-size: 40px;
  }
  .home-content h3 {
    font-size: 24px;
  }

  /* Contact Section */
  .contact-text h2 {
    font-size: 32px;
  }

  .contact-text p,
  .contact-list p {
    font-size: 15px;
  }

  .contact-form form {
    max-width: 100%;
  }
}
