/* ============================================================
   صندوق پژوهش و فناوری تجارت — Main Stylesheet
   Brand: #2d448d (dark blue) · #00b2ba (teal) · #c8a84b (gold)
   ============================================================ */

:root {
  --navy: #0a1428;
  --deep-navy: #060c18;
  --royal: #1a2c5e;
  --blue: #2d448d;          /* brand dark blue */
  --bright-blue: #3b5bb5;
  --electric: #5478d6;
  --cyan: #00b2ba;          /* brand teal */
  --cyan-light: #2dd4dc;
  --glow: rgba(45,68,141,0.4);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --text-primary: #eef2fb;
  --text-secondary: rgba(200,212,240,0.72);
  --text-muted: rgba(150,170,225,0.45);
  --gold: #c8a84b;
  --gold-light: #e8c96a;
  /* light-section tokens */
  --light-bg: #eef2fb;
  --light-bg-2: #e3ebfa;
  --light-card: #ffffff;
  --light-border: rgba(45,68,141,0.12);
  --light-text: #0d1a36;
  --light-text-2: rgba(20,40,90,0.7);
  --light-text-3: rgba(20,40,90,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--deep-navy);
  color: var(--text-primary);
  overflow-x: hidden;
  direction: rtl;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--deep-navy); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 4px; }

/* ── CURSOR ── */
.cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--cyan); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(0,178,186,0.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s;
}
@media (hover: none) { .cursor, .cursor-ring { display: none; } }

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

