/* ==========================================================
   PREMIUM WEDDING INVITATION
   STYLE.CSS - RESPONSE 1
   ========================================================== */

/* =========================
   ROOT VARIABLES
   ========================= */

:root {
  --bg: #0b1f1a;
  --bg-light: #102c25;
  --bg-dark: #071613;

  --gold: #d4af37;
  --gold-soft: #e4c66b;

  --white: #f8f5ee;
  --text: rgba(248, 245, 238, 0.92);

  --glass: rgba(255, 255, 255, 0.045);
  --border: rgba(212, 175, 55, 0.18);

  --title: "Marcellus", serif;
  --body: "Manrope", sans-serif;
}

/* =========================
   RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
}

body.loaded {
  opacity: 1;
}

/* =========================
   BACKGROUND
   ========================= */

.background-gradient {
  position: fixed;
  inset: 0;
  z-index: -5;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(212, 175, 55, 0.08),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 90%,
      rgba(212, 175, 55, 0.05),
      transparent 35%
    ),
    linear-gradient(180deg, #0b1f1a 0%, #102c25 50%, #0b1f1a 100%);
}

/* =========================
   STARS
   ========================= */

#stars {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;

  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px);

  background-size:
    120px 120px,
    180px 180px;

  background-position:
    0 0,
    60px 70px;

  opacity: 0.3;
}

/* =========================
   FLOATING ORBS
   ========================= */

.floating-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.08;
  z-index: -3;
}

.orb-1 {
  width: 220px;
  height: 220px;
  top: 8%;
  left: -80px;
  background: #d4af37;
  animation: floatOrb1 14s ease-in-out infinite;
}

.orb-2 {
  width: 180px;
  height: 180px;
  bottom: 8%;
  right: -60px;
  background: #d4af37;
  animation: floatOrb2 16s ease-in-out infinite;
}

@keyframes floatOrb1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, 20px);
  }
}

@keyframes floatOrb2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -20px);
  }
}

/* =========================
   HIDDEN
   ========================= */

.hidden {
  display: none !important;
}

/* =========================
   INTRO SCREEN
   ========================= */

#introScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

.intro-content {
  max-width: 520px;
  animation: introFade 1.2s ease;
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.crescent {
  font-size: 90px;
  color: var(--gold);
  margin-bottom: 20px;

  text-shadow:
    0 0 18px rgba(212, 175, 55, 0.35),
    0 0 35px rgba(212, 175, 55, 0.15);

  animation: moonFloat 4s ease-in-out infinite;
}

@keyframes moonFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.bismillah {
  font-size: 1.7rem;
  color: var(--gold-soft);
  margin-bottom: 18px;
  line-height: 1.8;
  font-family: var(--title);
}

.intro-sub {
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 35px;
}

#beginButton {
  background: linear-gradient(135deg, var(--gold), #b98b16);

  color: #111;
  border: none;
  border-radius: 40px;

  padding: 15px 40px;

  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 2px;

  cursor: pointer;
  transition: 0.35s;
}

#beginButton:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.25);
}

/* =========================
   ENVELOPE
   ========================= */

#envelopeSection {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-wrapper {
  perspective: 1200px;
}

.envelope {
  width: 320px;
  height: 220px;
  position: relative;
  cursor: pointer;

  animation: envelopeFloat 3s ease-in-out infinite;
}

@keyframes envelopeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.envelope-body {
  position: absolute;
  inset: 0;

  background: #f7f2e8;
  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.envelope-top {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 120px;

  background: linear-gradient(135deg, #ead9b1, #cfb06d);

  clip-path: polygon(0 0, 100% 0, 50% 100%);

  transform-origin: top;
  transition: 0.8s;
  z-index: 5;
}

.envelope.open .envelope-top {
  transform: rotateX(180deg);
}

.seal {
  width: 72px;
  height: 72px;

  margin: 62px auto 15px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--gold);

  color: #222;
  font-size: 2rem;
}

.tap-text {
  text-align: center;
  color: #333;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

/* ==========================================================
   STYLE.CSS - RESPONSE 2
   MAIN INVITATION
   ========================================================== */

/* =========================
   MAIN CONTAINER
   ========================= */

#invitation {
  width: 100%;
  padding: 60px 20px 100px;
  text-align: center;
}

/* =========================
   TOP HEADER
   ========================= */

.top-pattern {
  width: 140px;
  height: 3px;

  margin: 10px auto 28px;

  border-radius: 20px;

  background: linear-gradient(to right, transparent, #d4af37, transparent);

  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.35),
    0 0 22px rgba(212, 175, 55, 0.15);

  animation: topGlow 3.5s ease-in-out infinite;
}

@keyframes topGlow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: scaleX(1.15);
    opacity: 1;
  }
}

