/* ================================================================
   KIAN BUSINESS AGENCY — Design System & Styles
   Theme: Dark Cosmic / Space-inspired
   Direction: RTL (Persian)
   ================================================================ */

/* ── Google Fonts (Peyda) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  /* Colors */
  --bg-primary: #060816;
  --bg-section: #0B1020;
  --bg-card: #0f1529;
  --bg-card-hover: #141a33;
  --text-primary: #FFFFFF;
  --text-secondary: #A5AEC8;
  --text-muted: #6B7599;
  --border-color: #20273D;
  --border-light: rgba(91, 124, 255, 0.15);
  --brand: #5B7CFF;
  --brand-rgb: 91, 124, 255;
  --complement: #7C5CFF;
  --complement-rgb: 124, 92, 255;
  --accent: #36D6FF;
  --accent-rgb: 54, 214, 255;
  --gradient-brand: linear-gradient(135deg, #36D6FF, #5B7CFF, #7C5CFF);
  --gradient-brand-hover: linear-gradient(135deg, #7C5CFF, #5B7CFF, #36D6FF);
  --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(91, 124, 255, 0.12) 0%, transparent 70%);

  /* Typography */
  --font-fa: 'Peyda', 'Estedad', 'Vazirmatn', 'Inter', system-ui, sans-serif;
  --font-en: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-py: 120px;
  --container-max: 1240px;
  --container-px: 32px;
  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 32px;
  --gap-2xl: 48px;
  --gap-3xl: 64px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-medium: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-fa);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.8;
  font-size: 18px;
  overflow-x: hidden;
  position: relative;
}

/* ── Noise texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Stars canvas */
#starsCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  position: relative;
  z-index: 1;
}

/* ── Section base ── */
section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-section);
}

/* ── Section glow ── */
.section-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.3), transparent);
}

/* ── Typography ── */
.section-overline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--gap-lg);
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-fa);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px rgba(var(--brand-rgb), 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(var(--brand-rgb), 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 20px rgba(var(--brand-rgb), 0.15);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--gap-xl);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-medium);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--brand-rgb), 0.06), transparent 40%);
  pointer-events: none;
}

.card:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-medium);
  background: transparent;
}

.nav.scrolled {
  background: rgba(6, 8, 22, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  z-index: 10;
}

.nav__logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--gap-xl);
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--transition-medium);
  border-radius: 2px;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: 0 2px 16px rgba(var(--brand-rgb), 0.25);
  transition: all var(--transition-medium) !important;
}

.nav__cta::after {
  display: none !important;
}

.nav__cta:hover {
  box-shadow: 0 4px 28px rgba(var(--brand-rgb), 0.45) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  cursor: pointer;
  z-index: 10;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Hero ambient glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(var(--brand-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(var(--complement-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-3xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--gap-xs);
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: var(--gap-xl);
}

.hero__badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: var(--gap-lg);
  letter-spacing: -0.01em;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 2;
  margin-bottom: var(--gap-2xl);
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

/* Hero visual (right side) */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hero__orb {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(var(--accent-rgb), 0.15), rgba(var(--brand-rgb), 0.25), rgba(var(--complement-rgb), 0.15), rgba(var(--accent-rgb), 0.15));
  filter: blur(60px);
  animation: orbRotate 12s linear infinite;
  position: relative;
}

.hero__orb::before {
  content: '';
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--brand-rgb), 0.3), rgba(var(--accent-rgb), 0.2), rgba(var(--complement-rgb), 0.3), rgba(var(--brand-rgb), 0.3));
  filter: blur(30px);
  animation: orbRotate 8s linear infinite reverse;
}

.hero__orb::after {
  content: '';
  position: absolute;
  inset: 45%;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  filter: blur(15px);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ================================================================
   TRUST / STATS
   ================================================================ */
.trust {
  padding: 60px 0 80px;
  border-bottom: 1px solid var(--border-color);
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-xl);
  text-align: center;
}

.trust__item {
  padding: var(--gap-lg);
  position: relative;
}

.trust__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.trust__number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--gap-xs);
}

.trust__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ================================================================
   CHALLENGES
   ================================================================ */
.challenges {
  padding: var(--section-py) 0;
}

.challenges__header {
  text-align: center;
  margin-bottom: var(--gap-3xl);
}

.challenges__header .section-desc {
  margin: 0 auto;
}

.challenges__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  margin-bottom: var(--gap-3xl);
}

.challenge-card {
  text-align: center;
  padding: var(--gap-2xl) var(--gap-xl);
}

.challenge-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.12);
  font-size: 1.5rem;
}

.challenge-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.challenge-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.challenges__footer {
  text-align: center;
  padding: var(--gap-2xl);
  background: rgba(var(--brand-rgb), 0.04);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
  border-radius: var(--radius-lg);
}

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

