@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400&family=Cinzel:wght@500;700&display=swap');

:root {
  --bg-primary: #25152c;
  --bg-secondary: #1a0e20;
  --accent-gold: #edb879;
  --accent-gold-light: #f5d4a4;
  --accent-gold-dark: #c49045;
  --text-light: #fffdfa;
  --text-muted: #d0c0d6;
  --gold-gradient: linear-gradient(135deg, #f5d4a4 0%, #edb879 50%, #c49045 100%);
  --gold-gradient-soft: linear-gradient(135deg, rgba(245, 212, 164, 0.15) 0%, rgba(237, 184, 121, 0.15) 50%, rgba(196, 144, 69, 0.15) 100%);
  --glass-bg: rgba(37, 21, 44, 0.65);
  --glass-border: rgba(237, 184, 121, 0.25);
  --shadow-gold: 0 8px 32px 0 rgba(237, 184, 121, 0.15);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-light);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.script-font {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
  color: var(--accent-gold-light);
}

.cinzel-font {
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  font-weight: 700;
}

/* Background Ornament Decorations */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.bg-mandala {
  position: absolute;
  width: 300px;
  height: 300px;
  opacity: 0.05;
  border-radius: 50%;
  border: 1px dashed var(--accent-gold);
  background: radial-gradient(circle, rgba(237,184,121,0.05) 0%, transparent 70%);
}

.bg-mandala-top-left {
  top: -100px;
  left: -100px;
  animation: rotate 60s linear infinite;
}

.bg-mandala-bottom-right {
  bottom: -100px;
  right: -100px;
  animation: rotate 60s linear infinite reverse;
}

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

/* Floating Elements (Hearts & Flowers) */
.floating-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.floating-item {
  position: absolute;
  bottom: -50px;
  pointer-events: none;
  opacity: 0;
  animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) translateX(100px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Particle Canvas */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Utility Layouts */
.section {
  padding: 80px 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 35px 25px;
  box-shadow: var(--shadow-gold);
  width: 100%;
  max-width: 500px;
  margin: 20px auto;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(237, 184, 121, 0.45);
  box-shadow: 0 12px 40px 0 rgba(237, 184, 121, 0.25);
}

/* Divider Lines */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px auto;
  width: 80%;
  max-width: 300px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold-gradient);
}

.divider svg {
  width: 24px;
  height: 24px;
  margin: 0 15px;
  fill: var(--accent-gold);
  animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(237,184,121,0.4)); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 8px rgba(237,184,121,0.8)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(237,184,121,0.4)); }
}

/* Islamic Border Framing */
.islamic-border {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
  border-radius: 12px;
}

.islamic-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent-gold);
  pointer-events: none;
}

.corner-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.corner-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.corner-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.corner-br { bottom: 10px; right: 10px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }


/* ==================== HERO SECTION ==================== */
.hero {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 40px 20px;
  background-image: linear-gradient(to bottom, rgba(37, 21, 44, 0.45) 30%, rgba(37, 21, 44, 1) 95%), url('wedding_hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 20%, rgba(37,21,44,0.85) 90%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  animation: fadeIn 1.8s ease-out;
  padding: 30px 20px;
  background: rgba(37, 21, 44, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 30px;
  border: 1px solid rgba(237, 184, 121, 0.15);
}

.bismillah {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 1px solid var(--accent-gold-dark);
  padding-bottom: 8px;
}

.bismillah-arabic {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--accent-gold-light);
  display: block;
}

.invitation-text {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 5px;
  margin-bottom: 20px;
  color: var(--text-light);
  font-weight: 500;
}

.hero-names {
  font-size: 4.8rem;
  margin: 15px 0;
  line-height: 1.1;
  color: var(--accent-gold-light);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: floatNames 5s ease-in-out infinite alternate;
}

@keyframes floatNames {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.hero-date-badge {
  display: inline-block;
  border: 1.5px solid var(--accent-gold);
  padding: 10px 30px;
  border-radius: 50px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-top: 25px;
  color: var(--accent-gold);
  background: rgba(237, 184, 121, 0.08);
  box-shadow: 0 0 15px rgba(237,184,121,0.15);
}

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


/* ==================== BRIDE & GROOM SECTION ==================== */
.couple-intro-text {
  max-width: 600px;
  margin-bottom: 40px;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.couple-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  justify-content: center;
  align-items: stretch;
}

.couple-card {
  flex: 1;
}

.monogram-container {
  width: 110px;
  height: 110px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.monogram-frame {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  stroke: var(--accent-gold);
  stroke-width: 1.5;
  fill: none;
  animation: rotateFrame 40s linear infinite;
}

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

.monogram-text {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  z-index: 1;
}

.couple-card h3 {
  font-size: 2.8rem;
  margin-bottom: 10px;
  color: var(--accent-gold-light);
}

.family-relation {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 2px;
  margin: 15px 0 5px;
}

.parents-names {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.grandparents-names {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ==================== RECEPTION DETAILS SECTION ==================== */
.reception-time-card {
  max-width: 550px;
}

.reception-header {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.date-large {
  font-size: 2rem;
  font-weight: 700;
  margin: 15px 0;
  color: var(--text-light);
  letter-spacing: 1px;
}

.time-range {
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  font-weight: 600;
  margin-bottom: 20px;
}

.hijri-date {
  background: var(--gold-gradient-soft);
  border: 1px solid rgba(237, 184, 121, 0.15);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--accent-gold);
  letter-spacing: 1px;
  margin-bottom: 25px;
  display: inline-block;
}

/* Calendar Styling */
.calendar-card {
  max-width: 450px;
}

.calendar-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.calendar-title svg {
  fill: var(--accent-gold);
  width: 18px;
  height: 18px;
}

.calendar-month {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 15px;
  letter-spacing: 3px;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th, .calendar-table td {
  padding: 10px 5px;
  text-align: center;
  font-size: 0.95rem;
  width: 14.28%;
}

.calendar-table th {
  color: var(--accent-gold);
  font-weight: 600;
  border-bottom: 1px solid rgba(237, 184, 121, 0.15);
}

.calendar-table td {
  color: var(--text-muted);
}

.calendar-table .other-month {
  opacity: 0.25;
}

.calendar-table .highlight-date {
  color: var(--bg-primary);
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.calendar-table .highlight-date::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--gold-gradient);
  border-radius: 50%;
  z-index: -1;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: calendarPulse 2s infinite;
}

@keyframes calendarPulse {
  0% { box-shadow: 0 0 0 0 rgba(237, 184, 121, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(237, 184, 121, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 184, 121, 0); }
}


/* ==================== LOCATION & DIRECTIONS ==================== */
.venue-details-card {
  max-width: 600px;
}

.venue-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.venue-name {
  font-size: 2.2rem;
  color: var(--accent-gold-light);
  margin-bottom: 15px;
}

.venue-address {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  padding: 0 10px;
}

.map-wrapper {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 25px;
  aspect-ratio: 16/9;
  min-height: 250px;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(237, 184, 121, 0.4);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(237, 184, 121, 0.6);
  background: linear-gradient(135deg, #ffe3bd 0%, #edb879 50%, #d89f53 100%);
}

.btn svg {
  fill: var(--bg-primary);
  width: 20px;
  height: 20px;
}


/* ==================== FOOTER ==================== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  padding: 50px 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-names {
  font-size: 2.8rem;
  color: var(--accent-gold-light);
  line-height: 1.2;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--accent-gold);
}

.contact-link svg {
  fill: var(--accent-gold);
  width: 18px;
  height: 18px;
  animation: phoneShimmy 3s infinite;
}

@keyframes phoneShimmy {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(15deg); }
  94% { transform: rotate(-15deg); }
  96% { transform: rotate(15deg); }
  98% { transform: rotate(-15deg); }
}

.footer-address {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 450px;
  line-height: 1.5;
}

.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 20px;
  width: 100%;
}


/* ==================== INTERACTIVE / CONTROLS ==================== */
.music-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  width: 50px;
  height: 50px;
  background: var(--gold-gradient);
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(237, 184, 121, 0.5);
}

.music-toggle svg {
  width: 22px;
  height: 22px;
  fill: var(--bg-primary);
}

.music-toggle.playing svg.note-icon {
  animation: musicBounce 1.5s ease-in-out infinite;
}

@keyframes musicBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}


/* ==================== MEDIA QUERIES (DESKTOP) ==================== */
@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
  
  .section {
    padding: 100px 30px;
  }
  
  .hero {
    height: 100vh;
    background-attachment: fixed;
  }

  .hero-content {
    max-width: 800px;
    padding: 50px 40px;
  }
  
  .hero-names {
    font-size: 6rem;
  }
  
  .couple-container {
    flex-direction: row;
    align-items: stretch;
    gap: 40px;
  }
  
  .couple-card {
    padding: 50px 30px;
  }
  
  .reception-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1000px;
    margin-top: 30px;
  }
  
  .reception-time-card, .calendar-card {
    flex: 1;
    margin: 0;
  }

  .map-wrapper {
    aspect-ratio: 21/9;
  }
  
  .footer-contacts {
    flex-direction: row;
    gap: 40px;
  }
}
