/* ============================================================
   kaienderes.com — Design System v2
   Manifesto. Raw. Premium. Not corporate. Alive.
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors — deep dark with warm accents */
  --bg-primary: #08080e;
  --bg-secondary: #0e0e16;
  --bg-surface: #14141e;
  --bg-surface-hover: #1a1a28;
  --bg-glass: rgba(14, 14, 22, 0.8);
  --bg-glass-light: rgba(20, 20, 30, 0.6);

  --text-primary: #eae8e4;
  --text-secondary: #a09da6;
  --text-muted: #5e5c66;
  --text-inverse: #08080e;

  --accent: #2563eb;
  --accent-dim: rgba(37, 99, 235, 0.12);
  --accent-glow: rgba(37, 99, 235, 0.06);
  --accent-light: #60a5fa;
  --accent-rgb: 37, 99, 235;

  --border: #22222e;
  --border-subtle: #1a1a24;
  --border-accent: rgba(37, 99, 235, 0.3);

  --success: #22c55e;
  --tag-axiom: #60a5fa;
  --tag-tech: #8b9dc3;
  --tag-personal: #a78bfa;
  --tag-islam: #34d399;
  --tag-politics: #f87171;

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-blog: 720px;
  --nav-height: 60px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-glacial: 800ms cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.08);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--text-primary); }

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { color: var(--text-secondary); margin-bottom: var(--space-md); }

.text-accent { color: var(--accent-light); }
.text-muted { color: var(--text-muted); }
.text-serif { font-family: var(--font-serif); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-xl); }
.container--narrow { max-width: var(--max-width-narrow); }
.container--blog { max-width: var(--max-width-blog); }
.section { padding: var(--space-5xl) 0; }
.section--tight { padding: var(--space-3xl) 0; }

/* ======================== NAVIGATION ======================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 8, 14, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}
.nav--scrolled {
  background: rgba(8, 8, 14, 0.92);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 1px 30px rgba(0,0,0,0.3);
}

.nav__inner {
  max-width: var(--max-width); margin: 0 auto;
  padding: 0 var(--space-xl); height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav__logo {
  height: 30px; width: auto; opacity: 0.85;
  transition: opacity var(--transition-fast);
}
.nav__logo:hover { opacity: 1; }

.nav__links {
  display: flex; align-items: center;
  gap: var(--space-lg); list-style: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}
.nav__link:hover, .nav__link--active { color: var(--text-primary); }

/* ======================== LANGUAGE DROPDOWN ======================== */
.lang-dropdown { position: relative; margin-left: var(--space-sm); }

.lang-dropdown__toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted); font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition-fast);
}
.lang-dropdown__toggle:hover {
  border-color: var(--accent); color: var(--text-primary);
}
.lang-dropdown__caret {
  font-size: 0.5rem;
  transition: transform var(--transition-fast);
}
.lang-dropdown--open .lang-dropdown__caret { transform: rotate(180deg); }

.lang-dropdown__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 190px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000; padding: 4px;
  max-height: 360px; overflow-y: auto;
}
.lang-dropdown--open .lang-dropdown__menu {
  opacity: 1; visibility: visible;
  transform: translateY(0) scale(1);
}

.lang-dropdown__item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 7px 12px;
  border: none; background: transparent;
  color: var(--text-secondary); font-family: var(--font-heading);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; border-radius: 6px;
  transition: all var(--transition-fast);
  text-align: left;
}
.lang-dropdown__item:hover {
  background: var(--accent-dim);
  color: var(--text-primary);
}
.lang-dropdown__item[data-set-lang].nav__lang-btn--active {
  background: var(--accent); color: #fff;
}
.lang-dropdown__native {
  color: var(--text-muted); font-size: 0.68rem; margin-left: auto;
}
.lang-dropdown__divider {
  height: 1px; background: var(--border-subtle); margin: 3px 10px;
}

/* Mobile lang buttons */
.nav__lang-btn {
  font-family: var(--font-heading);
  font-size: 0.68rem; font-weight: 600;
  padding: 4px 8px; border: none;
  background: transparent; color: var(--text-muted);
  cursor: pointer; border-radius: 4px;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}
.nav__lang-btn:hover { color: var(--text-secondary); }
.nav__lang-btn--active { background: var(--accent); color: #fff; }

/* Mobile nav */
.nav__hamburger {
  display: none; background: none; border: none;
  color: var(--text-primary); font-size: 1.2rem;
  cursor: pointer; padding: var(--space-sm);
}

.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  backdrop-filter: blur(20px);
}
.nav__mobile--open { display: block; }

.nav__mobile-link {
  display: block; font-family: var(--font-heading);
  font-size: 1rem; font-weight: 500;
  color: var(--text-secondary); padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.nav__mobile-link:hover { color: var(--text-primary); }

.nav__mobile-langs {
  display: flex; flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md); padding-top: var(--space-md);
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .lang-dropdown { display: none; }
  .nav__hamburger { display: block; }
}

