/* CSS Design System and Animations for Rushikesh & Prajakta Wedding Invitation */

:root {
  --background: hsl(38, 40%, 96%);
  --foreground: #8C5A4A;
  
  --primary: hsl(348, 60%, 42%);
  --primary-foreground: hsl(38, 40%, 96%);
  
  --secondary: hsl(95, 18%, 70%);
  --secondary-foreground: hsl(25, 30%, 18%);
  
  --radius: 0.75rem;
  
  --sage: hsl(95, 22%, 65%);
  --sage-deep: #8C5A4A;
  --sage-soft: #c8a27a8f;
  
  --cream: hsl(38, 50%, 95%);
  --gold: hsl(36, 55%, 55%);
  --gold-soft: #8C5A4A;
  
  --rose: #8C5A4A;
  --rose-deep: #8C5A4A;
  --ink: hsl(25, 30%, 18%);
  
  --gradient-gold: #C8A27A;
  --gradient-cream: linear-gradient(180deg, hsl(38, 50%, 96%), hsl(38, 40%, 92%));
  --gradient-rose: linear-gradient(135deg, hsl(348, 55%, 55%), hsl(348, 65%, 38%));
  
  --shadow-elegant: 0 20px 60px -20px hsla(95, 25%, 25%, 0.25);
  --shadow-soft: 0 8px 30px -10px hsla(25, 30%, 18%, 0.15);
  --shadow-gold: 0 10px 40px -10px hsla(36, 55%, 45%, 0.4);
  
  --transition-elegant: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Typography Utility Classes */
.font-script {
  font-family: 'Great Vibes', cursive;
  font-size:50px;
}
 @media (max-width: 768px) {
    .font-script {
      font-size: 36px;
    }
  }

.font-serif-display {
  font-family: 'Cormorant Garamond', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.15em;
}

.text-rose-deep {
  color: var(--rose-deep);
}

.text-rose {
  color: var(--rose);
}

.text-sage-deep {
  color: var(--sage-deep);
}

.text-center {
  text-align: center;
}

.mb-16 {
  margin-bottom: 4rem;
}

.hidden {
  display: none !important;
}

/* Sections Base */
section {
  position: relative;
  padding: 5rem 1.5rem;
}

/* Floating Petals Styles */
#petals-container {
  pointer-events: none;
  fixed: absolute;
  position: fixed;
  inset: 0;
  z-index: 45;
  overflow: hidden;
}

@keyframes float-petal {
  0% {
    transform: translateY(-10vh) translate(0) rotate(0);
    opacity: 0;
  }
  10% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(110vh) translate(40px) rotate(360deg);
    opacity: 0;
  }
}

.animate-float-petal {
  position: absolute;
  top: -10vh;
  animation: float-petal linear infinite;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Butterfly Styles */
#butterfly-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 40;
  pointer-events: none;
}

.butterfly-path {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  animation: butterfly-fly 18s linear infinite;
  will-change: transform;
}

.butterfly-wings {
  display: inline-block;
  animation: butterfly-flap 0.25s ease-in-out infinite;
  transform-origin: center;
}

@keyframes butterfly-fly {
  0%   { transform: translate(-10vw, 60vh) rotate(-8deg) scale(1); }
  20%  { transform: translate(20vw, 35vh) rotate(6deg)  scale(1.05); }
  40%  { transform: translate(45vw, 55vh) rotate(-4deg) scale(0.95); }
  60%  { transform: translate(65vw, 25vh) rotate(8deg)  scale(1.1); }
  80%  { transform: translate(85vw, 45vh) rotate(-6deg) scale(1); }
  100% { transform: translate(110vw, 30vh) rotate(4deg) scale(1); }
}

@keyframes butterfly-flap {
  0%, 100% { transform: scaleX(1); }
  50%      { transform: scaleX(0.55); }
}

/* Music Control Button */
#music-toggle {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background-color: hsla(25, 30%, 18%, 0.8);
  color: var(--cream);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-elegant);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

#music-toggle:hover {
  transform: scale(1.08);
}

#music-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Envelope / Landing Screen */
#envelope-overlay {
  position: fixed;
  inset: 0;
  background: #C8A27A;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 1s var(--transition-elegant), visibility 1s var(--transition-elegant);
  overflow: inherit;
}

