/* ===== SARFRAZ REFUGEE SERVICE - SHARED STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #6c47ff;
  --primary-glow: rgba(108,71,255,0.4);
  --accent: #ff6b6b;
  --accent2: #ffd166;
  --teal: #06d6a0;
  --bg-dark: #050816;
  --bg-card: rgba(15,20,50,0.6);
  --border: rgba(255,255,255,0.12);
  --border-hover: rgba(108,71,255,0.5);
  --text: #f0f0ff;
  --text-muted: rgba(200,200,230,0.7);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 25px 60px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Vazirmatn', 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  direction: rtl;
}

/* BG */
.bg-scene {
  position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(ellipse at 20% 20%, #1a0940 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, #0a1540 0%, transparent 60%),
              #050816;
}
.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: -1; animation: orbFloat 20s ease-in-out infinite;
}
.bg-orb:nth-child(1){ width:500px;height:500px;top:-100px;right:-100px;background:radial-gradient(circle,rgba(108,71,255,0.15),transparent 70%); }
.bg-orb:nth-child(2){ width:400px;height:400px;bottom:-50px;left:-100px;background:radial-gradient(circle,rgba(6,214,160,0.1),transparent 70%);animation-delay:-10s; }
.bg-orb:nth-child(3){ width:300px;height:300px;top:40%;left:40%;background:radial-gradient(circle,rgba(255,107,107,0.08),transparent 70%);animation-delay:-5s; }

@keyframes orbFloat {
  0%,100%{transform:translate(0,0) scale(1)}
  33%{transform:translate(30px,-30px) scale(1.05)}
  66%{transform:translate(-20px,20px) scale(0.95)}
}

