/* style.css - Classic Luxury Theme */

/* Import Premium Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Montserrat:wght@200;300;400;500;600&display=swap');

/* Color Variables and Tokens */
:root {
  --color-maroon-dark: #2b050a;
  --color-maroon: #4a0e17;
  --color-maroon-light: #58111a;
  --color-maroon-tint: #faf2f2;
  --color-gold: #d4af37;
  --color-gold-light: #f3e5ab;
  --color-gold-dark: #aa771c;
  --color-gold-pale: #c5a059;
  --color-cream: #faf8f5;
  --color-text-dark: #2a2a2a;
  --color-text-muted: #666666;

  --font-serif-header: 'Cinzel', serif;
  --font-serif-body: 'Cormorant Garamond', serif;
  --font-sans: 'Montserrat', sans-serif;

  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
  --gold-glow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-maroon-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-light);
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif-header);
  color: var(--color-maroon);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.font-editorial {
  font-family: var(--font-serif-body);
}

.text-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-gold);
}

/* Base Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Cover / Gate Overlay */
.cover-gate {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-maroon-dark);
  background-image: radial-gradient(circle at center, rgba(88, 17, 26, 0.5) 0%, rgba(43, 5, 10, 0.95) 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition:
    transform 1.2s cubic-bezier(0.77, 0, 0.175, 1),
    opacity 1.2s ease-out;
  color: var(--color-cream);
  text-align: center;
  padding: 20px;
}

.cover-gate.dismissed {
  transform: translateY(-100vh);
  opacity: 0;
  pointer-events: none;
}

.cover-border-ornament {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 20px;
  right: 20px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cover-border-inner {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 8px;
  right: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.15);
}

/* Floating / Antigravity Animations */
.floating-monogram {
  animation: float 6s ease-in-out infinite;
}

.floating-ornament {
  animation: float-delayed 8s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@keyframes float-delayed {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(10px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Elegant Luxury Monogram Box */
.monogram-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--color-gold);
  transform: rotate(45deg);
  box-shadow: var(--gold-glow);
}

.monogram-bg::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.6);
}

.monogram-text {
  font-family: var(--font-serif-header);
  font-size: 2.2rem;
  color: var(--color-gold);
  z-index: 2;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Luxury Button Styling */
.btn-luxury {
  position: relative;
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-maroon);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.btn-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transition: var(--transition-smooth);
  z-index: -1;
}

.btn-luxury:hover {
  color: var(--color-maroon-dark);
  border-color: var(--color-gold-light);
  box-shadow: var(--gold-glow);
  transform: translateY(-2px);
}

.btn-luxury:hover::before {
  left: 0;
}

.btn-luxury:active {
  transform: translateY(1px);
}

/* Sections Setup */
section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Editorial Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--color-cream);
  background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 80%);
  padding: 60px 20px;
}

.hero-sub {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.hero-names {
  font-family: var(--font-serif-body);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 300;
  color: var(--color-maroon-dark);
  line-height: 1.1;
  margin: 20px 0;
}

.hero-names span {
  display: block;
  font-family: var(--font-serif-header);
  font-size: 0.6em;
  color: var(--color-gold-pale);
  margin: 10px 0;
}

.hero-date {
  font-family: var(--font-serif-header);
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  color: var(--color-maroon);
  margin-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding: 10px 40px;
  display: inline-block;
}

/* Section Dividers */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
}

.divider-line {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.divider-ornament {
  font-size: 1.2rem;
  color: var(--color-gold);
  margin: 0 15px;
  transform: rotate(45deg);
}

/* Ayat / Quote Section */
.quote-section {
  background-color: var(--color-maroon-dark);
  color: var(--color-cream);
  text-align: center;
  position: relative;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at center, rgba(13, 2, 4, 0.4) 0%, rgba(43, 5, 10, 0.9) 100%);
  z-index: 1;
}

.quote-section .container {
  position: relative;
  z-index: 2;
}

.quote-title {
  color: var(--color-gold);
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.quote-text {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
  color: var(--color-cream);
}

.quote-source {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-pale);
}

