/* ============================================================
   KHALID SAIFULLAH — PERSONAL WEBSITE
   Premium dark theme · Deep navy + soft gold
   ------------------------------------------------------------
   CUSTOMIZE QUICKLY:
   • Accent color  → change --accent below
   • Fonts         → swap the Google Fonts link in header.php
   • Section gaps  → --section-pad
============================================================ */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  --bg:          #0a0f1e;
  --bg-soft:     #0d1425;
  --surface:     #111a2f;
  --surface-2:   #16203a;
  --text:        #edf0f8;
  --muted:       #93a0be;
  --accent:      #d4af6e;              /* soft gold */
  --accent-soft: rgba(212, 175, 110, 0.12);
  --accent-line: rgba(212, 175, 110, 0.32);
  --border:      rgba(255, 255, 255, 0.07);
  --shadow:      0 18px 44px rgba(2, 6, 18, 0.5);
  --shadow-sm:   0 8px 24px rgba(2, 6, 18, 0.4);
  --nav-bg:      rgba(10, 15, 30, 0.72);
  --nav-bg-2:    rgba(10, 15, 30, 0.88);
  --panel-bg:    rgba(17, 26, 47, 0.97);

  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1160px;
  --section-pad: 110px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 74px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --transition: 0.35s var(--ease);
}

/* ---------- 2. RESET & BASE ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Page transition (JS toggles .page-leave before navigation) */
body { opacity: 0; animation: pageIn 0.5s var(--ease-out) forwards; }
body.page-leave { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.22s ease, transform 0.22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

img { max-width: 100%; display: block; }
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s var(--ease-out); }
img.loaded, img[loading="lazy"].loaded { opacity: 1; }
video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #14100a; }
[data-theme="light"] ::selection { background: var(--accent); color: #fff; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 26px; }
.narrow { max-width: 760px; }

.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-soft); }

h1, h2, h3, .serif { font-family: var(--font-display); }

/* Ambient page glow used at the top of inner pages */
.page-glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 480px;
  background: radial-gradient(ellipse, rgba(212,175,110,0.13), transparent 65%);
  pointer-events: none;
}

