
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Great+Vibes&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
    --cream: #fff8f1;
    --blush: #f5ded9;
    --rose: #b96f83;
    --ink: #4a2d2b;
    --gold: #bd8b43;
    --muted: #7e5c58;
    --line: rgba(189, 139, 67, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(
        circle at 15% 15%,
        #fffdf9 0%,
        #fff8f1 35%,
        #f7e7e1 100%
    );
    color: var(--ink);
    font-family: 'Cormorant Garamond', serif;
    overflow-x: hidden;
}

/* BACKGROUND DECORATIONS */

.ambient {
    position: fixed;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

.ambient-one {
    width: 300px;
    height: 300px;
    background: #edb8c6;
    top: 10%;
    left: -100px;
}

.ambient-two {
    width: 350px;
    height: 350px;
    background: #e9cba0;
    right: -120px;
    bottom: 10%;
}

/* GENERAL PAGE */

.page-section {
    position: relative;
    max-width: 1100px;
    margin: auto;
    padding: 58px 24px 78px;
    text-align: center;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
}

/* FLORAL DECORATIONS */

.floral-corner {
    position: absolute;
    color: #d3ad89;
    font-size: 45px;
    opacity: 0.65;
    line-height: 0.8;
}

.floral-left {
    left: 12px;
    top: 25px;
}

.floral-right {
    right: 12px;
    top: 25px;
}

/* BISMILLAH */

.bismillah {
    margin: 0 0 12px;
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    letter-spacing: 0;
}

/* TEXT */

.eyebrow {
    max-width: 720px;
    font-size: clamp(15px, 2vw, 21px);
    letter-spacing: 1px;
    line-height: 1.3;
    margin: 0 0 12px;
}

.dua {
    max-width: 720px;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.35;
    margin: 0 auto 14px;
}

.invitation-line {
    max-width: 700px;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.3;
    font-style: italic;
    margin: 0 auto 20px;
}

/* NAMES */

.names h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(65px, 10vw, 110px);
    font-weight: 400;
    line-height: 0.9;
    margin: 12px 0 5px;
    color: #4b292b;
}

.parent-line {
    font-family: 'Playfair Display', serif;
    font-size: clamp(12px, 1.5vw, 16px);
    font-style: italic;
    line-height: 1.25;
    margin: 0 auto;
    color: var(--muted);
}

.connector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: var(--gold);
    margin: 9px 0;
}

.connector span {
    width: 55px;
    height: 1px;
    background: var(--line);
}

/* SEAL AND SCROLL */

.seal {
    margin-top: 22px;
    border: 1px solid var(--gold);
    padding: 7px 25px;
    border-radius: 50%;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    box-shadow: 0 0 0 5px rgba(189, 139, 67, 0.07);
}

.scroll-cue {
    margin-top: 28px;
    text-decoration: none;
    color: var(--rose);
    font-size: 15px;
    letter-spacing: 1px;
}

.scroll-cue span {
    display: block;
    font-size: 22px;
    animation: bounce 1.7s infinite;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 25px;
    color: var(--gold);
}

.section-heading span {
    font-size: 18px;
}

.section-heading h2 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 400;
    color: var(--rose);
    margin: 0;
    line-height: 1.05;
}

/* COUPLE IMAGE */

.couple-stage {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    margin: 4px auto 20px;
    overflow: visible;
}

.glow-ring {
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8),
        rgba(232, 185, 177, 0.25),
        transparent 70%
    );
    animation: pulse 4s infinite;
}

.couple-photo-wrap {
    position: relative;
    width: min(390px, 92vw);
    margin: 0 auto;
    animation: photoRise 1.1s ease 0.25s both;
}

.couple-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 6px solid rgba(255, 250, 245, 0.9);
    box-shadow: 0 22px 60px rgba(93, 54, 47, 0.18);
    object-fit: cover;
    animation: photoFloat 5s ease-in-out infinite;
}

