:root {
  --gold: #D4AF37;
  --gold-light: #F4E4B8;
  --gold-dark: #B8941F;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --brown: #6B5D4F;
  --brown-dark: #3C2F1F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', 'Amiri', sans-serif;
  background: var(--cream);
  color: var(--brown-dark);
  direction: rtl;
  overflow-x: hidden;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== DOORS SCREEN ========== */
#doorsScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 1s ease, visibility 1s ease;
}

#doorsScreen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.doors-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2C1810 0%, #4A3728 50%, #2C1810 100%);
}

.doors-container {
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 80vh;
  max-height: 700px;
  perspective: 2000px;
}

.islamic-arch {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 120px;
  border: 8px solid var(--gold);
  border-bottom: none;
  border-radius: 300px 300px 0 0;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), transparent);
  z-index: 1;
}

.door {
  position: absolute;
  width: 50%;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  border: 6px solid var(--gold-dark);
  transition: transform 2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  cursor: pointer;
  overflow: hidden;
}

.door-left {
  left: 0;
  border-radius: 150px 0 0 150px;
  border-right: 3px solid var(--gold-dark);
  transform-origin: left center;
}

.door-right {
  right: 0;
  border-radius: 0 150px 150px 0;
  border-left: 3px solid var(--gold-dark);
  transform-origin: right center;
}

.doors-container.opening .door-left {
  transform: rotateY(-125deg);
}

.doors-container.opening .door-right {
  transform: rotateY(125deg);
}

.door-pattern {
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(139, 107, 71, 0.3) 40px, rgba(139, 107, 71, 0.3) 42px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(139, 107, 71, 0.3) 40px, rgba(139, 107, 71, 0.3) 42px);
}

.door-handle {
  position: absolute;
  width: 20px;
  height: 70px;
  background: var(--gold-dark);
  border-radius: 10px;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.door-left .door-handle {
  right: 30px;
}

.door-right .door-handle {
  left: 30px;
}

.tap-instruction {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--gold-light);
  z-index: 10;
  animation: pulse 2s infinite;
}

.tap-icon {
  font-size: 50px;
  margin-bottom: 10px;
  animation: bounce 1.5s infinite;
}

.tap-instruction p {
  font-size: 22px;
  font-weight: 600;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}


/* ========== MAIN INVITATION ========== */
#mainInvitation {
  display: none;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ========== BISMILLAH SECTION ========== */
.bismillah-section {
  padding: 100px 20px 60px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.bismillah-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 244, 235, 0.95));
  border: 5px solid var(--gold);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
  text-align: center;
}

.ornament-top, .ornament-bottom {
  font-size: 28px;
  color: var(--gold);
  margin: 20px 0;
}

.bismillah {
  font-family: 'Scheherazade New', serif;
  font-size: 52px;
  color: var(--gold-dark);
  margin: 40px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

/* ========== VERSE SECTION ========== */
.verse-section {
  padding: 80px 20px;
  background: var(--white);
}

.verse-card {
  max-width: 750px;
  margin: 0 auto;
  padding: 50px 40px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border-radius: 20px;
  border: 3px solid var(--border);
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
  text-align: center;
}

.verse-ornament {
  font-size: 24px;
  color: var(--gold);
  margin: 20px 0;
}

.verse-arabic {
  font-family: 'Amiri', serif;
  font-size: 28px;
  line-height: 2.2;
  color: var(--brown-dark);
  margin: 30px 0;
}

.verse-ref {
  font-size: 18px;
  color: var(--brown);
  font-weight: 600;
  margin-top: 30px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 42px;
  color: var(--gold-dark);
  margin-bottom: 15px;
  font-weight: 700;
}

.header-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}

/* ========== COUPLE SECTION ========== */
.couple-section {
  padding: 80px 20px;
  background: var(--cream);
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.couple-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  border: 3px solid var(--gold-light);
  transition: transform 0.3s ease;
}

.couple-card:hover {
  transform: translateY(-5px);
}

.couple-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.couple-card h3 {
  font-size: 16px;
  color: var(--brown);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.couple-card h2 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 40px;
  color: var(--gold-dark);
  margin-bottom: 20px;
  font-weight: 700;
}

.family-name {
  font-size: 14px;
  color: var(--brown);
  margin: 15px 0 8px;
}

.couple-card p:last-child {
  font-size: 16px;
  color: var(--brown-dark);
  font-weight: 500;
}