/* =========================
   HEADER ORNAMENT
   ========================= */

.header-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin: 15px auto 40px;

  animation: headerFloat 5s ease-in-out infinite;
}

.orn-side {
  color: rgba(212, 175, 55, 0.45);
  font-size: 0.95rem;
}

.orn-line {
  width: 80px;
  height: 1px;

  background: linear-gradient(
    to right,
    transparent,
    rgba(212, 175, 55, 0.75),
    transparent
  );
}

.orn-flower {
  font-size: 1.5rem;
  color: var(--gold);

  text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);

  animation: flowerGlow 3s ease-in-out infinite;
}

@keyframes headerFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes flowerGlow {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* =========================
   WELCOME TEXT
   ========================= */

.welcome-text {
  max-width: 520px;
  margin: 0 auto 35px;

  text-align: center;

  font-size: 1.02rem;
  font-weight: 300;
  line-height: 2;

  color: var(--text);

  letter-spacing: 0.5px;
}

.welcome-small {
  color: var(--gold-soft);
  font-size: 1.05rem;
  letter-spacing: 0.8px;
}

/* =========================
   COUPLE NAMES
   ========================= */

.names-section {
  margin-bottom: 35px;
}

.couple-name {
  font-family: var(--title);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.25;
}

.couple-name span {
  display: block;
}

.center-symbol {
  margin: 18px 0;
  color: var(--gold);
  font-size: 2.8rem;

  animation: centerGlow 3s ease-in-out infinite;
}

@keyframes centerGlow {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
    text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
  }
}

.divider {
  margin: 35px 0;
  color: rgba(212, 175, 55, 0.85);
  letter-spacing: 3px;
  font-size: 1rem;
}

/* =========================
   GLASS CARD
   ========================= */

.glass-card {
  max-width: 560px;

  margin: 0 auto 55px;

  padding: 32px;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.045);

  border: 1px solid rgba(212, 175, 55, 0.15);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.detail-row {
  display: flex;
  align-items: flex-start;

  gap: 18px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.detail-row:last-child {
  border-bottom: none;
}

.icon-line {
  width: 3px;
  min-width: 3px;
  height: 58px;

  border-radius: 50px;

  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
}

.detail-content {
  text-align: left;
}

.detail-label {
  display: block;

  margin-bottom: 6px;

  color: rgba(212, 175, 55, 0.8);

  font-size: 0.72rem;
  letter-spacing: 4px;
}

.detail-content h3 {
  margin: 0;

  font-family: var(--title);
  font-weight: 400;
  font-size: 1.25rem;

  color: var(--white);
}

.detail-content p {
  margin-top: 5px;
  color: rgba(248, 245, 238, 0.75);
}

/* =========================
   COUNTDOWN
   ========================= */

.countdown-section {
  margin-bottom: 55px;
}

.countdown-section h2 {
  margin-bottom: 25px;

  color: var(--gold);

  font-family: var(--title);
  font-weight: 400;
}

#countdown {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.count-box {
  width: 90px;

  padding: 16px 8px;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.05);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(8px);
}

.count-box span {
  display: block;

  margin-bottom: 6px;

  font-size: 1.8rem;
  font-weight: 700;

  color: var(--gold);
}

.count-box small {
  color: rgba(248, 245, 238, 0.7);
  letter-spacing: 0.5px;
}

/* ==========================================================
   STYLE.CSS - RESPONSE 3
   MESSAGE • BUTTONS • FOOTER • EFFECTS • MOBILE
   ========================================================== */

/* =========================
   MESSAGE SECTION
   ========================= */

.message-section {
  max-width: 650px;
  margin: 0 auto 55px;
}

.message-section p {
  color: var(--text);
  line-height: 2;
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 15px;
}

.message-section span {
  color: var(--gold-soft);
  font-family: var(--title);
  letter-spacing: 1px;
}