/* ---------- 3. SECTION HEADERS ---------- */
.sec-head { max-width: 620px; margin-bottom: 58px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--accent-line); }
.sec-head.center .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--accent-line); }
.sec-title { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.sec-sub { color: var(--muted); margin-top: 16px; font-size: 1.02rem; }

/* ---------- 4. NAVBAR (incl. smart hide) ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: transform 0.45s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: var(--nav-bg-2); }
.nav.nav-hidden { transform: translateY(-102%); }
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo monogram */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #14100a;
  background: linear-gradient(135deg, #e6c888, var(--accent));
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(212, 175, 110, 0.35);
}
.brand-name { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-name span { color: var(--accent); }
.brand-short { display: none; font-weight: 600; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand-short span { color: var(--accent); }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--accent); color: #14100a; box-shadow: 0 8px 22px rgba(212,175,110,0.35); }

/* Premium circular menu button */
.dots-btn {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  place-items: center;
  color: #0b0b0f;
  background:
    radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #f4f4f6 55%, #e9e9ee 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(10, 10, 20, 0.08),
    0 6px 18px rgba(10, 10, 20, 0.10);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease,
    background 0.35s ease;
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
}
.dots-btn::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 119, 255, 0.22), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: -1;
}
.dots-btn:hover,
.dots-btn.open,
.dots-btn.is-open {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 4px rgba(10, 10, 20, 0.10),
    0 12px 28px rgba(10, 10, 20, 0.16);
}
.dots-btn:hover::before,
.dots-btn.open::before,
.dots-btn.is-open::before {
  opacity: 1;
  transform: scale(1);
}
.dots-btn:active {
  transform: translateY(0) scale(0.92);
  transition-duration: 0.1s;
}
.dots-btn .dots-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dots-btn:hover .dots-icon {
  transform: scale(1.08);
}
.dots-btn .line {
  transition:
    transform 0.45s cubic-bezier(0.68, -0.3, 0.32, 1.3),
    opacity 0.3s ease;
  transform-origin: 12px 12px;
}
.dots-btn:hover .line-top    { transform: translateY(-1.2px); }
.dots-btn:hover .line-bottom { transform: translateY(1.2px); }
.dots-btn.open .line-top,
.dots-btn.is-open .line-top {
  transform: translateY(3px) rotate(45deg);
}
.dots-btn.open .line-bottom,
.dots-btn.is-open .line-bottom {
  transform: translateY(-3px) rotate(-45deg);
}
.dots-btn.open,
.dots-btn.is-open {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 6px rgba(10, 10, 20, 0.12),
    0 14px 32px rgba(120, 119, 255, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .dots-btn, .dots-btn * { transition: none !important; }
}

/* Dropdown panel */
.dots-panel {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  right: 18px;
  z-index: 190;
  width: min(320px, calc(100vw - 36px));
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.dots-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.dots-panel a.panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: background 0.22s, color 0.22s;
}
.dots-panel a.panel-link span { font-size: 0.95rem; }
.dots-panel a.panel-link .arrow { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: all 0.25s var(--ease); }
.dots-panel a.panel-link:hover, .dots-panel a.panel-link.active { background: var(--accent-soft); color: var(--text); }
.dots-panel a.panel-link:hover .arrow { opacity: 1; transform: none; }
.panel-divider { height: 1px; background: var(--border); margin: 10px 6px; }

/* ---------- 5. SOCIAL ICONS ---------- */
.soc {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.soc svg { width: 17px; height: 17px; fill: currentColor; }
.soc:hover {
  color: #14100a;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(212, 175, 110, 0.35);
}

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold {
  background: linear-gradient(135deg, #e6c888, var(--accent));
  color: #14100a;
  box-shadow: 0 10px 28px rgba(212, 175, 110, 0.32);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(212, 175, 110, 0.45); }
.btn-ghost { border: 1px solid var(--accent-line); color: var(--accent); }
.btn-ghost:hover { transform: translateY(-3px); background: var(--accent-soft); }

/* ---------- 7. HERO (HOME) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero-bg .g1 { width: 480px; height: 480px; background: rgba(212, 175, 110, 0.16); top: -140px; right: -60px; animation: drift1 16s ease-in-out infinite alternate; }
.hero-bg .g2 { width: 420px; height: 420px; background: rgba(58, 92, 190, 0.18); bottom: -160px; left: -120px; animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-80px, 40px) scale(1.15); } }
@keyframes drift2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(90px, -50px) scale(1.1); } }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, black 25%, transparent 75%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-hello {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid var(--accent-line);
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 26px;
}
.hero-name {
  font-size: clamp(2.7rem, 6.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero-name em {
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(110deg, var(--accent) 25%, #f4e3bb 45%, var(--accent) 65%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.hero-role {
  margin-top: 18px;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}
.hero-role b { color: var(--accent); font-weight: 600; }
.hero-intro { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: 1.03rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-socials { display: flex; gap: 12px; margin-top: 40px; }

/* Profile photo */
.hero-photo { position: relative; justify-self: center; }
.photo-frame {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  background: linear-gradient(145deg, var(--accent-line), transparent 55%);
}
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed var(--accent-line);
  animation: spin 36s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.photo-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  animation: bob 5s ease-in-out infinite;
}
.photo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; }
.badge-1 { bottom: 12%; left: -14%; }
.badge-2 { top: 9%; right: -10%; animation-delay: -2.5s; color: var(--accent); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 1.8s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 56% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 8. QUICK LINK CARDS (HOME) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quick-card {
  position: relative;
  display: block;
  padding: 40px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.quick-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(212,175,110,0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.quick-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-8px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.quick-card:hover::before { opacity: 1; }
.quick-card:active { transform: translateY(-3px); }
.quick-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease);
}
.quick-card:hover .quick-icon { transform: scale(1.08) rotate(-5deg); }
.quick-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.quick-card p { color: var(--muted); font-size: 0.93rem; }
.quick-arrow {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}
.quick-arrow svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.quick-card:hover .quick-arrow svg { transform: translateX(5px); }

/* ---------- 9. POST CARDS (FEED) ---------- */
.feed { columns: 3 300px; column-gap: 26px; }

.post-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.post-card:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-7px); border-color: var(--accent-line); box-shadow: var(--shadow); }

