html, body, div, p, h1, h2, h3, ul, li, img, a {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  background: linear-gradient(120deg, #1a0033, #00001a);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  overflow-x: hidden;
}

.card {
  width: 90%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 40px rgba(168, 78, 247, 0.3);
  padding-bottom: 50px;
  overflow: hidden;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 8%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
}
.logo span {
  color: #a84ef7;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}
nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.3s;
}
nav ul li a:hover,
nav ul li a.active {
  color: #fff;
}

/* Hamburger menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* Hero section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 8%;
  flex-wrap: wrap;
}

.content {
  max-width: 500px;
}

.content h1 {
  font-size: 2.8rem;
  font-weight: 700;
}
.content h2 {
  font-size: 1.3rem;
  color: #a84ef7;
  margin-bottom: 20px;
}
.content p {
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #a84ef7;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn {
  background: linear-gradient(135deg, #a84ef7, #6c63ff);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.6);
}
.btn:hover {
  transform: scale(1.05);
}

.socials a {
  color: #ccc;
  font-size: 1.3rem;
  margin: 0 8px;
  transition: 0.3s;
}
.socials a:hover {
  color: #fff;
  text-shadow: 0 0 10px #a84ef7;
  box-shadow: 0 0 25px rgba(108, 99, 255, 0.6);
  border-radius: 50%;
  padding: 5px 10px;
}

.image {
  position: relative;
}
.image img {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 50px rgba(108, 99, 255, 0.6);
}
.image .glow {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 78, 247, 0.7), transparent 70%);
  top: -10px;
  left: -10px;
  filter: blur(40px);
  z-index: 1;
}

/* Responsive Styles */
@media (max-width: 900px) {
  header {
    padding: 20px 8%;
  }

  nav ul {
    position: absolute;
    top: 80px;
    right: 8%;
    background: rgba(20, 0, 40, 0.95);
    flex-direction: column;
    gap: 15px;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    display: none;
  }

  nav.active ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 40px 5%;
  }

  .content {
    max-width: 100%;
  }

  .content h1 {
    font-size: 2rem;
  }

  .content h2 {
    font-size: 1rem;
  }

  .image img {
    width: 200px;
  }

  .image .glow {
    width: 210px;
    height: 210px;
  }
}
/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  font-size: 2rem;
  margin-top: 80px;
  margin-bottom: 40px;
  color: #fff;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #a84ef7, #6c63ff);
  margin: 10px auto 0;
  border-radius: 3px;
}

/* ==== FIX BAGIAN ABOUT ==== */
.about {
  position: relative;
  padding: 80px 8%;
  background: transparent;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 450px;
  color: #ccc;
}

.about-text p {
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.about-img img {
  width: 100%;
  max-width: 350px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(168, 78, 247, 0.3);
}

/* Skill Bar Styling */
.skills .skill {
  margin-bottom: 15px;
}
.skills p {
  color: #fff;
  margin-bottom: 5px;
}
.skills .bar {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 6px;
  overflow: hidden;
}
.skills .bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #8e2de2, #4a00e0);
  border-radius: 6px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }
  .about-text, .about-img {
    flex: 1 1 100%;
  }
  .about-img img {
    max-width: 280px;
  }
}


/* ===== PROJECTS SECTION ===== */
.projects-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 8% 60px;
}

.project-box {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  flex: 1 1 300px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(168, 78, 247, 0.15);
  transition: 0.3s ease;
}

.project-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s ease;
}

.project-box:hover img {
  transform: scale(1.05);
}

.project-content {
  padding: 20px;
  text-align: center;
}

.project-content h3 {
  color: #fff;
  margin-bottom: 10px;
}

.project-content p {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.project-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 30px rgba(168, 78, 247, 0.4);
}

/* Responsif */
@media (max-width: 900px) {
  .projects-container {
    flex-direction: column;
    align-items: center;
  }

  .project-box {
    max-width: 90%;
  }

.projects {
  margin-bottom: 80px;
}
}

/* ===== SERVICE SECTION ===== */
.service-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 0 8% 60px;
}

.service-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-align: center;
  padding: 30px 20px;
  flex: 1 1 280px;
  color: #ccc;
  transition: 0.3s;
  box-shadow: 0 0 20px rgba(168, 78, 247, 0.1);
}
.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(168, 78, 247, 0.4);
}
.service-box i {
  font-size: 2.2rem;
  color: #a84ef7;
  margin-bottom: 15px;
}
.service-box h3 {
  color: #fff;
  margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-img img {
    width: 200px;
    margin-bottom: 20px;
  }

  .service-container {
    flex-direction: column;
    align-items: center;
  }

/* ===== CONTACT SECTION ===== */
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 8% 60px;
  gap: 30px;
}

.contact-form {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%; /* agar mengisi lebar parent */
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  padding: 12px 15px;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.15);
}

.contact-form .btn {
  align-self: flex-start;
  background: linear-gradient(135deg, #a84ef7, #6c63ff);
  color: #fff;
  padding: 10px 25px;
  border-radius: 25px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.6);
  transition: 0.3s;
}


.contact-form .btn:hover {
  transform: scale(1.05);
}

.contact-info {
  flex: 1 1 45%;
  color: #ccc;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-info i {
  color: #a84ef7;
  margin-right: 10px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  background: rgba(255, 255, 255, 0.03);
}

.footer-socials {
  margin-top: 10px;
}
.footer-socials a {
  color: #ccc;
  margin: 0 10px;
  font-size: 1.2rem;
  transition: 0.3s;
}
.footer-socials a:hover {
  color: #a84ef7;
}




@media (max-width: 900px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    flex: 1 1 100%;
    max-width: 400px; /* agar tidak terlalu lebar */
  }

  .contact-form .btn {
    align-self: center;
  }

  .contact-info {
    align-items: center;
  }
}

