/* ============================================
   Flames Dating — Website Styles
   Theme: Midnight Coral
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #030509; /* Darker, more premium absolute background */
  --surface: #0a0e17; /* Deep midnight blue surface */
  --card: #121826;
  --elevated: #1a2333;
  --soft: #253147;
  --primary: #FF3366; /* Vibrant Tinder-like pink/red */
  --primary-light: #FF6B8B;
  --accent: #FF9933; /* Warm fire accent */
  --romance: #FF1A53;
  --text: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --emerald: #10B981;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

/* --- Typography --- */
h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; margin-bottom: 1rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.5rem; }
p { color: var(--text-secondary); margin-bottom: 1rem; }

/* --- Layout --- */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.page-content { flex: 1; }

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(3, 5, 9, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); }
.nav-brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 8px 20px;
  border-radius: var(--radius-pill); font-weight: 600; font-size: 0.85rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,90,95,0.4); color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); padding: 16px 24px; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* --- Hero --- */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(255, 51, 102, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero {
  padding: 160px 0 100px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 50%;
  background: radial-gradient(circle, rgba(255,153,51,0.15) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 10;
}
.hero-content {
  flex: 1;
  max-width: 550px;
  z-index: 2;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 51, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 51, 102, 0); }
}
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
}
.hero-logo { width: 100px; height: 100px; margin-bottom: 24px; filter: drop-shadow(0 0 30px rgba(255,90,95,0.3)); }
.hero h1 { margin-bottom: 16px; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero-buttons { justify-content: center; }
}

/* 3D Hero Graphics */
.hero-graphics {
  flex: 1;
  position: relative;
  height: 500px;
  width: 100%;
  perspective: 1200px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-graphics {
    height: 400px;
    margin-top: 40px;
  }
}

.hero-cards {
  position: relative;
  width: 280px;
  height: 100%;
  transform-style: preserve-3d;
  /* Initial static rotation which will be guided by JS parallax */
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.1s ease-out;
}

/* Base floating animation applied to the individual cards */
.hero-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
  background: rgba(16, 24, 40, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s ease;
  will-change: transform;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}
@media (max-width: 900px) {
  .hero-card { width: 220px; }
}

.hero-card img {
  width: 100%;
  display: block;
  border-radius: 32px;
}

/* Position and styles for each card with organic individual floating */
.card-center {
  transform: translate(-50%, -50%) translateZ(60px);
  z-index: 3;
  animation: float-center 6s ease-in-out infinite alternate;
}
.card-left {
  transform: translate(-95%, -40%) translateZ(-20px) rotateY(12deg) rotateZ(-6deg);
  z-index: 2;
  filter: brightness(0.6) blur(2px);
  animation: float-left 8s ease-in-out infinite alternate-reverse;
}
.card-right {
  transform: translate(-5%, -40%) translateZ(-20px) rotateY(-12deg) rotateZ(6deg);
  z-index: 2;
  filter: brightness(0.6) blur(2px);
  animation: float-right 7s ease-in-out infinite alternate;
}

@keyframes float-center {
  0% { transform: translate(-50%, -48%) translateZ(60px); }
  100% { transform: translate(-50%, -52%) translateZ(60px); }
}
@keyframes float-left {
  0% { transform: translate(-95%, -38%) translateZ(-20px) rotateY(12deg) rotateZ(-6deg); }
  100% { transform: translate(-95%, -42%) translateZ(-20px) rotateY(12deg) rotateZ(-6deg); }
}
@keyframes float-right {
  0% { transform: translate(-5%, -39%) translateZ(-20px) rotateY(-12deg) rotateZ(6deg); }
  100% { transform: translate(-5%, -41%) translateZ(-20px) rotateY(-12deg) rotateZ(6deg); }
}