.post-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); will-change: transform; }
.post-media video { width: 100%; height: 100%; object-fit: cover; }
.post-card:hover .post-media img { transform: scale(1.06); }

/* Play badge on video posts */
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(6, 10, 22, 0.25);
  transition: background 0.3s;
}
.post-card:hover .play-badge { background: rgba(6, 10, 22, 0.42); }
.play-badge .circle {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 110, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform 0.35s var(--ease);
}
.post-card:hover .play-badge .circle { transform: scale(1.12); }
.play-badge svg { width: 22px; height: 22px; fill: #14100a; margin-left: 3px; }

.post-body { padding: 24px 24px 20px; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.post-type {
  padding: 3px 11px;
  border-radius: 50px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}
.post-text {
  font-size: 0.97rem;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Status posts get an editorial quote look */
.post-card.status .post-body { padding: 32px 28px 24px; }
.post-card.status .post-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.55;
  -webkit-line-clamp: 7;
}
.post-card.status .quote-mark {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 0.6;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.post-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}
.likes { display: inline-flex; align-items: center; gap: 7px; }
.likes svg { width: 15px; height: 15px; fill: #e0627a; }
.read-more { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.read-more svg { width: 13px; height: 13px; transition: transform 0.3s var(--ease); }
.post-card:hover .read-more svg { transform: translateX(4px); }

/* ---------- 10. INDIVIDUAL POST PAGE ---------- */
.post-page { padding: calc(var(--nav-h) + 70px) 0 var(--section-pad); position: relative; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 36px;
  transition: color 0.25s;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 15px; height: 15px; }

.post-full-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.post-full-meta img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-line); }
.post-full-meta .who b { display: block; font-size: 0.98rem; }
.post-full-meta .who span { font-size: 0.84rem; color: var(--muted); }

.post-full-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.5;
  margin-bottom: 12px;
}

.post-full-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin: 26px 0; }
.post-full-media img, .post-full-media video { width: 100%; }

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.like-btn {
  position: relative;
  overflow: visible;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.like-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill 0.25s, stroke 0.25s, transform 0.25s; }
