/* ============================================
   SITE LOH — Netflix Romântico
   Um presente de amor ♥
   ============================================ */

/* --- 1. RESET & CUSTOM PROPERTIES --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-surface: #141414;
  --bg-card: #1a1a1a;
  --bg-elevated: #222;
  --text-primary: #e5e5e5;
  --text-secondary: #808080;
  --text-muted: #555;
  --accent: #E50914;
  --accent-soft: #b81d24;
  --accent-romantic: #ff2d55;
  --accent-glow: rgba(229, 9, 20, 0.35);
  --glass-bg: rgba(20, 20, 20, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --font-display: 'Outfit', sans-serif;
  --font-romantic: 'Playfair Display', serif;
  --ease-cinematic: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out-expo);
  --transition-smooth: 600ms var(--ease-cinematic);
  --transition-slow: 1000ms var(--ease-cinematic);
  --transition-dramatic: 1600ms var(--ease-cinematic);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body.no-scroll {
  overflow: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Selection */
::selection {
  background: var(--accent);
  color: #fff;
}

/* --- 2. SCREEN SYSTEM --- */
.screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-dramatic), visibility 0s linear 0s;
}

.screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-dramatic), visibility 0s linear 1.2s;
}

/* --- 3. PROFILE SELECTION SCREEN --- */
#profile-screen {
  background: var(--bg-surface);
  flex-direction: column;
  gap: 48px;
  z-index: 200;
}

.profile-title {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.profiles-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.profile:nth-child(1) { animation: fadeInUp 0.7s var(--ease-out-expo) 0.6s forwards; }
.profile:nth-child(2) { animation: fadeInUp 0.7s var(--ease-out-expo) 0.8s forwards; }

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
  position: relative;
}

.profile:hover .profile-avatar {
  border-color: var(--text-primary);
  transform: scale(1.05);
}

.profile:active .profile-avatar {
  transform: scale(0.97);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 300;
  color: var(--text-secondary);
}

.profile-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color var(--transition-fast);
}

.profile:hover .profile-name {
  color: var(--text-primary);
}

/* Profile click zoom animation */
.profile.selected .profile-avatar {
  animation: profileZoom 1.2s var(--ease-out-expo) forwards;
}

@keyframes profileZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(15); opacity: 0; }
}

/* --- 4. OTHER PROFILE MODAL --- */
#other-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-smooth), visibility 0s linear 0.4s;
}

#other-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity var(--transition-smooth), visibility 0s linear 0s;
}

.modal-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-smooth);
}

#other-modal.visible .modal-card {
  transform: scale(1) translateY(0);
  animation: shake 0.5s var(--ease-out-expo) 0.3s;
}

.modal-card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.modal-close-btn {
  padding: 10px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.modal-close-btn:hover { background: var(--accent-soft); }
.modal-close-btn:active { transform: scale(0.96); }

@keyframes shake {
  0%, 100% { transform: scale(1) translateX(0); }
  20% { transform: scale(1) translateX(-8px); }
  40% { transform: scale(1) translateX(6px); }
  60% { transform: scale(1) translateX(-4px); }
  80% { transform: scale(1) translateX(2px); }
}

/* --- 5. INTRO SCREEN --- */
#intro-screen {
  background: #000;
  z-index: 150;
}

#intro-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Tap to start overlay (mobile fallback) */
.tap-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  cursor: pointer;
}

.tap-overlay.hidden {
  display: none;
}

.tap-overlay p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: pulse 2s ease-in-out infinite;
}

.tap-icon {
  width: 64px;
  height: 64px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.tap-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

/* --- 6. GALLERY --- */
#gallery {
  display: none;
  padding-bottom: 80px;
  position: relative;
}

#gallery.visible {
  display: block;
}

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Floating Particles (ambient) */
.floating-particle {
  position: absolute;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  box-shadow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
  animation: floatParticle ease-in-out infinite;
}

@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  25% {
    opacity: 0.3;
  }
  50% {
    transform: translateY(-100px) translateX(20px) scale(1.5);
    opacity: 0.1;
  }
  75% {
    opacity: 0.3;
  }
}

/* Scroll-driven particles */
.scroll-particle {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 8px var(--accent-glow), 0 0 16px var(--accent-glow);
  will-change: transform;
  transition: transform 0.6s ease-out; /* Smooth movement */
}

.scroll-particle.bg {
  z-index: -1; /* Background layer */
  opacity: 0.3; /* Menor opacidade */
}

.scroll-particle.fg {
  z-index: -1; /* Foreground layer moved to background */
  opacity: 0.1; /* Bem sutil */
}