/* ======================== HERO ======================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(37, 99, 235, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 10%, rgba(20, 184, 166, 0.02) 0%, transparent 40%),
    var(--bg-primary);
  z-index: 0;
}

/* Subtle grain texture */
.hero__bg::after {
  content: '';
  position: absolute; inset: 0; opacity: 0.025;
  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)'/%3E%3C/svg%3E");
}

/* Floating grid lines */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.hero__content {
  position: relative; z-index: 1;
  text-align: center; max-width: 820px;
}

.hero__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 400; font-style: italic;
  color: var(--text-primary);
  line-height: 1.9; margin-bottom: var(--space-3xl);
  opacity: 0.9; letter-spacing: 0.01em;
}

.hero__quote::before {
  content: '„';
  display: block;
  font-size: 3.5rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
  font-style: normal;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.hero__role {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}
.hero__role a {
  color: var(--accent-light); font-weight: 500;
}

.hero__langs {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: var(--space-2xl);
  opacity: 0.5;
}

.hero__cta-group {
  display: flex; gap: var(--space-md);
  justify-content: center; flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute; bottom: var(--space-2xl);
  left: 50%; transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 0.7rem; letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-down 2.5s ease-in-out infinite;
}
.hero__scroll-hint::after {
  content: '';
  display: block; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  margin: var(--space-sm) auto 0;
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.7; transform: translateX(-50%) translateY(5px); }
}

/* ======================== BUTTONS ======================== */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.05em;
  padding: 11px 26px;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-base);
  text-transform: uppercase; text-decoration: none;
}
.btn--primary {
  background: var(--accent); color: #fff;
}
.btn--primary:hover {
  background: #3b82f6; color: #fff;
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

/* ======================== SECTION HEADERS ======================== */
.section-header { text-align: center; margin-bottom: var(--space-3xl); }
.section-header__label {
  font-family: var(--font-heading);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-sm);
}
.section-header__title { margin-bottom: var(--space-md); }
.section-header__subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto;
}
.section-header__line {
  width: 32px; height: 2px;
  background: var(--accent);
  margin: var(--space-lg) auto 0;
  opacity: 0.4;
}

/* ======================== ABOUT ======================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about__text p {
  font-size: 1.05rem; line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.about__facts {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: sticky; top: calc(var(--nav-height) + var(--space-xl));
}

.about__facts-title {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.about__fact {
  display: flex; align-items: center;
  gap: var(--space-md); padding: var(--space-sm) 0;
  color: var(--text-secondary); font-size: 0.92rem;
}
.about__fact + .about__fact {
  border-top: 1px solid var(--border-subtle);
}

.about__fact-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

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

/* ======================== AXIOM ======================== */
.axiom-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

/* Subtle accent glow behind section */
.axiom-section::before {
  content: '';
  position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.axiom__content {
  max-width: 680px; margin: 0 auto;
  position: relative;
}
.axiom__content p {
  font-size: 1.05rem; line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.axiom__link {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  color: var(--accent-light); font-weight: 600;
  margin-top: var(--space-md);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}
.axiom__link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* ======================== GALLERY ======================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}
.gallery__grid > :first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.gallery__grid > :first-child .gallery__img { aspect-ratio: auto; }

.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition-slow);
  filter: brightness(0.8) saturate(0.85);
}
.gallery__item:hover .gallery__img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1);
}

.gallery__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,14,0.5) 0%, transparent 40%);
  pointer-events: none; opacity: 0;
  transition: opacity var(--transition-base);
}
.gallery__item:hover .gallery__overlay { opacity: 1; }

@media (max-width: 768px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid > :first-child { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 480px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid > :first-child { grid-column: span 1; }
}

/* ======================== GALLERY MODAL ======================== */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-xl);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(8px);
}
.modal--open { opacity: 1; pointer-events: all; }

.modal__img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius-md);
}
.modal__close {
  position: absolute; top: var(--space-xl); right: var(--space-xl);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: white; width: 44px; height: 44px;
  border-radius: 50%; font-size: 1.1rem;
  cursor: pointer; transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center;
}
.modal__close:hover { background: rgba(255,255,255,0.15); }