.envelope-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.decor-emoji {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.875rem;
  opacity: 0.7;
}

.animate-drift {
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

#envelope-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.5s ease;
  perspective: 1000px;
}

#envelope-btn:hover {
  transform: scale(1.05);
}

.envelope-img {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

@media(min-width: 480px) {
  .envelope-img {
    width: 360px;
  }
}

@media(min-width: 768px) {
  .envelope-img {
    width: 520px;
  }
}

.envelope-seal-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope-seal {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  box-shadow: var(--shadow-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: shimmer 3s ease-in-out infinite;
}

@media(min-width: 480px) {
  .envelope-seal {
    width: 4rem;
    height: 4rem;
  }
}

.seal-text {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.1em;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.landing-text {
  margin-top: 2.5rem;
  text-align: center;
   transform:translate(0,120px);
   padding: 20px;
}

.landing-text h2 {
  font-size: 2.5rem;
  color: var(--sage-deep);
}

.landing-text p {
  margin-top: 0.5rem;
  color: #3E312C;
  font-style: italic;
  letter-spacing: 0.025em;
}

/* Animations for open envelope */
.animate-envelope-open {
  animation: envelope-open 1s var(--transition-elegant) forwards;
}

@keyframes envelope-open {
  0% { transform: scale(1) rotateX(0); }
  50% { transform: scale(1.05) rotateX(-15deg); }
  100% { transform: scale(1.4) rotateX(-90deg); opacity: 0; }
}

.fade-out-envelope {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Main Content Reveal Animation */
#main-content {
  animation: fade-in 1.2s ease-out both;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 1s var(--transition-elegant) both;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.section-hero {
  min-h-screen: 100vh;
  height: auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4rem;
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(249, 246, 240, 0.3), transparent 60%, var(--background));
}

.hero-foreground {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 42rem;
  padding: 0 1.5rem;
}

.ganesha-header {
  color: var(--rose-deep);
}

.ganesha-img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.ganesha-chant {
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.invitation-text {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: var(--rose-deep);
  max-width: 28rem;
  line-height: 1.6;
}

.couple-name {
  margin-top: 1.5rem;
}

.name-span {
  font-size: 4.5rem;
  color: var(--rose);
  line-height: 1;
}

@media(min-width: 480px) {
  .name-span {
    font-size: 	5rem;
  }
}

@media(min-width: 768px) {
  .name-span {
    font-size: 4rem;
  }
}

.parent-info {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: hsla(25, 30%, 18%, 0.8);
  line-height: 1.5;
}

.with-text {
  margin-top: 1.25rem;
  font-size: 1.875rem;
  color: var(--rose-deep);
}

/* Scratch Card & Countdown */
.section-scratch {
  background-color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.scratch-card-container {
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 132px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold-soft);
  box-shadow: var(--shadow-elegant);
  margin-bottom: 2.5rem;
}

#scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 10;
  cursor: grab;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#scratch-canvas:active {
  cursor: grabbing;
}

.scratch-reveal-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cream);
  text-align: center;
}

/* Countdown Styles */
#countdown-wrapper {
  width: 100%;
  transition: all 0.7s var(--transition-elegant);
}

.hidden-countdown {
  opacity: 0;
  transform: translateY(1rem);
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.visible-countdown {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

#countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.count-unit {
  background-color: rgba(212, 165, 116, 0.15);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  width: 4.5rem;
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.count-val {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rose-deep);
  line-height: 1.2;
}

.count-lbl {
  font-size: 0.75rem;
  color: var(--foreground);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Dividers */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--gold-soft);
}

.divider-line {
  height: 1px;
  width: 4rem;
  background-color: var(--gold-soft);
}

.divider-line.sm {
  width: 2rem;
}

.divider-flower {
  font-size: 0.875rem;
  color: var(--gold);
}

.divider-flower.sm {
  font-size: 0.75rem;
}