/* ── PARTICLES ── */
.particles-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 60px;
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.4s ease;
}
header.scrolled {
  background: rgba(6,12,24,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 60px;
}

/* PNG logo */
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img {
  height: 46px; width: auto; display: block;
  transition: transform 0.4s ease;
}
.logo:hover img { transform: translateY(-2px) scale(1.03); }
header.scrolled .logo img { height: 42px; }

nav { display: flex; gap: 30px; align-items: center; }
nav a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  position: relative; transition: color 0.3s; white-space: nowrap;
}
nav a::after {
  content: ''; position: absolute; bottom: -6px; right: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.3s ease;
}
nav a:hover { color: #fff; }
nav a:hover::after, nav a.active::after { width: 100%; }
nav a.active { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.btn-submit {
  padding: 10px 24px; border-radius: 20px 0px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; font-family: 'Vazirmatn', sans-serif;
  font-size: 0.85rem; font-weight: 600; border: none; cursor: pointer;
  position: relative; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(45,68,141,0.45);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,178,186,0.5); }
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: translateX(100%); transition: transform 0.5s;
}
.btn-submit:hover::before { transform: translateX(-100%); }

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  cursor: pointer; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); transition: all 0.3s;
}
.hamburger-line {
  width: 20px; height: 2px; border-radius: 2px; background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(6,12,24,0.97); backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; opacity: 0; visibility: hidden;
  transform: translateY(-16px); transition: opacity 0.35s, transform 0.35s, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu-link {
  font-size: 1.4rem; font-weight: 700; color: var(--text-secondary);
  text-decoration: none; transition: color 0.3s;
}
.mobile-menu-link:hover { color: var(--cyan); }
.mobile-menu-actions { margin-top: 20px; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(45,68,141,0.5) 0%, var(--deep-navy) 70%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(45,68,141,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,68,141,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(800px) rotateX(20deg) scale(1.5) translateY(10%);
  transform-origin: center bottom;
}
.lotus-hero {
  position: absolute; width: 700px; height: 700px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1; max-width: 100vw;
}
.lotus-hero svg { width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 5; text-align: center; max-width: 820px; padding: 0 40px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  border: 1px solid rgba(0,178,186,0.3); background: rgba(0,178,186,0.08);
  font-size: 0.78rem; font-weight: 500; color: var(--cyan);
  margin-bottom: 32px; letter-spacing: 1px;
}
.hero-tag::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(0.8);} }
.hero-title { font-size: clamp(2.6rem, 6vw, 5.5rem); font-weight: 900; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
.hero-title .line-1 { display: block; color: #ffffff; }
.hero-title .line-2 { display: block; color: #d6ecf2; }
.hero-desc { font-size: 1.1rem; font-weight: 300; color: var(--text-secondary); line-height: 2; margin: 0 auto 48px; max-width: 580px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; padding: 16px 40px;
  border-radius: 40px 0px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: #fff; font-family: 'Vazirmatn', sans-serif; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 40px rgba(45,68,141,0.5); transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0,178,186,0.6); }
.btn-outline {
  display: inline-block; padding: 16px 40px;
  border-radius: 40px 0px;
  background: transparent; color: #fff; font-family: 'Vazirmatn', sans-serif;
  font-size: 1rem; font-weight: 500; cursor: pointer; text-decoration: none;
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px); transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--bright-blue); background: rgba(45,68,141,0.12); transform: translateY(-3px); }
.hero-stats { position: absolute; bottom: 56px; left: 0; right: 0; display: flex; justify-content: center; gap: 56px; z-index: 5; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2.1rem; font-weight: 800; background: linear-gradient(135deg, #fff, var(--electric)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 300; margin-top: 4px; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.72rem; z-index: 5; animation: float 3s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0);} 50%{transform:translateX(-50%) translateY(-8px);} }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, var(--cyan), transparent); }

/* ============================================================
   SECTION BASE
   ============================================================ */
section { position: relative; padding: 120px 80px; z-index: 2; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.75rem; font-weight: 600; color: var(--cyan);
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 20px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -1px; margin-bottom: 20px; }
.section-title span { background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-intro { font-size: 1rem; color: var(--text-secondary); line-height: 1.9; font-weight: 300; max-width: 560px; }
.section-header-link {
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s; white-space: nowrap;
}
.section-header-link:hover { color: var(--cyan); }

/* ── PARALLAX PETALS ── */
.parallax-petal { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }

/* ============================================================
   LIGHT SECTIONS  (Stats + Articles)
   ============================================================ */
.section-light {
  background: linear-gradient(180deg, var(--light-bg) 0%, var(--light-bg-2) 100%);
  color: var(--light-text);
}
.section-light .section-title { color: var(--light-text); }
.section-light .section-title span { background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-light .section-label { color: var(--blue); }
.section-light .section-label::before { background: var(--blue); }
.section-light .section-intro { color: var(--light-text-2); }
.section-light .section-header-link { color: var(--light-text-3); }
.section-light .section-header-link:hover { color: var(--blue); }
/* portfolio on light */
.section-light .portfolio-card { background: var(--light-card); border-color: var(--light-border); box-shadow: 0 14px 40px rgba(45,68,141,0.07); }
.section-light .portfolio-card::before { background: linear-gradient(135deg, rgba(45,68,141,0.06) 0%, rgba(0,178,186,0.04) 100%); }
.section-light .portfolio-card:hover { box-shadow: 0 28px 60px rgba(45,68,141,0.16); border-color: rgba(45,68,141,0.28); }
.section-light .portfolio-name { color: var(--light-text); }
.section-light .portfolio-desc { color: var(--light-text-2); }
.section-light .tag { background: rgba(45,68,141,0.08); border-color: rgba(45,68,141,0.16); color: var(--blue); }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy) 100%); overflow: hidden; }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; max-width: 1300px; margin: 0 auto; }
.about-visual { position: relative; height: 500px; width: 100%; max-width: 480px; margin: 0 auto; }
.about-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* ── breathing rings ── */
.ab-ring-a,.ab-ring-b,.ab-ring-c { transform-box: view-box; transform-origin: 240px 240px; }
.ab-ring-a { animation: abRingBreath 10s ease-in-out infinite; }
.ab-ring-b { animation: abRingBreath 10s ease-in-out infinite 3.3s; }
.ab-ring-c { animation: abRingBreath 10s ease-in-out infinite 6.6s; }
@keyframes abRingBreath { 0%,100%{opacity:.9;transform:scale(1);} 50%{opacity:.3;transform:scale(1.05);} }
/* ── synchronized pulse system (12s master cycle): lotus beats → petal fires → spoke lights → capital coin flows → domain dot glows ── */
.ab-spoke { stroke: rgba(45,68,141,.22); stroke-width: .8; stroke-dasharray: 4 6; }
.ab-spoke:nth-child(1){animation:abSpokeRun 12s ease-in-out infinite 0s;}
.ab-spoke:nth-child(2){animation:abSpokeRun 12s ease-in-out infinite 2s;}
.ab-spoke:nth-child(3){animation:abSpokeRun 12s ease-in-out infinite 4s;}
.ab-spoke:nth-child(4){animation:abSpokeRun 12s ease-in-out infinite 6s;}
.ab-spoke:nth-child(5){animation:abSpokeRun 12s ease-in-out infinite 8s;}
.ab-spoke:nth-child(6){animation:abSpokeRun 12s ease-in-out infinite 10s;}
@keyframes abSpokeRun {
  0%{opacity:.22;stroke:rgba(45,68,141,.22);}
  22%{opacity:.6;stroke:rgba(0,178,186,.45);}
  40%{opacity:.3;stroke:rgba(45,68,141,.3);}
  100%{opacity:.22;stroke:rgba(45,68,141,.22);}
}
.ab-coin { transform-box: view-box; }
.ab-coin-1{animation:abFlowTop 12s ease-in infinite 0s;}
.ab-coin-2{animation:abFlowTr  12s ease-in infinite 2s;}
.ab-coin-3{animation:abFlowBr  12s ease-in infinite 4s;}
.ab-coin-4{animation:abFlowBtm 12s ease-in infinite 6s;}
.ab-coin-5{animation:abFlowBl  12s ease-in infinite 8s;}
.ab-coin-6{animation:abFlowTl  12s ease-in infinite 10s;}
@keyframes abFlowTop { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(0,-200px);opacity:1;} 48%,100%{transform:translate(0,-200px);opacity:0;} }
@keyframes abFlowTr  { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(173px,-100px);opacity:1;} 48%,100%{transform:translate(173px,-100px);opacity:0;} }
@keyframes abFlowBr  { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(173px,100px);opacity:1;} 48%,100%{transform:translate(173px,100px);opacity:0;} }
@keyframes abFlowBtm { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(0,200px);opacity:1;} 48%,100%{transform:translate(0,200px);opacity:0;} }
@keyframes abFlowBl  { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(-173px,100px);opacity:1;} 48%,100%{transform:translate(-173px,100px);opacity:0;} }
@keyframes abFlowTl  { 0%{transform:translate(0,0);opacity:0;} 6%{opacity:1;} 40%{transform:translate(-173px,-100px);opacity:1;} 48%,100%{transform:translate(-173px,-100px);opacity:0;} }
.ab-dot { transform-box: view-box; animation: abDotGlow 12s ease-in-out infinite; }
.ab-dot:nth-child(1){animation-delay:0s; transform-origin:240px 40px;}
.ab-dot:nth-child(2){animation-delay:2s; transform-origin:413px 140px;}
.ab-dot:nth-child(3){animation-delay:4s; transform-origin:413px 340px;}
.ab-dot:nth-child(4){animation-delay:6s; transform-origin:240px 440px;}
.ab-dot:nth-child(5){animation-delay:8s; transform-origin:67px 340px;}
.ab-dot:nth-child(6){animation-delay:10s;transform-origin:67px 140px;}
@keyframes abDotGlow { 0%,32%{transform:scale(1);opacity:.55;} 42%{transform:scale(2.2);opacity:1;} 60%,100%{transform:scale(1);opacity:.55;} }
.ab-lotus { transform-box: view-box; transform-origin: 240px 240px; animation: abLotusPulse 12s ease-in-out infinite; }
@keyframes abLotusPulse { 0%{transform:scale(1.05);} 12%{transform:scale(1);} 55%{transform:scale(.97);} 100%{transform:scale(1.05);} }
.ab-petal { animation: abPetalFire 12s ease-in-out infinite; }
.ab-petal:nth-child(1){animation-delay:0s;}
.ab-petal:nth-child(2){animation-delay:2s;}
.ab-petal:nth-child(3){animation-delay:4s;}
.ab-petal:nth-child(4){animation-delay:6s;}
.ab-petal:nth-child(5){animation-delay:8s;}
.ab-petal:nth-child(6){animation-delay:10s;}
@keyframes abPetalFire { 0%{opacity:.5;} 7%{opacity:1;} 22%{opacity:.78;} 100%{opacity:.5;} }
/* ── domain labels ── */
.d-label { position: absolute; font-size: .72rem; font-weight: 600; letter-spacing: .3px; color: var(--text-muted); line-height: 1.5; white-space: nowrap; pointer-events: none; transition: color .3s; }
.d-label:hover { color: rgba(255,255,255,.9); }
.d-top { top: 2px; left: 50%; transform: translateX(-50%); text-align: center; }
.d-tr  { top: 27%; right: 0; text-align: right; }
.d-br  { top: 64%; right: 0; text-align: right; }
.d-btm { bottom: 2px; left: 50%; transform: translateX(-50%); text-align: center; }
.d-bl  { top: 64%; left: 0; text-align: left; }
.d-tl  { top: 27%; left: 0; text-align: left; }
@media (prefers-reduced-motion: reduce) {
  .ab-ring-a,.ab-ring-b,.ab-ring-c,.ab-spoke,.ab-coin,.ab-dot,.ab-lotus,.ab-petal { animation: none !important; }
  .ab-coin { opacity: 0; }
}
.about-text { position: relative; }
.about-text p { font-size: 1.05rem; color: var(--text-secondary); line-height: 2.2; margin-bottom: 24px; font-weight: 300; }
.about-milestones { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.milestone { padding: 20px 24px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(10px); transition: all 0.3s; }
.milestone:hover { border-color: rgba(0,178,186,0.4); background: rgba(45,68,141,0.1); transform: translateY(-4px); }
.milestone-year { font-size: 0.75rem; font-weight: 600; color: var(--cyan); letter-spacing: 2px; margin-bottom: 6px; }
.milestone-text { font-size: 0.9rem; color: var(--text-secondary); font-weight: 400; }
.read-more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--cyan); text-decoration: none; margin-top: 24px; transition: gap 0.3s; }
.read-more::before { content: '←'; }
.read-more:hover { gap: 14px; }

