/* SwoonSphere — Warm Romance Theme */

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

:root {
  --coral: #FF6B6B;
  --rose: #E8A598;
  --peach: #FFF0EB;
  --lavender: #C9B8FF;
  --lavender-light: #EDE8FF;
  --cream: #FFFAF8;
  --blush: #FFE4E1;
  --gold: #F4C2A1;
  --text-dark: #3D2C2C;
  --text-mid: #7A5C5C;
  --text-light: #B08080;
  --border: #F0DDD8;
  --white: #FFFFFF;
  --grad-main: linear-gradient(135deg, #FF6B6B 0%, #E8A598 50%, #C9B8FF 100%);
  --grad-warm: linear-gradient(135deg, #FF8E8E 0%, #FFB347 100%);
  --grad-soft: linear-gradient(135deg, #FFF0EB 0%, #EDE8FF 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

::selection { background: var(--coral); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--peach); }
::-webkit-scrollbar-thumb { background: var(--rose); border-radius: 99px; }

/* Typography */
.font-display { font-family: 'Playfair Display', serif; }

/* Navbar */
nav.scrolled {
  background: rgba(255, 230, 242, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(232, 165, 152, 0.15);
}

/* Orbs */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Warm Card Hover */
.card-warm {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}
.card-warm:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(255, 107, 107, 0.15);
  border-color: var(--rose);
}

/* Btn Primary */
.btn-primary {
  background: linear-gradient(135deg, #ff8ea8 0%, #ffb385 100%);
  color: white;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 18px 45px rgba(255, 142, 168, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(255, 142, 168, 0.35);
}

/* Btn Secondary */
.btn-secondary {
  background: white;
  color: #4b4969;
  border-radius: 9999px;
  padding: 14px 32px;
  font-weight: 600;
  font-size: 1.125rem;
  border: 1px solid #f0dfe7;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  border-color: #ff8ea8;
}

/* Gradient Text */
.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(255, 107, 107, 0.2);
}

/* Floating hearts animation */
@keyframes floatHeart {
  0%, 100% { transform: translateY(0) rotate(-10deg); opacity: 0.6; }
  50% { transform: translateY(-18px) rotate(10deg); opacity: 1; }
}
.heart-float { animation: floatHeart 4s ease-in-out infinite; }

/* Fade in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Profile card overlay */
.profile-overlay {
  background: linear-gradient(to top, rgba(61, 44, 44, 0.85) 0%, rgba(61, 44, 44, 0.2) 50%, transparent 100%);
}

/* Input styles */
.input-warm {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--peach);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-warm:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
  background: white;
}
.input-warm::placeholder { color: var(--text-light); }

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f7 0%, #fff3f7 45%, #f4fbff 100%);
  border-top: 1px solid rgba(255, 182, 170, 0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 45%, rgba(255, 107, 107, 0.08) 45% 100%),
    radial-gradient(circle at top left, rgba(255, 107, 107, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(201, 184, 255, 0.12), transparent 38%);
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 100px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12) 0%, rgba(255, 107, 107, 0.04) 50%, rgba(201, 184, 255, 0.12) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 35%);
  opacity: 0.9;
  pointer-events: none;
}

.site-footer .footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #786e90;
  transition: color 0.25s ease, transform 0.25s ease;
}

.site-footer .footer-link:hover {
  color: var(--coral);
  transform: translateX(2px);
}

.site-footer .footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--coral), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-footer .footer-link:hover::after {
  transform: scaleX(1);
}

/* Diagonal section divider */
.wave-divider {
  position: relative;
  overflow: hidden;
}
.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Perspective */
.perspective-1000 { perspective: 1000px; }

/* Subpage bg */
body:not(.home)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201, 184, 255, 0.15) 0%, transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(255, 107, 107, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Animate float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

@keyframes orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -25px) scale(1.08); }
  66% { transform: translate(-15px, 15px) scale(0.92); }
}
.animate-orb { animation: orb 12s ease-in-out infinite; }

