/* ============================================================
   Roshangoo Scroll Template — Fully Local (No External CDN)
   ============================================================ */

/* Local Vazirmatn Font */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS Variables & Theme System
   ============================================================ */
:root {
  --primary: #f59e0b;
  --primary-rgb: 245, 158, 11;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --secondary: #0f172a;
  --accent: #f97316;
  --success: #10b981;
  --danger: #ef4444;

  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-soft: #f5f5f4;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #78716c;
  --text-inverse: #fafaf9;
  --border: rgba(28, 25, 23, 0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
  --glow: 0 0 40px rgba(var(--primary-rgb), 0.25);

  --radius: 20px;
  --radius-sm: 12px;
  --radius-full: 9999px;
  --header-h: 72px;
  --container: 1200px;
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  --bg: #0c0a09;
  --bg-elevated: #1c1917;
  --bg-soft: #1c1917;
  --bg-card: #1c1917;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --text-inverse: #0c0a09;
  --border: rgba(250, 250, 249, 0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
  --glow: 0 0 50px rgba(var(--primary-rgb), 0.35);
}

[data-palette="amber"] {
  --primary: #f59e0b;
  --primary-rgb: 245, 158, 11;
  --primary-dark: #d97706;
  --primary-light: #fbbf24;
  --accent: #f97316;
}
[data-palette="emerald"] {
  --primary: #10b981;
  --primary-rgb: 16, 185, 129;
  --primary-dark: #059669;
  --primary-light: #34d399;
  --accent: #14b8a6;
}
[data-palette="violet"] {
  --primary: #8b5cf6;
  --primary-rgb: 139, 92, 246;
  --primary-dark: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #d946ef;
}
[data-palette="rose"] {
  --primary: #f43f5e;
  --primary-rgb: 244, 63, 94;
  --primary-dark: #e11d48;
  --primary-light: #fb7185;
  --accent: #f97316;
}
[data-palette="sky"] {
  --primary: #0ea5e9;
  --primary-rgb: 14, 165, 233;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
}
[data-palette="sunset"] {
  --primary: #f97316;
  --primary-rgb: 249, 115, 22;
  --primary-dark: #ea580c;
  --primary-light: #fb923c;
  --accent: #eab308;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============================================================
   Utilities
   ============================================================ */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section {
  padding: 6rem 0;
  position: relative;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}
.highlight {
  color: var(--primary);
  position: relative;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(var(--primary-rgb), 0.45);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}
.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================================
   Scroll Reveal System
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Floating Controls (Theme + Palette)
   ============================================================ */
.theme-controls {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.control-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  color: var(--text);
}
.control-btn:hover {
  transform: scale(1.1);
  border-color: var(--primary);
  box-shadow: var(--glow);
}
.palette-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--bg-elevated);
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}
.palette-panel.open { display: flex; }
.palette-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}
.palette-swatch:hover,
.palette-swatch.active {
  border-color: var(--text);
  transform: scale(1.15);
}
.palette-swatch[data-p="amber"]   { background: linear-gradient(135deg, #f59e0b, #d97706); }
.palette-swatch[data-p="emerald"] { background: linear-gradient(135deg, #10b981, #059669); }
.palette-swatch[data-p="violet"]  { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.palette-swatch[data-p="rose"]    { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.palette-swatch[data-p="sky"]     { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.palette-swatch[data-p="sunset"]  { background: linear-gradient(135deg, #f97316, #ea580c); }

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

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
}
.header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  font-size: 1.4rem;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.18) 0%, transparent 70%);
  top: -10%;
  right: -10%;
  animation: float 12s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
  bottom: 5%;
  left: -5%;
  animation: float 15s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.stat-item strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.hero-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.hero-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.floating-badge {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: floatBadge 6s ease-in-out infinite;
}
.floating-badge.b1 { top: 8%; left: -8%; animation-delay: 0s; }
.floating-badge.b2 { bottom: 12%; right: -10%; animation-delay: 1.5s; }
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.3);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.06));
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease;
}
.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}
.service-card .link:hover { gap: 0.6rem; }

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.3;
}
.about-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.about-content .quote {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  margin: 1.5rem 0;
  padding-right: 1rem;
  border-right: 3px solid var(--primary);
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.05));
  display: grid;
  place-items: center;
  font-size: 5rem;
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-badge strong {
  display: block;
  font-size: 1.75rem;
  color: var(--primary);
  font-weight: 800;
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-section {
  background: var(--bg-soft);
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.contact-card > p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.form-group input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  direction: ltr;
  text-align: right;
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}
.form-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.contact-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ============================================================
   Posts
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
}
.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.post-thumb {
  height: 180px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0.08));
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}
.post-body {
  padding: 1.5rem;
}
.post-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}
.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-body .read-more {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

/* ============================================================
   Social
   ============================================================ */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.social-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.4s ease;
}
.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--primary-rgb), 0.3);
}
.social-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}
.social-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.social-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.social-card .status {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-block;
}
.social-card .status.live {
  color: var(--success);
  background: rgba(16, 185, 129, 0.12);
}

