/*
    Traditional Batik Modern - Mega Mendung Edition
    A sleek and contemporary design system inspired by Cirebon's iconic cloud batik.
*/

:root {
    --primary: #003366; /* Deep Cloud Blue */
    --secondary: #e6f2ff; /* Light Sky */
    --accent: #ff6600; /* Sunset Orange Accent */
    --text: #1a1a1a;
    --muted: #666666;
    --white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-alt: 'Meie Script', cursive;
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-heading); background-color: var(--secondary); color: var(--text); line-height: 1.6; overflow-x: hidden; }
body.no-scroll { overflow: hidden; height: 100vh; }

/* --- Mega Mendung Background --- */
.mega-mendung-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="100" viewBox="0 0 200 100"><path d="M0 50 Q50 0 100 50 T200 50" fill="none" stroke="%23003366" stroke-width="2" opacity="0.1"/></svg>');
    opacity: 0.1;
}

/* --- Intro Screen --- */
.intro-batik {
    position: fixed; top: 0; left: 0; width: 100%; height: 100dvh;
    background-color: var(--primary); z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.intro-batik.opened { transform: translateY(-100%); }
.intro-content { text-align: center; color: white; }
.intro-names { font-family: var(--font-alt); font-size: clamp(3rem, 12vw, 6rem); color: var(--white); margin-bottom: 3rem; }

/* --- Navigation --- */
nav {
    position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px);
    z-index: 1000; transition: var(--transition);
}
nav.visible { transform: translateX(-50%) translateY(0); }
.nav-inner {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem; border-radius: 20px; display: flex; gap: 1.5rem; box-shadow: 0 10px 30px rgba(0, 51, 102, 0.1);
}
nav a { color: rgba(0, 51, 102, 0.2); font-size: 1.2rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
nav a.active { color: var(--primary); background: var(--secondary); border-radius: 12px; }

/* --- Sections --- */
section { padding: 6rem 1.5rem; }
@media (min-width: 992px) { section { padding: 10rem 2rem; } }
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
.section-title h2 { font-size: 3rem; font-weight: 900; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5rem; margin-bottom: 2rem; }

/* --- Hero --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; background: white; }
.hero-card {
    padding: 6rem 3rem; border: 10px solid var(--secondary); border-radius: 40px;
    max-width: 600px; width: 90%; position: relative; overflow: hidden;
}
.hero-names { font-family: var(--font-alt); font-size: clamp(3.5rem, 10vw, 5.5rem); color: var(--primary); }

/* --- Countdown --- */
.countdown-batik { display: flex; justify-content: center; gap: 2rem; margin-bottom: 6rem; }
.time-box span { display: block; font-size: 4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.time-box label { font-size: 0.7rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.3rem; }

/* --- RSVP --- */
.batik-form { background: white; padding: 4rem; border-radius: 30px; border: 1px solid var(--secondary); text-align: left; }
.batik-form label { display: block; font-size: 0.7rem; text-transform: uppercase; color: var(--primary); font-weight: 900; margin-bottom: 1rem; }
.batik-form input, .batik-form textarea {
    width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 2px solid var(--secondary);
    font-size: 1.1rem; margin-bottom: 3rem; outline: none; transition: var(--transition);
}
.batik-form input:focus { border-bottom-color: var(--primary); }
.btn-batik {
    width: 100%; padding: 1.5rem; background: var(--primary); color: white; border: none;
    border-radius: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.3rem; cursor: pointer;
}

/* ── Responsive Fix ── */
@media (max-width: 600px) {
  /* Countdown */
  .countdown-batik {
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
  }
  .time-box {
    flex: 1 1 calc(50% - 0.8rem);
    min-width: 60px;
  }
  .time-box span {
    font-size: clamp(1.8rem, 8vw, 4rem) !important;
  }

  /* Event grid - inline styles in HTML */
  #event .container > div[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* RSVP form */
  .batik-form {
    padding: 2rem;
    border-radius: 20px;
  }

  /* Footer */
  footer {
    padding: 5rem 1.5rem !important;
  }
  footer h2 {
    font-size: clamp(2rem, 8vw, 4rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  footer p[style*="italic"] {
    font-size: clamp(1rem, 4vw, 2rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Couple flex */
  #couple .container > div[style*="flex"] {
    gap: 2rem !important;
  }
  #couple .container > div[style*="flex"] > div[style*="min-width"] {
    min-width: unset !important;
    width: 100% !important;
  }

  /* Section padding */
  section {
    padding: 4rem 1.5rem;
  }
}