/* =========================
   ACTION BUTTONS
   ========================= */

.action-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 60px;
}

.action-buttons a,
.action-buttons button {
  min-width: 220px;

  padding: 14px 28px;

  background: transparent;

  color: var(--white);

  border: 1px solid rgba(212, 175, 55, 0.35);

  border-radius: 40px;

  text-decoration: none;

  text-transform: uppercase;

  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 2px;
  font-weight: 500;

  cursor: pointer;

  transition:
    transform 0.35s,
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.action-buttons a:hover,
.action-buttons button:hover {
  transform: translateY(-4px);

  background: rgba(212, 175, 55, 0.08);

  border-color: var(--gold);

  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

/* =========================
   FOOTER
   ========================= */

footer {
  padding-bottom: 20px;
}

.footer-line {
  line-height: 1.9;
  color: rgba(248, 245, 238, 0.82);
  margin-bottom: 18px;
}

.footer-sign {
  color: var(--gold);

  font-family: var(--title);

  font-size: 1rem;

  line-height: 1.9;

  letter-spacing: 1px;
}

/* =========================
   DECORATIVE CORNERS
   ========================= */

.lantern {
  position: fixed;
  top: 20px;

  color: rgba(212, 175, 55, 0.4);

  font-size: 1.6rem;

  user-select: none;
  pointer-events: none;

  animation: lanternFloat 4s ease-in-out infinite;
}

.lantern-left {
  left: 20px;
}

.lantern-right {
  right: 20px;
}

@keyframes lanternFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* =========================
   FLOATING PARTICLES
   ========================= */

#particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -2;
}

#particles div {
  position: absolute;
  width: 4px;
  height: 4px;

  border-radius: 50%;

  background: rgba(212, 175, 55, 0.45);

  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);

  animation: particleFloat 14s linear infinite;
}

@keyframes particleFloat {
  from {
    transform: translateY(100vh) scale(0.5);

    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 0.8;
  }

  to {
    transform: translateY(-10vh) scale(1.1);

    opacity: 0;
  }
}

/* =========================
   PAGE REVEAL ANIMATION
   ========================= */

.welcome-text,
.names-section,
.divider,
.glass-card,
.countdown-section,
.message-section,
.action-buttons,
footer {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s ease forwards;
}

.welcome-text {
  animation-delay: 0.15s;
}

.names-section {
  animation-delay: 0.3s;
}

.divider {
  animation-delay: 0.45s;
}

.glass-card {
  animation-delay: 0.6s;
}

.countdown-section {
  animation-delay: 0.75s;
}

.message-section {
  animation-delay: 0.9s;
}

.action-buttons {
  animation-delay: 1.05s;
}

footer {
  animation-delay: 1.2s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

@media (max-width: 768px) {
  #invitation {
    padding: 45px 16px 70px;
  }

  .bismillah {
    font-size: 1.35rem;
  }

  .welcome-text {
    font-size: 0.96rem;
  }

  .glass-card {
    padding: 22px;
  }

  .detail-row {
    gap: 12px;
  }

  .count-box {
    width: 72px;
    padding: 14px 6px;
  }

  .count-box span {
    font-size: 1.4rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .action-buttons a,
  .action-buttons button {
    width: 100%;
    min-width: 100%;
  }

  .lantern {
    font-size: 1.2rem;
  }

  .orn-line {
    width: 50px;
  }
}

@media (max-width: 480px) {
  .couple-name {
    font-size: 2.6rem;
  }

  .center-symbol {
    font-size: 2.2rem;
  }

  .top-pattern {
    width: 100px;
  }

  .header-ornament {
    gap: 10px;
  }

  .orn-line {
    width: 36px;
  }
}

/* =========================================
   TOP FLORAL HEADER
   ========================================= */

.top-floral-border {
  width: 100%;
  max-width: 420px;

  margin: 16px auto 42px;

  text-align: center;

  color: rgba(212, 175, 55, 0.55);

  font-size: 1rem;
  letter-spacing: 12px;

  user-select: none;

  animation: floralGlow 5s ease-in-out infinite;
}

@keyframes floralGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-2px);
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.35);
  }
}
/* ==========================================================
   END OF STYLE.CSS
   ========================================================== */
