/* ========================================
   PREMIUM PINK THEME · PROFESSIONAL DESIGN
   ======================================== */

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

:root {
  --primary-pink: #ff6b9d;
  --soft-pink: #ffb3c6;
  --light-pink: #ffe5f0;
  --deep-pink: #e84393;
  --dark-pink: #c72a68;
  --warm-pink: #ff85a2;
  
  --quiet-purple: #9b7b8c;
  --quiet-light: #e8d5e0;
  --cheerful-orange: #ffb86b;
  --cheerful-light: #fff0d4;
  
  --text-primary: #2d1b24;
  --text-secondary: #6b4c5a;
  --text-light: #9e7a8a;
  
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(232, 67, 147, 0.15);
  
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Dancing Script', cursive;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, #fdf2f6 0%, #ffe0eb 50%, #ffd4e0 100%);
  min-height: 100vh;
  color: var(--text-primary);
  overflow: hidden;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ffe5f1, #ffd0dd);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.preloader-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.logo-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--deep-pink);
  text-shadow: 0 4px 15px rgba(232, 67, 147, 0.2);
}

.logo-heart {
  color: var(--primary-pink);
  font-size: 2rem;
  animation: heartbeat 1.2s infinite;
}

.preloader-text {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--dark-pink);
  margin-bottom: 25px;
  letter-spacing: 2px;
}

.preloader-bar {
  width: 200px;
  height: 3px;
  background: rgba(232, 67, 147, 0.2);
  border-radius: 10px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.preloader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-pink), var(--deep-pink));
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--primary-pink);
}

.preloader-quote {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.8;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
}

.music-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
  border: 2px solid white;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(232, 67, 147, 0.4);
  transition: var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(232, 67, 147, 0.5);
}

.music-controls {
  position: absolute;
  bottom: 60px;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  padding: 15px 20px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.music-controls.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.music-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-pink);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-btn:hover {
  background: var(--deep-pink);
  transform: scale(1.05);
}

.music-info {
  display: flex;
  flex-direction: column;
}

.music-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.music-artist {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.volume-control input {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: rgba(232, 67, 147, 0.2);
  border-radius: 10px;
}

.volume-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--primary-pink);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

/* ===== LOVE OVERLAY ===== */
.love-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.5s;
}

.love-overlay.show {
  opacity: 1;
}

.floating-hearts i {
  position: absolute;
  color: var(--primary-pink);
  font-size: 2rem;
  animation: floatUp 2.5s ease-out forwards;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(255, 107, 157, 0.5));
}

@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.3) rotate(0deg); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-200px) scale(1.5) rotate(20deg); }
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 1s ease;
  position: relative;
}

.main-wrapper.visible {
  opacity: 1;
}

/* Corner Decorations */
.corner-decoration {
  position: fixed;
  width: 150px;
  height: 150px;
  pointer-events: none;
  z-index: 1;
}

.corner-decoration::before,
.corner-decoration::after {
  content: '';
  position: absolute;
  background: linear-gradient(135deg, var(--primary-pink) 0%, transparent 70%);
  opacity: 0.08;
}

.top-left { top: 0; left: 0; }
.top-left::before { width: 2px; height: 100px; left: 40px; top: 20px; }
.top-left::after { width: 100px; height: 2px; left: 20px; top: 40px; }

.top-right { top: 0; right: 0; }
.top-right::before { width: 2px; height: 100px; right: 40px; top: 20px; }
.top-right::after { width: 100px; height: 2px; right: 20px; top: 40px; }

.bottom-left { bottom: 0; left: 0; }
.bottom-left::before { width: 2px; height: 100px; left: 40px; bottom: 20px; }
.bottom-left::after { width: 100px; height: 2px; left: 20px; bottom: 40px; }

.bottom-right { bottom: 0; right: 0; }
.bottom-right::before { width: 2px; height: 100px; right: 40px; bottom: 20px; }
.bottom-right::after { width: 100px; height: 2px; right: 20px; bottom: 40px; }

