/* ==================================================
   STYLE UNDANGAN AQIQAH - MOBILE KIDS FRIENDLY
   Ganti file lama: style.css
   ================================================== */

:root {
  --bg: #fff8ea;
  --surface: #ffffff;
  --surface-soft: #fffdf7;

  --mint: #dff6ec;
  --mint-2: #bfead7;
  --sky: #dff3ff;
  --peach: #ffe2d1;
  --pink: #ffe8f1;
  --yellow: #fff0b8;

  --green: #1f6b58;
  --green-dark: #194f43;
  --gold: #dcae47;
  --gold-soft: #fff0bd;

  --text: #263832;
  --muted: #6e7d76;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(31, 107, 88, 0.13);
  --soft-border: 1px solid rgba(31, 107, 88, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 226, 209, 0.8), transparent 26%),
    radial-gradient(circle at 88% 14%, rgba(223, 243, 255, 0.95), transparent 28%),
    radial-gradient(circle at 20% 92%, rgba(223, 246, 236, 0.95), transparent 30%),
    linear-gradient(180deg, #fffaf0 0%, #f7fff9 100%);
  overflow-x: hidden;
}

main {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 0 60px rgba(31, 107, 88, 0.08);
}

.section {
  padding: 58px 20px;
  position: relative;
}

/* HERO BARU: kids friendly, tanpa foto background gelap */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 17%, rgba(255, 232, 241, 0.95) 0 15%, transparent 16%),
    radial-gradient(circle at 87% 21%, rgba(223, 243, 255, 0.95) 0 17%, transparent 18%),
    radial-gradient(circle at 24% 87%, rgba(255, 240, 184, 0.9) 0 15%, transparent 16%),
    radial-gradient(circle at 82% 82%, rgba(223, 246, 236, 0.95) 0 18%, transparent 19%),
    linear-gradient(180deg, #fff9e8 0%, #effff6 100%);
}
/* FIX FOTO UTAMA AGAR TIDAK MENUTUP WEBSITE */
.hero .cover-photo-wrap {
  width: 115px;
  height: 115px;
  min-width: 115px;
  max-width: 115px;
  min-height: 115px;
  max-height: 115px;

  padding: 6px;
  margin: 8px auto 14px;
  border-radius: 28px;

  background: linear-gradient(135deg, #ffffff, #fff0bd);
  border: 1px solid rgba(31, 107, 88, 0.16);
  box-shadow: 0 12px 28px rgba(31, 107, 88, 0.15);

  overflow: hidden;
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
}

.hero .cover-photo-wrap img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;

  display: block;
  object-fit: cover;
  border-radius: 22px;
}

/* Untuk HP kecil */
@media (max-width: 380px) {
  .hero .cover-photo-wrap {
    width: 95px;
    height: 95px;
    min-width: 95px;
    max-width: 95px;
    min-height: 95px;
    max-height: 95px;
    border-radius: 24px;
  }

  .hero .cover-photo-wrap img {
    border-radius: 18px;
  }
}
/* Dekorasi awan besar di background */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 210px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    38px -28px 0 rgba(255, 255, 255, 0.58),
    78px 0 0 rgba(255, 255, 255, 0.48);
  filter: blur(0.2px);
  animation: cloudMove 8s ease-in-out infinite;
}

.hero::before {
  top: 34px;
  left: -118px;
}

.hero::after {
  right: -130px;
  bottom: 80px;
  transform: scale(0.9);
  animation-delay: 1.8s;
}

/* Semua isi hero berada di atas animasi */
.hero > *:not(.floating-kids) {
  position: relative;
  z-index: 3;
}

/* Animasi mobile yang terlihat jelas */
.floating-kids {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-item {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 107, 88, 0.12);
  box-shadow: 0 12px 28px rgba(31, 107, 88, 0.12);
  font-size: 23px;
  opacity: 1;
  animation: mobileFloat 4.5s ease-in-out infinite;
}

.item-1 { left: 16px; top: 92px; animation-delay: 0s; }
.item-2 { right: 18px; top: 124px; animation-delay: .5s; }
.item-3 { left: 18px; bottom: 175px; animation-delay: 1s; }
.item-4 { right: 20px; bottom: 210px; animation-delay: 1.5s; }
.item-5 { left: 42px; top: 30px; animation-delay: 2s; }
.item-6 { right: 42px; bottom: 68px; animation-delay: 2.5s; }

.hero-stickers {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-stickers span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: var(--soft-border);
  box-shadow: 0 12px 26px rgba(31, 107, 88, 0.10);
  font-size: 22px;
  animation: stickerBounce 2.2s ease-in-out infinite;
}

