/* ============================================
   Aghazjah — Premium Landing Page Styles
   ============================================ */

/* --- CSS Variables & Theme --- */
:root {
  --gold: #D4AF37;
  --gold-light: #F5E6A3;
  --gold-dark: #B8962E;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --white: #FFFFFF;
  --black: #0A0A0F;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-fa: 'Vazirmatn', 'Inter', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --header-island-height: 58px;
  --header-float-gap: 1rem;
  --header-offset: calc(var(--header-island-height) + var(--header-float-gap) + 1.5rem);
  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 7rem);
}

/* Light Theme (default) */
[data-theme="light"],
:root {
  --bg-primary: #F8F7F4;
  --bg-secondary: #FFFFFF;
  --bg-gradient: linear-gradient(135deg, #F8F7F4 0%, #EDE9E0 50%, #F5F0E8 100%);

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A68;
  --text-muted: #7A7A96;

  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.1);

  --bubble-color: rgba(212, 175, 55, 0.12);
  --bubble-border: rgba(212, 175, 55, 0.2);

  --nav-bg: rgba(255, 255, 255, 0.7);
  --notice-bg: rgba(212, 175, 55, 0.08);
  --notice-border: rgba(212, 175, 55, 0.25);

  --btn-secondary-bg: rgba(255, 255, 255, 0.5);
  --btn-secondary-border: rgba(212, 175, 55, 0.4);
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-gradient: linear-gradient(135deg, #0A0A0F 0%, #12121A 50%, #1A1A24 100%);

  --text-primary: #F0F0F5;
  --text-secondary: #B0B0C8;
  --text-muted: #6A6A82;

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.5);

  --bubble-color: rgba(212, 175, 55, 0.06);
  --bubble-border: rgba(212, 175, 55, 0.12);

  --nav-bg: rgba(10, 10, 15, 0.8);
  --notice-bg: rgba(212, 175, 55, 0.06);
  --notice-border: rgba(212, 175, 55, 0.2);

  --btn-secondary-bg: rgba(255, 255, 255, 0.05);
  --btn-secondary-border: rgba(212, 175, 55, 0.3);
}

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

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

html[lang="fa"] body {
  font-family: var(--font-fa);
}

html[lang="fa"] h1,
html[lang="fa"] h2,
html[lang="fa"] h3 {
  font-family: var(--font-fa);
}

html[lang="en"] body {
  font-family: var(--font-sans);
}

html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 {
  font-family: var(--font-display);
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition-slow), color var(--transition-base);
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.text-gold {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  inset-inline-start: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: var(--black);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Glass Card System --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
  border-color: rgba(212, 175, 55, 0.25);
}

.glass-card--sm {
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
}

.glass-card--prominent {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-color: rgba(212, 175, 55, 0.2);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow), 0 0 60px var(--gold-glow);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: var(--black);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
  color: var(--black);
}

.btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--text-primary);
  border: 1px solid var(--btn-secondary-border);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--gold);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 100px;
}

.badge--community {
  background: rgba(76, 175, 80, 0.12);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.25);
}

.badge--business {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] .badge--community {
  color: #81C784;
}

