body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: #4b0082;
  background-color: #fff0f5;
  scroll-behavior: smooth;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(to bottom, #f472b6, #ffe4e6);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  top: 0;
  left: 0;
}

.hero-overlay {
  position: relative;
  z-index: 10;
  padding: 20px;
}

.hero-overlay h1 {
  font-size: 3rem;
  color: white;
  font-weight: bold;
}

.hero-overlay p {
  font-size: 1.2rem;
  color: #fdfdfd;
  margin-top: 0.5rem;
}

.sosmed {
  margin-top: 1rem;
  font-size: 1.8rem;
}

.sosmed a {
  margin: 0 10px;
  color: white;
  transition: 0.3s;
}

.sosmed a:hover {
  color: #ffd6e8;
}

/* Section umum */
.section {
  padding: 4rem 2rem;
  background: white;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Grid Portofolio */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 2rem auto 0;
  gap: 1.5rem;
}

.card {
  background: #ffe4e6;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 10px #f9d5e5;
}

.preview {
  height: 150px;
  background: #fbcfe8;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Kontak */
.contact {
  background-color: #ffd6e8;
  color: #4b0082;
  padding: 4rem 2rem 0 2rem; /* ubah padding bawah jadi 0 */
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.btn-whatsapp {
  display: inline-block;
  margin-top: 1rem;
  background: white;
  color: #d63384;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

.btn-whatsapp:hover {
  background: #ffe4e6;
}

/* Panah Scroll */
.scroll-arrow {
  display: inline-block;
  margin-top: 2rem;
  font-size: 2.5rem;
  color: white;
  animation: bounce 2s infinite;
  transition: transform 0.3s;
  text-decoration: none;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* Animasi Fade + Typewriter */
.fade-in-up.typewriter {
  animation-delay: 0s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter-fade {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid white;
  font-size: 3rem;
  width: 0;
  color: white;
  opacity: 0;
  transform: translateY(20px);
  animation:
    fadeSlideIn 1s ease-out forwards,
    typingLoop 8s steps(30, end) infinite 1s,
    blink 0.75s step-end infinite 1s;
}

/* Animasi fade naik */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efek ketik */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Efek kursor kedip */
@keyframes blink {
  50% { border-color: transparent }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingLoop {
  0% {
    width: 0;
  }
  10% {
    opacity: 0;
    transform: translateY(20px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    width: 100%;
  }
  60% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingLoop {
  0% {
    width: 0;
  }
  40% {
    width: 100%;
  }
  60% {
    width: 100%;
  }
  100% {
    width: 0;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.slider-container {
  max-width: 700px;
  margin: 2rem auto;
  position: relative;
}

input[type="radio"] {
  display: none;
}

.slides-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.slides {
  display: flex;
  width: 300%;
  transition: transform 0.5s ease;
}

.slide {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  padding: 1.5rem 1.2rem; /* tambahkan padding kanan-kiri */
  background: #fff0f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b0082;
  text-align: center;
  margin: 0 auto;
  border-radius: 1rem;
}

/* Geser berdasarkan radio */
#slide1:checked ~ .slides-wrapper .slides {
  transform: translateX(0%);
}
#slide2:checked ~ .slides-wrapper .slides {
  transform: translateX(-100%);
}
#slide3:checked ~ .slides-wrapper .slides {
  transform: translateX(-200%);
}

/* Dot navigasi */
.nav-slider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.nav-slider label {
  width: 12px;
  height: 12px;
  background: #f9a8d4;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Efek aktif */
#slide1:checked ~ .slides-wrapper .slides {
  transform: translateX(0%);
}
#slide2:checked ~ .slides-wrapper .slides {
  transform: translateX(-100%);
}
#slide3:checked ~ .slides-wrapper .slides {
  transform: translateX(-200%);
}

.slides-wrapper {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

#tentang {
  background-color: transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(50px);
  padding: 0;
  margin: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, padding 0.3s ease, margin 0.3s ease;
}

.toggle-about-container {
  text-align: center;
  margin: 2rem 0;
}

#tentang {
  background: linear-gradient(to bottom, #ffe4f0, #fff0f5); /* lembut nyambung ke body */
  padding: 4rem 2rem;
  margin-top: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(249, 168, 212, 0.3);
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
}

.toggle-about-container {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.btn-toggle {
  background: linear-gradient(135deg, #f9a8d4, #fbcfe8);
  color: #881337;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(249, 168, 212, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  max-width: 90%;
}

.btn-toggle:hover {
  background: linear-gradient(135deg, #f472b6, #fbcfe8);
  transform: scale(1.05);
}

/* Tentang Saya - sembunyi & animasi muncul */
#tentang {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(50px);
  padding: 0; /* penting: hilangkan padding saat disembunyi */
  margin: 0;  /* penting: hilangkan margin agar tidak menyisakan ruang */
  transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease, padding 0.3s ease, margin 0.3s ease;
}

#tentang.show {
  background-color: #f9a8d4, #fbcfe8; /* SAMAKAN dengan bagian bawah */
  max-height: 1000px;
  opacity: 1;
  transform: translateY(0);
  padding: 4rem 2rem;
  margin-top: 0;
}

/* Paragraf tentang saya */
.tentang-paragraf {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b0082;
  text-align: center;
}

.tentang-paragraf p {
  margin-bottom: 1.5rem;
}


/* Footer */

.footer {
  text-align: center;
  padding: 1.5rem 0;
  background-color: #ffd6e8; /* samakan warna dengan atas */
  color: #881337;
  font-size: 0.9rem;
  margin-top: 0; /* hilangkan jarak atas */
}

@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .btn-toggle {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .slides p {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-overlay h1 {
    font-size: 1.25rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .btn-toggle {
    width: 90%;
    font-size: 0.9rem;
  }

  .slide {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .slide {
    font-size: 1rem;
    padding: 1rem;
  }
}