.photo-heart,
.photo-sparkle {
    position: absolute;
    pointer-events: none;
    text-shadow: 0 4px 14px rgba(189, 111, 131, 0.2);
}

.photo-heart {
    color: var(--rose);
    font-size: 29px;
    animation: floatDecor 3s ease-in-out infinite;
}

.heart-one {
    top: 8%;
    left: -18px;
}

.heart-two {
    right: -16px;
    top: 30%;
    animation-delay: 1s;
}

.photo-sparkle {
    color: var(--gold);
    font-size: 23px;
    animation: twinkle 2.2s ease-in-out infinite;
}

.sparkle-one {
    left: 5%;
    bottom: 15%;
    animation-delay: 0.6s;
}

.sparkle-two {
    right: 4%;
    bottom: 5%;
    animation-delay: 1.3s;
}

.love-note {
    font-family: 'Great Vibes', cursive;
    font-size: 28px;
    color: var(--rose);
    margin: 0;
}

/* EVENT CARDS */

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.event-card,
.detail-card,
.family-card {
    background: rgba(255, 252, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 23px 18px;
    box-shadow: 0 18px 45px rgba(93, 54, 47, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.event-card:hover,
.detail-card:hover,
.family-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 25px 55px rgba(93, 54, 47, 0.13);
}

.event-art {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    margin-bottom: 8px;
}

/* DINNER ICON */

.dinner-art {
    font-size: 46px;
    color: var(--gold);
}

/* MEHNDI DECORATION */

.mehndi-art {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--rose);
    font-size: 38px;
}

.mehndi-art span:nth-child(2) {
    transform: translateY(-10px);
    color: var(--gold);
}

/* NIKAH DECORATION */

.nikah-art {
    font-size: 55px;
    color: var(--gold);
}

/* CARD TEXT */

.event-card h3,
.detail-card h3,
.family-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    margin: 7px 0 10px;
    color: var(--ink);
}

.event-card p,
.detail-card p,
.family-card p {
    font-size: 16px;
    line-height: 1.3;
    margin: 6px 0;
    color: var(--muted);
}

.event-date {
    color: var(--rose) !important;
    font-weight: 600;
}

.details {
    max-width: 800px;
    margin: auto;
}

.detail-card {
    margin: 16px auto;
    max-width: 620px;
}

.detail-icon {
    font-size: 32px;
    color: var(--gold);
}

.phone {
    color: var(--rose) !important;
    font-weight: 600;
}

/* FAMILY SECTION */

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 760px;
    margin: auto;
}

.family-role {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold) !important;
}

.compliments {
    font-size: 19px !important;
    line-height: 1.4 !important;
    margin-top: 28px !important;
    color: var(--muted);
}

.compliments strong {
    color: var(--rose);
    font-weight: 600;
}

/* BOTTOM NAVIGATION */

.bottom-nav {
    position: fixed;
    z-index: 20;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 28px));
    display: flex;
    justify-content: space-around;
    gap: 4px;
    padding: 9px 8px;
    background: rgba(255, 249, 244, 0.9);
    border: 1px solid rgba(189, 139, 67, 0.35);
    border-radius: 30px;
    box-shadow: 0 12px 35px rgba(83, 49, 44, 0.13);
    backdrop-filter: blur(12px);
}

.bottom-nav a {
    flex: 1;
    text-decoration: none;
    color: var(--rose);
    font-size: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.bottom-nav span {
    font-size: 11px;
    letter-spacing: 0.3px;
}

/* ANIMATIONS */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: reveal 1s ease forwards;
}

.delay-one {
    animation-delay: 0.18s;
}

.delay-two {
    animation-delay: 0.36s;
}

.delay-three {
    animation-delay: 0.54s;
}