.couple-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-heart {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

/* ========== DATE & TIME SECTION ========== */
.datetime-section {
  padding: 80px 20px;
  background: white;
}

.datetime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.datetime-card {
  background: var(--cream);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  border: 3px solid var(--gold-light);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
  transition: transform 0.3s ease;
}

.datetime-card:hover {
  transform: translateY(-5px);
}

.datetime-icon {
  font-size: 50px;
  margin-bottom: 20px;
}

.datetime-card h3 {
  font-size: 18px;
  color: var(--brown);
  margin-bottom: 20px;
}

.datetime-value {
  font-family: 'Aref Ruqaa', serif;
  font-size: 32px;
  color: var(--gold-dark);
  font-weight: 700;
}

/* COUNTDOWN */
.countdown-box {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 50px 40px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.countdown-box h3 {
  color: white;
  font-size: 24px;
  margin-bottom: 30px;
  font-family: 'Aref Ruqaa', serif;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  direction: ltr; /* Force left-to-right for countdown */
}

.time-unit {
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 30px;
  border-radius: 15px;
  min-width: 100px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.time-number {
  display: block;
  font-family: 'Aref Ruqaa', serif;
  font-size: 42px;
  color: var(--gold-dark);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.time-label {
  display: block;
  font-size: 14px;
  color: var(--brown);
}

.time-separator {
  font-size: 36px;
  color: white;
  font-weight: 700;
}


/* ========== PROGRAM SECTION ========== */
.program-section {
  padding: 80px 20px;
  background: white;
}

.program-timeline {
  max-width: 800px;
  margin: 0 auto;
}

.program-item {
  display: flex;
  gap: 30px;
  padding: 30px;
  background: var(--cream);
  border-radius: 15px;
  margin-bottom: 20px;
  border-right: 5px solid var(--gold);
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
}

.program-item:hover {
  transform: translateX(-10px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
  border-right-width: 8px;
}

.program-time {
  font-family: 'Aref Ruqaa', serif;
  font-size: 24px;
  color: var(--gold-dark);
  font-weight: 700;
  min-width: 120px;
  text-align: center;
  padding: 10px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-content {
  flex: 1;
}

.program-content h4 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}

.program-content p {
  font-size: 16px;
  color: var(--text-light);
  opacity: 0.8;
}

/* ========== VENUE SECTION ========== */
.venue-section {
  padding: 80px 20px;
  background: var(--cream);
}

.venue-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
  border: 3px solid var(--gold-light);
}

.venue-image-wrapper {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.venue-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.venue-card:hover .venue-image {
  transform: scale(1.05);
}

.venue-details {
  padding: 40px;
}

.venue-details h3 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 32px;
  color: var(--gold-dark);
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
}

.venue-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-item svg {
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 3px;
}

.info-label {
  font-size: 14px;
  color: var(--brown);
  margin-bottom: 5px;
}

.info-item p:last-child {
  font-size: 18px;
  color: var(--brown-dark);
  font-weight: 500;
}

.maps-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  max-width: 350px;
}

.maps-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* ========== GALLERY SECTION ========== */
.gallery-section {
  padding: 80px 20px;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== CLOSING SECTION ========== */
.closing-section {
  padding: 80px 20px;
  background: var(--cream);
}

.closing-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
  border-radius: 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3);
  text-align: center;
}

.closing-ornament {
  font-size: 24px;
  color: var(--gold);
  margin: 20px 0;
}

.closing-card h3 {
  font-family: 'Aref Ruqaa', serif;
  font-size: 28px;
  color: var(--gold-dark);
  margin-bottom: 25px;
  font-weight: 700;
}

.dua-text {
  font-family: 'Amiri', serif;
  font-size: 26px;
  line-height: 2;
  color: var(--brown-dark);
  margin: 30px 0;
}

.closing-thanks {
  font-size: 18px;
  color: var(--brown);
  margin-top: 30px;
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  padding: 60px 20px 30px;
  color: white;
  text-align: center;
}

.footer-names {
  font-family: 'Aref Ruqaa', serif;
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-text {
  font-size: 18px;
  opacity: 0.95;
}

/* ========== MUSIC BUTTON ========== */
.music-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .bismillah {
    font-size: 40px;
  }
  
  .verse-arabic {
    font-size: 24px;
    line-height: 2;
  }
  
  .section-header h2 {
    font-size: 36px;
  }
  
  .couple-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .couple-divider {
    order: -1;
  }
  
  .divider-heart {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
  
  .couple-card h2 {
    font-size: 32px;
  }
  
  .datetime-grid {
    grid-template-columns: 1fr;
  }
  
  .time-unit {
    min-width: 80px;
    padding: 20px 20px;
  }
  
  .time-number {
    font-size: 36px;
  }
  
  .time-separator {
    display: none;
  }
  
  .venue-image-wrapper {
    height: 300px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .program-item {
    flex-direction: column;
    gap: 15px;
    padding: 25px 20px;
  }
  
  .program-time {
    min-width: 100%;
    font-size: 20px;
  }
  
  .program-content h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .bismillah-card {
    padding: 40px 25px;
  }
  
  .bismillah {
    font-size: 32px;
  }
  
  .verse-card {
    padding: 40px 25px;
  }
  
  .verse-arabic {
    font-size: 20px;
  }
  
  .couple-card {
    padding: 30px 20px;
  }
  
  .couple-card h2 {
    font-size: 28px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .footer-names {
    font-size: 32px;
  }
}
