:root {
  --bg: #0a0e14;
  --bg-surface: #121820;
  --text: #ffffff;
  --text-muted: #a0a0ab;
  --accent: #e0a9a5;
  /* Antique Rose */
  --accent-gold: #d4af37;
  --gradient: linear-gradient(135deg, #e0a9a5 0%, #d4af37 100%);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Cinematic Grain Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.1;
  pointer-events: none;
  z-index: 9999;
}

/* Background Effects */
.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.4;
}

.blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent);
  border-radius: 50%;
  animation: move 20s infinite alternate;
}

.blob:nth-child(2) {
  background: var(--accent-gold);
  width: 400px;
  height: 400px;
  right: -100px;
  top: -100px;
  animation-duration: 25s;
}

@keyframes move {
  from {
    transform: translate(-10%, -10%) scale(1);
  }

  to {
    transform: translate(20%, 20%) scale(1.2);
  }
}

/* Floating Petals Container */
#petals-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.petal {
  position: absolute;
  color: var(--accent);
  opacity: 0.3;
  font-size: 1.5rem;
  animation: fall linear infinite;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0;
  }
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  margin: 0;
}

/* Virtual Card Card Cover Reveal: Botanical Invitation Theme */
#experience-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: visibility 1.2s;
  overflow: hidden;
  background: #0a0e14;
}

.card-panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--bg-surface);
  /* Ivory Paper */
  background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
}

.panel-left {
  left: 0;
  border-right: 3px double var(--accent-gold);
}

.panel-right {
  right: 0;
  border-left: 3px double var(--accent-gold);
}

.card-ornament {
  position: absolute;
  width: 25vw;
  height: 25vw;
  background-image: url('https://cdn.pixabay.com/photo/2021/11/13/18/16/pattern-6792035_1280.png');
  /* Botanical corner ornamental */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.panel-left .card-ornament {
  top: -5vw;
  left: -5vw;
  transform: rotate(0deg);
}

.panel-right .card-ornament {
  bottom: -5vw;
  right: -5vw;
  transform: rotate(180deg);
}

#experience-overlay.opened .panel-left {
  transform: translateX(-100%);
}

#experience-overlay.opened .panel-right {
  transform: translateX(100%);
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 550px;
  transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-seal {
  width: 180px;
  height: 180px;
  margin: 0 auto -60px;
  /* Overlap the invitation */
  position: relative;
  z-index: 3;
  transition: all 0.8s ease;
}

.card-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Removed mix-blend-mode for dark card */
  animation: sealFloat 4s ease-in-out infinite alternate;
}

@keyframes sealFloat {
  from {
    transform: translateY(0px) rotate(0deg);
  }

  to {
    transform: translateY(-10px) rotate(2deg);
  }
}

/* Shimmering Gold Ring */
.card-seal::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px dashed var(--accent-gold);
  border-radius: 50%;
  opacity: 0.4;
  animation: rotate 60s linear infinite;
}

.card-invitation {
  background: var(--bg);
  padding: 6.5rem 3rem 3rem;
  /* Compacted padding */
  border-radius: 2px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  position: relative;
}

.card-invitation__label {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  /* Adjusted */
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1.5rem;
  /* Reduced */
}

.card-names {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 10vw, 5rem);
  /* Reduced */
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
  /* Reduced */
}

.card-invitation__line {
  width: 50px;
  height: 2px;
  background: var(--accent-gold);
  margin: 1.5rem auto;
  /* Reduced */
}

.card-invitation__date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  /* Reduced from 3.5rem */
  font-size: 1.1rem;
}

.btn--white {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn--white:hover {
  background: var(--gradient) !important;
  color: #000000 !important;
  border-color: transparent !important;
  transform: scale(1.05) translateY(-2px);
}

#experience-overlay.opened .card-content {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
}