@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
.animate-ping { animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse-slow { animation: pulse 3s ease-in-out infinite; }

/* Stat counter */
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust dark section override */
.trust-dark {
  background: linear-gradient(135deg, #3D2C2C 0%, #5C3D3D 100%);
}

body.home,
body.page-shell {
  background: linear-gradient(135deg, #fffaf7 0%, #fff4fb 45%, #f2fbff 100%);
}

body.page-shell .bg-white {
  background-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(14px);
}

body.page-shell .bg-slate-50 {
  background-color: rgba(255, 247, 250, 0.9) !important;
}

body.page-shell .bg-slate-100\/50 {
  background-color: rgba(255, 241, 246, 0.9) !important;
}

body.page-shell .bg-slate-900 {
  background: linear-gradient(135deg, #fff7fb 0%, #eef9ff 100%) !important;
  color: #4b4969 !important;
}

body.page-shell .border-slate-200,
body.page-shell .border-slate-300,
body.page-shell .border-slate-100 {
  border-color: rgba(255, 182, 170, 0.28) !important;
}

body.page-shell .text-slate-900 {
  color: #4b4969 !important;
}

body.page-shell .text-slate-700 {
  color: #665f7e !important;
}

body.page-shell .text-slate-600,
body.page-shell .text-slate-500,
body.page-shell .text-slate-400 {
  color: #786e90 !important;
}

body.page-shell .text-brand {
  color: #ff8ea8 !important;
}

.page-hero {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,245,250,0.95) 60%, rgba(237,248,255,0.95) 100%);
  border: 1px solid rgba(255, 182, 170, 0.24);
  box-shadow: 0 22px 60px rgba(255, 180, 156, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.page-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 182, 170, 0.24);
  box-shadow: 0 16px 46px rgba(255, 180, 156, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.soft-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 182, 170, 0.24);
  box-shadow: 0 16px 44px rgba(255, 180, 156, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 54px rgba(255, 180, 156, 0.24);
}

.glow-pill {
  background: linear-gradient(90deg, rgba(255, 240, 238, 0.95), rgba(231, 243, 255, 0.95));
  border: 1px solid rgba(255, 142, 168, 0.25);
  color: #6d587c;
}

.text-\[\#333446\] { color: #4b4969 !important; }
.text-\[\#6B6C80\] { color: #786e90 !important; }

/* Rotating Pink Lumination for Cards */
@keyframes rotating-glow {
  0% { box-shadow: 6px 6px 20px rgba(255, 142, 168, 0.4), -6px -6px 20px rgba(255, 179, 240, 0.3); }
  25% { box-shadow: -6px 6px 20px rgba(255, 142, 168, 0.4), 6px -6px 20px rgba(255, 179, 240, 0.3); }
  50% { box-shadow: -6px -6px 20px rgba(255, 142, 168, 0.4), 6px 6px 20px rgba(255, 179, 240, 0.3); }
  75% { box-shadow: 6px -6px 20px rgba(255, 142, 168, 0.4), -6px 6px 20px rgba(255, 179, 240, 0.3); }
  100% { box-shadow: 6px 6px 20px rgba(255, 142, 168, 0.4), -6px -6px 20px rgba(255, 179, 240, 0.3); }
}

@keyframes rotating-glow-hover {
  0% { box-shadow: 10px 10px 30px rgba(255, 142, 168, 0.6), -10px -10px 30px rgba(255, 179, 240, 0.5); }
  25% { box-shadow: -10px 10px 30px rgba(255, 142, 168, 0.6), 10px -10px 30px rgba(255, 179, 240, 0.5); }
  50% { box-shadow: -10px -10px 30px rgba(255, 142, 168, 0.6), 10px 10px 30px rgba(255, 179, 240, 0.5); }
  75% { box-shadow: 10px -10px 30px rgba(255, 142, 168, 0.6), -10px 10px 30px rgba(255, 179, 240, 0.5); }
  100% { box-shadow: 10px 10px 30px rgba(255, 142, 168, 0.6), -10px -10px 30px rgba(255, 179, 240, 0.5); }
}

.soft-card, .glass-card, .card-warm, .card-glow {
  animation: rotating-glow 6s linear infinite !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease !important;
}

.soft-card:hover, .glass-card:hover, .card-warm:hover, .card-glow:hover {
  animation: rotating-glow-hover 3s linear infinite !important;
  transform: translateY(-8px) scale(1.02) !important;
  border-color: rgba(255, 142, 168, 0.6) !important;
}