/* NAVBAR */
.navbar {
  position: sticky; top: 16px; z-index: 100;
  width: 95%; max-width: 1300px; margin: 16px auto;
  background: rgba(10,15,40,0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: all 0.3s;
}
.navbar:hover { border-color: var(--border-hover); box-shadow: 0 12px 40px rgba(108,71,255,0.15); }

.logo-wrap { display:flex; align-items:center; gap:12px; text-decoration:none; }
.logo-wrap img { width:48px; height:48px; border-radius:50%; border:2px solid var(--primary); object-fit:cover; }
.logo-name { font-size:0.85rem; font-weight:700; background:linear-gradient(135deg,#fff,#b8a0ff); -webkit-background-clip:text; background-clip:text; color:transparent; line-height:1.3; }

.nav-links { display:flex; gap:4px; list-style:none; flex-wrap:wrap; justify-content:center; }
.nav-links a {
  display:flex; align-items:center; gap:6px;
  color: var(--text-muted); text-decoration:none;
  padding:7px 14px; border-radius:30px; font-size:0.85rem;
  transition:all 0.25s; white-space:nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background:rgba(108,71,255,0.2); color:#fff;
  box-shadow:0 0 16px rgba(108,71,255,0.3);
}
.nav-links img { width:16px; height:16px; filter:brightness(0) invert(0.8); }

.nav-actions { display:flex; gap:8px; align-items:center; }
.lang-btn {
  background:rgba(255,255,255,0.08); border:1px solid var(--border);
  color:var(--text-muted); padding:6px 12px; border-radius:30px;
  font-size:0.78rem; cursor:pointer; transition:all 0.25s; font-family:inherit;
}
.lang-btn.active, .lang-btn:hover {
  background:var(--primary); color:#fff; border-color:var(--primary);
  box-shadow:0 0 16px var(--primary-glow);
}
.theme-btn {
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,0.08); border:1px solid var(--border);
  color:#ffd166; cursor:pointer; transition:all 0.3s;
  display:flex; align-items:center; justify-content:center; font-size:1rem;
}
.theme-btn:hover { transform:rotate(20deg) scale(1.1); background:rgba(255,209,102,0.15); }
.menu-btn { display:none; background:none; border:none; color:#fff; font-size:1.5rem; cursor:pointer; }

/* GLASS CARD */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.glass:hover { border-color: var(--border-hover); box-shadow: 0 20px 50px rgba(108,71,255,0.15); }

/* HERO */
.hero {
  max-width:1200px; margin:30px auto; padding:0 16px;
}
.hero-inner {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-inner::before {
  content:''; position:absolute; top:-60%; left:50%; transform:translateX(-50%);
  width:600px; height:300px;
  background:radial-gradient(ellipse,rgba(108,71,255,0.12),transparent 70%);
}
.hero-logo { width:120px; border-radius:50%; border:3px solid rgba(108,71,255,0.4); margin-bottom:1.5rem; transition:0.4s; }
.hero-logo:hover { transform:scale(1.08) rotateY(15deg); box-shadow:0 0 40px var(--primary-glow); }
.hero h1 {
  font-size:clamp(1.6rem,4vw,2.8rem); font-weight:900;
  background:linear-gradient(135deg,#fff 30%,#b8a0ff 70%,#ff6b6b);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin-bottom:1rem;
}
.hero-desc {
  max-width:680px; margin:0 auto 1.5rem;
  font-size:1rem; line-height:1.8; color:var(--text-muted);
  background:rgba(0,0,0,0.2); border:1px solid rgba(255,209,102,0.2);
  border-radius:20px; padding:1.2rem 1.8rem;
}
.hero-desc strong { color:var(--accent2); }

.badge {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(108,71,255,0.15); border:1px solid rgba(108,71,255,0.3);
  color:#b8a0ff; padding:6px 16px; border-radius:30px; font-size:0.8rem;
  margin-bottom:1rem;
}

/* GRID CARDS */
.cards-grid {
  max-width:1300px; margin:20px auto; padding:0 16px;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:1.5rem;
}
.card {
  background:var(--bg-card); backdrop-filter:blur(16px);
  border:1px solid var(--border); border-radius:28px;
  overflow:hidden; cursor:pointer;
  transition:all 0.4s cubic-bezier(0.23,1,0.32,1);
  box-shadow:0 15px 40px rgba(0,0,0,0.3);
  position:relative;
}
.card:hover {
  transform:translateY(-10px) scale(1.01);
  border-color:var(--border-hover);
  box-shadow:0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(108,71,255,0.2);
}
.card-img { width:100%; height:200px; object-fit:cover; transition:0.5s; }
.card:hover .card-img { transform:scale(1.05); }
.card-body { padding:1.4rem; }
.card-title { font-size:0.95rem; font-weight:700; color:#fff3e0; margin-bottom:0.5rem; line-height:1.5; }
.card-meta { font-size:0.72rem; color:var(--text-muted); margin-bottom:0.8rem; }
.card-btn {
  display:inline-block;
  background:linear-gradient(95deg,#6c47ff,#9b6bff);
  color:#fff; padding:7px 20px; border-radius:30px;
  text-decoration:none; font-size:0.82rem; font-weight:700;
  transition:all 0.25s; box-shadow:0 4px 16px rgba(108,71,255,0.4);
}
.card-btn:hover { transform:scale(1.05); box-shadow:0 6px 20px rgba(108,71,255,0.6); }
.breaking-badge {
  position:absolute; top:12px; right:12px;
  background:#e03a3a; width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  animation:pulse 1.3s infinite; font-size:0.9rem;
}
@keyframes pulse {
  0%{box-shadow:0 0 0 0 rgba(220,60,60,0.7)}
  100%{box-shadow:0 0 0 12px rgba(220,60,60,0)}
}

/* SECTION TITLE */
.section-title {
  text-align:center; margin:3rem 0 1.5rem;
  font-size:clamp(1.2rem,3vw,1.8rem); font-weight:800;
  background:linear-gradient(135deg,#fff,#b8a0ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* FOOTER */
.footer {
  margin-top:5rem;
  background:rgba(5,8,20,0.9);
  backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  padding:3rem 1.5rem 1.5rem;
}
.footer-inner { max-width:1200px; margin:0 auto; display:flex; flex-wrap:wrap; gap:2.5rem; justify-content:space-between; }
.footer-col h4 { font-size:1rem; font-weight:700; color:#b8a0ff; margin-bottom:1rem; }
.footer-col p, .footer-col a {
  font-size:0.85rem; color:var(--text-muted);
  display:flex; align-items:center; gap:8px;
  margin-bottom:0.6rem; text-decoration:none;
  transition:all 0.2s;
}
.footer-col a:hover { color:#fff; transform:translateX(-4px); }
.footer-col i { color:var(--primary); width:16px; }
.footer-bottom {
  text-align:center; margin-top:2rem;
  padding-top:1.5rem; border-top:1px solid var(--border);
  font-size:0.78rem; color:var(--text-muted);
}

/* PARTICLES */
.particles { position:fixed; inset:0; pointer-events:none; z-index:-1; }
.p { position:absolute; border-radius:50%; background:rgba(255,255,200,0.7); filter:blur(3px); animation:pFloat 14s ease-in-out infinite; opacity:0; }
@keyframes pFloat { 0%{transform:translateY(0) scale(0.8);opacity:0} 20%{opacity:0.5} 80%{opacity:0.2} 100%{transform:translateY(-180px) translateX(50px) scale(1.2);opacity:0} }

/* LIGHT MODE */
body.light-mode {
  background:linear-gradient(135deg,#f0f4ff,#e8eeff);
  color:#1a1a2e;
  --bg-card: rgba(255,255,255,0.8);
  --border: rgba(0,0,0,0.1);
  --text: #1a1a2e;
  --text-muted: rgba(40,40,80,0.65);
}
body.light-mode .bg-scene { background:radial-gradient(ellipse at 20% 20%,rgba(200,190,255,0.3),transparent 60%), radial-gradient(ellipse at 80% 80%,rgba(150,220,200,0.2),transparent 60%), #f0f4ff; }
body.light-mode .navbar { background:rgba(255,255,255,0.85); box-shadow:0 8px 32px rgba(0,0,0,0.1); }
body.light-mode .card-title { color:#1a1a2e; }
body.light-mode .hero h1 { background:linear-gradient(135deg,#1a1a2e 30%,#6c47ff 70%); -webkit-background-clip:text; background-clip:text; }
body.light-mode .footer { background:rgba(240,242,255,0.95); }

/* RESPONSIVE */
@media(max-width:768px) {
  .nav-links { display:none; flex-direction:column; width:100%; margin-top:1rem; }
  .nav-links.open { display:flex; }
  .menu-btn { display:block; }
  .navbar { flex-wrap:wrap; border-radius:24px; }
  .cards-grid { grid-template-columns:1fr; }
  .hero-inner { padding:2rem 1.2rem; }
}
