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

:root {
  /* Backgrounds */
  --bg: #F2EDE4;          /* warm ivory */
  --bg-soft: #E8E1D4;     /* soft cream */

  /* Surfaces */
  --surface: rgba(242, 237, 228, 0.88);
  --surface-solid: #F2EDE4;

  /* Borders */
  --border: rgba(127, 143, 74, 0.25); /* muted moss green */

  /* Primary Accent (Olive Theme) */
  --gold: #6B7D3A;        /* olive green (main accent) */
  --gold-deep: #4F5D2A;   /* deep olive */

  /* Text */
  --text: #4F5D2A;        /* deep olive instead of black */
  --muted: #7A7266;       /* taupe gray */

  /* Shadows */
  --shadow: 0 18px 45px rgba(79, 93, 42, 0.12);
}

@font-face {
  font-family: 'FreightDisplay';
  src: url('/fonts/FreightDisplay.woff2') format('woff2'),
       url('/fonts/FreightDisplay.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
/* 
body {
  font-family: 'FreightDisplay', serif;
} */

@font-face {
  font-family: 'Brittany';
  src: url('fonts/BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Prestoria';
  src: url('fonts/Coolvetica\ Rg.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body{
  font-family: 'Poppins', sans-serif;
  font-weight: 100;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;

  background-image:linear-gradient(rgba(248, 245, 240, 0.1), rgba(248, 245, 240, 1)), url('/images/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: -1;
}

h1, h2, h3 {
  /* font-family: 'Coolvetica', sans-serif; */
    font-family: 'FreightDisplay', serif;
    font-weight: 300;
  letter-spacing: 1px;
}

.couple-names {
  font-family: 'FreightDisplay', serif;
  font-size: 92px;
  letter-spacing: 1px;
  color: #d4af37; /* soft gold */
}

/* .couple-names {
  font-weight: 500;
  letter-spacing: 1px;
} */

/* Opening screen */
.opening-screen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(184, 154, 99, 0.08), transparent 35%),
    linear-gradient(180deg, #fffdf9 0%, #f7f1e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

.opening-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening-inner {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}
.arabic,
.opening-bismillah {
  font-family: 'Brittany', cursive;
}
.opening-bismillah {
  /* color: #ffffff; */
  font-size: 58px;
  line-height: 1.8;
  direction: rtl;
  /* unicode-bidi: bidi-override; */
  min-height: 100px;
  letter-spacing: 1px;
}

.opening-subtext {
  color: var(--muted);
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInText 1s ease forwards;
  animation-delay: 2.8s;
}

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

.main-site {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.main-site.show {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(191, 166, 117, 0.14);
  padding: 18px 20px;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.nav-container a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.9px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-container a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-container a:hover {
  color: var(--gold-deep);
}

.nav-container a:hover::after {
  width: 100%;
  left: 0;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Background image */
  background: 
    linear-gradient(rgba(248, 245, 240, 0.1), rgba(248, 245, 240, 0.1)),
    url('images/bg.pn') no-repeat center center/cover;
  position: relative;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(184, 154, 99, 0.16);
  pointer-events: none;
}

.hero::before {
  top: 45px;
  left: 45px;
  border-right: none;
  border-bottom: none;
}

.hero::after {
  right: 45px;
  bottom: 45px;
  border-left: none;
  border-top: none;
}

.hero-content {
  max-width: 840px;
  position: relative;
  z-index: 1;
}

.arabic {
  font-size: 33px;
  margin-bottom: 22px;
  color: var(--gold);
  letter-spacing: 1px;
}

.subtitle {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 12px;
  margin-bottom: 22px;
  color: var(--muted);
}

.couple-names {
  font-size: 92px;
  line-height: 2;
  margin-bottom: 22px;
  color: var(--text);
  font-weight: 600;
}

.couple-names span {
  color: var(--gold);
  font-weight: 500;
}

.hero-date {
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--text);
  font-weight: 500;
}

.hero-text {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

/* Button */
.btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 25px rgba(184, 154, 99, 0.16);
}

.btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 110px 20px;
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 48px;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 600;
}

.section-title::after {
  content: "";
  display: block;
  width: 68px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

/* Cards */
.invitation-card,
.person-card,
.event-card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.invitation-card {
  border-radius: 32px;
  padding: 54px 38px;
  text-align: center;
  max-width: 920px;
  margin: auto;
}

.couple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.person-card {
  padding: 38px 30px;
  border-radius: 26px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(44, 33, 17, 0.08);
}

.person-card h3 {
  font-size: 40px;
  color: var(--text);
  margin-bottom: 12px;
}

.label {
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

/* Events */
.events {
  background: linear-gradient(180deg, rgba(246, 241, 232, 0.65), rgba(251, 248, 243, 0.55));
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.event-card {
  border-radius: 26px;
  padding: 34px 24px;
  text-align: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(44, 33, 17, 0.08);
}

.event-card h3 {
  color: var(--text);
  font-size: 32px;
  margin-bottom: 12px;
}

/* Countdown */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.time-box {
  background: rgba(255, 253, 249, 0.76);
  color: var(--text);
  padding: 28px 12px;
  border-radius: 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 14px 35px rgba(44, 33, 17, 0.05);
}

.time-box span {
  display: block;
  font-size: 38px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 34px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(44, 33, 17, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(191, 166, 117, 0.14);
}

.gallery-grid img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px rgba(44, 33, 17, 0.12);
}

/* Dua */
.dua {
  background:
    radial-gradient(circle at top, rgba(184, 154, 99, 0.06), transparent 35%),
    linear-gradient(180deg, #fbf8f3 0%, #f6f1e8 100%);
  color: var(--text);
  text-align: center;
}

.dua .section-title {
  color: var(--text);
}

.dua-text {
  max-width: 820px;
  margin: auto;
  font-size: 28px;
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.8;
  color: #3d382f;
}

/* Footer */
.footer {
  background: rgba(255, 252, 246, 0.75);
  color: var(--text);
  text-align: center;
  padding: 46px 20px;
  border-top: 1px solid rgba(191, 166, 117, 0.16);
}

.footer p {
  margin: 6px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .couple-names {
    font-size: 58px;
  }

  .arabic {
    font-size: 24px;
  }

  .opening-bismillah {
    font-size: 32px;
    line-height: 1.9;
    min-height: 70px;
  }

  .section-title {
    font-size: 38px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero::before,
  .hero::after {
    width: 90px;
    height: 90px;
  }

  .hero::before {
    top: 25px;
    left: 25px;
  }

  .hero::after {
    right: 25px;
    bottom: 25px;
  }

  section {
    padding: 90px 20px;
  }

  .gallery-grid img {
    height: 260px;
  }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.photo-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-solid);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}


.opening-screen {
  position: fixed;
  width: 100%;
  height: 100vh;
  background: url('images/couple.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  /* filter: grayscale(50%); */
}

/* Dark + gold overlay */
.opening-screen::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.4)
  );
}


.footer {
  text-align: center;
  padding: 40px 20px;
}

.footer-message {
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 20px;
}

.family p:first-child {
  font-style: italic;
  margin-bottom: 5px;
}

.names {
  font-size: 18px;
  line-height: 1.6;
}

.couple-date {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.8;
}

/* Gold shimmer layer */
.opening-screen::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.1) 20%,
    rgba(255, 255, 255, 0.3) 40%,
    rgba(255, 255, 255, 0.1) 60%
  );
  transform: rotate(25deg);
  animation: shimmer 6s infinite linear;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    transform: translateX(-50%) rotate(25deg);
  }
  100% {
    transform: translateX(50%) rotate(25deg);
  }
}


.opening-bismillah {
  color: #fcfcfc;
  position: relative;
  z-index: 2; /* VERY IMPORTANT */
    /* text-shadow: 0 0 12px rgba(255,255,255,0.25); */

}
/* Wishes Section */

.wish-form {
  max-width: 700px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wish-form input,
.wish-form textarea {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.wish-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wishes-list {
  margin-top: 40px;
  display: grid;
  gap: 20px;
}



/* =========================
   PARALLAX REVEAL
========================= */

.parallax-reveal{
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1s ease;
  will-change: transform, opacity;
}


/* DEFAULT */

.parallax-reveal{
  transform: translateY(60px);
}


/* LEFT */

.parallax-reveal.parallax-left{
  transform: translateX(-80px);
}


/* RIGHT */

.parallax-reveal.parallax-right{
  transform: translateX(80px);
}


/* ZOOM */

.parallax-reveal.parallax-zoom{
  transform: scale(0.9);
}


/* ACTIVE */

.parallax-reveal.active{
  opacity: 1;
  transform: translateX(0) translateY(0) scale(1);
}


/* MOBILE */

@media(max-width:768px){

  .parallax-reveal{
    transition-duration: 0.7s;
  }

}

/* Wishes Carousel */
.wishes-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 30px;
  padding: 10px 0;
}

.wishes-list {
  display: flex;
  gap: 18px;
  transition: transform 0.5s ease;
  will-change: transform;
  touch-action: pan-y;
}

/* Wish Card */
.wish-card {
  min-width: 300px;
  max-width: 300px;
  border-radius: 24px;
  padding: 24px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Different Colors */
.wish-card:nth-child(4n+1) {
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
}

.wish-card:nth-child(4n+2) {
  background: linear-gradient(135deg, #43cea2, #185a9d);
}

.wish-card:nth-child(4n+3) {
  background: linear-gradient(135deg, #f7971e, #ffd200);
}

.wish-card:nth-child(4n+4) {
  background: linear-gradient(135deg, #7f00ff, #e100ff);
}

.wish-card h4 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: white;
}

.wish-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.95);
}

/* Mobile */
@media (max-width: 768px) {
  .wish-card {
    min-width: 85%;
    max-width: 85%;
  }
}