/* ================================================================
   SERVICES
   ================================================================ */
.services {
  padding: var(--section-py) 0;
}

.services__header {
  text-align: center;
  margin-bottom: var(--gap-3xl);
}

.services__header .section-desc {
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.service-card {
  padding: var(--gap-2xl);
}

.service-card__header {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-lg);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-card__icon--dev {
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.service-card__icon--brand {
  background: rgba(var(--brand-rgb), 0.1);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  color: var(--brand);
}

.service-card__icon--market {
  background: rgba(var(--complement-rgb), 0.1);
  border: 1px solid rgba(var(--complement-rgb), 0.15);
  color: var(--complement);
}

.service-card__icon--media {
  background: rgba(255, 180, 50, 0.1);
  border: 1px solid rgba(255, 180, 50, 0.15);
  color: #ffb432;
}

.service-card__title {
  font-size: 1.2rem;
  font-weight: 700;
}

.service-card__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-sm) var(--gap-lg);
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.service-card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.service-card__list li:hover {
  color: var(--text-primary);
}

/* ================================================================
   WHY KIAN
   ================================================================ */
.why-kian {
  padding: var(--section-py) 0;
}

.why-kian__header {
  text-align: center;
  margin-bottom: var(--gap-3xl);
}

.why-kian__header .section-desc {
  margin: 0 auto;
}

.why-kian__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.why-card {
  text-align: center;
  padding: var(--gap-2xl) var(--gap-xl);
}

.why-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--gap-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.1), rgba(var(--complement-rgb), 0.1));
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  font-size: 1.5rem;
  transition: all var(--transition-medium);
}

.why-card:hover .why-card__icon {
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.2), rgba(var(--complement-rgb), 0.2));
  box-shadow: 0 0 30px rgba(var(--brand-rgb), 0.2);
  transform: scale(1.1);
}

.why-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.why-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   PROCESS
   ================================================================ */
.process {
  padding: var(--section-py) 0;
}

.process__header {
  text-align: center;
  margin-bottom: var(--gap-3xl);
}

.process__header .section-desc {
  margin: 0 auto;
}

.process__timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Vertical line */
.process__timeline::before {
  content: '';
  position: absolute;
  right: 32px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--brand), var(--complement));
  border-radius: 2px;
}

.process__step {
  display: flex;
  align-items: flex-start;
  gap: var(--gap-xl);
  padding: var(--gap-xl) 0;
  position: relative;
}

.process__step-number {
  width: 64px;
  height: 64px;
  min-width: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--brand);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  position: relative;
  z-index: 2;
  transition: all var(--transition-medium);
}

.process__step:hover .process__step-number {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 30px rgba(var(--brand-rgb), 0.4);
}

.process__step-content {
  padding-top: 12px;
}

.process__step-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--gap-xs);
}

.process__step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio {
  padding: var(--section-py) 0;
}

.portfolio__header {
  text-align: center;
  margin-bottom: var(--gap-3xl);
}

.portfolio__header .section-desc {
  margin: 0 auto;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-lg);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-medium);
  cursor: pointer;
}

.portfolio-card:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.portfolio-card:hover .portfolio-card__image img {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 8, 22, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--gap-xl);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__info {
  padding: var(--gap-lg) var(--gap-xl);
}

.portfolio-card__category {
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--gap-xs);
}

.portfolio-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.portfolio-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
}

.portfolio-card__tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(var(--brand-rgb), 0.1);
}

/* ================================================================
   BLOG
   ================================================================ */
.blog {
  padding: var(--section-py) 0;
}

.blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--gap-3xl);
}

.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all var(--transition-medium);
}

.blog-card:hover {
  border-color: rgba(var(--brand-rgb), 0.3);
  transform: translateY(-4px);
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: var(--gap-lg) var(--gap-xl);
}

.blog-card__category {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--gap-sm);
  display: block;
}

.blog-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: var(--gap-md);
  transition: color var(--transition-fast);
}

.blog-card:hover .blog-card__title {
  color: var(--brand);
}

.blog-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ================================================================
   CTA
   ================================================================ */
.cta {
  padding: var(--section-py) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(var(--brand-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta__container {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: var(--gap-lg);
  line-height: 1.4;
}

.cta__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--gap-2xl);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-section);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--gap-3xl);
  margin-bottom: var(--gap-3xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--gap-md);
  display: block;
}

.footer__about {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer__col-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--gap-lg);
  color: var(--text-primary);
}

.footer__links li {
  margin-bottom: var(--gap-sm);
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--brand);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--gap-md);
}

.footer__contact-item span:first-child {
  font-size: 1rem;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--gap-xl);
  border-top: 1px solid var(--border-color);
}