.delay-four {
    animation-delay: 0.72s;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes pulse {
    50% {
        transform: scale(1.08);
        opacity: 0.7;
    }
}

@keyframes photoRise {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes photoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes floatDecor {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.45;
        transform: scale(0.8) rotate(0);
    }

    50% {
        opacity: 1;
        transform: scale(1.25) rotate(18deg);
    }
}

/* MOBILE */

@media (max-width: 760px) {
    .page-section {
        padding: 42px 16px 85px;
    }

    .hero {
        padding-top: 35px;
    }

    .floral-corner {
        font-size: 28px;
    }

    .bismillah {
        font-size: 23px;
        margin-bottom: 10px;
    }

    .names h1 {
        font-size: 78px;
        line-height: 0.85;
        margin: 10px 0 3px;
    }

    .parent-line {
        max-width: 320px;
        line-height: 1.2;
    }

    .connector {
        font-size: 27px;
        gap: 12px;
    }

    .connector span {
        width: 42px;
    }

    .section-heading {
        gap: 9px;
        margin-bottom: 22px;
    }

    .section-heading h2 {
        font-size: 42px;
    }

    .event-grid,
    .family-grid {
        grid-template-columns: 1fr;
    }

    .event-card,
    .detail-card,
    .family-card {
        padding: 21px 17px;
    }

    .event-card h3,
    .detail-card h3,
    .family-card h3 {
        font-size: 19px;
    }

    .event-card p,
    .detail-card p,
    .family-card p {
        font-size: 16px;
        line-height: 1.25;
    }

    .couple-photo-wrap {
        width: min(350px, 90vw);
    }

    .couple-photo {
        border-width: 5px;
    }

    .heart-one {
        left: -9px;
    }

    .heart-two {
        right: -8px;
    }

    .photo-sparkle {
        font-size: 20px;
    }

    .bottom-nav {
        bottom: 10px;
    }

    .bottom-nav a {
        font-size: 18px;
    }

    .bottom-nav span {
        font-size: 10px;
    }
}.names h1 {
    font-family: "Caveat Brush", cursive !important;
    font-variant: normal !important;
    font-style: normal !important;
    text-transform: none !important;
    font-weight: 400 !important;
    font-size: 78px !important;
    letter-spacing: 1px !important;
    color: #501212 !important;
    line-height: 1.1 !important;
}

/* Open Invitation Button */
.enter-button {
  display: inline-block;
  padding: 14px 36px;
  margin: 20px auto;
  border: 1px solid #c9a46a;
  border-radius: 50px;

  background: linear-gradient(
    135deg,
    #f8e5e6,
    #fff8f0,
    #efd5d8
  );

  color: #80505a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;

  box-shadow:
    0 5px 18px rgba(157, 100, 111, 0.18),
    inset 0 0 8px rgba(255, 255, 255, 0.8);

  cursor: pointer;
  transition: all 0.35s ease;
  animation: invitationGlow 2.5s ease-in-out infinite;
}

/* Hover animation */
.enter-button:hover {
  transform: translateY(-3px) scale(1.03);
  background: linear-gradient(
    135deg,
    #efd0d5,
    #fff4e4
  );
  box-shadow: 0 8px 24px rgba(157, 100, 111, 0.28);
}

/* Tap animation for mobile */
.enter-button:active {
  transform: scale(0.96);
}

/* Soft glowing effect */
@keyframes invitationGlow {
  0%, 100% {
    box-shadow: 0 5px 18px rgba(157, 100, 111, 0.18);
  }
  50% {
    box-shadow: 0 5px 25px rgba(201, 164, 106, 0.4);
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .enter-button {
    padding: 12px 28px;
    font-size: 18px;
  }
}

/* Separate welcome page */
.welcome-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, #fffaf4, transparent 70%),
    linear-gradient(145deg, #f8e8e8, #fff8ef, #f0dce0);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.welcome-page.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-bismillah {
  color: #8c6268;
  font-size: 25px;
  margin-bottom: 28px;
}

.welcome-small {
  color: #98747a;
  font-size: 14px;
  letter-spacing: 2px;
}

.welcome-names {
  margin: 12px 0;
  color: #80505a;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(44px, 10vw, 68px);
  font-weight: 400;
}

.welcome-names span {
  color: #c5a064;
}

.welcome-subtitle {
  color: #98747a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  margin-bottom: 30px;
}

.enter-button {
  padding: 12px 27px;
  border: 1px solid #c5a064;
  border-radius: 40px;
  background: linear-gradient(135deg, #f4dfe2, #fffaf3);
  color: #80505a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 5px 20px #80505a20;
  transition: transform 0.3s ease;
}

.enter-button:hover {
  transform: translateY(-3px);
}


/* ===== SEPARATE INVITATION SCREENS ===== */

[hidden] {
  display: none !important;
}

.invitation-pages {
  width: 100%;
  padding-bottom: 82px;
}

.screen-page {
  display: none;
  width: 100%;
  height: calc(100vh - 78px);
  height: calc(100dvh - 78px);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.screen-page.active-page {
  display: block;
  animation: screenFadeIn 0.45s ease both;
}

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

/* PREVIOUS / NEXT BUTTONS */

.page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 26px 16px 30px;
  box-sizing: border-box;
}

.page-button {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 22px;
  min-height: 46px;
  border: 1px solid #bd8793;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff8f5, #f3dce1);
  color: #704451;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(112, 68, 81, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(112, 68, 81, 0.16);
}

.page-button:active {
  transform: scale(0.97);
}

.page-button:focus-visible,
.bottom-nav button:focus-visible {
  outline: 2px solid #a45f75;
  outline-offset: 3px;
}

/* BOTTOM SCREEN NAVIGATION — FIXED */

.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;

  display: flex !important;
  flex-direction: row !important;
  justify-content: space-evenly !important;
  align-items: center !important;
  gap: 0 !important;

  margin: 0 !important;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom)) !important;

  background: rgba(255, 248, 245, 0.97);
  border-top: 1px solid rgba(189, 135, 147, 0.35);
  border-radius: 0 !important;
  box-shadow: 0 -4px 20px rgba(112, 68, 81, 0.08);
  backdrop-filter: blur(12px);

  z-index: 9999;
  transform: none !important;
}