/* Cards & Details Section */
.events-section {
  background-color: var(--color-cream);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: var(--font-serif-body);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Premium Luxury Card */
.event-card {
  background-color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition-smooth);
}

.event-card::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px dashed rgba(212, 175, 55, 0.15);
  pointer-events: none;
}

.event-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(74, 14, 23, 0.08);
}

.event-icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px auto;
  border: 1px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  transform: rotate(45deg);
  transition: var(--transition-smooth);
}

.event-icon-box svg {
  transform: rotate(-45deg);
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.event-card:hover .event-icon-box {
  background-color: var(--color-maroon);
  border-color: var(--color-maroon);
  color: var(--color-cream);
  box-shadow: var(--gold-glow);
}

.event-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--color-maroon);
}

.event-date {
  font-family: var(--font-serif-header);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.event-time {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.event-address {
  font-family: var(--font-serif-body);
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Countdown Timer */
.countdown-section {
  background-color: var(--color-maroon);
  background-image: linear-gradient(135deg, var(--color-maroon) 0%, var(--color-maroon-dark) 100%);
  color: var(--color-cream);
  text-align: center;
  border-top: 2px solid var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
}

.countdown-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.countdown-item {
  min-width: 90px;
  background-color: rgba(43, 5, 10, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 20px 10px;
  position: relative;
  text-align: center;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px dashed rgba(212, 175, 55, 0.1);
}

.countdown-number {
  font-family: var(--font-serif-header);
  font-size: 2.2rem;
  color: var(--color-gold);
  font-weight: 700;
  display: block;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cream);
  margin-top: 5px;
  display: block;
}

/* Gift / Amplop Digital Section */
.gift-section {
  background-color: var(--color-cream);
}

.gift-cards {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 600px;
  margin: 40px auto 0 auto;
}

.gift-card {
  background-color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 36px 24px;
  text-align: center;
  position: relative;
}

.gift-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px dashed rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

.bank-logo {
  font-family: var(--font-serif-header);
  font-size: 1.5rem;
  color: var(--color-maroon);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.bank-holder {
  font-size: 0.95rem;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-bottom: 6px;
}

.bank-number {
  font-family: var(--font-serif-header);
  font-size: 1.3rem;
  color: var(--color-gold-dark);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  user-select: all;
}

.btn-copy {
  padding: 8px 24px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--color-maroon-dark);
  color: var(--color-cream);
  border: 1.5px solid var(--color-gold);
  padding: 12px 30px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 10000;
  box-shadow: var(--gold-glow);
  opacity: 0;
  transition:
    transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.4s ease;
}

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

/* Floating Audio Toggle */
.audio-player-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.96) 60%, rgba(43, 5, 10, 0.95) 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease;
}

.audio-player-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.audio-player-toggle:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 4px;
}

.audio-player-toggle .audio-spin {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: spin 5s linear infinite;
  transition: animation-play-state 0.2s ease;
}

.audio-player-toggle .audio-spin.paused {
  animation-play-state: paused;
}

.audio-player-toggle .vinyl-disc {
  position: relative;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  background: radial-gradient(circle at center, #222 0%, #080808 32%, #050505 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 6px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.audio-player-toggle .vinyl-grooves {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 0 3px rgba(255, 255, 255, 0.03),
    inset 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.audio-player-toggle .vinyl-center {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--color-gold) 0%, rgba(212, 175, 55, 0.16) 48%, rgba(0, 0, 0, 0.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.audio-player-toggle .audio-state-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--color-gold);
}

.audio-player-toggle .audio-state-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1),
    transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer Section */
.footer-section {
  background-color: var(--color-maroon-dark);
  color: var(--color-cream);
  text-align: center;
  padding: 80px 20px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-monogram {
  font-family: var(--font-serif-header);
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.footer-thankyou {
  font-family: var(--font-serif-body);
  font-size: 1.4rem;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--color-gold-light);
}

.footer-credits {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.4);
  text-transform: uppercase;
}