.hero-stickers span:nth-child(2) { animation-delay: .2s; }
.hero-stickers span:nth-child(3) { animation-delay: .4s; }

.badge {
  font-family: 'Amiri', serif;
  font-size: 17px;
  color: var(--green-dark);
  border: 1px solid rgba(31, 107, 88, 0.18);
  border-radius: 999px;
  padding: 9px 16px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(31, 107, 88, 0.08);
}

.eyebrow,
.section-title p {
  margin: 0 0 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}

.hero h1 {
  font-family: 'Amiri', serif;
  font-size: clamp(44px, 14vw, 64px);
  line-height: 0.96;
  margin: 0 0 16px;
  color: var(--green-dark);
  text-shadow: 0 4px 0 rgba(255, 240, 184, 0.65);
}

.subtitle {
  margin: 0 auto 20px;
  max-width: 330px;
  line-height: 1.65;
  color: var(--muted);
  font-weight: 600;
}

.guest-card {
  width: min(100%, 350px);
  margin: 0 auto 18px;
  padding: 15px 16px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(31, 107, 88, 0.24);
  box-shadow: var(--shadow);
}

.guest-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.guest-card strong {
  display: block;
  font-family: 'Amiri', serif;
  color: var(--green-dark);
  font-size: clamp(27px, 8vw, 38px);
  line-height: 1.05;
}

.hero-card,
.quote-card,
.detail-card {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  border: var(--soft-border);
}

.hero-card {
  margin: 6px 0 24px;
  max-width: 350px;
}

.hero-card p:last-child {
  margin-bottom: 0;
  line-height: 1.65;
}

.arabic {
  font-family: 'Amiri', serif;
  color: var(--green-dark);
  font-size: 21px;
  line-height: 1.8;
  margin: 0 0 10px;
}

.arabic.big {
  font-size: 27px;
  color: var(--green-dark);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, #f3c65a, #ffe08f);
  color: #27352f;
  box-shadow: 0 12px 24px rgba(220, 174, 71, 0.28);
}

.secondary-btn {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(31, 107, 88, 0.22);
}

.primary-btn:active,
.secondary-btn:active {
  transform: scale(0.97);
}

.soft {
  background:
    radial-gradient(circle at 10% 10%, rgba(223, 243, 255, 0.75), transparent 32%),
    rgba(223, 246, 236, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 232, 241, 0.75), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(223, 243, 255, 0.75), transparent 30%),
    var(--surface-soft);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.photo-card {
  background: rgba(255, 255, 255, 0.92);
  border: var(--soft-border);
  border-radius: 24px;
  padding: 8px;
  box-shadow: var(--shadow);
  transform-origin: center bottom;
  animation: photoPop 4s ease-in-out infinite;
}

.photo-card:nth-child(2) { animation-delay: .4s; }
.photo-card:nth-child(3) { animation-delay: .8s; }
.photo-card:nth-child(4) { animation-delay: 1.2s; }

.photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  background: var(--mint);
}

.photo-card p {
  margin: 9px 4px 4px;
  text-align: center;
  font-weight: 800;
  color: var(--green-dark);
  font-size: 13px;
}

.section-title {
  text-align: center;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0 auto;
  max-width: 340px;
  font-family: 'Amiri', serif;
  font-size: 32px;
  line-height: 1.12;
  color: var(--green-dark);
}

.section-title.light p,
.section-title.light h2 {
  color: var(--white);
}

.section-title.light p {
  color: var(--gold-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-card {
  text-align: center;
  padding: 20px 14px;
}

.detail-card.wide {
  grid-column: 1 / -1;
}

.detail-card .icon {
  font-size: 28px;
  display: block;
  margin-bottom: 9px;
}

.detail-card h3 {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 16px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.countdown-section {
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 240, 184, 0.25), transparent 26%),
    linear-gradient(135deg, #35a884, #1f6b58);
  color: var(--white);
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.countdown div {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 14px 6px;
  backdrop-filter: blur(8px);
}

.countdown strong {
  display: block;
  font-size: 24px;
  color: var(--gold-soft);
}

.countdown span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.86);
}

.quote-card {
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 240, 184, 0.5), transparent 36%),
    rgba(255, 255, 255, 0.92);
}

.quote-card p:last-child {
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 0;
}

.action-row {
  display: grid;
  gap: 12px;
}

.closing {
  text-align: center;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 232, 241, 0.7), transparent 28%),
    var(--surface-soft);
}

.closing p {
  line-height: 1.75;
  color: var(--muted);
}

.closing h2 {
  font-family: 'Amiri', serif;
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1.2;
}

.family strong {
  color: var(--green-dark);
}