/* ======================== PROJECTS ======================== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  max-width: 900px; margin: 0 auto;
}
.projects__grid--three {
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-md);
}

.project-card--hero {
  max-width: 900px; margin: 0 auto;
}

.project-card {
  display: flex; align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}
.project-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.project-card--featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.project-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.project-card__icon--axiom { background: var(--accent-dim); color: var(--accent-light); }
.project-card__icon--islam { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.project-card__icon--harp { background: rgba(96, 165, 250, 0.1); color: var(--accent-light); }
.project-card__icon--kaiprod { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

.project-card__info { flex: 1; min-width: 0; }
.project-card__name {
  font-family: var(--font-heading);
  font-size: 0.95rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 2px;
}
.project-card__desc {
  font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0;
}
.project-card__arrow {
  color: var(--text-muted); font-size: 0.8rem;
  flex-shrink: 0; transition: all var(--transition-fast);
}
.project-card:hover .project-card__arrow {
  transform: translateX(4px); color: var(--accent-light);
}

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

/* ======================== FOOTER ======================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__brand-desc {
  font-size: 0.88rem; color: var(--text-muted);
  margin-bottom: var(--space-lg);
}
.footer__socials { display: flex; gap: var(--space-md); }
.footer__social-link {
  color: var(--text-muted); font-size: 1rem;
  transition: color var(--transition-fast);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.footer__social-link:hover {
  color: var(--accent-light);
  border-color: var(--border-accent);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: var(--space-lg);
}
.footer__link {
  display: block; font-size: 0.88rem;
  color: var(--text-secondary); padding: 4px 0;
  transition: color var(--transition-fast);
}
.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-lg);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: var(--space-md);
}
.footer__copy { font-size: 0.78rem; color: var(--text-muted); }
.footer__bottom-links { display: flex; gap: var(--space-lg); }
.footer__bottom-link { font-size: 0.78rem; color: var(--text-muted); }
.footer__bottom-link:hover { color: var(--text-secondary); }

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

/* ======================== BLOG LISTING ======================== */
.blog-list {
  display: flex; flex-direction: column; gap: var(--space-lg);
}

.blog-card {
  display: block;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}
.blog-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.blog-card__meta {
  display: flex; align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.78rem; color: var(--text-muted);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}
.blog-card:hover .blog-card__title { color: var(--accent-light); }

.blog-card__excerpt {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: var(--space-md);
}

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

.tag {
  font-family: var(--font-heading);
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; border: 1px solid;
}
.tag--axiom { color: var(--tag-axiom); border-color: rgba(96,165,250,0.25); background: rgba(96,165,250,0.06); }
.tag--tech { color: var(--tag-tech); border-color: rgba(139,157,195,0.25); background: rgba(139,157,195,0.06); }
.tag--personal { color: var(--tag-personal); border-color: rgba(167,139,250,0.25); background: rgba(167,139,250,0.06); }
.tag--islam { color: var(--tag-islam); border-color: rgba(52,211,153,0.25); background: rgba(52,211,153,0.06); }
.tag--politics { color: var(--tag-politics); border-color: rgba(248,113,113,0.25); background: rgba(248,113,113,0.06); }

/* ======================== BLOG ARTICLE ======================== */
.article {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}
.article__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}
.article__meta {
  font-size: 0.82rem; color: var(--text-muted);
  margin-bottom: var(--space-md);
}
.article__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md); line-height: 1.3;
}
.article__tags {
  display: flex; justify-content: center;
  gap: var(--space-xs); flex-wrap: wrap;
}

.article__body {
  font-size: 1.05rem; line-height: 1.9;
  color: var(--text-secondary);
}
.article__body h2 {
  margin-top: var(--space-3xl); margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}
.article__body h3 {
  margin-top: var(--space-2xl); margin-bottom: var(--space-md);
  font-size: 1.2rem;
}
.article__body p { margin-bottom: var(--space-lg); }

.article__body blockquote {
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-xl);
  margin: var(--space-2xl) 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-primary);
}

.article__body ul, .article__body ol {
  margin-bottom: var(--space-lg); padding-left: var(--space-xl);
}
.article__body li {
  margin-bottom: var(--space-sm); color: var(--text-secondary);
}
.article__body strong { color: var(--text-primary); font-weight: 600; }

.article__body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: var(--accent-dim);
  color: var(--accent-light);
  padding: 2px 6px; border-radius: 4px;
}

.article__body a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  transition: text-decoration-color var(--transition-fast);
}
.article__body a:hover { text-decoration-color: var(--accent-light); }

.article__back {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  color: var(--text-muted); font-size: 0.85rem;
  margin-bottom: var(--space-2xl);
  transition: color var(--transition-fast);
}
.article__back:hover { color: var(--accent-light); }

/* ======================== PAGINATION ======================== */
.pagination {
  display: flex; justify-content: center;
  align-items: center; gap: var(--space-sm);
  margin-top: var(--space-3xl);
}
.pagination__btn {
  font-family: var(--font-heading);
  font-size: 0.78rem; padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-fast);
}
.pagination__btn:hover:not(:disabled) {
  border-color: var(--border-accent); color: var(--text-primary);
}
.pagination__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.pagination__btn--active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ======================== i18n ======================== */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
span[data-lang].lang-active,
a[data-lang].lang-active { display: inline; }

/* ======================== UTILITIES ======================== */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--transition-glacial), transform var(--transition-glacial);
}
.fade-in--visible { opacity: 1; transform: translateY(0); }

[id] { scroll-margin-top: calc(var(--nav-height) + var(--space-xl)); }

/* ======================== RTL SUPPORT ======================== */
[dir="rtl"] .hero__quote::before { content: '"'; }
[dir="rtl"] .article__body blockquote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