/* ============================================================
   STATS  (redesigned, light)
   ============================================================ */
#stats { overflow: hidden; }
.stats-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.stats-header { text-align: center; margin-bottom: 64px; }
.stats-header .section-intro { margin: 0 auto; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block {
  background: var(--light-card); border: 1px solid var(--light-border);
  border-radius: 22px; padding: 30px 28px;
  box-shadow: 0 14px 40px rgba(45,68,141,0.08);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s, border-color 0.4s;
  position: relative; overflow: hidden;
}
.stat-block::after {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease;
}
.stat-block:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(45,68,141,0.16); border-color: rgba(45,68,141,0.25); }
.stat-block:hover::after { transform: scaleX(1); }
.stat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.stat-mark {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(45,68,141,0.08); border: 1px solid rgba(45,68,141,0.14);
  display: flex; align-items: center; justify-content: center;
}
.stat-mark svg { width: 30px; height: 30px; }
.stat-mark img { width: 30px; height: 30px; object-fit: contain; }
.stat-mark.gold { background: rgba(200,168,75,0.1); border-color: rgba(200,168,75,0.22); }
.stat-trend {
  font-size: 0.74rem; font-weight: 700; color: #15a36b;
  background: rgba(21,163,107,0.1); padding: 4px 10px; border-radius: 100px;
}
.stat-number {
  font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -1px;
  color: var(--blue); display: flex; align-items: baseline; gap: 2px;
}
.stat-number.gold { color: var(--gold); }
.stat-suffix { font-size: 1.4rem; font-weight: 700; color: var(--cyan); }
.stat-number.gold .stat-suffix { color: var(--gold); }
.stat-label { font-size: 0.92rem; color: var(--light-text-2); font-weight: 500; margin-top: 10px; }
.stat-bar { height: 6px; border-radius: 100px; background: rgba(45,68,141,0.1); margin-top: 20px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; width: 0; border-radius: 100px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width 1.4s cubic-bezier(0.22,1,0.36,1); }
.stat-bar.gold span { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.stat-block.in-view .stat-bar span { width: var(--w); }

/* ============================================================
   DOMAINS
   ============================================================ */
#domains { background: linear-gradient(180deg, var(--navy) 0%, var(--deep-navy) 100%); overflow: hidden; }
.domains-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 2; }
.domains-header { margin-bottom: 64px; }
.domains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--glass-border); border-radius: 24px; overflow: hidden; }
.domain-item { background: var(--navy); padding: 44px 36px; cursor: pointer; position: relative; transition: background 0.35s; overflow: hidden; }
.domain-item::after { content: ''; position: absolute; bottom: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease; }
.domain-item:hover { background: rgba(45,68,141,0.08); }
.domain-item:hover::after { transform: scaleX(1); }
.domain-num { font-size: 0.72rem; font-weight: 700; letter-spacing: 3px; color: var(--text-muted); margin-bottom: 28px; }
.domain-icon-wrap { width: 48px; height: 48px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 20px; transition: border-color 0.3s, background 0.3s; }
.domain-item:hover .domain-icon-wrap { border-color: rgba(0,178,186,0.4); background: rgba(45,68,141,0.12); }
.domain-icon-wrap img { width: 28px; height: 28px; object-fit: contain; }
.domain-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; transition: color 0.3s; }
.domain-item:hover .domain-title { color: #fff; }
.domain-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.85; font-weight: 300; }
.domain-arrow { position: absolute; top: 44px; left: 36px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--text-muted); opacity: 0; transform: translateX(8px); transition: all 0.35s; }
.domain-item:hover .domain-arrow { opacity: 1; transform: translateX(0); border-color: var(--cyan); color: var(--cyan); }

