:root {
  --color-maroon: #6b1424;
  --color-maroon-dark: #4a0d18;
  --color-gold-yellow: #b2771d;
  --color-gold-yellow-dark: #6b1424;
  --color-gold: #c6a87c;
  --color-gold-light: #eaddc5;
  --color-cream: #faeedd;
  --color-navy: #0d1e36;
  --color-text-main: #333333;
  --color-text-secondary: #452a2a;

  --font-heading: "Cinzel", serif;
  --font-names: "Great Vibes", cursive;
  --font-body: "Lora", serif;
}

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

body, html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--color-cream);
  color: var(--color-maroon);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  /* Subtle mandala pattern overlay */
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50m-40 0a40 40 0 1 0 80 0a40 40 0 1 0 -80 0' fill='none' stroke='%23eaddc5' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M50 50m-20 0a20 20 0 1 0 40 0a20 20 0 1 0 -40 0' fill='none' stroke='%23eaddc5' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M10 50L90 50M50 10L50 90M21.7 21.7L78.3 78.3M21.7 78.3L78.3 21.7' stroke='%23eaddc5' stroke-width='0.5' opacity='0.2'/%3E%3C/svg%3E");
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s ease-out,
    transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(253, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-maroon);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.invocation {
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 1px;
  color: var(--color-gold);
  margin: 0.2rem 0 2rem;
}

.families-text {
  text-align: center;
  margin-bottom: 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
  font-family: var(--font-heading);
}

.families-text p:first-child {
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.invite-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
  margin-right: 1rem;
  color: var(--color-maroon-dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 6rem;
  overflow: hidden;
}

/* Decorative Corners */
.decor {
  position: absolute;
  width: 280px;
  height: 280px;
  background-image: url('assets/floral_corners.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 10;
  pointer-events: none;
  overflow-x: hidden;
}

.top-left {
  top: 0;
  left: 0;
}

.top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.bottom-right {
  bottom: 0;
  right: 0;
  transform: scale(-1, -1);
}

/* Lanterns */
.lantern-container {
  position: absolute;
  top: 0;
  width: 140px;
  height: 380px;
  z-index: 5;
  animation: swing 6s ease-in-out infinite alternate;
  transform-origin: top center;
}

.lantern-left {
  left: 2%;
  animation-delay: 0s;
}

.lantern-right {
  right: 2%;
  animation-delay: 1s;
}

.lantern {
  width: 100%;
  height: 150px;
  max-width: 100px;
  background-image: url('assets/hanging_lantern.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top center;
}

.string {
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, #8b6b23, #d4af37);
  margin: 0 auto;
}

@keyframes swing {
  0% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(-3deg);
  }
}

.ganesha-icon img {
  width: 80px;
  margin-bottom: 0;
}



.hero::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  right: 5%;
  bottom: 5%;
  border: 2px solid var(--color-gold-light);
  border-radius: 200px 200px 0 0;
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 6%;
  right: 6%;
  bottom: 5%;
  border: 1px dashed var(--color-gold);
  border-radius: 190px 190px 0 0;
  z-index: -1;
  pointer-events: none;
}

.couple-names {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-maroon-dark);
  margin: 1rem 0 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.parents {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.hero-date-container {
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gold-light);
  width: auto;
  min-width: 60%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-date-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-maroon);
  letter-spacing: 3px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-date-separator {
  color: var(--color-gold);
  font-size: 1rem;
}

.hero-date-sub {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-text-main);
  letter-spacing: 2px;
  font-weight: 500;
}

.ampersand {
  font-family: var(--font-names);
  font-size: 2rem;
  color: var(--color-gold);
  line-height: 1;
  margin: 1rem 0;
}

/* Events Section */
.events-section {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  color: var(--color-maroon-dark);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "◈";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold);
  font-size: 1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.event-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 175, 55, 0.2);
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-gold);
}

.event-border {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-header h3 {
  font-size: 1.8rem;
  color: var(--color-maroon);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-heading);
  color: var(--color-maroon-dark);
  margin-bottom: 1rem;
  border-top: 1px solid var(--color-gold-light);
  border-bottom: 1px solid var(--color-gold-light);
  padding: 1rem 0;
}

