body {
    font-family: 'Poppins', sans-serif;
    background-color: #FDFBF8;
    color: #645e5e;
    cursor: none;
    overflow-x: hidden;
}

.body-no-scroll {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
}

.hero-bg {
    background-image: url('image/background.jpg');
    background-size: cover;
    background-position: center;
    animation: kenburns 20s ease-out infinite;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #C7A19A;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #C7A19A;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #C57D75;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #C7A19A;
    box-shadow: 0 0 0 3px rgba(168, 139, 106, 0.2);
}

/* Arabic Calligraphy Invitation Opener */
.invitation-opener {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(ellipse at center, #76534c 0%, #402b2c 55%, #211a20 100%);
    z-index: 10001;
  opacity: 1;
  transition: opacity 1s ease;
}

.calligraphy-card {
  width: min(100%, 42rem);
  padding: clamp(2rem, 7vw, 4rem);
  text-align: center;
  border: 1px solid rgba(242, 218, 172, 0.55);
  outline: 1px solid rgba(242, 218, 172, 0.2);
  outline-offset: 8px;
  color: #f6e9d1;
  animation: calligraphy-card-enter 1.2s ease-out both;
}

.calligraphy-star {
  display: inline-block;
  color: #e8c888;
  font-size: 1.5rem;
  animation: star-glow 2.5s ease-in-out infinite alternate;
}

.arabic-calligraphy {
  margin: 1.5rem 0 1rem;
  color: #f3d69a;
  font-family: 'Amiri', serif;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.7;
  text-shadow: 0 0 24px rgba(243, 214, 154, 0.28);
  animation: calligraphy-reveal 1.8s 0.2s ease-out both;
}

.calligraphy-divider {
  color: #e8c888;
  letter-spacing: 0.35rem;
}

.calligraphy-caption {
  margin: 1rem 0 2rem;
  color: rgba(246, 233, 209, 0.82);
  font-family: 'Playfair Display', serif;
  font-size: clamp(0.9rem, 2.5vw, 1.15rem);
  letter-spacing: 0.04em;
}

#open-invitation-button {
  padding: 0.85rem 2rem;
  background-color: #e8c888;
  color: #402b2c;
  border: 0;
  border-radius: 9999px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
    cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

#open-invitation-button:hover {
  background-color: #f3d69a;
  transform: translateY(-2px);
}

.invitation-opener.is-opening {
  opacity: 0;
  pointer-events: none;
}

.invitation-opener.is-opening .calligraphy-card {
  animation: calligraphy-card-exit 0.8s ease-in both;
}