.footer__copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--gap-md);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgba(var(--brand-rgb), 0.1);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --container-px: 24px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--gap-2xl);
  }

  .hero__desc {
    margin: 0 auto var(--gap-2xl);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__orb {
    width: 280px;
    height: 280px;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust__item::after {
    display: none;
  }

  .challenges__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .why-kian__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --container-px: 20px;
  }

  body {
    font-size: 15px;
  }

  /* Navigation & Mobile Menu */
  .nav__links {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.35s;
    z-index: 99;
  }

  .nav__links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__toggle {
    display: flex;
  }

  /* Hero Section */
  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero .container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.4;
  }

  .hero__desc {
    margin: 0 auto var(--gap-xl);
    font-size: 0.92rem;
    line-height: 1.8;
  }

  .hero__actions {
    justify-content: center;
    width: 100%;
    gap: var(--gap-sm);
  }

  .hero__actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 20px;
    font-size: 0.88rem;
    text-align: center;
    justify-content: center;
  }

  .hero__visual {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__orb {
    width: 240px;
    height: 240px;
    filter: blur(50px);
  }

  /* Section Typography overrides */
  .section-title {
    font-size: clamp(1.5rem, 5vw, 1.8rem) !important;
  }

  .section-desc {
    font-size: 0.88rem !important;
    line-height: 1.7;
  }

  /* Trust/Stats Section */
  .trust {
    padding: 40px 0;
  }

  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
  }

  .trust__number {
    font-size: 2.2rem;
  }

  .trust__label {
    font-size: 0.82rem;
  }

  /* Challenges Section (2-Column Grid) */
  .challenges__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: var(--gap-xl);
  }

  .challenge-card {
    padding: 20px 12px;
    border-radius: var(--radius-md);
  }

  .challenge-card__icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .challenge-card__title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .challenge-card__desc {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .challenges__footer {
    padding: 16px;
  }

  .challenges__footer p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Services Section (2-Column Grid) */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 18px 12px;
    border-radius: var(--radius-md);
  }

  .service-card__header {
    margin-bottom: 10px;
    gap: 8px;
  }

  .service-card__icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .service-card__title {
    font-size: 0.9rem;
  }

  .service-card__list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .service-card__list li {
    font-size: 0.78rem;
    padding: 2px 0;
  }

  /* Why Kian Section (2-Column Grid) */
  .why-kian__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .why-card {
    padding: 20px 12px;
    border-radius: var(--radius-md);
  }

  .why-card__icon {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  .why-card__title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .why-card__desc {
    font-size: 0.76rem;
    line-height: 1.5;
  }

  /* Process Section */
  .process__timeline::before {
    right: 18px;
  }

  .process__step {
    gap: var(--gap-md);
    padding: var(--gap-md) 0;
  }

  .process__step-number {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.85rem;
  }

  .process__step-content {
    padding-top: 6px;
  }

  .process__step-title {
    font-size: 0.95rem;
  }

  .process__step-desc {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  /* Portfolio Section (Premium Horizontal Snap Scroll) */
  .portfolio .portfolio__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px var(--container-px) 24px;
    margin: 0 calc(-1 * var(--container-px));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .portfolio .portfolio__grid::-webkit-scrollbar {
    display: none;
  }

  .portfolio .portfolio-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    margin: 0;
  }

  .portfolio-card__info {
    padding: 16px;
  }

  .portfolio-card__category {
    font-size: 0.75rem;
  }

  .portfolio-card__title {
    font-size: 0.95rem;
  }

  .portfolio-card__tag {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Blog Section (Premium Horizontal Snap Scroll) */
  .blog .blog__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px var(--container-px) 24px;
    margin: 0 calc(-1 * var(--container-px));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog .blog__grid::-webkit-scrollbar {
    display: none;
  }

  .blog .blog-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    margin: 0;
  }

  .blog-card__body {
    padding: 16px;
  }

  .blog-card__category {
    font-size: 0.75rem;
  }

  .blog-card__title {
    font-size: 0.95rem;
  }

  .blog-card__meta {
    font-size: 0.7rem;
  }

  .blog__header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .blog__header .btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  /* Footer Section */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--gap-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--gap-md);
    text-align: center;
  }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */

/* Gradient movement */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animated-gradient {
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

/* Float */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Glow pulse */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--brand-rgb), 0.2); }
  50% { box-shadow: 0 0 40px rgba(var(--brand-rgb), 0.4); }
}

/* ================================================================
   MODAL / POPUP
   ================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease-out);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-section);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.4s var(--ease-out);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: transparent;
}

.modal__close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: var(--gap-sm);
}

.modal__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--gap-xl);
}

.modal__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
}

.modal__contact-item {
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.modal__contact-item:hover {
  border-color: rgba(var(--brand-rgb), 0.4);
  background: var(--bg-card-hover);
  transform: translateX(-4px);
}

.modal__contact-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--brand-rgb), 0.08);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.modal__contact-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.modal__contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ================================================================
   BLOG PAGE
   ================================================================ */