/* ===== SPLIT CONTAINER ===== */
.split-container {
  display: flex;
  width: 100%;
  height: 100vh;
  position: relative;
}

.split-panel {
  flex: 1;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.panel-left:hover {
  flex: 1.15;
}

.panel-right:hover {
  flex: 1.15;
}

.panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.05) 100%);
  transition: var(--transition-smooth);
}

.panel-left .panel-overlay {
  background: linear-gradient(135deg, rgba(155, 123, 140, 0.08) 0%, rgba(232, 213, 224, 0.15) 100%);
}

.panel-right .panel-overlay {
  background: linear-gradient(135deg, rgba(255, 184, 107, 0.08) 0%, rgba(255, 240, 212, 0.15) 100%);
}

.panel-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.panel-left .panel-glow {
  background: var(--quiet-purple);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.panel-right .panel-glow {
  background: var(--cheerful-orange);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.split-panel:hover .panel-glow {
  opacity: 0.15;
}

.panel-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 2rem;
  transform: translateY(0);
  transition: var(--transition-smooth);
}

.split-panel:hover .panel-content {
  transform: translateY(-10px);
}

/* Photo Container */
.photo-container {
  position: relative;
  margin-bottom: 2rem;
}

.photo-ring {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  position: relative;
}

.photo-ring::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink), var(--warm-pink));
  opacity: 0.6;
  animation: rotate 8s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(232, 67, 147, 0.2);
  transition: var(--transition-smooth);
}

.split-panel:hover .photo-frame {
  box-shadow: 0 15px 40px rgba(232, 67, 147, 0.3);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.split-panel:hover .photo-frame img {
  transform: scale(1.08);
}

.photo-badge {
  position: absolute;
  bottom: 0;
  right: 20%;
  width: 45px;
  height: 45px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(232, 67, 147, 0.2);
  z-index: 3;
  border: 2px solid var(--light-pink);
  color: var(--deep-pink);
  font-size: 1.2rem;
  transition: var(--transition-bounce);
}

.split-panel:hover .photo-badge {
  transform: scale(1.1) rotate(5deg);
}

/* Info Container */
.info-container {
  margin-top: 0.5rem;
}

.panel-name {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.15);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.name-first {
  font-weight: 300;
}

.name-last {
  font-weight: 700;
}

.panel-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.badge-line {
  width: 40px;
  height: 1.5px;
  background: rgba(255,255,255,0.6);
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-quote {
  font-family: var(--font-serif);
  font-style: italic;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-hint {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  text-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.split-panel:hover .panel-hint {
  opacity: 1;
  transform: translateY(0);
}

.panel-hint i {
  animation: slideRight 1.5s infinite;
}

@keyframes slideRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* ===== CENTER CONNECTOR ===== */
.center-connector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.connector-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-pink), transparent);
}

.connector-heart {
  width: 65px;
  height: 65px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 25px rgba(232, 67, 147, 0.3);
  border: 3px solid var(--light-pink);
  margin: 5px 0;
  position: relative;
}

.connector-heart i {
  color: var(--deep-pink);
  font-size: 2rem;
  animation: heartbeat 1.5s infinite;
}

.heart-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary-pink);
  opacity: 0.2;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

.connector-text {
  margin-top: 8px;
}

.eternity-symbol {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: white;
  text-shadow: 0 2px 10px rgba(232, 67, 147, 0.3);
  font-weight: 300;
}

/* ===== STORY MODAL ===== */
.story-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.story-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(45, 27, 36, 0.5);
  backdrop-filter: blur(12px);
}

.modal-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(255, 250, 252, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 2.5rem 2rem;
  box-shadow: 0 30px 60px rgba(232, 67, 147, 0.25);
  border: 1px solid rgba(255, 179, 198, 0.5);
  opacity: 0;
  transition: var(--transition-smooth);
}

.story-modal.active .modal-container {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--light-pink);
  border: none;
  color: var(--deep-pink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1px solid var(--soft-pink);
}