.music-btn {
  position: fixed;
  right: calc(50% - 198px);
  bottom: 16px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3c65a, #ffe08f);
  color: #25342e;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(31, 107, 88, 0.20);
  cursor: pointer;
}

.music-btn.playing {
  animation: spin 4s linear infinite;
}

@keyframes mobileFloat {
  0% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-18px) rotate(6deg) scale(1.06); }
  100% { transform: translateY(0) rotate(-3deg) scale(1); }
}

@keyframes stickerBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(4deg); }
}

@keyframes cloudMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}

@keyframes photoPop {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-5px) rotate(.4deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 380px) {
  .section { padding: 52px 16px; }
  .hero h1 { font-size: 43px; }

  .hero-card,
  .guest-card {
    max-width: 320px;
  }

  .float-item {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 16px;
  }

  .item-1 { left: 10px; top: 88px; }
  .item-2 { right: 10px; top: 118px; }
  .item-3 { left: 10px; bottom: 165px; }
  .item-4 { right: 10px; bottom: 200px; }

  .countdown strong { font-size: 21px; }
  .countdown div {
    border-radius: 15px;
    padding: 12px 4px;
  }
}

@media (min-width: 431px) {
  body {
    background: linear-gradient(90deg, #f4f1e9 0%, #fffaf0 50%, #f4f1e9 100%);
  }

  .music-btn {
    right: calc(50% - 198px);
  }
}
/* ================================
   FIX TOTAL MOBILE FRIENDLY
   tempel di paling bawah style.css
   ================================ */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-width: 0;
  background: #fff8ea;
}

main {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  box-shadow: none;
}

img {
  max-width: 100%;
}

/* khusus tampilan HP */
@media (max-width: 480px) {
  main {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .section {
    width: 100%;
    padding: 46px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 42px;
    justify-content: flex-start;
  }

  .hero-stickers {
    margin-bottom: 10px;
  }

  .hero-stickers span {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 14px;
  }

  .cover-photo-wrap {
    width: 105px !important;
    height: 105px !important;
    min-width: 105px !important;
    max-width: 105px !important;
    min-height: 105px !important;
    max-height: 105px !important;
    margin: 6px auto 12px !important;
    padding: 6px !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    flex: 0 0 auto !important;
  }

  .cover-photo-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
    display: block !important;
  }

  .badge {
    max-width: 100%;
    font-size: 15px;
    padding: 8px 14px;
    margin-bottom: 14px;
  }

  .eyebrow,
  .section-title p {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 42px;
    line-height: 0.98;
    margin-bottom: 12px;
    word-break: break-word;
  }

  .subtitle {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .guest-card,
  .hero-card,
  .quote-card,
  .detail-card {
    width: 100%;
    max-width: 100%;
    border-radius: 22px;
  }

  .guest-card {
    padding: 13px 12px;
    margin-bottom: 14px;
  }

  .guest-card strong {
    font-size: 30px;
    line-height: 1.05;
    word-break: break-word;
  }

  .hero-card {
    padding: 18px 16px;
    margin-bottom: 18px;
  }

  .hero-card p {
    font-size: 14px;
  }

  .arabic {
    font-size: 19px;
    line-height: 1.7;
  }

  .arabic.big {
    font-size: 23px;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    font-size: 14px;
  }

  .section-title {
    margin-bottom: 22px;
  }

  .section-title h2 {
    font-size: 28px;
    line-height: 1.12;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-card {
    min-width: 0;
    border-radius: 20px;
    padding: 7px;
  }

  .photo-frame {
    border-radius: 15px;
  }

  .photo-card p {
    font-size: 12px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-card {
    padding: 18px 14px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .countdown div {
    min-width: 0;
    padding: 11px 3px;
    border-radius: 14px;
  }

  .countdown strong {
    font-size: 20px;
  }

  .countdown span {
    font-size: 10px;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .closing h2 {
    font-size: 25px;
  }

  .float-item {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 14px;
  }

  .item-1 {
    left: 8px;
    top: 78px;
  }

  .item-2 {
    right: 8px;
    top: 105px;
  }

  .item-3 {
    left: 8px;
    bottom: 150px;
  }

  .item-4 {
    right: 8px;
    bottom: 175px;
  }

  .item-5 {
    left: 26px;
    top: 22px;
  }

  .item-6 {
    right: 26px;
    bottom: 50px;
  }

  .music-btn {
    right: 14px !important;
    bottom: 14px !important;
    width: 48px;
    height: 48px;
  }
}

/* HP sangat kecil */
@media (max-width: 340px) {
  .section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .guest-card strong {
    font-size: 26px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .countdown strong {
    font-size: 18px;
  }

  .countdown span {
    font-size: 9px;
  }
}