.bottom-nav button {
  flex: 1 1 0 !important;
  width: 0;
  min-width: 0 !important;
  max-width: none !important;

  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px;

  margin: 0 !important;
  padding: 5px 2px !important;

  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;

  color: #8e6370;
  font-family: inherit;
  font-size: 20px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
}

.bottom-nav button span {
  display: block;
  max-width: 100%;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
}

.bottom-nav button.active-nav {
  color: #b45e78;
  font-weight: 700;
}

/* Keep page content visible above the fixed navigation */
body {
  padding-bottom: 85px;
}

@media (max-width: 480px) {
  .bottom-nav {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  .bottom-nav button {
    font-size: 18px;
  }

  .bottom-nav button span {
    font-size: 10px;
  }
}


/* CLOSING SCREEN */

.final-page {
  text-align: center;
  padding-top: 32px;
  box-sizing: border-box;
}

.final-message {
  max-width: 560px;
  margin: 30px auto;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid rgba(189, 135, 147, 0.4);
  border-radius: 22px;
  background: rgba(255, 248, 245, 0.75);
  line-height: 1.8;
}

.final-arabic {
  font-size: 24px;
  line-height: 2;
  color: #9a5a70;
}

.final-aameen {
  font-family: "Great Vibes", cursive;
  font-size: 34px;
  color: #a45f75;
}

.final-names {
  font-family: "Great Vibes", cursive;
  font-size: clamp(42px, 8vw, 64px);
  font-weight: 400;
  color: #a45f75;
}

@media (max-width: 480px) {
  .page-controls {
    gap: 8px;
    padding: 20px 10px 26px;
  }

  .page-button {
    font-size: 14px;
    padding: 11px 16px;
  }

  .final-message {
    margin: 22px 14px;
    padding: 18px;
  }

  .final-arabic {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-page.active-page {
    animation: none;
  }

  .page-button {
    transition: none;
  }
}