/* --- Notice --- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.notice__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}

.notice strong {
  color: var(--gold);
}

/* --- Background Bubbles --- */
.bubble-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--bubble-color);
  border: 1px solid var(--bubble-border);
  backdrop-filter: blur(2px);
  animation: floatBubble var(--duration, 20s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.bubble--1 { width: 300px; height: 300px; top: 10%; left: -5%; --duration: 25s; --delay: 0s; }
.bubble--2 { width: 200px; height: 200px; top: 60%; right: -3%; --duration: 20s; --delay: -5s; }
.bubble--3 { width: 150px; height: 150px; top: 30%; right: 20%; --duration: 18s; --delay: -8s; }
.bubble--4 { width: 100px; height: 100px; top: 80%; left: 15%; --duration: 22s; --delay: -3s; }
.bubble--5 { width: 250px; height: 250px; top: 45%; left: 40%; --duration: 28s; --delay: -12s; opacity: 0.5; }
.bubble--6 { width: 80px; height: 80px; top: 15%; right: 35%; --duration: 16s; --delay: -6s; }
.bubble--7 { width: 120px; height: 120px; top: 70%; left: 60%; --duration: 24s; --delay: -10s; }
.bubble--8 { width: 60px; height: 60px; top: 50%; left: 10%; --duration: 15s; --delay: -2s; }

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

/* --- Header / Floating Island Navigation --- */
.header {
  position: fixed;
  top: var(--header-float-gap);
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(0.75rem, 3vw, 1.25rem);
  pointer-events: none;
  background: transparent;
  border: none;
  height: auto;
}

.header__island {
  position: relative;
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  padding: 0.35rem 0.5rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--nav-bg);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .header__island {
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header--scrolled .header__island {
  border-color: rgba(212, 175, 55, 0.18);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.14),
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .header--scrolled .header__island {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(212, 175, 55, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-island-height);
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  flex-shrink: 0;
}

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

.nav__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.nav__logo-fa {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.9em;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.45rem 0.85rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.lang-toggle {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-toggle__btn {
  padding: 0.4rem 0.75rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-toggle__btn:hover {
  color: var(--text-primary);
}

.lang-toggle__btn.is-active {
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 10px var(--gold-glow);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  position: absolute;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--header-offset) 0 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

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

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

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.notice--hero {
  max-width: 540px;
}

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero__illustration {
  position: relative;
  width: 320px;
  height: 320px;
}

.hero__core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coreGlow 4s ease-in-out infinite;
}

.hero__core svg {
  width: 200px;
  height: 200px;
}

@keyframes coreGlow {
  0%, 100% { filter: drop-shadow(0 0 20px var(--gold-glow)); }
  50% { filter: drop-shadow(0 0 40px var(--gold-glow)); }
}

.hero__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  animation: orbitSpin linear infinite;
}

.hero__orbit--1 { inset: 10px; animation-duration: 20s; }
.hero__orbit--2 { inset: 40px; animation-duration: 15s; animation-direction: reverse; }
.hero__orbit--3 { inset: 70px; animation-duration: 25s; }

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

.hero__orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.hero__float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  animation: floatCard 6s ease-in-out infinite;
}

.hero__float-card--1 { top: 5%; inset-inline-end: 0; animation-delay: 0s; }
.hero__float-card--2 { bottom: 20%; inset-inline-start: -5%; animation-delay: -2s; }
.hero__float-card--3 { top: 40%; inset-inline-end: -10%; animation-delay: -4s; }

.hero__float-icon {
  font-size: 1.25rem;
}

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

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

/* --- About Section --- */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.about__content {
  padding: clamp(2rem, 4vw, 3rem);
}

.about__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about__feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.about__feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.about__feature h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.about__feature p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about__stat {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about__stat:first-child {
  grid-column: 1 / -1;
}

.about__stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
}

.about__stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Initiatives Section --- */
.initiatives__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
}

.initiative-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.initiative-card:hover {
  transform: translateY(-4px);
}

.initiative-card--featured {
  border-color: rgba(212, 175, 55, 0.25);
  background: var(--glass-bg);
}

.initiative-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.initiative-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.initiative-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

.initiative-card__title {
  font-size: 1.5rem;
}

.initiative-card__desc {
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.initiative-card__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
  margin-top: auto;
}

.initiative-card__notice svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  opacity: 0.7;
}

/* --- Status / Timeline Section --- */
.status {
  background: transparent;
}

.timeline {
  position: relative;
  margin-bottom: 3rem;
}

.timeline__track {
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 50%;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

[dir="rtl"] .timeline__track {
  transform: translateX(50%);
}

.timeline__progress {
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  border-radius: 2px;
  transition: height 1s ease;
}

.timeline__items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.timeline__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item:nth-child(odd) .timeline__card {
  grid-column: 1;
  text-align: end;
}

.timeline__item:nth-child(even) .timeline__card {
  grid-column: 3;
  text-align: start;
}

.timeline__dot {
  grid-column: 2;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--glass-border);
  z-index: 2;
  transition: all var(--transition-base);
}

.timeline__item--active .timeline__dot {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}

.timeline__card {
  padding: 1.5rem;
  max-width: 400px;
}

.timeline__item:nth-child(odd) .timeline__card {
  justify-self: end;
}

.timeline__item:nth-child(even) .timeline__card {
  justify-self: start;
}

/* RTL layout adjustments */
[dir="rtl"] .hero__subtitle,
[dir="rtl"] .notice--hero {
  margin-inline: 0;
}

[dir="rtl"] .about__feature h3,
[dir="rtl"] .timeline__card h3,
[dir="rtl"] .initiative-card__title {
  font-family: var(--font-fa);
}

[dir="ltr"] .hero__content {
  text-align: start;
}

