/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Playfair+Display:wght@400;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --gold: #7BA3D4;
  --gold-light: #A8C8F0;
  --gold-dark: #5B8ABF;
  --rose: #A67DB8;
  --rose-light: #C9A8D8;
  --rose-dark: #8B5FA0;
  --cyan: #5CC6D0;
  --purple: #A67DB8;
  --bg-dark: #0B0E1A;
  --bg-section: #0F1225;
  --bg-card: #151830;
  --bg-card-hover: #1C2040;
  --text-primary: #FFFFFF;
  --text-secondary: #B8C0D8;
  --text-muted: #6B7394;
  --gradient-gold: linear-gradient(135deg, #5CC6D0, #7BA3D4, #A67DB8);
  --gradient-rose: linear-gradient(135deg, #A67DB8, #C9A8D8);
  --gradient-hero: linear-gradient(135deg, rgba(11,14,26,0.92), rgba(15,18,37,0.88));
  --shadow-gold: 0 4px 30px rgba(92,198,208,0.2);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Animated Background Particles ===== */
.particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 8s infinite;
}

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

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

.navbar.scrolled {
  background: rgba(11,14,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: var(--transition);
}

.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gradient-gold) !important;
  color: var(--bg-dark) !important;
  padding: 10px 28px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  -webkit-text-fill-color: var(--bg-dark) !important;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.nav-cta::after { display: none !important; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 28px; height: 2px;
  background: var(--gold);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: 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.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 60px;
  padding-top: 100px;
}

.hero-text { flex: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(92,198,208,0.12);
  border: 1px solid rgba(92,198,208,0.25);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero h1 {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-gold); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Tajawal', sans-serif;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-image {
  flex: 0.8;
  animation: fadeInLeft 1s ease 0.5s both;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

@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); }
}

/* ===== Section Common ===== */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.section-header .label {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header h2 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(92,198,208,0.2);
  box-shadow: var(--shadow-card);
}

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

.feature-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(92,198,208,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(92,198,208,0.2);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

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

/* ===== How It Works ===== */
.steps {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 36px;
  left: -20px;
  width: 40px;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.3;
}

.step:last-child::after { display: none; }

.step-number {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--bg-dark);
  font-size: 1.6rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: var(--shadow-gold);
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ===== App Download Section ===== */
.app-section {
  background: var(--bg-section);
}

.app-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.app-text { flex: 1; }

.app-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.app-text h2 .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
  max-width: 500px;
}

.app-features {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.app-feature-item .check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(92,198,208,0.15);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.download-buttons {
  display: flex;
  gap: 16px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.store-btn:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.store-btn .store-icon { font-size: 1.8rem; }
.store-btn .store-info { text-align: right; }
.store-btn .store-label { font-size: 0.72rem; color: var(--text-muted); }
.store-btn .store-name { font-size: 1rem; font-weight: 700; }

.app-image {
  flex: 0.7;
  display: flex;
  justify-content: center;
}

.app-image img {
  max-height: 520px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
  animation: floatApp 4s ease-in-out infinite;
}

@keyframes floatApp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ===== Clinics / Partners ===== */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.clinic-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.clinic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(92,198,208,0.2);
  box-shadow: var(--shadow-card);
}

.clinic-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(92,198,208,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 2rem;
}

.clinic-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.clinic-card .city { font-size: 0.85rem; color: var(--gold); margin-bottom: 10px; }

.clinic-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(92,198,208,0.15);
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.testimonial-card blockquote {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-dark);
  font-size: 1rem;
}

.testimonial-name { font-weight: 600; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA Section ===== */
.cta-section {
  text-align: center;
  background: var(--bg-section);
}

.cta-box {
  background: linear-gradient(135deg, rgba(92,198,208,0.08), rgba(166,125,184,0.06));
  border: 1px solid rgba(92,198,208,0.15);
  border-radius: var(--radius-lg);
  padding: 72px 48px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(92,198,208,0.05) 0%, transparent 50%);
  animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow { to { transform: rotate(360deg); } }

.cta-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
  position: relative;
}

/* ===== Footer ===== */
.footer {
  padding: 72px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--cyan);
  color: var(--bg-dark);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold-light);
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col ul a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col ul a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Privacy Policy Page ===== */
.policy-hero {
  padding: 160px 0 60px;
  text-align: center;
  background: var(--bg-section);
}

.policy-hero h1 {
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.policy-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.policy-content {
  padding: 60px 0 100px;
}

.policy-content .container { max-width: 860px; }

.policy-section {
  margin-bottom: 40px;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--gold-light);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(92,198,208,0.15);
}

.policy-section p,
.policy-section li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 12px;
}

.policy-section ul {
  padding-right: 24px;
  list-style: disc;
}

.policy-section ul li { margin-bottom: 8px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; text-align: center; padding-top: 120px; }
  .hero p { margin: 0 auto 36px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; max-width: 400px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .clinics-grid { grid-template-columns: repeat(2, 1fr); }
  .app-content { flex-direction: column; text-align: center; }
  .app-text p { margin: 0 auto 36px; }
  .app-features { align-items: center; }
  .download-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: rgba(13,13,13,0.98);
    backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    gap: 20px;
    z-index: 999;
    border-left: 1px solid rgba(92,198,208,0.1);
  }
  .hero h1 { font-size: 2.2rem; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step::after { display: none; }
  .clinics-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .download-buttons { flex-direction: column; align-items: center; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
