:root {
  /* Beige Color Palette */
  --bg-color: #FDFBF7;
  /* Very light beige */
  --text-main: #4A3B32;
  /* Dark warm brown for text */
  --text-muted: #8D7A6B;
  /* Medium warm brown */
  --accent: #C2A888;
  /* Classic beige accent */
  --border-light: #EAE0D5;
  /* Soft beige border */
  --card-bg: rgba(253, 251, 247, 0.95);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  color: var(--text-main);
}

body[dir="rtl"] h1,
body[dir="rtl"] h2,
body[dir="rtl"] h3,
body[dir="rtl"] h4 {
  font-family: 'Amiri', serif;
  font-weight: 700;
}

.en-text {
  display: block;
}

.ar-text {
  display: none;
}

body[dir="rtl"] .en-text {
  display: none;
}

body[dir="rtl"] .ar-text {
  display: block;
}

.flex-text.en-text {
  display: flex;
}

body[dir="rtl"] .flex-text.en-text {
  display: none;
}

.flex-text.ar-text {
  display: none;
}

body[dir="rtl"] .flex-text.ar-text {
  display: flex;
}

/* Top Navigation (Lang & Music) */
.top-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  pointer-events: none;
}

.lang-switcher,
.music-toggle {
  pointer-events: auto;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--text-main);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

body[dir="rtl"] .lang-switcher {
  font-family: 'Amiri', serif;
  font-size: 16px;
}

.music-toggle {
  padding: 8px 12px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url('image-%20(1).jpeg') center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 59, 50, 0.4);
  /* Dark brown overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.monogram {
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  letter-spacing: -5px;
  margin-bottom: 20px;
  font-weight: 400;
  color: var(--bg-color);
}

.hero-names {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 6px;
  font-size: 1.2rem;
  text-transform: uppercase;
  align-items: center;
  gap: 15px;
  color: var(--bg-color);
}

.hero-names i {
  font-size: 0.8rem;
  color: var(--accent);
}

body[dir="rtl"] .hero-names {
  font-family: 'Amiri', serif;
  font-size: 2rem;
  letter-spacing: 0;
}

/* Container for sections */
.section {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Parents Intro */
.intro-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Calendar Section */
.calendar-section {
  background: url('image-%20(2).jpeg') center/cover no-repeat;
  position: relative;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(253, 251, 247, 0.7) 100%);
}

.save-the-date {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: var(--text-main);
  position: relative;
  z-index: 2;
  margin-bottom: 30px;
}

body[dir="rtl"] .save-the-date {
  font-family: 'Amiri', serif;
  font-style: italic;
}

.calendar-card {
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(74, 59, 50, 0.1);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.cal-month {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--text-main);
}

.cal-year {
  font-size: 0.9rem;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 30px;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 15px 10px;
  font-size: 0.9rem;
}

.cal-day-header {
  font-weight: 500;
  color: var(--text-main);
}

.cal-day {
  color: var(--text-muted);
  position: relative;
}

.cal-day.active {
  color: var(--text-main);
  font-weight: 600;
}

.cal-day.active::after {
  content: '\F415';
  /* Heart icon */
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: rgba(194, 168, 136, 0.3);
  /* Accent color transparent */
  z-index: -1;
}

/* Split Details Section */
.split-section {
  display: flex;
  flex-wrap: wrap;
  background: var(--card-bg);
  margin: 60px 0;
  box-shadow: 0 5px 20px rgba(74, 59, 50, 0.05);
  border: 1px solid var(--border-light);
}

.split-img {
  flex: 1 1 400px;
  min-height: 500px;
  background: url('image-%20(3).jpeg') center/cover no-repeat;
}

.split-content {
  flex: 1 1 400px;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.detail-block {
  margin-bottom: 50px;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--accent);
}

body[dir="rtl"] .detail-title {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.detail-venue {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.detail-location {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.detail-time {
  font-size: 0.9rem;
  font-weight: 500;
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: inline-block;
  min-width: 100px;
  color: var(--text-main);
}

/* Timeline Section */
.timeline-wrapper {
  position: relative;
  max-width: 600px;
  margin: 80px auto;
  padding: 40px 0;
  direction: ltr;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border-light);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: var(--bg-color);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}

.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

body[dir="rtl"] .timeline-desc {
  letter-spacing: 0;
  font-family: 'Amiri', serif;
  font-size: 1.1rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 60px 0;
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  transition: transform 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.02);
}

.gallery img:nth-child(1) {
  grid-column: span 2;
  height: 400px;
}

.gallery img:nth-child(7) {
  grid-column: span 2;
  height: 400px;
}

/* Extras (Accommodation & Registry) */
.info-box {
  text-align: center;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  border-radius: 10px;
}

.info-box i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 15px;
  display: block;
}

.info-box h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.whish-code {
  display: inline-block;
  font-size: 1.5rem;
  letter-spacing: 2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  padding: 10px 20px;
  border-bottom: 1px solid var(--accent);
  color: var(--text-main);
}

.copy-btn {
  border: none;
  background: none;
  cursor: pointer;
  color: var(--accent);
  margin-left: 10px;
  font-size: 1.2rem;
}

/* Mobile Overrides */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 250px;
  }

  .gallery img:nth-child(1),
  .gallery img:nth-child(7) {
    grid-column: span 1;
    height: 300px;
  }
}