/* ============================================================
   Team
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all 0.4s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--primary-rgb), 0.08));
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
}
.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.team-card .code {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.team-featured {
  grid-column: 1 / -1;
  max-width: 320px;
  margin: 0 auto 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08), transparent);
  border-color: rgba(var(--primary-rgb), 0.25);
}
.team-featured .team-avatar {
  width: 120px;
  height: 120px;
  font-size: 3rem;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-box {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: calc(var(--radius) + 8px);
  padding: 4rem 2.5rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  top: -80px;
  right: -60px;
}
.cta-box::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -40px;
  left: -30px;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  position: relative;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 1.75rem;
  font-size: 1.1rem;
  position: relative;
}
.cta-box .btn {
  background: #fff;
  color: var(--primary-dark);
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-box .btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  max-width: 280px;
}
.footer h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer ul li {
  margin-bottom: 0.5rem;
}
.footer ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Progress Bar
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .floating-badge { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-badge { left: 50%; transform: translateX(-50%); bottom: -1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg-elevated);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }
  .nav.open a {
    padding: 0.6rem 0;
    font-size: 1.05rem;
  }
  .mobile-toggle { display: grid; }
}
@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .theme-controls { bottom: 1rem; left: 1rem; }
}

/* ============================================================
   Roshangoo Pro — Premium Enhancements v2
   ============================================================ */

/* Glass morphism cards */
.service-card,
.post-card,
.team-card,
.social-card,
.contact-card,
.hero-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid color-mix(in srgb, var(--primary) 15%, var(--border));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
}

.service-card:hover,
.post-card:hover,
.team-card:hover,
.social-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(var(--primary-rgb), 0.25),
              0 0 0 1px rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.35);
}

/* Gradient text highlight */
.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent, var(--primary-light)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Animated gradient border on featured team */
.team-featured {
  position: relative;
  overflow: hidden;
}
.team-featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent, #f97316), var(--primary));
  background-size: 200% 200%;
  border-radius: inherit;
  z-index: -1;
  animation: borderGlow 4s ease infinite;
  opacity: 0.7;
}
@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Scroll progress thicker + glow */
.scroll-progress {
  height: 3px !important;
  background: linear-gradient(90deg, var(--primary), var(--accent, var(--primary-light))) !important;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

/* Hero stronger glow */
.hero-bg::before {
  animation: floatOrb 12s ease-in-out infinite;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.08); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

/* Floating badges pulse */
.floating-badge {
  animation: floatBadge 3.5s ease-in-out infinite;
}
.floating-badge.b2 {
  animation-delay: 0.8s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Stagger children delay */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.12s; }
.stagger > *:nth-child(3) { transition-delay: 0.19s; }
.stagger > *:nth-child(4) { transition-delay: 0.26s; }
.stagger > *:nth-child(5) { transition-delay: 0.33s; }
.stagger > *:nth-child(6) { transition-delay: 0.40s; }
.stagger > *:nth-child(7) { transition-delay: 0.47s; }
.stagger > *:nth-child(8) { transition-delay: 0.54s; }

/* Button magnetic feel */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn:hover::after {
  transform: translateX(120%);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.35);
}

/* Section title underline animation */
.section-title {
  position: relative;
  display: inline-block;
  width: 100%;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-title.visible::after,
.section-title.reveal.visible::after {
  transform: scaleX(1);
}

/* Contact card glow */
.contact-card {
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.12),
              0 20px 50px rgba(0,0,0,0.08);
}
.contact-card:focus-within {
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.4),
              0 25px 60px rgba(var(--primary-rgb), 0.15);
}

/* Smooth reveal improvements */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(50px); }
.reveal-right { opacity: 0; transform: translateX(-50px); }
.reveal-scale { opacity: 0; transform: scale(0.88); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Status live pulse */
.status.live {
  position: relative;
}
.status.live::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #10b981);
  margin-left: 6px;
  animation: livePulse 1.5s ease infinite;
  vertical-align: middle;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* Theme controls glass */
.theme-controls {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem;
  box-shadow: var(--shadow-lg);
}

/* CTA section stronger */
.cta-box {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--primary-rgb), 0.04));
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.2), transparent 70%);
  top: -100px;
  left: -80px;
  pointer-events: none;
}

/* Post thumb gradient */
.post-thumb {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Header logo glow on scroll */
.header.scrolled .logo span {
  text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
}

/* Input focus ring */
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