/* ── section cta button row ── */
.section-cta { text-align:center; margin-top:44px; }

/* ── filter bar ── */
.filter-bar { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.filter-btn { background:transparent; border:1px solid var(--glass-border); color:var(--text-muted); padding:7px 18px; border-radius:100px; font-family:inherit; font-size:.82rem; font-weight:600; cursor:pointer; transition:.2s; }
.filter-btn:hover { border-color:var(--cyan); color:var(--cyan); }
.filter-btn.is-active { background:var(--cyan); border-color:var(--cyan); color:#0d1426; }
.section-light .filter-btn { border-color:rgba(45,68,141,.2); color:var(--light-text-2); }
.section-light .filter-btn:hover { border-color:var(--blue); color:var(--blue); }
.section-light .filter-btn.is-active { background:var(--blue); border-color:var(--blue); color:#fff; }

/* ============================================================
   EVENTS
   ============================================================ */
#events { background: var(--deep-navy); overflow: hidden; }
.events-inner { max-width: 1200px; margin: 0 auto; }
.events-header { margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.events-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-card { border-radius: 20px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.ev-card:hover { border-color: rgba(0,178,186,0.35); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(6,12,30,0.5); }
.ev-cover { height: 180px; position: relative; overflow: hidden; flex-shrink: 0; }
.ev-cover-inner { position: absolute; inset: 0; transition: transform 0.6s ease; background: linear-gradient(135deg, #122a63 0%, #2d448d 45%, #0d2d6e 100%); }
.ev-card:hover .ev-cover-inner { transform: scale(1.05); }
.ev-cover-1 .ev-cover-inner { background: linear-gradient(135deg, #122a63 0%, #2d448d 45%, #0d2d6e 100%); }
.ev-cover-2 .ev-cover-inner { background: linear-gradient(135deg, #0a2030 0%, #11456b 50%, #00838a 100%); }
.ev-cover-3 .ev-cover-inner { background: linear-gradient(135deg, #0b1530 0%, #1a2c5e 50%, #2d448d 100%); }
.ev-cover-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 70% 30%, rgba(0,178,186,0.25) 0%, transparent 60%), radial-gradient(circle at 20% 80%, rgba(45,68,141,0.2) 0%, transparent 50%); }
.ev-cover-date { position: absolute; top: 18px; right: 18px; background: rgba(6,12,24,0.72); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 8px 14px; text-align: center; line-height: 1.2; }
.ev-cover-day { font-size: 1.4rem; font-weight: 900; background: linear-gradient(135deg, #fff, var(--cyan-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: block; }
.ev-cover-month { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; }
.ev-type-badge { position: absolute; bottom: 14px; right: 18px; padding: 4px 12px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; letter-spacing: 1.5px; border: 1px solid; }
.badge-conf { background: rgba(45,68,141,0.2); border-color: rgba(45,68,141,0.4); color: var(--electric); }
.badge-demo { background: rgba(0,178,186,0.12); border-color: rgba(0,178,186,0.3); color: var(--cyan); }
.badge-web { background: rgba(200,168,75,0.12); border-color: rgba(200,168,75,0.3); color: var(--gold-light); }
.ev-body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.ev-title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; margin-bottom: 10px; color: var(--text-primary); }
.ev-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.8; flex: 1; font-weight: 300; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ev-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.ev-location { font-size: 0.75rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.ev-cta { font-size: 0.75rem; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 4px; transition: gap 0.3s; }
.ev-card:hover .ev-cta { gap: 8px; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio { overflow: hidden; }
.portfolio-inner { max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.portfolio-header { text-align: center; margin-bottom: 80px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card { position: relative; border-radius: 24px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border); padding: 36px; cursor: pointer; transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1); display:block; text-decoration:none; color:inherit; }
.portfolio-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(45,68,141,0.14) 0%, rgba(0,178,186,0.06) 100%); opacity: 0; transition: opacity 0.4s; }
.portfolio-card:hover { transform: translateY(-12px); border-color: rgba(0,178,186,0.4); box-shadow: 0 30px 80px rgba(45,68,141,0.22); }
.portfolio-card:hover::before { opacity: 1; }
.portfolio-card > * { position: relative; z-index: 1; }
.portfolio-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.portfolio-stage { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--gold); background: rgba(200,168,75,0.12); border: 1px solid rgba(200,168,75,0.25); padding: 4px 10px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }
.portfolio-logo { width: 52px; height: 52px; border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; transition: transform 0.3s; overflow: hidden; flex-shrink: 0; }
.portfolio-card:hover .portfolio-logo { transform: scale(1.08); }
.portfolio-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.portfolio-cat { font-size: 0.8rem; color: var(--cyan); margin-bottom: 12px; font-weight: 500; }
.portfolio-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.8; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.portfolio-logo img { width:100%; height:100%; object-fit:contain; }
.portfolio-more { margin-top:18px; font-size:.8rem; font-weight:600; color:var(--cyan); opacity:.7; transition:opacity .2s; }
.portfolio-card:hover .portfolio-more { opacity:1; }
.tag { padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 500; background: rgba(45,68,141,0.12); border: 1px solid rgba(45,68,141,0.22); color: var(--electric); }

/* ── صفحه اختصاصی استارتاپ ── */
.startup-meta-bar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-top:14px; color:rgba(255,255,255,.7); font-size:.85rem; }
.startup-header { display:flex; align-items:flex-start; gap:28px; margin-bottom:36px; padding-bottom:32px; border-bottom:1px solid rgba(45,68,141,.15); }
.startup-logo { width:88px; height:88px; min-width:88px; border-radius:20px; background:transparent; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.startup-logo img { width:100%; height:100%; object-fit:contain; }
.startup-header-info { flex:1; }
.startup-title { font-size:1.6rem; font-weight:700; margin-bottom:10px; color:var(--light-text); }
.startup-cat-badge { display:inline-block; font-size:.75rem; font-weight:600; color:var(--blue); background:rgba(45,68,141,.1); border:1px solid rgba(45,68,141,.2); padding:3px 12px; border-radius:20px; margin-bottom:10px; }
.startup-domain { font-size:.85rem; color:var(--blue); font-weight:500; margin-top:8px; }
.startup-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:28px; padding-top:24px; border-top:1px solid rgba(45,68,141,.12); }
.startup-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:36px; padding-top:28px; border-top:1px solid rgba(45,68,141,.12); }
.startup-visit-btn { display:inline-block; padding:12px 28px; border-radius:30px 0px; background:var(--blue); color:#fff; font-size:.9rem; font-weight:600; text-decoration:none; transition:.2s; }
.startup-visit-btn:hover { background:var(--cyan); transform:translateY(-2px); }
.startup-back-btn { display:inline-block; padding:12px 24px; border-radius:30px 0px; border:1.5px solid rgba(45,68,141,.4); color:var(--blue); font-size:.88rem; font-weight:600; text-decoration:none; transition:.2s; }
.startup-back-btn:hover { border-color:var(--blue); background:rgba(45,68,141,.07); }

/* ── event single page ── */
.event-cover-img { border-radius: 18px; overflow: hidden; margin-bottom: 32px; max-height: 420px; }
.event-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.event-meta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.event-meta-item { font-size: .82rem; color: var(--light-text-2); background: rgba(45,68,141,.07); padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(45,68,141,.12); }

/* ============================================================
   SUBMIT CTA
   ============================================================ */
#submit { background: linear-gradient(135deg, var(--deep-navy) 0%, var(--navy) 100%); overflow: hidden; text-align: center; }
.submit-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.submit-glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(45,68,141,0.18) 0%, transparent 70%); animation: glowPulse 4s ease-in-out infinite; }
@keyframes glowPulse { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0.8;} 50%{transform:translate(-50%,-50%) scale(1.2);opacity:1;} }
.submit-eyebrow { font-size: 0.8rem; font-weight: 600; color: var(--cyan); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 24px; }
.submit-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; }
.submit-title .accent { background: linear-gradient(135deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.submit-desc { font-size: 1.05rem; color: var(--text-secondary); line-height: 2; margin-bottom: 48px; font-weight: 300; }
.submit-features { display: flex; justify-content: center; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.submit-feature { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-secondary); }
.submit-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.btn-submit-large { padding: 20px 56px; border-radius: 50px 0px; background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%); color: #fff; font-family: 'Vazirmatn', sans-serif; font-size: 1.1rem; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 12px 50px rgba(45,68,141,0.5); transition: all 0.3s; text-decoration: none; display: inline-block; }
.btn-submit-large:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 60px rgba(0,178,186,0.6); }

/* ============================================================
   PARTNERS  (redesigned dual marquee)
   ============================================================ */
#partners { background: var(--deep-navy); overflow: hidden; }
.partners-inner { max-width: 1300px; margin: 0 auto; }
.partners-header { text-align: center; margin-bottom: 56px; }
.partners-marquee {
  display: flex; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-rtl { animation: marqueeRTL 45s linear infinite; }
@keyframes marqueeRTL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.p-card {
  flex-shrink: 0; display: flex; align-items: center; gap: 18px;
  margin-left: 26px;
  padding: 26px 34px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); transition: all 0.35s; cursor: pointer; min-width: 260px;
}
.p-card:hover { border-color: rgba(0,178,186,0.45); background: rgba(45,68,141,0.1); transform: translateY(-5px); box-shadow: 0 16px 40px rgba(6,12,30,0.45); }
.p-logo {
  width: 68px; height: 68px; border-radius: 18px; flex-shrink: 0;
  background: transparent;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  overflow: hidden;
}
.p-logo img { width: 100%; height: 100%; object-fit: contain; }
.p-info { display: flex; flex-direction: column; gap: 5px; }
.p-name { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.p-cat { font-size: 0.78rem; font-weight: 500; color: var(--cyan); }

/* ============================================================
   NEWS
   ============================================================ */
#news { background: var(--navy); overflow: hidden; }
.news-inner { max-width: 1300px; margin: 0 auto; }
.news-header { margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.news-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.news-featured { display: block; text-decoration: none; color: inherit; position: relative; border-radius: 28px; overflow: hidden; background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.4s; }
.news-featured:hover { border-color: rgba(0,178,186,0.3); transform: scale(1.01); }
.news-featured-img { height: 280px; background: linear-gradient(135deg, var(--royal) 0%, var(--blue) 50%, rgba(0,178,186,0.35) 100%); position: relative; overflow: hidden; }
.news-featured-img-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 30% 50%, rgba(0,178,186,0.25) 0%, transparent 50%); }
.news-featured-body { padding: 32px; }
.news-cat { display: inline-block; padding: 4px 14px; border-radius: 100px; font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; background: rgba(0,178,186,0.1); color: var(--cyan); border: 1px solid rgba(0,178,186,0.2); margin-bottom: 16px; }
.news-title-featured { font-size: 1.5rem; font-weight: 700; line-height: 1.4; margin-bottom: 14px; }
.news-excerpt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.8; }
.news-meta { display: flex; align-items: center; gap: 16px; margin-top: 24px; font-size: 0.8rem; color: var(--text-muted); }
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { display: block; text-decoration: none; color: inherit; padding: 24px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.3s; }
.news-item:hover { border-color: rgba(0,178,186,0.3); background: rgba(45,68,141,0.08); transform: translateX(-6px); }
.news-item-title { font-size: 1rem; font-weight: 600; margin: 8px 0; line-height: 1.5; }
.news-item-meta { font-size: 0.78rem; color: var(--text-muted); }
.article-title-link { color: inherit; text-decoration: none; }
.article-title-link:hover { color: var(--blue); }

/* ============================================================
   ARTICLES  (redesigned, light)
   ============================================================ */
#articles { overflow: hidden; }
.articles-inner { max-width: 1300px; margin: 0 auto; position: relative; z-index: 2; }
.articles-header { margin-bottom: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: var(--light-card); border: 1px solid var(--light-border); border-radius: 22px; overflow: hidden; cursor: pointer; transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s; display: flex; flex-direction: column; box-shadow: 0 14px 40px rgba(45,68,141,0.07); }
.article-card:hover { transform: translateY(-8px); box-shadow: 0 28px 60px rgba(45,68,141,0.16); border-color: rgba(45,68,141,0.25); }
.article-cover { height: 170px; position: relative; overflow: hidden; flex-shrink: 0; }
.article-cover-inner { position: absolute; inset: 0; transition: transform 0.6s ease; }
.article-card:hover .article-cover-inner { transform: scale(1.06); }
.ac-1 .article-cover-inner { background: linear-gradient(135deg, #2d448d 0%, #3b5bb5 100%); }
.ac-2 .article-cover-inner { background: linear-gradient(135deg, #0e6f75 0%, #00b2ba 100%); }
.ac-3 .article-cover-inner { background: linear-gradient(135deg, #1a2c5e 0%, #2d448d 60%, #00838a 100%); }
.article-cover-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 75% 25%, rgba(255,255,255,0.22) 0%, transparent 55%), radial-gradient(circle at 15% 85%, rgba(255,255,255,0.1) 0%, transparent 50%); }
.article-cover-label { position: absolute; top: 16px; right: 16px; padding: 5px 14px; border-radius: 100px; font-size: 0.7rem; font-weight: 700; color: #fff; background: rgba(0,0,0,0.22); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.25); }
.article-reading-time { position: absolute; bottom: 16px; left: 16px; font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.9); }
.article-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.article-cat { font-size: 0.72rem; font-weight: 600; letter-spacing: 1px; color: var(--cyan); margin-bottom: 12px; }
.article-title { font-size: 1.1rem; font-weight: 700; line-height: 1.5; color: var(--light-text); margin-bottom: 12px; }
.article-excerpt { font-size: 0.84rem; color: var(--light-text-2); line-height: 1.85; font-weight: 400; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--light-border); }
.article-author { display: flex; align-items: center; gap: 10px; }
.article-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(45,68,141,0.1); border: 1px solid var(--light-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.article-author-name { font-size: 0.8rem; font-weight: 600; color: var(--light-text); }
.article-date { font-size: 0.72rem; color: var(--light-text-3); }
.article-read-more { font-size: 0.78rem; font-weight: 600; color: var(--blue); text-decoration: none; transition: gap 0.3s; white-space: nowrap; }
.article-read-more:hover { color: var(--cyan); }

/* ============================================================
   SINGLE POST (article / news)
   ============================================================ */
.post-section { background: var(--light-bg, #f5f7fb); }
.post-wrap { max-width: 820px; margin: 0 auto; }
.post-cover { width: 100%; border-radius: 22px; overflow: hidden; margin-bottom: 36px; box-shadow: 0 18px 50px rgba(45,68,141,0.12); }
.post-cover img { width: 100%; height: auto; display: block; }
.post-body { font-size: 1.02rem; line-height: 2.05; color: var(--light-text-2); }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--light-text); margin: 38px 0 16px; line-height: 1.5; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; color: var(--light-text); margin: 30px 0 14px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 22px; padding-right: 24px; }
.post-body li { margin-bottom: 10px; }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body img { max-width: 100%; height: auto; border-radius: 16px; margin: 24px 0; }
.post-body blockquote { margin: 24px 0; padding: 16px 22px; border-right: 4px solid var(--cyan); background: rgba(0,178,186,0.06); border-radius: 12px; color: var(--light-text); }
.post-lead { font-size: 1.12rem; line-height: 1.95; color: var(--light-text); font-weight: 500; margin-bottom: 30px; }
.post-meta-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 22px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.post-back { display: inline-flex; margin-top: 44px; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--deep-navy); border-top: 1px solid var(--glass-border); padding: 80px 80px 40px; position: relative; overflow: hidden; z-index: 2; }
footer::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; max-width: 90%; height: 2px; background: linear-gradient(to right, transparent, var(--cyan), transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 50px; margin-bottom: 56px; max-width: 1300px; margin-left: auto; margin-right: auto; }
.footer-logo { display: flex; align-items: center; margin-bottom: 20px; text-decoration: none; }
.footer-logo img { height: 44px; width: auto; display: block; }
.footer-brand-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 2; max-width: 300px; font-weight: 300; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-link { width: 40px; height: 40px; border-radius: 10px; background: var(--glass); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; font-size: 1rem; text-decoration: none; color: var(--text-secondary); transition: all 0.3s; cursor: pointer; }
.social-link:hover { background: rgba(45,68,141,0.18); border-color: var(--cyan); transform: translateY(-4px); color: #fff; }
.contact-info { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.contact-icon { font-size: 1rem; flex-shrink: 0; }
.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-secondary); text-decoration: none; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--cyan); }
.newsletter-form { display: flex; overflow: hidden; border-radius: 100px; border: 1px solid var(--glass-border); background: var(--glass); margin-top: 8px; }
.newsletter-input { flex: 1; padding: 12px 20px; background: transparent; border: none; outline: none; color: #fff; font-family: 'Vazirmatn', sans-serif; font-size: 0.85rem; text-align: right; }
.newsletter-input::placeholder { color: var(--text-muted); }
.newsletter-btn { padding: 10px 20px; border-radius: 100px; background: linear-gradient(135deg, var(--blue), var(--cyan)); border: none; color: #fff; cursor: pointer; font-family: 'Vazirmatn', sans-serif; font-size: 0.82rem; font-weight: 600; margin: 4px; transition: transform 0.3s; }
.newsletter-btn:hover { transform: scale(1.05); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--glass-border); font-size: 0.82rem; color: var(--text-muted); max-width: 1300px; margin: 0 auto; gap: 16px; flex-wrap: wrap; }
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--cyan); }
.footer-legal { display: flex; gap: 24px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.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; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-hero { position: relative; padding: 180px 80px 90px; overflow: hidden; background: linear-gradient(180deg, var(--deep-navy) 0%, var(--navy) 100%); text-align: center; }
.page-hero .hero-grid { opacity: 0.6; }
.page-hero-inner { position: relative; z-index: 3; max-width: 820px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; letter-spacing: -1px; margin-bottom: 18px; line-height: 1.15; }
.page-hero h1 span { background: linear-gradient(135deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { font-size: 1.05rem; color: var(--text-secondary); line-height: 2; font-weight: 300; max-width: 620px; margin: 0 auto; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--cyan); text-decoration: none; }

/* generic content prose */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { font-size: 1.02rem; color: var(--text-secondary); line-height: 2.2; margin-bottom: 22px; font-weight: 300; }
.prose h3 { font-size: 1.5rem; font-weight: 800; margin: 40px 0 16px; }
.prose h3 span { color: var(--cyan); }

/* feature grid (services / about values) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; }
.feature-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 34px 30px; transition: all 0.4s; }
.feature-card:hover { transform: translateY(-8px); border-color: rgba(0,178,186,0.4); background: rgba(45,68,141,0.08); }
.feature-icon { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--royal), var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 22px; }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.feature-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.9; font-weight: 300; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; max-width: 1100px; margin: 0 auto; align-items: start; }
.contact-form { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-group input, .form-group textarea { width: 100%; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); color: #fff; font-family: 'Vazirmatn', sans-serif; font-size: 0.92rem; outline: none; transition: border-color 0.3s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input[type="file"] { padding: 11px 14px; cursor: pointer; color: var(--text-secondary); }
.form-group input[type="file"]::file-selector-button { font-family: 'Vazirmatn', sans-serif; margin-left: 12px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(0,178,186,0.12); color: #fff; cursor: pointer; transition: background 0.3s; }
.form-group input[type="file"]::file-selector-button:hover { background: rgba(0,178,186,0.25); }
.form-alert { padding: 14px 18px; border-radius: 14px; margin-bottom: 22px; font-size: 0.9rem; font-weight: 500; border: 1px solid transparent; }
.form-alert-success { background: rgba(0,178,186,0.12); border-color: rgba(0,178,186,0.4); color: #6fe3e8; }
.form-alert-error { background: rgba(220,70,90,0.12); border-color: rgba(220,70,90,0.4); color: #ff97a6; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-box { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 18px; padding: 26px; }
.contact-box h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.contact-box p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.9; font-weight: 300; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  section { padding: 80px 40px; }
  .page-hero { padding: 150px 40px 70px; }
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr 1fr; }
  .events-cards { grid-template-columns: 1fr 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  header { padding: 14px 28px; }
  header.scrolled { padding: 12px 28px; }
  nav { display: none; }
  .header-actions .btn-submit { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 30px; }
}

@media (max-width: 720px) {
  section { padding: 64px 22px; }
  footer { padding: 60px 24px 32px; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .domains-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .events-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .logo-title { font-size: 0.92rem; }
  .logo-sub { font-size: 0.56rem; }
  .hero-stats { flex-wrap: wrap; gap: 18px 36px; padding: 0 20px; bottom: 28px; }
  .hero-stat-num { font-size: 1.7rem; }
  .about-milestones { grid-template-columns: 1fr; }
  .events-header, .news-header, .articles-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .lotus-hero { width: 460px; height: 460px; }
  .p-card { min-width: 200px; }
}
