/* Reset & Universal Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-left: #ffffff;
  --bg-right: #cbbcb3;
  --text-dark: #111111;
  --text-muted: #666666;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-italic: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

/* Custom Keyframe untuk Fade In & Slide Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mengatur animasi awal untuk elemen anak di dalam .left-content */
.left-content > * {
  opacity: 0; /* Sembunyikan elemen sebelum animasi dimulai */
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Staggered Delay (Jeda Animasi Bertahap) */
.left-content .subtitle {
  animation-delay: 0.2s;
}

.left-content .main-title {
  animation-delay: 0.4s;
}

.left-content .description {
  animation-delay: 0.6s;
}

.left-content .cta-button {
  animation-delay: 0.8s;
}

/* Dukungan Aksesibilitas: Matikan animasi jika user mengaktifkan prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .left-content > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-left);
  overflow-x: hidden;
}

/* Page Layout: 50/50 Split Desktop */
.page-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  width: 100vw;
}

/* Left Panel */
.left-panel {
  width: 50%;
  background-color: var(--bg-left);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Placeholder */
.logo-placeholder .logo-text {
  font-family: 'Cormorant Garamond', cursive, serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: 1px;
}

/* Hamburger Menu Button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background-color: var(--text-dark);
  transition: transform 0.3s ease;
}

/* Main Content Area */
.left-content {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 0;
}

.subtitle {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--text-dark);
  display: block;
  margin-bottom: 1.5rem;
}

.main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.description {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* CTA Button */
.cta-button {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 1rem 2.8rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  background-color: #333333;
}

/* Footer Social Links */
.panel-footer {
  text-align: center;
}

.social-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.social-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.6;
}

.social-links .separator {
  color: #888;
  font-size: 0.8rem;
}

/* Construction Circular Stamp */
.construction-stamp {
  position: absolute;
  top: 78%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  animation: rotateStamp 20s linear infinite;
}

@keyframes rotateStamp {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Right Panel */
.right-panel {
  width: 50%;
  background-color: var(--bg-right);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.carousel-container {
  width: 100%;
  max-width: 420px;
  height: 72vh;
  margin: auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 10s ease-out;
}

/* Subtle continuous zoom during slide activation */
.carousel-slide.active img {
  transform: scale(1.08);
}

/* Countdown Overlay Inner Card */
.countdown-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: #ffffff;
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.days-number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 5rem);
  display: block;
  line-height: 1;
}

.days-label {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  display: block;
  margin-top: 0.2rem;
}

.right-footer {
  text-align: center;
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  color: #444;
}

.right-footer .heart {
  color: #111;
}

/* Prefers Reduced Motion Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    transition: opacity 0.3s ease !important;
  }
  .carousel-slide img {
    transition: none !important;
    transform: none !important;
  }
  .carousel-slide.active img {
    transform: none !important;
  }
  .construction-stamp {
    animation: none !important;
  }
}

/* Responsive Mobile Layout */
@media (max-width: 900px) {
  .page-container {
    flex-direction: column;
  }

  .left-panel, .right-panel {
    width: 100%;
  }

  .left-panel {
    min-height: 100vh;
  }

  .right-panel {
    min-height: 80vh;
  }

  .construction-stamp {
    display: none; /* Hide circular stamp on mobile for clean stacked layout */
  }

  .carousel-container {
    height: 60vh;
  }
}