/* ==========================================================================
   D'WAN PLAYGROUND TANJUNGBALAI - MODERN KIDS THEME STYLESHEET
   Aesthetics: Vibrant, Cheerful, Modern 3D & Glassmorphic, Mobile-first
   ========================================================================== */

:root {
  /* Cheerful Color Palette */
  --color-primary: #FF5E62;
  --color-primary-dark: #E03E42;
  --color-primary-light: #FF8E91;
  --color-secondary: #38B6FF;
  --color-secondary-dark: #1998E2;
  --color-secondary-light: #70CCFF;
  --color-accent-yellow: #FFB703;
  --color-accent-green: #06D6A0;
  --color-accent-purple: #8338EC;
  --color-accent-pink: #FF477E;

  /* Neutrals & Surfaces */
  --bg-gradient-start: #FFF9F2;
  --bg-gradient-mid: #F0F7FF;
  --bg-gradient-end: #FFF2F7;
  --surface-white: #FFFFFF;
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-glass: rgba(255, 255, 255, 0.75);
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border-light: rgba(226, 232, 240, 0.8);

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.07), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 35px -8px rgba(0, 0, 0, 0.09), 0 12px 16px -8px rgba(0, 0, 0, 0.05);
  --shadow-card-sei: 0 20px 40px -15px rgba(255, 94, 98, 0.25);
  --shadow-card-titi: 0 20px 40px -15px rgba(56, 182, 255, 0.25);
  --shadow-button-sei: 0 8px 24px -4px rgba(255, 94, 98, 0.5);
  --shadow-button-titi: 0 8px 24px -4px rgba(56, 182, 255, 0.5);

  /* Fonts */
  --font-display: 'Fredoka', 'Baloo 2', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 9999px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   Animated Background Elements (Balloons, Clouds, Stars)
   ========================================================================== */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  filter: blur(40px);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.bubble-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #FFD166 0%, rgba(255, 209, 102, 0) 70%);
  top: -80px;
  left: -80px;
}

.bubble-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #70CCFF 0%, rgba(112, 204, 255, 0) 70%);
  bottom: -100px;
  right: -100px;
  animation-duration: 22s;
  animation-delay: -5s;
}

.bubble-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #FF8E91 0%, rgba(255, 142, 145, 0) 70%);
  top: 40%;
  left: 60%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Floating Decorative SVG Badges (Floating Clouds & Stars) */
.floating-decoration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.float-balloon-left {
  top: 8%;
  left: 3%;
  font-size: 2.8rem;
  animation: gentleFloat 5s ease-in-out infinite;
}

.float-star-right {
  top: 12%;
  right: 4%;
  font-size: 2.2rem;
  animation: gentleSpin 10s ease-in-out infinite;
}

.float-cloud-mid {
  bottom: 15%;
  left: 2%;
  font-size: 2.5rem;
  opacity: 0.7;
  animation: gentleDrift 7s ease-in-out infinite;
}

.float-rainbow-right {
  bottom: 10%;
  right: 3%;
  font-size: 2.6rem;
  animation: gentleFloat 6s ease-in-out infinite 1s;
}

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

@keyframes gentleDrift {
  0%, 100% { transform: translateX(0px) translateY(0px); }
  50% { transform: translateX(14px) translateY(-10px); }
}

@keyframes gentleSpin {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}

/* ==========================================================================
   Main 1-Section Hero Container
   ========================================================================== */
.hero-section {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.25rem 2rem;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Brand Area */
.header-wrapper {
  text-align: center;
  max-width: 800px;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mascot Logo */
.mascot-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mascot-logo-wrap:hover {
  transform: scale(1.08) rotate(3deg);
}

.mascot-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-white);
  box-shadow: 0 10px 25px -4px rgba(255, 94, 98, 0.35), 0 0 0 5px rgba(255, 183, 3, 0.4);
  background-color: var(--surface-white);
}

.mascot-sparkle-pill {
  position: absolute;
  bottom: -6px;
  right: -8px;
  background: linear-gradient(135deg, #FFB703, #FF5E62);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--surface-white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  animation: pulseBadge 2.5s infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Top Pill Badge */
.top-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 183, 3, 0.4);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.15);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: #D97706;
  margin-bottom: 0.85rem;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* Main Heading */
.main-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--text-dark);
}