/* --- 7. GALLERY SECTIONS (Generic) --- */
.gallery-section {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translateY(80px) scale(0.96);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.6s var(--ease-cinematic), filter 1.4s ease;
  will-change: transform, opacity;
  filter: blur(8px);
}

.gallery-section.in-view {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
  filter: blur(0);
}

/* --- 8. HERO OPENING --- */
.hero-opening {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: -5px;
  right: -5px;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.6) 100%),
    linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, transparent 30%, rgba(10,10,10,0.8) 75%, var(--bg-primary) 95%, var(--bg-primary) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-content h2 {
  font-family: var(--font-romantic);
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-content p {
  margin-top: 16px;
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-secondary);
}

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

/* --- 9. TEXT SECTIONS --- */
.text-section {
  padding: 80px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
}

.text-section .romantic-text {
  font-family: var(--font-romantic);
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  color: var(--text-primary);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease 0.2s, transform 1.4s var(--ease-spring) 0.2s;
}

.text-section.in-view .romantic-text {
  opacity: 1;
  transform: translateY(0);
}

.text-section .romantic-text::before {
  content: '\201C';
  position: absolute;
  top: -40px;
  left: -10px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
  font-family: var(--font-romantic);
  line-height: 1;
}

/* Typewriter variant */
.typewriter-text {
  font-family: var(--font-romantic);
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  color: var(--text-primary);
  overflow: hidden;
  white-space: normal;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- 10. SINGLE PHOTO SECTION --- */
.photo-section {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.photo-frame {
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(229, 9, 20, 0.05);
  transform: perspective(1000px) rotateY(-8deg) rotateX(5deg) scale(0.85);
  transition: transform 1.6s var(--ease-spring), box-shadow 1.4s ease;
  position: relative;
}

/* Soft vignette edges on photo frames */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 40px rgba(10, 10, 10, 0.5);
  pointer-events: none;
  z-index: 1;
}

.photo-section.in-view .photo-frame {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 150px rgba(229, 9, 20, 0.12);
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 6s ease;
}

.photo-section.in-view .photo-frame img {
  transform: scale(1.04);
}

/* --- 11. DUAL PHOTOS --- */
.dual-photos {
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.dual-photos .photo-frame:nth-child(1) {
  transform: translateX(-80px) translateY(40px) rotate(-6deg) scale(0.8);
  opacity: 0;
  transition: transform 1.6s var(--ease-spring), opacity 1.4s var(--ease-cinematic);
}

.dual-photos .photo-frame:nth-child(2) {
  transform: translateX(80px) translateY(40px) rotate(6deg) scale(0.8);
  opacity: 0;
  transition: transform 1.6s var(--ease-spring) 0.2s, opacity 1.4s var(--ease-cinematic) 0.2s;
}

.dual-photos.in-view .photo-frame:nth-child(1),
.dual-photos.in-view .photo-frame:nth-child(2) {
  transform: translateX(0) translateY(0) rotate(0deg) scale(1);
  opacity: 1;
}

/* --- 12. VIDEO SECTION --- */
.video-section {
  padding: 40px 24px;
  display: flex;
  justify-content: center;
}

.video-container {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 100px rgba(229, 9, 20, 0.06);
  position: relative;
  transform: perspective(1200px) rotateX(10deg) translateY(40px) scale(0.9);
  transition: transform 1.6s var(--ease-cinematic), box-shadow 1.6s ease;
}

/* Soft vignette on videos */
.video-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  box-shadow: inset 0 0 50px rgba(10, 10, 10, 0.6);
  pointer-events: none;
  z-index: 1;
}

.video-section.in-view .video-container {
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

.video-container video {
  width: 100%;
  display: block;
}

/* --- 13. PARALLAX TEXT SECTION --- */
.parallax-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
}

.parallax-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.35);
}

.parallax-content {
  position: relative;
  z-index: 1;
  padding: 48px 32px;
  max-width: 600px;
  text-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.parallax-content p {
  font-family: var(--font-romantic);
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-style: italic;
  line-height: 1.6;
  color: #fff;
}

/* --- 14. PHOTO CAROUSEL --- */
.carousel-section {
  padding: 60px 0;
}

.carousel-title {
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 500;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 20px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
  flex: 0 0 75%;
  max-width: 320px;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(800px) rotateY(15deg) scale(0.9);
  opacity: 0.7;
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.carousel-section.in-view .carousel-item {
  transform: perspective(800px) rotateY(0deg) scale(1);
  opacity: 1;
}

.carousel-item:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.05);
}

.carousel-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* --- 15. FULL-BLEED PHOTO --- */
.fullbleed-photo {
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
  position: relative;
}

