:root {
    --primary: #0a192f; /* Royal Navy */
    --accent: #d4af37;  /* Metallic Gold */
    --text-white: #f8f9fa;
    --text-muted: rgba(248, 249, 250, 0.6);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

/* Line Art Ornaments */
.line-art-container { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.line-art { position: absolute; width: 40%; max-width: 600px; }
.leaf-1 { top: -5%; left: -5%; transform: rotate(10deg); }
.leaf-2 { bottom: -5%; right: -5%; transform: rotate(-10deg); }

/* Intro */
.intro {
    position: fixed; inset: 0; background: var(--primary); z-index: 10000;
    display: flex; align-items: center; justify-content: center; text-align: center;
    padding: 2rem; transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}
.intro-content { max-width: 600px; z-index: 1; }
.royal-seal {
    width: 100px; height: 100px; border: 1px solid var(--accent); border-radius: 50%;
    margin: 0 auto 3rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent); letter-spacing: 0.2rem;
}
.intro-subtitle { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.5rem; color: var(--accent); margin-bottom: 2rem; }
.intro-names { font-family: var(--font-script); font-size: clamp(3rem, 10vw, 5rem); margin-bottom: 4rem; font-weight: 400; }
.guest-box { margin-bottom: 4rem; padding: 2rem; border-top: 1px solid rgba(212, 175, 55, 0.2); border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.to-label { font-size: 0.8rem; letter-spacing: 0.2rem; color: var(--text-muted); text-transform: uppercase; }
.guest-name { font-size: 2rem; margin-top: 1rem; color: var(--accent); }
.btn-royal {
    background: transparent; border: 1px solid var(--accent); color: var(--accent);
    padding: 1rem 3rem; font-family: var(--font-sans); letter-spacing: 0.3rem;
    font-size: 0.8rem; cursor: pointer; transition: 0.4s;
}
.btn-royal:hover { background: var(--accent); color: var(--primary); }

/* Navigation */
nav { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(100px); z-index: 1000; opacity: 0; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
nav.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.nav-inner { background: rgba(10, 25, 47, 0.8); backdrop-filter: blur(10px); padding: 0.8rem 2rem; border-radius: 100px; border: 1px solid rgba(212, 175, 55, 0.3); display: flex; gap: 2rem; }
nav a { color: var(--text-muted); transition: 0.3s; }
nav a.active { color: var(--accent); transform: scale(1.2); }

/* Music Control */
.music-control { position: fixed; top: 2rem; right: 2rem; z-index: 1000; cursor: pointer; background: var(--primary); width: 45px; height: 45px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.music-bars { display: flex; align-items: flex-end; gap: 3px; height: 15px; }
.music-bars span { width: 2px; background: var(--accent); height: 100%; }
.music-control.playing span { animation: musicBar 1s infinite ease-in-out; }
@keyframes musicBar { 0%, 100% { height: 5px; } 50% { height: 15px; } }

/* Sections */
section { padding: 8rem 1.5rem; position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; text-align: center; }
.section-title { font-family: var(--font-sans); font-size: 0.8rem; letter-spacing: 0.5rem; color: var(--accent); margin-bottom: 5rem; }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; }
.hero .subtitle { letter-spacing: 0.6rem; font-size: 0.9rem; color: var(--accent); margin-bottom: 3rem; }
.hero-names { font-family: var(--font-script); font-size: clamp(4rem, 12vw, 7rem); font-weight: 400; line-height: 1.2; margin-bottom: 4rem; }
.date-box { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.date-box .line { width: 40px; height: 1px; background: var(--accent); }
.date-box .date { font-size: 1.5rem; letter-spacing: 0.3rem; }

/* Couple */
.couple-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6rem; }
.couple-card { flex: 1; min-width: 300px; }
.photo-frame {
    width: 280px; height: 400px; margin: 0 auto 3rem; border: 1px solid var(--accent);
    padding: 15px; position: relative; overflow: hidden;
}
.photo-frame::after { content: ''; position: absolute; inset: 10px; border: 0.5px solid rgba(212, 175, 55, 0.3); pointer-events: none; }
.photo-placeholder { width: 100%; height: 100%; background: rgba(212, 175, 55, 0.05); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.couple-card .name { font-family: var(--font-script); font-size: 3.5rem; margin-bottom: 1.5rem; font-weight: 400; color: var(--accent); }
.couple-card .parent { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; }

/* Event */
.event { background: rgba(255,255,255,0.02); }
.countdown { display: flex; justify-content: center; gap: 2rem; margin-bottom: 8rem; }
.time-item { text-align: center; }
.time-item span { display: block; font-size: 4rem; color: var(--accent); font-weight: 300; line-height: 1; }
.time-item label { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.2rem; color: var(--text-muted); text-transform: uppercase; }

.event-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 4rem; }
.event-card { padding: 6rem 3rem; border: 1px solid rgba(212, 175, 55, 0.2); transition: 0.5s; position: relative; }
.event-card:hover { border-color: var(--accent); background: rgba(212, 175, 55, 0.03); }
.event-type { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.4rem; color: var(--accent); margin-bottom: 3rem; }
.event-date { font-size: 1.8rem; margin-bottom: 1rem; }
.event-time { color: var(--text-muted); margin-bottom: 3rem; }
.event-card .divider { width: 40px; height: 1px; background: var(--accent); margin: 0 auto 3rem; opacity: 0.3; }
.event-venue { font-size: 1.2rem; margin-bottom: 4rem; font-weight: 300; }
.btn-outline {
    display: inline-block; padding: 1rem 3rem; border: 1px solid var(--accent); color: var(--accent);
    text-decoration: none; font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2rem; transition: 0.3s;
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.gallery-item { aspect-ratio: 4/5; overflow: hidden; border: 0.5px solid rgba(212, 175, 55, 0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) sepia(0.2); transition: 0.6s; }
.gallery-item:hover img { filter: brightness(1) sepia(0); transform: scale(1.05); }
.gallery-item.empty { display: flex; align-items: center; justify-content: center; color: var(--accent); opacity: 0.2; }

/* RSVP */
.royal-form { max-width: 600px; margin: 0 auto; text-align: left; }
.input-group { margin-bottom: 3rem; }
.input-group label { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.3rem; color: var(--accent); margin-bottom: 1rem; }
.input-group input, .input-group textarea {
    width: 100%; padding: 1rem 0; background: transparent; border: none; border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-white); font-family: var(--font-serif); font-size: 1.2rem; transition: 0.3s;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-bottom-color: var(--accent); }

/* Footer */
.footer { padding: 10rem 2rem; text-align: center; border-top: 1px solid rgba(212, 175, 55, 0.2); }
.footer-quote { font-style: italic; font-size: 1.8rem; color: var(--text-muted); margin-bottom: 4rem; max-width: 800px; margin-inline: auto; }
.footer-names { font-family: var(--font-script); font-size: 4rem; color: var(--accent); margin-bottom: 5rem; font-weight: 400; }
.footer-copy { font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.4rem; opacity: 0.3; }

/* Responsive */
@media (max-width: 768px) {
    section { padding: 6rem 1.5rem; }
    .hero-names { font-size: 4rem; }
    .time-item span { font-size: 3rem; }
    .couple-grid { gap: 4rem; }
}

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

  /* Event cards */
  .event-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .event-card {
    padding: 3rem 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 5rem 1.5rem;
  }
  .footer-quote {
    font-size: clamp(1rem, 4vw, 1.8rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .footer-names {
    font-size: clamp(2rem, 8vw, 4rem);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* Couple */
  .couple-card {
    min-width: unset;
    width: 100%;
  }
  .couple-grid {
    gap: 3rem;
  }

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