:root {
  /* Color Palette - Deep Romantic Reds & Soft Creams */
  --color-bg: #fff5f7;
  --color-primary: #ff4d6d;
  --color-primary-dark: #c9184a;
  --color-secondary: #ff8fa3;
  --color-accent: #ffb3c1;
  --color-text: #590d22;
  --color-text-light: #800f2f;
  --color-white: #ffffff;
  --color-gold: #d4af37;
  
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Typography */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Quicksand', sans-serif;
  
  /* Shadow & Blur */
  --shadow-soft: 0 10px 30px rgba(255, 77, 109, 0.15);
  --shadow-hover: 0 20px 40px rgba(255, 77, 109, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Quicksand:wght@300;400;600&display=swap');

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 179, 193, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 179, 193, 0.2) 0%, transparent 40%);
}

/* Base Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

section {
  position: relative;
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
}

main > :first-child {
  margin-top: 0;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-hover);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--space-xl);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  animation: fadeInDown 1.2s ease-out;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: var(--space-sm);
  background: linear-gradient(45deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
  font-style: italic;
}

/* Floating Hearts Animation */
.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.heart-particle {
  position: absolute;
  color: var(--color-primary);
  opacity: 0.2;
  font-size: var(--size, 20px);
  animation: floatUp var(--dur, 10s) infinite linear;
  filter: blur(1px);
  bottom: -50px;
}

/* Card Design */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: var(--space-md);
  border-radius: 24px;
  text-align: center;
  transition: all 0.4s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  background: var(--color-white);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  color: var(--color-primary);
}

/* Placeholders */
.placeholder-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.placeholder-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shine 3s infinite;
}

/* Letter Section */
.love-letter {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  padding: var(--space-lg);
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05), 0 15px 35px rgba(255,77,109,0.1);
  position: relative;
  transform: rotate(-1deg);
}

.love-letter::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid var(--color-accent);
  pointer-events: none;
}

.letter-content {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--color-text-light);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(255, 245, 247, 0.8);
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  transition: color 0.3s;
}

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

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite ease-in-out;
}

.pulse-ring {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  animation: pulseRing 4s infinite ease-out;
}

.pulse-ring::after {
  animation-delay: 2s;
}

@keyframes pulseRing {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll Reveal System */
.reveal, .reveal-group > * {
  view-timeline-name: --reveal;
  view-timeline-axis: block;
  animation-timeline: --reveal;
  animation-name: revealAnim;
  animation-fill-mode: both;
  animation-range: entry 5% cover 30%;
}

@keyframes revealAnim {
  from { 
    opacity: 0; 
    transform: translateY(100px) scale(0.95);
    filter: blur(10px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Specific delays for children within reveal-group to create flow */
.reveal-group > *:nth-child(1) { animation-delay: 0s; }
.reveal-group > *:nth-child(2) { animation-delay: 0.1s; }
.reveal-group > *:nth-child(3) { animation-delay: 0.2s; }

/* Remove the static animation that triggers on load for card-grid */
.card-grid > * {
  /* Inherits from reveal-group > * */
}

.card-grid > *:nth-child(2) { animation-delay: 0.2s; }
.card-grid > *:nth-child(3) { animation-delay: 0.4s; }

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

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) 0;
  background: var(--color-primary-dark);
  color: var(--color-white);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  display: block;
}

/* Grid Layouts */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .split-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}