@keyframes calligraphy-card-enter {
  from { opacity: 0; transform: translateY(1rem) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes calligraphy-reveal {
  from { opacity: 0; transform: scale(0.92); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

@keyframes calligraphy-card-exit {
  to { opacity: 0; transform: scale(1.04); filter: blur(5px); }
}

@keyframes star-glow {
  from { opacity: 0.65; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.1); }
}

.main-content-wrapper {
    opacity: 0;
    transition: opacity 1s ease;
  }

  #main-content-wrapper > main {
    width: 100%;
    max-width: none;
    background-image: linear-gradient(rgba(20, 16, 15, 0.45), rgba(20, 16, 15, 0.45)), url('image/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Animations */
@keyframes kenburns {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    50% {
        transform: scale(1) translate(-1%, 1%);
    }

    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-on-scroll {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

/* Applying cascade delays */
#couple .animate-on-scroll:nth-child(2) {
    transition-delay: 200ms;
}

#events .card:nth-child(1) {
    transition-delay: 100ms;
}

#events .card:nth-child(2) {
    transition-delay: 200ms;
}

#events .card:nth-child(3) {
    transition-delay: 300ms;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid #C7A19A;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, transform 0.1s linear;
    z-index: 9999;
}

.custom-cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: rgba(168, 139, 106, 0.2);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

.lightbox-close {
    top: 20px;
    right: 30px;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

/* Music Player */
#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #C7A19A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    cursor: pointer;
}
/* ===============================
   Floating Hearts Background
   =============================== */

.floating-hearts {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none; /* VERY important */
  z-index: 0;
}

/* Each heart */
.floating-hearts span {
  position: absolute;
  bottom: -10%;
  font-size: 20px;
  opacity: 0.25;
  animation: floatHeart linear infinite;
}

/* Different sizes, positions & speeds */
.floating-hearts span:nth-child(1) {
  left: 10%;
  font-size: 16px;
  animation-duration: 14s;
}
.floating-hearts span:nth-child(2) {
  left: 25%;
  font-size: 22px;
  animation-duration: 18s;
}
.floating-hearts span:nth-child(3) {
  left: 40%;
  font-size: 14px;
  animation-duration: 12s;
}
.floating-hearts span:nth-child(4) {
  left: 55%;
  font-size: 26px;
  animation-duration: 20s;
}
.floating-hearts span:nth-child(5) {
  left: 70%;
  font-size: 18px;
  animation-duration: 16s;
}
.floating-hearts span:nth-child(6) {
  left: 80%;
  font-size: 24px;
  animation-duration: 22s;
}
.floating-hearts span:nth-child(7) {
  left: 90%;
  font-size: 15px;
  animation-duration: 13s;
}
.floating-hearts span:nth-child(8) {
  left: 5%;
  font-size: 20px;
  animation-duration: 19s;
}

/* Floating animation */
@keyframes floatHeart {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.25;
  }
  100% {
    transform: translateY(-120vh) scale(1.2);
    opacity: 0;
  }
}

/* Ensure content stays above hearts */
body > * {
  position: relative;
  z-index: 1;
}
/* ===============================
   GLASS FUTURISTIC THEME OVERRIDE
   =============================== */

:root {
  --glass-bg: rgba(0, 0, 0, 0.15);
  --glass-border: rgba(255, 215, 0, 0.3);
  --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  --neon-accent: #ffd000;
  --neon-secondary: #ffffff;
}

/* Body background upgrade */
body {
  background: radial-gradient(
      circle at top left,
      rgba(255, 215, 0, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(184, 134, 11, 0.15),
      transparent 40%
    ),
    #1a1a1a;
  color: #e5e7eb;
}

/* Hero overlay becomes glass */
.hero-bg > div {
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(8px);
  /* border: 1px solid var(--glass-border); */
  box-shadow: var(--glass-shadow);
  border-radius: 3rem;
}

/* Section titles – futuristic glow */
.section-title {
  color: var(--neon-accent);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Cards → Glass */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Card hover = subtle neon lift */
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.25),
    0 30px 60px rgba(0, 0, 0, 0.45);
}

/* Buttons – glass neon */
.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.35),
    rgba(184, 134, 11, 0.35)
  );
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.55),
    rgba(184, 134, 11, 0.55)
  );
}

/* Inputs – glass */
input,
textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  backdrop-filter: blur(10px);
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Gallery overlay more futuristic */
.gallery-overlay {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.65),
    rgba(184, 134, 11, 0.65)
  );
  backdrop-filter: blur(10px);
}

/* Music player – neon orb */
#music-player {
  background: radial-gradient(
    circle at top left,
    var(--neon-accent),
    var(--neon-secondary)
  );
  box-shadow:
    0 0 20px rgba(255, 215, 0, 0.6),
    0 0 40px rgba(184, 134, 11, 0.4);
}

/* Footer glass */
footer {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--glass-border);
}

/* Lightbox glass feel */
.lightbox img {
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.3),
    0 0 80px rgba(184, 134, 11, 0.2);
}

/* Cursor neon */
.custom-cursor {
  border-color: var(--neon-accent);
}

.custom-cursor.hovered {
  background-color: rgba(255, 215, 0, 0.25);
}
/* =========================================
   EVENT, COUNTDOWN, BRIDE & GROOM COLOR FIX
   ========================================= */

/* 1️⃣ Event card headings (Haldi, Wedding, etc.) */
#events .card h3 {
  color: #ffffff !important;
  text-shadow: none;
}

#events .card:hover h3 {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* 2️⃣ Countdown numbers */
#countdown-timer div > div {
  color: #ffffff !important;
  text-shadow: none;
}

/* Countdown labels (Days, Hours, Minutes, Seconds) */
#countdown-timer span {
  color: #ffffff !important;
  opacity: 0.9;
}

/* 3️⃣ Bride & Groom names (The Couple section) */
#couple h3 {
  color: #ffffff !important;
  text-shadow: none;
}

/* Optional: soft glow on hover (safe) */
#couple h3:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
}
/* ===============================
   HERO INNER SHADOW
   =============================== */

.hero-bg {
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.6),
    inset 0 0 200px rgba(0, 0, 0, 0.4);
}