[dir="rtl"] .hero__content {
  text-align: start;
}

@media (min-width: 1025px) {
  [dir="rtl"] .hero__inner {
    direction: rtl;
  }

  [dir="ltr"] .hero__inner {
    direction: ltr;
  }
}

.timeline__status {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.timeline__card h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.status__note {
  text-align: center;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Transparency Section --- */
.transparency__panel {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.transparency__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.transparency__icon svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

.transparency__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.transparency__text {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Contact Section --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.contact__info,
.contact__cta {
  padding: clamp(2rem, 3vw, 2.5rem);
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact__item-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  flex-shrink: 0;
}

.contact__item-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.contact__item h3 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact__item a {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact__item a:hover {
  color: var(--gold);
}

.contact__social h3 {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.contact__social-links {
  display: flex;
  gap: 0.75rem;
}

.contact__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  transition: all var(--transition-base);
  color: var(--text-secondary);
}

.contact__social-link svg {
  width: 18px;
  height: 18px;
}

.contact__social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.contact__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
}

.contact__cta p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 5vw, 4rem) 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  margin-bottom: 1rem;
}

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

.footer__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.footer__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer__links-title {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

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

.footer__copyright {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.footer__disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Scroll Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
[data-animate].is-visible .about__feature:nth-child(1) { transition-delay: 0.1s; }
[data-animate].is-visible .about__feature:nth-child(2) { transition-delay: 0.2s; }
[data-animate].is-visible .about__feature:nth-child(3) { transition-delay: 0.3s; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .notice--hero {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__visual {
    min-height: 300px;
    order: -1;
  }

  .hero__illustration {
    width: 260px;
    height: 260px;
  }

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

  .about__visual {
    order: -1;
  }

  .timeline__item {
    grid-template-columns: auto 1fr;
    gap: 1rem;
  }

  .timeline__track {
    inset-inline-start: 8px;
    transform: none;
  }

  .timeline__dot {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline__item:nth-child(odd) .timeline__card,
  .timeline__item:nth-child(even) .timeline__card {
    grid-column: 2;
    text-align: start;
    justify-self: start;
    max-width: none;
  }

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

  .footer__legal {
    grid-column: 1 / -1;
  }
}

/* --- Responsive: Mobile --- */
@media (max-width: 768px) {
  .nav__controls {
    order: 3;
  }

  .nav__toggle {
    display: flex;
    order: 2;
  }

  .header__island {
    padding: 0.35rem 0.5rem 0.35rem 0.75rem;
  }

  .nav__logo-text {
    font-size: 1rem;
  }

  .nav__logo-fa {
    display: none;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 0.625rem);
    inset-inline: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    gap: 0.25rem;
  }

  .nav__menu.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: center;
  }

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

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

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

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

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

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__status {
    justify-content: center;
  }

  .hero__float-card--3 {
    display: none;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .hero__illustration {
    width: 220px;
    height: 220px;
  }

  .hero__float-card {
    display: none;
  }

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

  .about__stat:first-child {
    grid-column: 1;
  }
}

/* --- Non-Profit Subpage --- */
.subpage-hero {
  padding: var(--header-offset) 0 3rem;
  text-align: center;
}

.subpage-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
}

.subpage-hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subpage-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.subpage-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color var(--transition-fast);
}

.subpage-hero__back:hover {
  color: var(--gold);
}

.subpage-hero__back svg {
  width: 18px;
  height: 18px;
}

[dir="rtl"] .subpage-hero__back svg {
  transform: scaleX(-1);
}

.np-about {
  padding-bottom: 2rem;
}

.np-about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.np-pillar {
  padding: 1.75rem;
  text-align: center;
}

.np-pillar__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.22);
  font-size: 1.5rem;
}

.np-pillar h3 {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.np-pillar p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.np-projects__intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}

.project-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card__visual {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.25);
  flex-shrink: 0;
}

.project-card__visual svg {
  width: 40px;
  height: 40px;
  color: var(--gold);
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.project-card__domain {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.project-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-card__desc {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.project-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-card__feature {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 100px;
}

.project-card__notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--glass-border);
}

.project-card__notice svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  opacity: 0.7;
}

.np-coming {
  text-align: center;
  padding: 2rem;
  margin-top: 1.5rem;
  max-width: 880px;
  margin-inline: auto;
}

.np-coming p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .np-about__grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .project-card__visual {
    margin: 0 auto;
  }

  .project-card__meta,
  .project-card__features {
    justify-content: center;
  }
}