.date-number {
  font-size: 3rem;
  line-height: 1;
}

.event-time {
  font-family: var(--font-heading);
  letter-spacing: 2px;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

.event-venue {
  font-size: 1.05rem;
  color: var(--color-text-main);
  margin-bottom: 2rem;
  min-height: 80px;
}

/* Navigate Buttons */
.nav-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-maroon);
  color: var(--color-maroon);
  background: transparent;
  cursor: pointer;
  width: 100%;
}

.nav-button:hover:not([disabled]) {
  background: var(--color-maroon);
  color: white;
}

.nav-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: #ccc;
  color: #888;
}

/* Sangeet Event Styling */
.sangeet-event {
  background: var(--color-gold-yellow);
  color: white;
}

.sangeet-event .event-border {
  padding: 2rem;
}

.sangeet-event .event-header h3,
.sangeet-event .event-date,
.sangeet-event .event-time,
.sangeet-event .event-venue {
  color: white;
}

.sangeet-event .event-date {
  border-color: rgba(212, 175, 55, 0.4);
  /* Gold */
}

.nav-button.sangeet {
  border-color: white;
  color: white;
}

.nav-button.sangeet:hover {
  background: white;
  color: var(--color-gold-yellow);
}

/* Primary Event Styling (Wedding) */
.primary-event {
  background: var(--color-maroon);
  color: white;
}

.primary-event .event-border {
  padding: 2rem;
}

.primary-event .event-header h3,
.primary-event .event-date,
.primary-event .event-time,
.primary-event .event-venue {
  color: white;
}

.primary-event .event-date {
  border-color: rgba(212, 175, 55, 0.4);
  /* Gold */
}

.nav-button.primary {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.nav-button.primary:hover {
  background: var(--color-gold);
  color: var(--color-maroon);
}

/* Dark Theme for Reception */
.dark-theme {
  background: var(--color-navy);
  padding: 2rem;
  color: white;
  flex: 1;
}

.dark-theme h3,
.dark-theme .event-date,
.dark-theme .event-time,
.dark-theme .event-venue p {
  color: var(--color-gold-light);
}

.dark-theme .event-date {
  border-color: rgba(212, 175, 55, 0.3);
}

.nav-button.dark {
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
}

.nav-button.dark:hover {
  background: var(--color-gold-light);
  color: var(--color-navy);
}

/* Countdown Section */
.countdown-section {
  background-color: var(--color-maroon);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.countdown-title {
  font-family: var(--font-heading);
  color: var(--color-gold-light);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.time-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: white;
}

/* Story Section */
.story-section {
  text-align: center;
  padding: 6rem 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  color: var(--color-gold);
  letter-spacing: 3px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-names);
  font-size: 3.5rem;
  color: var(--color-maroon-dark);
  font-weight: 400;
}

.story-description {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-main);
  max-width: 680px;
  margin: 1rem auto 0;
  line-height: 1.6;
  font-style: italic;
}

.couple-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.person {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.initial-circle {
  width: 60px;
  height: 60px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

.initial-circle::after {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-top: 1px solid var(--color-gold);
  border-radius: 50%;
  top: -16px;
}

.initial-circle span {
  font-family: var(--font-names);
  font-size: 2.5rem;
  color: var(--color-maroon);
  line-height: 1;
  margin-top: 5px;
  /* Adjust for cursive font baseline */
}

.person-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--color-maroon);
  margin-bottom: 0.2rem;
}

.person-title {
  font-style: italic;
  color: var(--color-maroon-dark);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.person-desc {
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}

.story-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex: 0 0 50px;
  padding-top: 2rem;
}

.story-divider::before,
.story-divider::after {
  content: '';
  width: 1px;
  height: 60px;
  background-color: var(--color-gold-light);
}

.ampersand-small {
  font-family: var(--font-names);
  font-size: 2rem;
  color: var(--color-gold);
  margin: 1rem 0;
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: var(--color-maroon-dark);
  color: white;
}

.thank-you {
  font-size: 1.5rem;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  color: var(--color-gold-light);
}

.signature {
  font-family: var(--font-names);
  font-size: 2.5rem;
  color: white;
}