/* Decor Emojis In Sections */
.section-decor {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.decor-item {
  position: absolute;
  font-size: 1.875rem;
  opacity: 0.2;
  user-select: none;
}

.decor-item.top-left { top: 1.5rem; left: 1rem; }
.decor-item.top-right { top: 3rem; right: 1.5rem; }
.decor-item.bottom-left { bottom: 2.5rem; left: 2.5rem; }
.decor-item.bottom-right { bottom: 1.5rem; right: 1rem; }

/* Events Section */
.section-schedule {
  background-color: var(--sage-soft);
}

.schedule-content {
  max-width: 72rem;
  margin: 0 auto;
}
 @media (max-width: 768px) {
    .schedule-content {
      font-size: 16px;
    }
  }

.section-title {
  font-size: 3rem;
  margin-top: 0.5rem;
}

@media(min-width: 480px) {
  .section-title {
    font-size: 3.5rem;
    font-size:50px;
  }
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media(min-width: 1024px) {
  .events-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.event-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: 360px;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (max-width:768px) {
  .event-card{
    position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  height: auto;
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elegant);
}

.event-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.event-card:hover .event-card-bg {
  transform: scale(1.04);
}

.event-card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.event-card-body {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  color: var(--cream);
}

.event-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.event-day {
  font-weight: 600;
  color: var(--gold-soft);
}

.event-main {
  margin-top: 1rem;
  flex-grow: 1;
}

.event-title {
  font-size: 2rem;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-desc {
  font-size: 1rem;
  opacity: 0.85;
  margin-top: 0.25rem;
}

.event-time, .event-venue {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.event-dress {
  font-size: 0.875rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  max-width: 80%;
  line-height: 1.4;
  opacity: 0.9;
}

.event-couple-container {
  align-self: flex-end;
  height: auto;
  width: auto;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.event-couple-img {
  position:absolute;
  right:-50px;
  bottom:0;
  height: 80%;
  width: auto;
  object-fit: contain;
} 
.event1{
  display: flex;

}
@media (max-width: 768px) {
  .event-couple-img{
    display: block;
    position: static;
    right: auto;
    bottom: auto;
    height: auto;
    width: 100%;
    object-fit: contain;
  }

  .event1{
  display: block;
 } 
}

/* Families Section */
.section-families {
  background-color: var(--sage-soft);
}

.families-content h2 {
  font-size: 3.5rem;
  font-size:50px;
}
@media (max-width: 768px) {
    .families-content h2 {
      font-size: 36px;
    }
}

.family-cards-container {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.family-card {
  border-radius: 1rem;
  padding: 2rem;
  max-width: 1500px;
  width: 100%;
  box-shadow: var(--shadow-soft);
}

.family-card p.font-cinzel {
  font-size: 0.75rem;
  color: var(--sage-deep);
  letter-spacing: 0.1em;
}

.family-member {
  font-size: 1.25rem;
  color: var(--foreground);
  margin: 0.25rem 0;
}

/* Venue Section */
.section-venue h2 {
  font-size: 3.5rem;
  font-size:50px;
}
@media (max-width: 768px) {
    .section-venue h2 {
      font-size: 36px;
    }
}

.map-wrapper {
  margin-top: 2.5rem;
  height: 360px;
}


.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  color: var(--cream);
  background: var(--gradient-gold);
  border: none;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: var(--shadow-gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-directions:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.directions-icon {
  width: 1rem;
  height: 1rem;
}

/* Footer Section */
.footer-container {
  background-color: var(--foreground);
  color: var(--cream);
  padding: 4rem 1.5rem;
  text-align: center;
}

.footer-container h3 {
  font-size: 3.5rem;
  font-size:50px
}
@media (max-width: 768px) {
    .footer-container h3 {
      font-size: 36px;
    }
  }

.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
}

.footer-line {
  height: 1px;
  width: 3rem;
  background-color: rgba(255, 255, 255, 0.2);
}

.footer-flower {
  font-size: 1.25rem;
}

.hashtag {
  margin-top: 0.75rem;
  color: #fff;
  font-size: 0.75rem;
}

#copyright-text{
    z-index: 1000 !important;
    margin: 0;
    padding: 0 5px 0 5px;
    position: fixed;
    right: 0;
    bottom: 0;
    background-color: #FFFFFFC9;
}
#copyright-text p{
    margin-bottom: 0;
}