.gradient-title-word {
  background: linear-gradient(135deg, #FF5E62 0%, #FF9966 40%, #8338EC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.city-badge {
  display: inline-block;
  background: linear-gradient(135deg, #38B6FF, #0077B6);
  color: #FFF;
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 600;
  padding: 0.25rem 0.9rem;
  border-radius: var(--radius-sm);
  vertical-align: middle;
  margin-left: 0.4rem;
  box-shadow: 0 4px 12px rgba(56, 182, 255, 0.35);
  transform: rotate(-2deg);
}

/* Subtitle & Guide Text */
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text-dark);
}

/* ==========================================================================
   2-Card Showcase Grid
   ========================================================================== */
.cards-portal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  width: 100%;
  max-width: 1060px;
  margin-bottom: 2.5rem;
}

/* Single Card Styling */
.playground-card {
  position: relative;
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Card 1 Specific (Sei 2) */
.card-sei-2 {
  border-color: rgba(255, 94, 98, 0.25);
  box-shadow: var(--shadow-card-sei);
}

.card-sei-2:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 94, 98, 0.6);
  box-shadow: 0 28px 50px -12px rgba(255, 94, 98, 0.35);
}

/* Card 2 Specific (Titi Gantung) */
.card-titi-gantung {
  border-color: rgba(56, 182, 255, 0.25);
  box-shadow: var(--shadow-card-titi);
}

.card-titi-gantung:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(56, 182, 255, 0.6);
  box-shadow: 0 28px 50px -12px rgba(56, 182, 255, 0.35);
}

/* Top Card Bar: Branch Tag & Status */
.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.tag-sei {
  background: #FFF1F0;
  color: #E03E42;
  border: 1px solid #FFD1D2;
}

.tag-titi {
  background: #EFF8FF;
  color: #0077B6;
  border: 1px solid #BEE1FF;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

/* Card Image Box */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #F8FAFC;
  box-shadow: var(--shadow-sm);
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.playground-card:hover .card-image-wrapper img {
  transform: scale(1.06);
}

.card-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Card Content Details */
.card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card-location-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.card-desc {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* Feature Badges / Highlights */
.feature-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}

.feature-pill {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: #F1F5F9;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #E2E8F0;
  transition: background-color 0.2s ease;
}

.feature-pill:hover {
  background: #E2E8F0;
}

/* Domain Link Display Box */
.domain-info-box {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  transition: all 0.2s ease;
}

.domain-info-box:hover {
  background: #FFFFFF;
  border-color: #94A3B8;
}

.domain-text-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.domain-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
}

.domain-url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.copy-btn.copied {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

/* Big Action CTA Buttons */
.card-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.card-cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
}

.card-cta-button:hover::after {
  left: 150%;
}

.card-cta-button:hover {
  transform: translateY(-3px);
}

.card-cta-button:active {
  transform: translateY(1px);
}

/* Button 1 (Sei 2) */
.btn-sei {
  background: linear-gradient(135deg, #FF5E62 0%, #FF9966 100%);
  box-shadow: var(--shadow-button-sei);
}

.btn-sei:hover {
  box-shadow: 0 12px 28px -4px rgba(255, 94, 98, 0.65);
}

/* Button 2 (Titi Gantung) */
.btn-titi {
  background: linear-gradient(135deg, #00B4D8 0%, #7209B7 100%);
  box-shadow: var(--shadow-button-titi);
}

.btn-titi:hover {
  box-shadow: 0 12px 28px -4px rgba(56, 182, 255, 0.65);
}

.btn-arrow-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.card-cta-button:hover .btn-arrow-icon {
  transform: translateX(4px);
}

/* ==========================================================================
   Trust & Amenities Highlights Bar
   ========================================================================== */
.amenities-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  padding: 1rem 1.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  margin-bottom: 2.2rem;
  max-width: 960px;
  width: 100%;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
}

.amenity-icon {
  font-size: 1.25rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-wrap {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-dark);
}

.footer-caption {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Toast Notification for Link Copy */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0F172A;
  color: #FFFFFF;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Canvas Confetti Layer */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  width: 100vw;
  height: 100vh;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .cards-portal-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    gap: 1.75rem;
  }

  .amenities-bar {
    border-radius: var(--radius-lg);
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .amenity-item {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem 1.5rem;
  }

  .playground-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .card-image-wrapper {
    height: 190px;
  }

  .card-title {
    font-size: 1.4rem;
  }

  .domain-info-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .copy-btn {
    width: 100%;
    justify-content: center;
  }

  .amenities-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}
