@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

:root {
  --background: 210 30% 93%;
  --foreground: 222.2 84% 4.9%;
  --primary: 199 89% 48%;
  --primary-foreground: 210 40% 98%;
  --border: 214.3 31.8% 91.4%;
  --radius: 1.25rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.dark {
  --background: 222.2 40% 4%;
  --foreground: 210 40% 98%;
  --border: 217.2 32.6% 17.5%;
  /* Keep primary blue */
}

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

body {
  font-family: 'Inter', sans-serif;
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  
  /* Background Setting */
  background-color: hsl(var(--background));
  
  /* Prevent full body scrolling */
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

.wedding-font {
  font-family: 'Alex Brush', cursive;
  font-weight: 400;
}

/* Sections & SPA Logic */
.app-container {
  height: 100%;
  width: 100%;
  position: relative;
}

.view-section {
  display: none; /* Hidden by default */
  height: 100vh;
  width: 100%;
  overflow-y: auto; /* Allow internal scrolling if content is long */
  padding-bottom: 6rem; /* Space for the floating nav */
  padding-top: 2rem;
}

.view-section.active {
  display: block;
}

/* Staggered Animations */
.animate-fade {
  opacity: 0;
  transform: translateY(20px);
}

.view-section.active .animate-fade {
  animation-name: slideUpFade;
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}

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

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.7s; }
.delay-6 { animation-delay: 0.85s; }
.delay-7 { animation-delay: 1.0s; }
.delay-8 { animation-delay: 1.15s; }
.delay-9 { animation-delay: 1.3s; }
.delay-10 { animation-delay: 1.45s; }

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Cards (Glassmorphism) */
.card {
  /* Semi-transparent white */
  background-color: hsla(0, 0%, 100%, 0.85); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.dark .card {
  background-color: hsla(222.2, 30%, 12%, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05); /* Light shadow */
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.dark .card:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1); /* Brighter light shadow on hover */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
p {
  margin-bottom: 1rem;
}
.display-title { font-size: 5rem; margin-bottom: 1.5rem; text-shadow: 0 2px 4px rgba(255,255,255,0.8); }
.section-title { font-size: 3rem; text-align: center; margin-bottom: 3rem; text-shadow: 0 2px 4px rgba(255,255,255,0.8); }
.text-muted { color: #475569; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.small { font-size: 0.875rem; }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }

/* Grid Layouts */
.grid { display: grid; gap: 3rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* Flexbox */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Hero Specifics */
.hero-content {
  margin: 5vh auto;
  text-align: center;
  max-width: 700px;
  width: 100%;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0;
}
.cd-box {
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(5px);
  border-radius: calc(var(--radius) - 0.5rem);
  padding: 1rem;
  min-width: 80px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background-color 0.3s ease;
}
.dark .cd-box {
  background: hsla(222.2, 30%, 12%, 0.85);
  border-color: rgba(255,255,255,0.05);
}
.cd-box h3 { margin: 0; font-size: 2rem; color: hsl(var(--primary)); }
.cd-box span { font-size: 0.75rem; text-transform: uppercase; color: #475569; letter-spacing: 1px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px; /* Pill shape */
  padding: 0.75rem 2rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: hsl(200, 90%, 40%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}
.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: calc(var(--radius) - 0.5rem);
  border: 1px solid rgba(0,0,0,0.1);
  background-color: hsla(0,0%,100%,0.5);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  color: hsl(var(--foreground));
}
.dark .form-control {
  background-color: hsla(222.2, 84%, 4.9%, 0.5);
  border-color: rgba(255,255,255,0.1);
  color: hsl(var(--foreground));
}
.form-control:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsla(199, 89%, 48%, 0.15);
  background-color: hsla(0,0%,100%,0.7);
}
.dark .form-control:focus {
  background-color: hsla(222.2, 84%, 4.9%, 0.8);
}
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Images & Media */
.rounded-circle {
  border-radius: 50%;
  object-fit: cover;
}
.rounded-4 {
  border-radius: 1.5rem;
  object-fit: cover;
}
.rounded-2 {
  border-radius: 0.5rem;
  object-fit: cover;
}
.profile-img {
  width: 220px;
  height: 220px;
  border: 6px solid hsla(0,0%,100%,0.8);
  box-shadow: var(--shadow-md);
  margin: 0 auto 2rem;
  display: block;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  border-radius: calc(var(--radius) - 0.5rem);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 3px solid hsla(0,0%,100%,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Specific Sections */
.couple-card {
  text-align: center;
}
.event-card {
  text-align: center;
}
.event-icon {
  width: 60px;
  height: 60px;
  background-color: hsla(199, 89%, 48%, 0.1);
  color: hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.event-icon svg { width: 28px; height: 28px; }

/* Utilities */
hr {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 2rem auto;
  width: 50px;
}
.wishes-list {
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  padding-right: 1rem;
}
.wish-item {
  background: hsla(0,0%,100%,0.85);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: calc(var(--radius) - 0.5rem);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.wish-item:hover {
  box-shadow: var(--shadow-lg);
}
.dark .wish-item {
  background: hsla(222.2, 30%, 12%, 0.85);
  border-color: rgba(255,255,255,0.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}
.dark .wish-item:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}
.wish-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.wish-meta strong { color: hsl(var(--primary)); }

/* Responsive */
@media (max-width: 768px) {
  .hero-content { padding: 3rem 1.5rem; }
  .display-title { font-size: 3.5rem; }
  .countdown { gap: 0.5rem; }
  .cd-box { min-width: 65px; padding: 0.75rem; }
  .cd-box h3 { font-size: 1.5rem; }
}