.like-btn:hover { border-color: #e0627a; color: #e0627a; }
.like-btn.liked { border-color: #e0627a; color: #e0627a; background: rgba(224, 98, 122, 0.1); }
.like-btn.liked svg { fill: #e0627a; stroke: #e0627a; transform: scale(1.15); animation: likePop 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes likePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.burst-heart {
  position: absolute;
  left: 14px; top: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  animation: burst 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.burst-heart:nth-child(odd) { background: #e0627a; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, -50%) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

.share-row { display: flex; align-items: center; gap: 10px; }
.share-row .label { font-size: 0.85rem; color: var(--muted); margin-right: 4px; }
.share-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.28s var(--ease);
}
.share-btn svg { width: 15px; height: 15px; fill: currentColor; }
.share-btn:hover { background: var(--accent); border-color: var(--accent); color: #14100a; transform: translateY(-3px); }

/* Prev / next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.post-nav a {
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.post-nav a:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.post-nav .dir { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.post-nav .t { display: block; margin-top: 6px; font-size: 0.92rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-nav a.next { text-align: right; }
.post-nav a.disabled { opacity: 0.35; pointer-events: none; }

/* ---------- 11. INNER PAGE HERO ---------- */
.page-head {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 70px;
  text-align: center;
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800; letter-spacing: -0.01em; }
.page-head h1 em { font-style: italic; color: var(--accent); }
.page-head p { color: var(--muted); max-width: 540px; margin: 18px auto 0; font-size: 1.04rem; }

/* ---------- 12. ABOUT PAGE ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: center; }
.about-photo { position: relative; max-width: 400px; }
.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent-line);
  border-radius: var(--radius);
  transform: translate(20px, 20px);
}
.about-photo .exp-chip {
  position: absolute;
  z-index: 2;
  bottom: 26px; left: -22px;
  padding: 14px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.exp-chip b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.exp-chip span { font-size: 0.76rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.about-text .lead { font-size: 1.18rem; font-weight: 500; margin-bottom: 18px; }
.about-text p + p { margin-top: 14px; color: var(--muted); }
.about-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.about-facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
}
.about-facts svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; flex-shrink: 0; }
.about-facts b { font-weight: 600; }
.about-facts span { color: var(--muted); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.skill-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.skill-card:hover { transform: translateY(-6px); border-color: var(--accent-line); box-shadow: var(--shadow); }
.skill-card .quick-icon { margin-bottom: 18px; }
.skill-card h3 { font-size: 1.2rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-2px); }

/* Timeline */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 10px;
  width: 1.5px;
  background: linear-gradient(var(--accent), var(--border));
}
.tl-item { position: relative; padding: 0 0 42px 50px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute;
  top: 8px; left: 0;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.tl-card:hover { transform: translateX(6px); border-color: var(--accent-line); }
.tl-date {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 4px 13px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.tl-card h3 { font-size: 1.22rem; font-family: var(--font-body); font-weight: 600; }
.tl-card h4 { font-size: 0.92rem; font-weight: 500; color: var(--accent); margin: 4px 0 12px; }
.tl-card p { font-size: 0.94rem; color: var(--muted); }

/* Education cards */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.edu-card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.edu-card .yr { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.edu-card h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 600; margin: 10px 0 4px; }
.edu-card .org { color: var(--muted); font-size: 0.9rem; }
.edu-card p { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* ---------- 13. CONTACT PAGE ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 18px;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.info-card:hover { border-color: var(--accent-line); transform: translateX(6px); }
.info-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
}
.info-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-card span { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-card a, .info-card b { font-size: 1.02rem; font-weight: 600; transition: color 0.25s; }
.info-card a:hover { color: var(--accent); }

.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.social-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.social-tile svg { width: 22px; height: 22px; fill: currentColor; }
.social-tile:hover { color: var(--accent); border-color: var(--accent-line); transform: translateY(-4px); background: var(--accent-soft); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
}
.form-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-card > p { color: var(--muted); font-size: 0.93rem; margin-bottom: 28px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f-group { margin-bottom: 20px; }
.f-group label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 9px; color: var(--text); }
.f-group input, .f-group textarea {
  width: 100%;
  padding: 14px 18px;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.f-group input:focus, .f-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.f-group textarea { resize: vertical; min-height: 130px; }
/* Email OTP row: input + "Send code" button on one line (contact form) */
.f-otp { display: flex; gap: 10px; align-items: stretch; }
.f-otp input { flex: 1 1 auto; min-width: 0; }
.f-otp .btn { flex: none; padding: 14px 22px; border-radius: 12px; font-size: 0.88rem; white-space: nowrap; }
.f-otp .btn:disabled { opacity: .6; transform: none; cursor: not-allowed; box-shadow: none; }

/* ---------- 14. FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 54px 0 34px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.9rem; color: var(--muted); transition: color 0.25s; }
.footer-nav a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials .soc { width: 38px; height: 38px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-bottom .domain { color: var(--accent); }

/* ---------- 15. REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-stagger] { transition-delay: 0s !important; }
/* .hero .reveal { filter: blur(8px); } */

/* ============================================================
   16. LIGHT THEME  (toggle button in the navbar — sun/moon)
   Default is dark; visitors' choice is remembered.
============================================================ */
[data-theme="light"] {
  --bg:          #f6f4ef;
  --bg-soft:     #ece8de;
  --surface:     #ffffff;
  --surface-2:   #f4f1e9;
  --text:        #182441;
  --muted:       #5c6880;
  --accent:      #a87f2e;
  --accent-soft: rgba(168, 127, 46, 0.12);
  --accent-line: rgba(168, 127, 46, 0.38);
  --border:      rgba(24, 36, 65, 0.1);
  --shadow:      0 18px 44px rgba(24, 36, 65, 0.12);
  --shadow-sm:   0 8px 24px rgba(24, 36, 65, 0.08);
  --nav-bg:      rgba(246, 244, 239, 0.75);
  --nav-bg-2:    rgba(246, 244, 239, 0.92);
  --panel-bg:    #ffffff;
}
[data-theme="light"] .hero-bg .grid-lines {
  background-image:
    linear-gradient(rgba(24, 36, 65, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 36, 65, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .hero-name em {
  background: linear-gradient(120deg, #c69c44, #8a691f);
  -webkit-background-clip: text;
  background-clip: text;
}
[data-theme="light"] .tl-dot { background: var(--bg); }

/* Smooth theme cross-fade on the big surfaces */
body, .section-alt, .footer, .nav, .loader, .dots-panel, .brand-mark {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* ---------- 17. THEME TOGGLE BUTTON (navbar) ---------- */
.theme-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.3s var(--ease);
}
.theme-btn:hover { color: var(--accent); border-color: var(--accent-line); transform: rotate(18deg); }
.theme-btn svg { width: 18px; height: 18px; }
[data-theme="dark"]  .ic-moon { display: none; }
[data-theme="light"] .ic-sun  { display: none; }

/* ---------- 18. BRAND PRELOADER ---------- */
.loader {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  animation: loaderIn 0.55s var(--ease) both;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; } }
.loader-mark {
  width: 66px; height: 66px;
  font-size: 1.55rem;
  border-radius: 18px;
  animation: markPulse 1.15s ease-in-out infinite;
}
@keyframes markPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.loader-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.loader-name em { color: var(--accent); font-style: italic; }
.loader-bar {
  width: 130px; height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar span {
  display: block; height: 100%; width: 40%;
  background: var(--accent);
  animation: barSlide 0.95s var(--ease) infinite;
}
@keyframes barSlide { from { transform: translateX(-130%); } to { transform: translateX(330%); } }

/* ---------- 19. SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 250;
  height: 2.5px; width: 0;
  background: linear-gradient(90deg, #e6c888, var(--accent));
  box-shadow: 0 0 14px rgba(212, 175, 110, 0.55);
  pointer-events: none;
}

/* ---------- 20. BACK TO TOP ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 150;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #e6c888, var(--accent));
  color: #14100a;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  opacity: 0; visibility: hidden;
  transform: translateY(14px);
  transition: all 0.35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-4px); }
.to-top svg { width: 18px; height: 18px; stroke-width: 2.4; }

/* ---------- 21. STATS BAND (HOME) ---------- */
.stats-band {
  padding: 36px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stat span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 22. CTA BANNER (HOME) ---------- */
.cta-banner { position: relative; padding: 110px 0; text-align: center; overflow: hidden; }
.cta-banner::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 760px; height: 420px;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 660px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.01em; }
.cta-inner h2 em { font-style: italic; color: var(--accent); }
.cta-inner p { color: var(--muted); margin: 18px auto 36px; max-width: 460px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 23. FEED FILTER TABS (POSTS PAGE) ---------- */
.feed-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 38px; }
.feed-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.3s var(--ease);
}
.feed-tab:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.feed-tab.active {
  background: linear-gradient(135deg, #e6c888, var(--accent));
  border-color: transparent;
  color: #14100a;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(212, 175, 110, 0.32);
}

/* ---------- 24. TICKER MARQUEE (HOME) ---------- */
.ticker {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tick 30s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick-group { display: flex; align-items: center; }
.tick-item {
  margin-right: 64px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--muted);
  white-space: nowrap;
}
.tick-item i {
  font-style: normal;
  color: var(--accent);
  margin-left: 64px;
  font-size: 0.9rem;
}
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- 25. TOASTS ---------- */
.toast-wrap {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 12px 24px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--accent-line);
  color: var(--text);
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- 26. CURSOR — native pointer everywhere ----------
   The previous custom dot/ring cursor hid the real pointer
   (cursor: none). Removed entirely: the normal desktop mouse
   cursor is always visible over every element. */
html.has-cursor, html.has-cursor * { cursor: auto; }
a, button, [role="button"], input, select, textarea, summary, label { cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
textarea { cursor: text; }

/* ---------- 27. FILM GRAIN ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2500;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- 28. ALERTS & EMPTY STATE ---------- */
.alert { padding: 14px 18px; border-radius: 12px; font-size: 0.92rem; margin-bottom: 22px; border: 1px solid; }
.alert.ok  { color: #4ade80; background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.3); }
.alert.err { color: #e0627a; background: rgba(224, 98, 122, 0.08); border-color: rgba(224, 98, 122, 0.3); }

.empty-state { text-align: center; padding: 80px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.empty-state span { font-size: 2.4rem; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: 0.94rem; }

/* ---------- 29. POLISH: scrollbar, focus, skip-link ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-line); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
.btn:focus-visible, .nav-link:focus-visible, .soc:focus-visible { outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 500;
  padding: 12px 24px;
  background: var(--accent);
  color: #14100a;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; outline: none; }

/* ---------- 30. THEME TOGGLE INSIDE THE ⋮ PANEL (mobile) ---------- */
.panel-theme {
  display: none; /* shown only on mobile via media query below */
  width: 100%;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
  transition: background 0.22s, color 0.22s;
}
.panel-theme:hover { background: var(--accent-soft); color: var(--text); }
.pt-icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  flex-shrink: 0;
}
.pt-icon svg { width: 16px; height: 16px; }

/* ---------- 31. PAGINATION (POSTS PAGE) ---------- */
.pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 52px; flex-wrap: wrap; }
.page-nums { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-btn, .page-num { padding: 10px 18px; border: 1px solid var(--border); border-radius: 12px; font-size: 0.88rem; font-weight: 500; color: var(--muted); background: var(--surface); transition: all 0.3s var(--ease); }
.page-btn:hover, .page-num:hover { border-color: var(--accent-line); color: var(--text); transform: translateY(-2px); }
.page-num.active { background: var(--accent); border-color: var(--accent); color: #14100a; font-weight: 600; }

/* ---------- 32. UTILITY CLASSES ---------- */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.section-slim { padding-top: 20px; }
.section-slim.section-alt { padding-top: 30px; }
.flex-end { display: flex; align-items: flex-end; justify-content: space-between; max-width: none; gap: 20px; flex-wrap: wrap; }
.btn-block { width: 100%; justify-content: center; }
.quote-display { font-family: var(--font-display); font-size: 4rem; line-height: 0.7; color: var(--accent); display: block; margin-bottom: 20px; }
.post-404 { text-align: center; padding: 90px 0; }
.post-404 .margin-top { margin-top: 28px; }
.cta-section { text-align: center; }
.cta-section .sec-sub { max-width: 460px; margin: 14px auto 32px; }
.cta-section .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 33. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 54px; text-align: center; }
  .hero-ctas, .hero-socials { justify-content: center; }
  .hero-intro { margin-inline: auto; }
  .badge-1 { left: -4%; }
  .badge-2 { right: -4%; }
  .quick-grid, .skills-grid, .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 760px) {
  :root { --section-pad: 84px; --nav-h: 66px; }
  .nav-links, .nav-cta { display: none; }
  .dots-btn { display: grid; }
  .quick-grid, .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { text-align: left; }
  .footer-top { flex-direction: column; text-align: center; justify-content: center; }
  .footer-nav { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand-name { display: none; }
  .brand .brand-full { display: none; }
  .brand .brand-short { display: inline; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .cta-banner { padding: 80px 0; }
  .feed-tabs { gap: 8px; }
  .feed-tab { padding: 9px 18px; font-size: 0.84rem; }
  .panel-theme { display: flex; }           /* show inside the ⋮ menu */
  .nav-inner > .theme-btn { display: none; } /* hide the navbar one */
}

@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 30px 24px; }
  .photo-badge { font-size: 0.76rem; padding: 9px 14px; }
  .hero-name { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .sec-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .container { padding: 0 18px; }
}

/* ---------- 34. PRINT STYLES ---------- */
@media print {
  .nav, .footer, .to-top, .grain,
  .scroll-progress, .loader, .dots-panel, .scroll-hint,
  .like-btn, .share-row, .post-nav, .cta-banner, .ticker,
  .stats-band { display: none !important; }
  body { background: #fff; color: #111; opacity: 1; }
  .post-card, .quick-card, .skill-card, .edu-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
  .container { max-width: 100%; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.75em; color: #888; }
}

/* ---------- 35. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .ticker-track, .hero-name em, .hero-bg .g1, .hero-bg .g2 { animation: none; }
  .grain { display: none !important; }
}
/* Back Arrow */
.back-arrow {
  position: fixed;
  top: 68px;
  left: 18px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.back-arrow svg {
  width: 32px;
  height: 32px;
  stroke: #111;
  stroke-width: 2.4;
}

[data-theme="dark"] .back-arrow svg {
  stroke: #ffffff;
}

.back-arrow:active {
  opacity: 0.5;
}