/* style.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #f2f2f2;
  color: #222;
  overflow-x: hidden;
}

.hero {
  width: 100%;
  height: 220px;
  background: url('images/img1.png') center/cover;
}

/* PROFILE STICKY DESIGN */
.profile-bar {
  position: sticky;
  top: 10px;
  z-index: 999;
  width: min(94%, 1000px);
  margin: auto;
  margin-top: -40px;
  background: #fff;
  border-radius: 25px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

/* Style tambahan saat halaman di-scroll agar sticky bar terlihat solid & rapi */
.profile-bar.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  margin-top: 0;
  padding: 12px 5%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.profile-photo {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f1f1f1;
  transition: all 0.3s ease;
}

.profile-bar.scrolled .profile-photo {
  width: 55px;
  height: 55px;
  border-width: 2px;
}

.profile-info h3 {
  font-size: clamp(24px, 4vw, 42px);
  color: #081d4f;
  font-weight: 900;
  transition: all 0.3s ease;
}

.profile-bar.scrolled .profile-info h3 {
  font-size: clamp(18px, 3vw, 26px);
}

.container {
  width: min(94%, 1000px);
  margin: auto;
  padding: 25px 0 50px;
}

.card {
  background: #fff;
  border-radius: 30px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.badge {
  text-align: center;
  font-size: clamp(26px, 5vw, 38px);
  color: #000000;
  font-weight: 900;
  margin-bottom: 25px;
}

.subtext {
  text-align: center;
  font-size: clamp(17px, 2.5vw, 26px);
  line-height: 1.7;
  color: #444;
  max-width: 760px;
  margin: auto;
  margin-bottom: 40px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 724px;
  aspect-ratio: 9/16;
  margin: 0 auto 40px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideAnimation 12s infinite;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 4s; }
.slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideAnimation {
  0% { opacity: 0; }
  8% { opacity: 1; }
  30% { opacity: 1; }
  38% { opacity: 0; }
  100% { opacity: 0; }
}

.cta-section {
  text-align: center;
  margin: 45px 0;
}

.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #d1ff44, #92d400);
  color: #111;
  text-decoration: none;
  padding: 18px 30px;
  border-radius: 60px;
  font-size: clamp(20px, 3vw, 38px);
  font-weight: 900;
  border: 3px solid #b5d93b;
  width: min(100%, 460px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: 0.3s;
  animation: pulse 1.8s infinite;
}

.cta-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-25deg);
  animation: shine 2.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes shine {
  0% { left: -120%; }
  100% { left: 140%; }
}

.steps {
  background: #fafafa;
  border-radius: 30px;
  border: 1px solid #eee;
  padding: clamp(20px, 4vw, 36px);
}

.steps-header {
  text-align: center;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  margin-bottom: 30px;
}

.steps-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.steps-list {
  flex: 1;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.step-number {
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #8fd400;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
}

.step-text {
  font-size: clamp(16px, 2vw, 22px);
  color: #444;
  line-height: 1.6;
  padding-top: 5px;
}

.gift-image {
  text-align: center;
}

.gift-image img {
  width: min(220px, 100%);
}

footer {
  text-align: center;
  padding-top: 28px;
  color: #777;
  font-size: 15px;
}

@media(max-width: 900px) {
  .steps-content {
    flex-direction: column;
  }
  .gift-image img {
    width: 170px;
  }
}

@media(max-width: 600px) {
  .hero {
    height: 160px;
  }
  .profile-bar {
    padding: 14px;
    gap: 14px;
    border-radius: 20px;
  }
  .profile-photo {
    width: 65px;
    height: 65px;
  }
  .cta-btn {
    padding: 16px 20px;
  }
  .step-number {
    min-width: 42px;
    height: 42px;
    font-size: 18px;
  }
}