.made-with-love {
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
  /* Hero section tightening */
  .hero {
    padding-top: 2.5rem;
    min-height: 100vh;
    padding-bottom: 1.5rem;
    justify-content: space-evenly;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .ganesha-icon img {
    width: 60px;
  }

  .invocation {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }

  .families-text {
    margin-bottom: 2.5rem;
  }

  .families-text p:first-child {
    font-size: 0.9rem;
    letter-spacing: 1px;
  }

  .invite-text {
    font-size: 0.95rem;
  }

  .couple-names {
    font-size: 2.5rem;
    letter-spacing: 1px;
    margin: 0.5rem 0 0;
  }

  .parents {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .ampersand {
    font-size: 1.5rem;
    margin: 0.3rem 0;
  }

  .hero-date-container {
    padding-top: 1.5rem;
    margin: 2rem auto 1rem;
    width: 90%;
    flex-direction: column;
    gap: 0.6rem;
  }

  .hero-date-main {
    font-size: 0.85rem;
    gap: 0.4rem;
    letter-spacing: 1.5px;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }

  .hero-date-sub {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--color-text-main);
    letter-spacing: 2px;
    font-weight: 500;
  }

  .hero::before {
    top: 2%;
    left: 3%;
    right: 3%;
    bottom: 2%;
    border-radius: 80px 80px 0 0;
  }

  .hero::after {
    top: 3%;
    left: 4%;
    right: 4%;
    bottom: 2%;
    border-radius: 70px 70px 0 0;
  }

  /* Countdown */
  .countdown-section {
    padding: 2.5rem 1.5rem;
  }

  .countdown-timer {
    gap: 1.5rem;
    flex-wrap: nowrap;
  }

  .countdown-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .time-value {
    font-size: 2.2rem;
  }

  /* Events section */
  .events-section {
    padding: 2.5rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .events-grid {
    gap: 1.5rem;
    margin-top: 1.5rem;
  }

  .event-image {
    height: 160px;
  }

  .event-border {
    padding: 1.5rem;
  }

  .event-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
  }

  .date-number {
    font-size: 2.2rem;
  }

  .event-date {
    gap: 0.6rem;
    padding: 0.8rem 0;
  }

  .event-time {
    font-size: 0.85rem;
  }

  .event-venue {
    font-size: 0.9rem;
    min-height: 60px;
    margin-bottom: 1.5rem;
  }

  .nav-button {
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
  }

  /* Story section */
  .story-section {
    padding: 3rem 1.5rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .story-description {
    font-size: 0.95rem;
  }

  .couple-container {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .person {
    max-width: 300px;
  }

  .person-title {
    font-size: 1.2rem;
  }

  .person-desc {
    font-size: 1rem;
  }

  .story-divider {
    transform: none;
    flex-direction: row;
    flex: 0 0 auto;
    width: 100%;
    margin: 0.5rem 0;
    padding: 0;
  }

  .distance-map {
    width: 120px;
  }

  /* Floral corners */
  .decor {
    width: 120px;
    height: 120px;
  }
  .top-left { top: 0; left: 0; }
  .top-right { top: 0; right: 0; transform: scaleX(-1); }
  .bottom-left { bottom: 0; left: 0; transform: scaleY(-1); }
  .bottom-right { bottom: 0; right: 0; transform: scale(-1, -1); }

  .lantern-container {
    width: 60px;
    height: 180px;
  }

  .string {
    height: 60px;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
  }
}

/* Rose Petal Animation */
.petal {
  position: fixed;
  top: -3vh;
  z-index: 1;
  pointer-events: none;
  border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  animation: petal-fall linear forwards;
}

@keyframes petal-fall {
  0% {
    transform: translateY(-3vh) translateX(0) rotate(0deg) scale(0.6);
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  25% {
    transform: translateY(25vh) translateX(var(--sway)) rotate(90deg) scale(1);
  }
  50% {
    transform: translateY(50vh) translateX(calc(var(--sway) * -0.6)) rotate(200deg) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translateY(75vh) translateX(var(--sway)) rotate(300deg) scale(0.7);
  }
  100% {
    transform: translateY(110vh) translateX(calc(var(--sway) * -0.3)) rotate(400deg) scale(0.4);
    opacity: 0;
  }
}