.modal-close-btn:hover {
  background: var(--deep-pink);
  color: white;
  transform: rotate(90deg);
}

/* Story Panels */
.story-panel {
  display: none;
}

.story-panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

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

.story-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.story-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(232, 67, 147, 0.2);
}

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

.story-header h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--dark-pink);
  margin-bottom: 0.3rem;
}

.story-subtitle {
  display: block;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 5px;
  letter-spacing: 2px;
}

.together-header .dual-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-bottom: 1.2rem;
}

.dual-avatar img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.dual-heart {
  width: 35px;
  height: 35px;
  background: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  margin: 0 5px;
}

.story-divider {
  text-align: center;
  margin: 1.2rem 0;
  color: var(--primary-pink);
  font-size: 1rem;
  opacity: 0.5;
}

.story-content {
  margin: 1.5rem 0;
}

.story-paragraph {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.dropcap {
  float: left;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--deep-pink);
  line-height: 0.8;
  margin-right: 8px;
}

.story-quote {
  background: linear-gradient(135deg, var(--light-pink) 0%, rgba(255, 229, 240, 0.5) 100%);
  padding: 1.5rem;
  border-radius: 30px;
  text-align: center;
  font-style: italic;
  color: var(--text-primary);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-pink);
}

.story-quote i {
  color: var(--primary-pink);
  opacity: 0.5;
  margin: 0 5px;
}

.story-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.story-love-btn {
  background: linear-gradient(135deg, var(--primary-pink), var(--deep-pink));
  border: none;
  color: white;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(232, 67, 147, 0.3);
  transition: var(--transition-bounce);
  border: 1px solid rgba(255,255,255,0.3);
}

.story-love-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 30px rgba(232, 67, 147, 0.4);
}

.story-love-btn:active {
  transform: scale(0.95);
}

.story-love-btn.together-love {
  background: linear-gradient(135deg, #d64161, var(--deep-pink));
  padding: 1.1rem 2.5rem;
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--dark-pink), var(--deep-pink));
  color: white;
  padding: 1rem 2rem;
  border-radius: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 40px rgba(232, 67, 147, 0.4);
  z-index: 300;
  opacity: 0;
  transition: var(--transition-smooth);
  border: 2px solid rgba(255,255,255,0.5);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.toast-content {
  display: flex;
  flex-direction: column;
}

.toast-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.toast-message {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ===== FOOTER ===== */
.main-footer {
  position: fixed;
  bottom: 20px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.footer-content {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 0.6rem 2rem;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 1px;
}

.footer-separator {
  color: var(--primary-pink);
  font-size: 0.6rem;
}

/* ===== ANIMATIONS ===== */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.15); }
  50% { transform: scale(1.05); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .split-container {
    flex-direction: column;
  }
  
  .split-panel {
    height: 50vh;
  }
  
  .photo-ring {
    width: 160px;
    height: 160px;
  }
  
  .panel-name {
    font-size: 2.5rem;
  }
  
  .center-connector {
    top: 50%;
  }
  
  .connector-heart {
    width: 50px;
    height: 50px;
  }
  
  .connector-heart i {
    font-size: 1.5rem;
  }
  
  .connector-line {
    width: 40px;
  }
  
  .modal-container {
    padding: 2rem 1.5rem;
    max-height: 75vh;
  }
  
  .music-player {
    bottom: 15px;
    right: 15px;
  }
  
  .main-footer {
    bottom: 10px;
  }
}

@media (max-width: 480px) {
  .photo-ring {
    width: 140px;
    height: 140px;
  }
  
  .panel-name {
    font-size: 2rem;
  }
  
  .panel-quote {
    font-size: 0.9rem;
  }
  
  .connector-heart {
    width: 40px;
    height: 40px;
  }
  
  .connector-heart i {
    font-size: 1.2rem;
  }
  
  .music-controls {
    padding: 12px 15px;
    flex-wrap: wrap;
    width: 200px;
  }
  
  .volume-control input {
    width: 60px;
  }
}