.blog-page-hero {
  padding: 160px 0 60px;
  text-align: center;
}

.blog-page-content {
  padding: 0 0 var(--section-py);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  justify-content: center;
  margin-bottom: var(--gap-3xl);
}

.blog-cat {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-fa);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-cat:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.blog-cat.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
}

.blog-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--gap-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.active-link {
  color: var(--brand) !important;
}

/* ================================================================
   ARTICLE PAGE
   ================================================================ */
.article-page {
  padding: 140px 0 var(--section-py);
}

.article-page .container {
  max-width: 820px;
}

.article__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--gap-2xl);
}

.article__breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.article__breadcrumb a:hover {
  color: var(--brand);
}

.article__header {
  margin-bottom: var(--gap-2xl);
}

.article__category {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--gap-md);
}

.article__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--gap-md);
}

.article__meta {
  display: flex;
  gap: var(--gap-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--gap-2xl);
  aspect-ratio: 16 / 8;
}

.article__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article__body {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
}

.article__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--gap-2xl) 0 var(--gap-md);
}

.article__body p {
  margin-bottom: var(--gap-lg);
}

.article__body ul {
  margin: var(--gap-md) 0 var(--gap-lg);
  padding-right: var(--gap-lg);
}

.article__body ul li {
  margin-bottom: var(--gap-sm);
  list-style: disc;
  color: var(--text-secondary);
}

.article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--gap-xl) 0;
  margin-top: var(--gap-2xl);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.article__share {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.article__share-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.article__share-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.article__related {
  margin-top: var(--gap-3xl);
}

.article__related .blog__grid {
  margin-top: var(--gap-lg);
}

/* ================================================================
   ENHANCED COUNTER ANIMATION
   ================================================================ */
.trust__item {
  position: relative;
  overflow: visible;
}

.trust__number {
  position: relative;
  display: inline-block;
}

.trust__number.counting {
  animation: counterPop 0.15s var(--ease-out);
}

@keyframes counterPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Glow ring behind counter */
.trust__item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--brand-rgb), 0.12) 0%, transparent 75%);
  opacity: 0;
  transition: all 1.5s var(--ease-out);
  pointer-events: none;
}

.trust__item.counted::before {
  width: 120px;
  height: 120px;
  opacity: 1;
}

/* Particle burst */
.counter-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  pointer-events: none;
  animation: particleBurst 1s var(--ease-out) forwards;
}

@keyframes particleBurst {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0);
  }
}

/* ================================================================
   RESPONSIVE — Blog & Article Pages
   ================================================================ */
@media (max-width: 1024px) {
  .blog-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-page-content .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article__related .blog__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .blog-page-content .portfolio__grid {
    gap: 12px;
  }

  .article__footer {
    flex-direction: column;
    gap: var(--gap-md);
    align-items: flex-start;
  }

  .article__related .blog__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 12px var(--container-px) 24px;
    margin: 0 calc(-1 * var(--container-px));
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .article__related .blog__grid::-webkit-scrollbar {
    display: none;
  }

  .article__related .blog__grid .blog-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    margin: 0;
  }

  .modal {
    padding: 28px;
  }
}

@media (max-width: 580px) {
  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .blog-page-content .portfolio__grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   9. SCROLLBAR & GLASS SCROLL INDICATOR
   ================================================================ */

/* Hide native scrollbar but keep functionality */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  display: none;
}

/* Glass Scroll Nav Container */
.scroll-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  height: 40vh;
  min-height: 240px;
  width: 40px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* The vertical track */
.scroll-nav__line {
  position: relative;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.1) 15%, 
    rgba(255, 255, 255, 0.1) 85%, 
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: auto;
}

/* Section Markers */
.scroll-nav__marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.scroll-nav__marker:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%) scale(1.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.scroll-nav__marker.active {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

/* Glass Thumb */
.scroll-nav__thumb {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  cursor: grab;
  transform-origin: center center;
  will-change: transform, width, height, background, box-shadow;
  /* Smooth transition for snapping state */
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

.scroll-nav__thumb:hover {
  background: rgba(255, 255, 255, 0.3);
  width: 8px;
}

.scroll-nav__thumb:active {
  cursor: grabbing;
  width: 8px;
  background: rgba(255, 255, 255, 0.4);
}

/* Snapped state (when thumb aligns with an active section) */
.scroll-nav__thumb.snapped {
  width: 14px;
  height: 14px;
  background: rgba(var(--brand-rgb), 0.25);
  border-color: rgba(var(--brand-rgb), 0.7);
  box-shadow: 0 0 16px rgba(var(--brand-rgb), 0.5), inset 0 0 8px rgba(255, 255, 255, 0.15);
}

/* Hide on mobile devices for space */
@media (max-width: 768px) {
  .scroll-nav {
    display: none;
  }
}

