/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Rose Blush Luxury Wedding Palette */
  --pink: #f8d4de;
  --pink-soft: #fdf0f4;
  --pink-deep: #e8a0b4;
  --rose: #d47890;
  --rose-dark: #b85a72;
  --blush: #fff5f8;
  --cream: #fdf6f8;
  --ivory: #faf0f3;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #a88b2e;
  --champagne: #f5e6c8;
  --burgundy: #5c1a2a;
  --burgundy-deep: #3d1020;
  --dark: #2a1c22;
  --dark-soft: #3d2a32;
  --text: #3a2830;
  --text-light: #7a6070;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(212, 120, 144, 0.12);
  --shadow-lg: 0 28px 70px rgba(212, 120, 144, 0.16);
  --shadow-gold: 0 8px 30px rgba(201, 168, 76, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Be Vietnam Pro', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(ellipse at 15% 20%, rgba(232, 160, 180, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 15%, rgba(201, 168, 76, 0.14) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 55%, rgba(244, 180, 196, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 90%, rgba(232, 160, 180, 0.14) 0%, transparent 40%),
    linear-gradient(180deg, #fff8fa 0%, #fdf0f4 40%, #fce8f0 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PARTICLES & HEARTS ===== */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.heart {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  animation: floatHeart 12s linear infinite;
  filter: drop-shadow(0 2px 6px rgba(232, 160, 180, 0.35));
}

@keyframes floatHeart {
  0% { transform: translateY(105vh) translateX(0) rotate(0deg) scale(0.5); opacity: 0; }
  8% { opacity: 0.75; }
  50% { transform: translateY(45vh) translateX(30px) rotate(180deg) scale(1); opacity: 0.65; }
  92% { opacity: 0.4; }
  100% { transform: translateY(-8vh) translateX(-20px) rotate(360deg) scale(1.15); opacity: 0; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: var(--transition);
  background: transparent;
}

.navbar .nav-menu a:not(.btn-nav) {
  color: var(--text);
}

.navbar .nav-menu a:not(.btn-nav):hover {
  color: var(--gold-dark);
}

.navbar .nav-toggle span {
  background: var(--dark);
}

.navbar.scrolled {
  background: rgba(255, 248, 250, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(232, 160, 180, 0.12);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.logo img,
.logo .logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

/* Light site: always use transparent logo */
.logo .logo-on-dark { display: none; }
.logo .logo-on-light { display: block; }

.logo-text-only {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--rose-dark);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}

.nav-menu a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-menu a:not(.btn-nav):hover { color: var(--gold-dark); }
.nav-menu a:not(.btn-nav):hover::after { width: 100%; }

.btn-nav {
  background: linear-gradient(135deg, #f0b8c8, #e8a0b4);
  color: white !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(232, 160, 180, 0.4);
  transition: var(--transition);
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 160, 180, 0.55);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #f0b8c8, #e8a0b4, #d47890);
  color: white;
  box-shadow: 0 6px 24px rgba(232, 160, 180, 0.45);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(232, 160, 180, 0.55);
  background: linear-gradient(135deg, #f5c8d4, #e8a0b4, #c96a84);
}

.btn-outline {
  background: transparent;
  border-color: var(--pink-deep);
  color: var(--rose-dark);
}

.btn-outline:hover {
  background: linear-gradient(135deg, #f0b8c8, #e8a0b4);
  color: white;
  border-color: transparent;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-secondary {
  background: var(--dark);
  color: white;
}

.btn-secondary:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 0 100px;
  overflow: hidden;
  background: transparent;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(232, 160, 180, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(244, 180, 196, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 60%, rgba(255, 220, 230, 0.3) 0%, transparent 40%);
  pointer-events: none;
}

.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 70%, rgba(255,255,255,0.5) 0%, transparent 8%),
    radial-gradient(circle at 85% 25%, rgba(255,255,255,0.4) 0%, transparent 6%),
    radial-gradient(circle at 60% 90%, rgba(255,255,255,0.35) 0%, transparent 7%);
  animation: shimmerGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes shimmerGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 200px;
  max-width: 55vw;
  margin: 0 auto 24px;
  filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.25));
  animation: fadeInDown 0.9s ease;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(232, 160, 180, 0.18), rgba(201, 168, 76, 0.12));
  color: var(--rose-dark);
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(232, 160, 180, 0.4);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  animation: fadeInDown 0.8s ease;
  box-shadow: 0 4px 20px rgba(232, 160, 180, 0.15);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 24px;
}

.hero-title .line1,
.hero-title .line3 {
  display: block;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  color: var(--dark);
}

.hero-title .line2 {
  display: block;
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-family: var(--font-script);
  margin: 10px 0;
  background: linear-gradient(135deg, #e8a0b4, #c9a84c, #d47890, #c9a84c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 12px rgba(212, 120, 144, 0.2));
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stat {
  text-align: center;
  min-width: 100px;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  margin-bottom: 6px;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--rose), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  white-space: nowrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.8rem;
  letter-spacing: 1px;
  animation: bounce 2s infinite;
  text-decoration: none;
  z-index: 5;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(201, 168, 76, 0.55);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== FEATURES ===== */
.features {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.feature-card {
  background: linear-gradient(160deg, #fffafb 0%, #fff5f8 100%);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: var(--transition);
  border: 1px solid rgba(232, 160, 180, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(232, 160, 180, 0.08);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pink-deep), var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(232, 160, 180, 0.2);
  border-color: rgba(232, 160, 180, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===== 3D CAROUSEL TEMPLATES ===== */
.templates {
  background: transparent;
  overflow: hidden;
  padding-bottom: 80px;
}

.carousel-section {
  position: relative;
  perspective: 1200px;
  padding: 20px 0 40px;
}

.carousel-3d {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.carousel-track {
  position: relative;
  width: 290px;
  height: 460px;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-card {
  position: absolute;
  width: 290px;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 25px 60px rgba(0,0,0,0.2),
    0 0 0 1px rgba(201, 168, 76, 0.08);
  cursor: pointer;
  transition: all 0.5s ease;
  background: white;
  left: 0;
  top: 0;
}

.carousel-card.is-active {
  box-shadow:
    0 30px 70px rgba(232, 160, 180, 0.35),
    0 0 0 2px rgba(232, 160, 180, 0.25);
}

.carousel-card .card-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.carousel-card .card-scroll-wrap {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}

.carousel-card .card-scroll-content {
  transition: transform 0.4s ease;
}

.carousel-card.is-active .card-scroll-content.is-scrolling {
  animation: cardAutoScroll 7s ease-in-out forwards;
}

@keyframes cardAutoScroll {
  0% { transform: translateY(0); }
  10% { transform: translateY(0); }
  90% { transform: translateY(calc(-100% + 380px)); }
  100% { transform: translateY(calc(-100% + 380px)); }
}

.carousel-card .card-bg {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 32px;
  text-align: center;
  position: relative;
  min-height: 640px;
}

.carousel-card .card-ornament {
  font-size: 0.65rem;
  letter-spacing: 3px;
  opacity: 0.55;
  margin: 4px 0;
}

.carousel-card .card-year {
  font-size: 0.7rem;
  opacity: 0.65;
  letter-spacing: 3px;
  margin-bottom: 2px;
  font-weight: 500;
}

.carousel-card .card-script {
  font-family: var(--font-script);
  font-size: 1.45rem;
  margin-bottom: 12px;
  opacity: 0.9;
  line-height: 1.2;
}

/* Premium photo frame */
.carousel-card .card-photo-frame {
  width: 130px;
  height: 150px;
  margin-bottom: 14px;
  padding: 5px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  box-shadow: 0 8px 28px rgba(0,0,0,0.25), inset 0 0 0 1px rgba(255,255,255,0.2);
  position: relative;
}

.carousel-card .card-photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  pointer-events: none;
}

.carousel-card .card-photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(0,0,0,0.15), rgba(0,0,0,0.05));
}

.carousel-card .couple-silhouette {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.14) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0.12) 100%);
}

.carousel-card .empty-frame-icon {
  font-size: 1.6rem;
  opacity: 0.7;
}

.carousel-card .empty-frame-text {
  font-size: 0.7rem;
  letter-spacing: 1px;
  opacity: 0.65;
  text-transform: uppercase;
  font-weight: 500;
}

.carousel-card .card-names {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.carousel-card .card-names .name-amp {
  font-family: var(--font-script);
  font-size: 1.1rem;
  opacity: 0.75;
  line-height: 1;
  margin: 1px 0;
}

.carousel-card .card-date {
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  opacity: 0.75;
  margin-top: 4px;
  font-weight: 500;
  margin-bottom: 10px;
}

.carousel-card .card-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  width: 100%;
  max-width: 220px;
}

.carousel-card .card-section-title {
  font-family: var(--font-script);
  font-size: 1.15rem;
  margin-bottom: 4px;
  opacity: 0.95;
}

.carousel-card .card-section-text {
  font-size: 0.72rem;
  opacity: 0.75;
  line-height: 1.45;
}

.carousel-card .card-thanks {
  font-family: var(--font-script);
  font-size: 1rem;
  margin-top: 16px;
  opacity: 0.85;
  line-height: 1.4;
  max-width: 200px;
}

.carousel-card .card-footer {
  padding: 12px 16px;
  background: linear-gradient(180deg, #fffdfb, #faf6f0);
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
  flex-shrink: 0;
  z-index: 2;
}

.carousel-card .card-footer h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.carousel-card .card-footer p {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* Theme variants - Luxury */
.theme-red .card-bg {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201,168,76,0.15) 0%, transparent 50%),
    linear-gradient(165deg, #4a1018 0%, #6b1c2a 40%, #8b2a3a 100%);
  color: #f5e6c8;
}
.theme-pink .card-bg {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.2) 0%, transparent 50%),
    linear-gradient(165deg, #f2d4dc 0%, #e8b8c4 50%, #d4a0b0 100%);
  color: #4a2830;
}
.theme-cream .card-bg {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(201,168,76,0.12) 0%, transparent 50%),
    linear-gradient(165deg, #faf6f0 0%, #f0e6d8 50%, #e8dcc8 100%);
  color: #3d3028;
}
.theme-burgundy .card-bg {
  background:
    radial-gradient(ellipse at 50% 15%, rgba(201,168,76,0.2) 0%, transparent 45%),
    linear-gradient(165deg, #2a0c14 0%, #4a1520 45%, #6b1c2a 100%);
  color: #f5e0d0;
}
.theme-rose-gold .card-bg {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(232,212,139,0.18) 0%, transparent 50%),
    linear-gradient(165deg, #2c1e1a 0%, #4a3530 40%, #6b5048 100%);
  color: #f5e6c8;
}
.theme-soft .card-bg {
  background:
    radial-gradient(ellipse at 50% 25%, rgba(255,255,255,0.35) 0%, transparent 55%),
    linear-gradient(165deg, #fff8f9 0%, #f8e8ec 50%, #f0d8e0 100%);
  color: #4a3040;
}
.theme-classic .card-bg {
  background:
    radial-gradient(ellipse at 50% 15%, rgba(201,168,76,0.22) 0%, transparent 45%),
    linear-gradient(165deg, #14100e 0%, #2c1e1a 45%, #3d2c28 100%);
  color: #e8d48b;
}
.theme-floral .card-bg {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,0.25) 0%, transparent 50%),
    linear-gradient(165deg, #fdf6f7 0%, #f5e4e8 45%, #ecd0d8 100%);
  color: #5c3040;
}
.theme-3d .card-bg {
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255,200,210,0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 80%, rgba(201,168,76,0.2) 0%, transparent 40%),
    linear-gradient(165deg, #2a1520 0%, #5c1a2a 50%, #8b3a4a 100%);
  color: #fff8f0;
}
.theme-3d .card-scroll-content.is-scrolling {
  animation-duration: 6s;
}

/* Carousel controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--rose);
  z-index: 20;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: linear-gradient(135deg, #f0b8c8, #e8a0b4);
  color: white;
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: max(16px, calc(50% - 340px)); }
.carousel-btn.next { right: max(16px, calc(50% - 340px)); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0c8d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.carousel-dots .dot.active {
  width: 28px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0b8c8, #e8a0b4, #c9a84c);
}

/* Template grid below */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.template-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.template-preview {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.template-preview .tp-inner {
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.tp-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}

.template-preview h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.template-preview p {
  font-size: 0.85rem;
  opacity: 0.8;
  letter-spacing: 1px;
}

.template-info {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(232, 154, 171, 0.18);
  color: var(--rose-dark);
}

.badge.new {
  background: rgba(212, 165, 116, 0.2);
  color: var(--gold-dark);
}

/* ===== HOW ===== */
.how {
  background: transparent;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.step {
  text-align: center;
  padding: 20px;
}

.step-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.45;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(165deg, rgba(252, 228, 236, 0.85) 0%, rgba(248, 208, 220, 0.9) 40%, rgba(242, 196, 208, 0.95) 100%);
  color: var(--dark);
  padding: 90px 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 168, 76, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.cta-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
  color: var(--dark);
}

.cta-box p {
  margin-bottom: 32px;
  font-size: 1.05rem;
  color: var(--text-light);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #2c2420 0%, #1f1a18 100%);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo img {
  height: 56px;
  filter: brightness(1.1);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 24px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-cta { flex-direction: column; align-items: center; }

  .carousel-3d { height: 440px; }
  .carousel-track { width: 250px; height: 400px; }
  .carousel-card { width: 250px; height: 400px; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .hero-stats { gap: 28px; margin-bottom: 36px; }
  .stat-num { font-size: 1.6rem; }
  .stat { min-width: 80px; }
}

/* ===== ANIMATIONS UTILS ===== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