/* Hover effects for 3D cards */
.hero-graphics:hover .card-center {
  box-shadow: 0 50px 100px rgba(0,0,0,0.8), 0 0 0 2px var(--primary), 0 0 30px rgba(255,51,102,0.4);
}
.hero-graphics:hover .card-left {
  filter: brightness(0.8) blur(1px);
}
.hero-graphics:hover .card-right {
  filter: brightness(0.8) blur(1px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1.05rem; border: none; cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { 
  background: linear-gradient(135deg, var(--primary), var(--accent)); 
  color: #fff; 
  box-shadow: 0 10px 30px rgba(255, 51, 102, 0.3);
}
.btn-primary:hover { 
  box-shadow: 0 15px 40px rgba(255, 51, 102, 0.5); 
  color: #fff; 
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
}
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--soft); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-small { padding: 10px 24px; font-size: 0.9rem; }

/* Play Store badge */
.play-badge { height: 52px; transition: transform 0.2s; }
.play-badge:hover { transform: translateY(-2px); }

/* --- Features Grid --- */
.features { padding: 80px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.feature-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px 24px; border: 1px solid rgba(255,255,255,0.04);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255,90,95,0.2); }
.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,90,95,0.15), rgba(240,197,91,0.1));
}
.feature-card h3 { color: var(--text); }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; } }

/* --- Screenshots --- */
.screenshots { padding: 80px 0; text-align: center; overflow: hidden; }
.screenshots-scroll {
  display: flex; gap: 20px; justify-content: center;
  padding: 40px 0; flex-wrap: wrap;
}
.screenshot-frame {
  width: 220px; flex-shrink: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  border: 2px solid var(--soft); box-shadow: var(--shadow);
  background: var(--card); transition: transform 0.3s;
}
.screenshot-frame:hover { transform: scale(1.03); }
.screenshot-frame img { width: 100%; display: block; }
.screenshot-placeholder {
  width: 100%; aspect-ratio: 9/19.5;
  background: linear-gradient(180deg, var(--surface), var(--card));
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 16px;
}

/* --- Stats --- */
.stats { padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } }

/* --- CTA Banner --- */
.cta-banner {
  margin: 40px 0 80px; padding: 48px;
  background: linear-gradient(135deg, var(--primary), #FF8A8F, var(--accent));
  border-radius: var(--radius-xl); text-align: center;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.85); }
.cta-banner .btn { background: #fff; color: var(--primary); }
.cta-banner .btn:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.2); }

/* --- Footer --- */
.footer {
  background: var(--surface); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 48px 0 32px;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.footer-bottom .social-links { display: flex; gap: 16px; }
.footer-bottom .social-links a { color: var(--text-muted); font-size: 1.1rem; }

@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } }

/* --- Legal Pages --- */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 40px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 { font-size: 1.3rem; color: var(--text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.legal-section p, .legal-section li { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }
.legal-section ul { padding-left: 20px; margin-bottom: 16px; }
.legal-section li { margin-bottom: 6px; }

/* --- Support Page --- */
.support-page { padding: 120px 0 80px; }
.support-hero { text-align: center; margin-bottom: 60px; }
.support-hero h1 { margin-bottom: 12px; }
.contact-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 32px; border: 1px solid rgba(255,255,255,0.04);
  margin-bottom: 24px; display: flex; align-items: flex-start; gap: 20px;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255,90,95,0.15), rgba(240,197,91,0.1));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 600; }

.faq-section { margin-top: 60px; }
.faq-item { background: var(--card); border-radius: var(--radius-md); padding: 24px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.04); }
.faq-item h3 { color: var(--text); font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--text-secondary); font-size: 0.9rem; margin: 0; }

/* --- Delete Account Page --- */
.delete-page { padding: 120px 0 80px; }
.delete-hero { text-align: center; margin-bottom: 48px; }
.steps-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 40px; border: 1px solid rgba(255,255,255,0.04);
  max-width: 600px; margin: 0 auto 32px;
}
.step {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px;
}
.step:last-child { margin-bottom: 0; }
.step-number {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h3 { margin-bottom: 4px; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.alt-method {
  text-align: center; padding: 24px;
  background: var(--surface); border-radius: var(--radius-md);
  max-width: 600px; margin: 0 auto;
}
.alt-method p { margin: 0; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 16px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(255,90,95,0.1); color: var(--primary);
  border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* --- Divider --- */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  margin: 0;
}

/* --- Animations --- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: float 3s ease-in-out infinite; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--soft); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--elevated); }