/* Music Toggle */
.music-toggle {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  width: 60px;
  height: 60px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.music-toggle:hover {
  background: var(--glass-border);
  transform: scale(1.1);
}

.music-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.music-bars span {
  width: 2px;
  background: var(--accent);
  height: 4px;
  border-radius: 1px;
}

.music-toggle.playing span {
  animation: barAnim 0.6s infinite alternate;
}

.music-toggle.playing span:nth-child(2) {
  animation-delay: 0.2s;
}

.music-toggle.playing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes barAnim {
  to {
    height: 20px;
  }
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(10, 14, 20, 0.4), var(--bg)),
    url('hero.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
}

.hero__bismillah {
  font-family: 'Amiri', serif;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

.hero__title {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(5rem, 15vw, 10rem);
  line-height: 1;
  margin-bottom: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 0;
}

.hero__subtitle {
  font-size: 1.6rem;
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  margin-bottom: 4rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero__meta {
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero__date {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 10rem 0;
  position: relative;
}

.section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section__title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  text-align: center;
  margin-bottom: 5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.section__title::before,
.section__title::after {
  content: '✻';
  font-size: 1.8rem;
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.3;
}

/* Family Section: Botanical Oasis */
#family {
  background: var(--bg-surface);
  color: var(--text);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

#family::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
  opacity: 0.1;
  pointer-events: none;
}

#family .section__title {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 3rem;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  z-index: 1;
  position: relative;
}

.family-card {
  background: var(--bg);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  position: relative;
}

.family-card::after {
  content: '❧';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.1;
}

.family-card:hover {
  border-color: var(--accent);
  transform: translateY(-15px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.family-card h3 {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-family: 'Great Vibes', cursive;
}

.family-card .names {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.family-card .address {
  line-height: 2.2;
  color: var(--text-muted);
  font-style: italic;
}

/* Event Details Section: Compact Version */
#details {
  padding: 5rem 0;
}

#details .section__title {
  margin-bottom: 3rem;
}

.event-section {
  background: var(--bg-surface);
}

.event-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.event-box {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 4rem 3rem;
  /* Reduced from 7rem 4rem */
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.event-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient);
}

.event-item {
  margin-bottom: 3rem;
  /* Reduced from 5rem */
}

.event-item .label {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: block;
}

.event-item h3 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  /* Reduced from 1.5rem */
  font-family: 'Great Vibes', cursive;
  color: var(--accent-gold);
}

.event-item .venue {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.event-footer {
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--glass-border);
}

.event-footer p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--accent);
  font-style: italic;
  margin: 0;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
  /* Reduced from 8rem */
}

.countdown__value {
  font-size: 5.5rem;
  color: var(--accent-gold);
  line-height: 1;
  display: block;
}

.countdown__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-top: 1.2rem;
}

/* Visit Us: Botanical Gallery Theme */
#location {
  background: var(--bg-surface);
  /* Botanical Gradient */
  color: var(--text);
  padding: 8rem 0;
}

#location .section__title {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5rem;
}

.location-card {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.location-content {
  flex: 1;
  padding: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.location-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-style: italic;
  font-size: 1.1rem;
}

.location-image {
  flex: 1.2;
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.location-card:hover .location-image img {
  transform: scale(1.08);
}

/* Button */
.btn {
  display: inline-block;
  padding: 1.4rem 4rem;
  background: var(--gradient);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 15px 30px rgba(224, 169, 165, 0.3);
}

/* Footer */
.footer {
  padding: 6rem 0;
  /* Base padding reduced from 12rem */
  text-align: center;
}

.footer h2 {
  font-family: 'Great Vibes', cursive;
  font-size: 5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  /* Reduced from 2rem */
}

.footer p {
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 0.9rem;
  opacity: 0.6;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .family-grid {
    grid-template-columns: 1fr;
  }

  .countdown {
    gap: 1rem;
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .countdown__value {
    font-size: 2.2rem;
  }

  .countdown__label {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 2rem;
  }

  .section__title::before,
  .section__title::after {
    display: none;
  }

  #family .section__title {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-bottom: 2rem;
  }

  #location {
    padding: 3rem 0;
  }

  .location-card {
    flex-direction: column;
    margin: 0;
    border-radius: var(--radius-md);
  }

  .location-content {
    padding: 2.5rem 1.5rem;
    text-align: center;
    order: 2;
    /* Info below image */
  }

  .location-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .location-content p {
    margin-bottom: 2rem;
    font-size: 1rem;
  }

  .location-image {
    min-height: 180px;
    height: 180px;
    order: 1;
    /* Image on top */
  }

  .event-item h3 {
    font-size: 2.22rem;
  }

  .btn {
    padding: 1.1rem 2.8rem;
    font-size: 0.85rem;
  }

  /* Compact Overlay for Mobile */
  .card-seal {
    width: 120px;
    height: 120px;
    margin-bottom: -40px;
  }

  .card-invitation {
    padding: 4.5rem 1.5rem 2.5rem;
  }

  .card-names {
    font-size: 3rem;
  }

  .card-text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .footer {
    padding: 3.5rem 0;
  }

  .footer h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
  }

  .footer p {
    font-size: 0.75rem;
    letter-spacing: 0.4em;
  }
}