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

:root {
  --bg: #fbf8f3;
  --bg-soft: #f6f1e8;
  --surface: rgba(255, 252, 246, 0.88);
  --surface-solid: #fffdf9;
  --border: rgba(191, 166, 117, 0.22);
  --gold: #b89a63;
  --gold-deep: #9f8048;
  --text: #1f1d1a;
  --muted: #7b7468;
  --shadow: 0 18px 45px rgba(44, 33, 17, 0.06);
}

@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('opentype');
  font-weight: normal;
  font-style: normal;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top, rgba(184, 154, 99, 0.07), transparent 32%),
    linear-gradient(180deg, #fdfbf7 0%, #f8f3eb 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.5px;
}

/* 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-inner {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}

.arabic,
.opening-bismillah {
  font-family: 'Amiri', serif;
}

.opening-bismillah {
  color: var(--gold);
  font-size: 32px;
  line-height: 1;
  direction: rtl;
  unicode-bidi: bidi-override;
  min-height: 30px;
  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: 16px 14px;
}

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

.nav-container a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  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 {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(248, 245, 240, 0.4), rgba(248, 245, 240, 0.4)),
    url('images/Fireflya.jpg') no-repeat center center/cover;
  position: relative;
  padding: 30px 16px;
}

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

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

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

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

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

.bismillah-meaning {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-style: italic;
  color: #9f7a55;
  margin: 0 auto 24px;
  max-width: 280px;
  line-height: 1.6;
}

.couple-names {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  flex-wrap: nowrap;
  font-family: 'Italianno', cursive;
  font-size: 66px;
  line-height: 0.84;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.couple-names .name {
  color: var(--gold);
  display: inline-block;
  font-weight: 400;
}

.couple-names .ampersand {
  color: #111;
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  margin: 4px 0;
}

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

.hero-text {
  max-width: 290px;
  margin: 0 auto 30px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

/* Button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
  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: 90px 20px;
}

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

.section-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  color: var(--text);
  margin-bottom: 14px;
  font-weight: 600;
  line-height: 1.1;
}

.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 42px;
  color: var(--muted);
  font-size: 14px;
  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: 28px;
  padding: 40px 24px;
  text-align: center;
  max-width: 920px;
  margin: auto;
}

.invite-highlight {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.5;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 32px;
}

.person-card {
  padding: 34px 24px;
  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-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}

.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: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.event-card {
  border-radius: 26px;
  padding: 30px 22px;
  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 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  font-size: 30px;
  margin-bottom: 10px;
  font-weight: 600;
}

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

.time-box {
  background: rgba(255, 253, 249, 0.76);
  color: var(--text);
  padding: 24px 10px;
  border-radius: 22px;
  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: 34px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  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: 24px;
  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: 40px 18px;
  border-top: 1px solid rgba(191, 166, 117, 0.16);
}

.footer p {
  margin: 6px 0;
}

/* Tablet and up */
@media (min-width: 481px) {
  .hero-content {
    padding: 0 10px;
  }

  .arabic {
    font-size: 24px;
  }

  .bismillah-meaning {
    font-size: 18px;
    max-width: 320px;
  }

  .couple-names {
    font-size: 78px;
  }

  .couple-names .ampersand {
    font-size: 34px;
  }

  .hero-date {
    font-size: 22px;
  }

  .hero-text {
    max-width: 320px;
    font-size: 14px;
  }

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

  .person-card h3,
  .event-card h3 {
    font-size: 34px;
  }

  .invite-highlight {
    font-size: 24px;
  }
}

/* Desktop and up */
@media (min-width: 769px) {
  .opening-bismillah {
    font-size: 58px;
    /* text-align: center; */
    line-height: 1.8;
    min-height: 100px;
  }

  .navbar {
    padding: 18px 20px;
  }

  .nav-container {
    gap: 34px;
  }

  .nav-container a {
    font-size: 13px;
  }

  .hero {
    min-height: 100vh;
    padding: 40px 20px;
  }

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

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

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

  .arabic {
    font-size: 33px;
    margin-bottom: 14px;
  }

  .bismillah-meaning {
    font-size: 24px;
    max-width: none;
    margin-bottom: 36px;
  }

  .couple-names {
    flex-direction: row;
    gap: 10px;
    font-size: 120px;
    line-height: 0.9;
    margin-bottom: 22px;
  }

  .couple-names .ampersand {
    font-size: 52px;
    transform: translateY(8px);
    margin: 0;
  }

  .hero-date {
    font-size: 24px;
    margin-bottom: 18px;
  }

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

  .btn {
    padding: 15px 34px;
    font-size: 13px;
  }

  section {
    padding: 110px 20px;
  }

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

  .section-subtitle {
    margin: 0 auto 52px;
    font-size: 15px;
  }

  .invitation-card {
    padding: 54px 38px;
    border-radius: 32px;
  }

  .invite-highlight {
    font-size: 30px;
  }

  .couple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 40px;
  }

  .person-card {
    padding: 38px 30px;
  }

  .person-card h3 {
    font-size: 42px;
  }

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

  .event-card {
    padding: 34px 24px;
  }

  .event-card h3 {
    font-size: 38px;
  }

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

  .time-box {
    padding: 28px 12px;
    border-radius: 24px;
  }

  .time-box span {
    font-size: 38px;
  }

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

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

  .dua-text {
    font-size: 28px;
  }

  .footer {
    padding: 46px 20px;
  }
}

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

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

/* Gold shimmer layer */
.opening-screen::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(212, 105, 55, 0.1) 20%,
    rgba(255, 145, 0, 0.3) 40%,
    rgba(212, 123, 55, 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);
  }
}

/* Content styling */
.opening-inner {
  position: relative;
  text-align: center;
  color: #fff;
  z-index: 2;
  animation: fadeIn 1.5s ease-in-out;
}

.opening-bismillah {
  font-size: 28px;
  color: #fef7e5;
  margin-bottom: 10px;
}

.opening-subtext {

  color: #adadad;
}

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


/* Parallax + Reveal Base */
.parallax-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s ease;
  will-change: transform, opacity;
}

/* When visible */
.parallax-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Optional variations */
.parallax-left {
  transform: translateX(-80px);
}

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

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

.parallax-reveal.active.parallax-left,
.parallax-reveal.active.parallax-right,
.parallax-reveal.active.parallax-zoom {
  transform: translate(0) scale(1);
}


/* Hero specific enhancement */
.hero .parallax-reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.95);
  transition: all 1.2s ease;
}

/* When active */
.hero .parallax-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtle floating animation after reveal */
.hero .parallax-reveal.active {
  animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}



/* Opening screen */
.opening-screen {
  position: fixed;
  inset: 0;
  /* background: #f8f5f0; off-white */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  transition: opacity 1s ease, visibility 1s ease;
}

.opening-screen {
  transition: transform 1s ease;
}

.opening-screen.hide {
  transform: translateY(-100%);
}

/* Couple name */
.opening-title {
  font-size: 36px;
  color: #f8f5d7;
  margin-bottom: 30px;
  font-family: Brittany, serif;
}

.opening-title span {
  color: #ffd856;
}

/* Button */
.open-btn {
  background: transparent;
  border: 1px solid #f8f5d7;
  color: #f8f5d7;
  padding: 12px 28px;
  border-radius: 2rem;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.open-btn:hover {
  background: #a08605;
  color: #fff;
}

/* Typing container hidden initially */
.typing-container {
  margin-top: 30px;
  display: none;
}

/* Bismillah text */
.opening-bismillah {
  font-size: 20px;
  color: #f8f5d7;
  letter-spacing: 2px;
}