/* Soft fade edges top and bottom */
.fullbleed-photo::before,
.fullbleed-photo::after {
  content: '';
  position: absolute;
  left: -5px;
  right: -5px;
  height: 125px;
  z-index: 1;
  pointer-events: none;
}
.fullbleed-photo::before {
  top: -5px;
  background: linear-gradient(to bottom, var(--bg-primary) 0%, var(--bg-primary) 5%, transparent 100%);
}
.fullbleed-photo::after {
  bottom: -5px;
  background: linear-gradient(to top, var(--bg-primary) 0%, var(--bg-primary) 5%, transparent 100%);
}

.fullbleed-photo img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  transition: transform 12s linear;
}

.fullbleed-photo.in-view img {
  transform: scale(1.12);
}

/* --- 16. FINAL SECTION --- */
.final-section {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  text-align: center;
}

.final-section h2 {
  font-family: var(--font-romantic);
  font-size: clamp(2.5rem, 10vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
  z-index: 1;
  position: relative;
}

.final-section .final-subtitle {
  font-family: var(--font-romantic);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 20px;
  z-index: 1;
  position: relative;
}

.final-accent {
  display: inline-block;
  color: var(--accent-romantic);
}

/* Floating Hearts */
.hearts-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.heart {
  position: absolute;
  bottom: -10%;
  opacity: 0;
  animation: floatHeart linear infinite;
  font-size: 0;
}

.heart svg {
  fill: var(--accent-romantic);
  opacity: 0.25;
}

@keyframes floatHeart {
  0% { transform: translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
  10% { opacity: 0.3; }
  50% { opacity: 0.15; }
  100% { transform: translateY(-110vh) rotate(45deg) scale(1); opacity: 0; }
}

/* --- 17. MUSIC CONTROL --- */
#music-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#music-btn.visible {
  display: flex;
}

#music-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 24px var(--accent-glow);
}

#music-btn:active {
  transform: scale(0.94);
}

#music-btn svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#music-btn.playing {
  animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 4px 24px var(--accent-glow); }
}

/* --- 18. DIVIDER --- */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 60px auto;
  gap: 16px;
  padding: 0 24px;
}

.section-divider .divider-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, rgba(229, 9, 20, 0.4), transparent);
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 1.2s var(--ease-spring), opacity 1s ease;
}

.section-divider .divider-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0) rotate(-180deg);
  opacity: 0;
  transition: transform 1.4s var(--ease-spring) 0.2s, opacity 1s ease 0.2s;
  position: relative; /* for mini-hearts */
}

.section-divider .divider-icon svg {
  width: 24px;
  height: 24px;
  fill: rgba(229, 9, 20, 0.1);
  stroke: var(--accent);
}

.section-divider.in-view .divider-line {
  transform: scaleX(1);
  opacity: 1;
}

.section-divider.in-view .divider-icon {
  transform: scale(1) rotate(0deg);
  opacity: 1;
  animation: pulseDivider 3s ease-in-out infinite 1.4s;
}

@keyframes pulseDivider {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 0 rgba(229,9,20,0)); }
  50% { transform: translateY(-4px) scale(1.05); filter: drop-shadow(0 0 12px rgba(229,9,20,0.4)); }
}

/* Mini bursting hearts from dividers */
.mini-heart {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  opacity: 0;
  animation: burstHeart 1.5s ease-out forwards;
}

.mini-heart svg {
  width: 100%;
  height: 100%;
  fill: var(--accent);
}

@keyframes burstHeart {
  0% { transform: translate(0, 0) scale(0); opacity: 1; }
  50% { opacity: 0.8; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.5); opacity: 0; }
}

/* --- 19. BASE ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- 20. RESPONSIVE --- */
@media (min-width: 480px) {
  .carousel-item { flex: 0 0 50%; max-width: 280px; }
}

@media (min-width: 768px) {
  .profile-avatar { width: 150px; height: 150px; }
  .profiles-container { gap: 48px; }
  .profile-name { font-size: 1rem; }
  .text-section { padding: 120px 48px; }
  .photo-section { padding: 80px 48px; }
  .dual-photos {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 80px 48px;
  }
  .carousel-item { flex: 0 0 35%; max-width: 340px; }
  .carousel-item img { height: 360px; }
  .fullbleed-photo img { height: 75vh; }
}

@media (min-width: 1024px) {
  .text-section { padding: 160px 64px; }
  .photo-section { padding: 100px 64px; }
  .photo-frame { max-width: 700px; }
  .dual-photos { max-width: 1000px; padding: 100px 64px; }
  .carousel-item { flex: 0 0 28%; max-width: 380px; }
}
