/* ---------------------------------------------------
   syrus.com.bd — dark + neon personal site
   --------------------------------------------------- */

:root {
  --bg: #07070d;
  --bg-soft: #0d0d17;
  --bg-rgb: 7, 7, 13;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #e9ecf4;
  --text-dim: #9aa0b4;
  --text-soft: #6f748a;

  --accent: #7cf8d4;          /* mint-cyan */
  --accent-2: #b48bff;        /* violet */
  --accent-3: #ff7ab6;        /* pink */
  --accent-glow: rgba(124, 248, 212, 0.35);

  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-fade: #11111c;
  --btn-primary-text: #0b0b14;
  --chip-bg: rgba(124, 248, 212, 0.08);
  --chip-border: rgba(124, 248, 212, 0.25);

  --font-sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1100px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --bg-soft: #ffffff;
    --bg-rgb: 246, 248, 252;
    --surface: rgba(15, 18, 40, 0.035);
    --surface-strong: rgba(15, 18, 40, 0.065);
    --border: rgba(15, 18, 40, 0.09);
    --border-strong: rgba(15, 18, 40, 0.18);
    --text: #0b0d1a;
    --text-dim: #4a4f66;
    --text-soft: #7c8298;

    --accent: #0fb591;
    --accent-2: #7a55d6;
    --accent-3: #de4e90;
    --accent-glow: rgba(15, 181, 145, 0.28);

    --grid-line: rgba(15, 18, 40, 0.05);
    --grid-fade: #eceff6;
    --btn-primary-text: #ffffff;
    --chip-bg: rgba(15, 181, 145, 0.1);
    --chip-border: rgba(15, 181, 145, 0.3);
  }
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--btn-primary-text); }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------------- Accessibility ---------------- */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--btn-primary-text);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ---------------- Background layers ---------------- */

.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 48px 48px,
    radial-gradient(ellipse at top, var(--grid-fade) 0%, var(--bg) 60%);
  mask-image: radial-gradient(ellipse at center top, #000 40%, transparent 85%);
}

.bg-blobs {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}
.blob-1 { width: 520px; height: 520px; top: -140px; left: -140px; background: radial-gradient(circle, var(--accent) 0%, transparent 60%); }
.blob-2 { width: 460px; height: 460px; top: 22%; right: -160px; background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%); animation-delay: -6s; }
.blob-3 { width: 380px; height: 380px; bottom: -120px; left: 30%; background: radial-gradient(circle, var(--accent-3) 0%, transparent 60%); animation-delay: -12s; opacity: 0.4; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

.cursor-glow {
  position: fixed; top: 0; left: 0; width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(30px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s var(--ease);
  opacity: 0;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-glow { opacity: 0.7; }
}

/* ---------------- Nav ---------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(to bottom, rgba(var(--bg-rgb), 0.85), rgba(var(--bg-rgb), 0.55));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--border); }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark { font-size: 20px; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.brand-name { font-size: 17px; }
.brand-dot { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; }
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  position: relative; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 11px 10px;
  flex-direction: column; justify-content: space-between;
  border: 1px solid var(--border); border-radius: 10px;
}
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: sticky; top: 72px; z-index: 49;
  background: rgba(var(--bg-rgb), 0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 16px;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu a { padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 780px) {
  .mobile-menu:not([hidden]) { display: flex; }
}

@media (max-width: 780px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------------- Hero ---------------- */

main { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

.hero {
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 80px;
  position: relative;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-dim);
  padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  width: max-content;
  max-width: 100%;
  margin: 0 0 28px;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(124, 248, 212, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(124, 248, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 248, 212, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 22px;
}
.gradient-text {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shift 8s ease-in-out infinite;
}
@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.typewriter {
  display: block;                     /* own line, full width of h1 */
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--accent);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  /* Reserve enough vertical space that swapping between short and long
     phrases (and typing them char-by-char) never shifts anything below.
     1.4em covers one line of mono text with buffer on desktop. */
  min-height: 1.4em;
}
.tw-caret {
  display: inline-block; color: var(--accent);
  animation: blink 1.05s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 640px; margin: 0 0 36px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.inline-link {
  color: var(--accent); border-bottom: 1px dashed rgba(124, 248, 212, 0.4);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.inline-link:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: 15px;
  border: 1px solid var(--border-strong);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--btn-primary-text);
  border-color: transparent;
  box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.3);
  font-weight: 600;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(124, 248, 212, 0.55); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--accent); color: var(--accent); }

.socials { list-style: none; display: flex; gap: 14px; padding: 0; margin: 0; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.2s var(--ease);
}
.socials a:hover {
  color: var(--accent); border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 20px -5px var(--accent-glow);
}

.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-soft);
  letter-spacing: 0.3em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-fade 2.2s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.5; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}
@media (max-width: 780px) { .scroll-hint { display: none; } }

/* ---------------- Sections ---------------- */

.section { padding: 90px 0; scroll-margin-top: 80px; }

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  display: flex; align-items: baseline; gap: 14px;
}
.section-title .num {
  font-family: var(--font-mono);
  font-size: 0.55em;
  color: var(--accent);
  font-weight: 500;
}
.section-sub { color: var(--text-dim); margin: 0 0 36px; font-size: 0.98rem; }

/* ---------------- About ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-top: 30px;
}
.about-copy p { color: var(--text-dim); margin: 0 0 18px; }
.about-copy strong { color: var(--text); }

.about-facts {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}
.about-facts::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, var(--accent-glow), transparent 50%);
  opacity: 0.3; pointer-events: none;
}
.fact { display: flex; flex-direction: column; gap: 4px; position: relative; }
.fact-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-soft); text-transform: uppercase; letter-spacing: 0.15em;
}
.fact-value { color: var(--text); font-weight: 500; }
.fact-value .flag { margin-left: 4px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip {
  display: inline-block; padding: 3px 10px;
  font-family: var(--font-mono); font-size: 11.5px;
  background: var(--chip-bg);
  color: var(--accent);
  border: 1px solid var(--chip-border);
  border-radius: 6px;
}

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

/* ---------------- Hobbies / Off the keyboard ---------------- */

.hobbies-grid {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 640px) {
  .hobbies-grid { grid-template-columns: repeat(2, 1fr); }
}
.hobby-card {
  padding: 22px 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.3s var(--ease);
  cursor: default;
}
.hobby-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-strong);
  box-shadow: 0 8px 24px -12px var(--accent-glow);
}
.hobby-icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--accent);
  border: 1px solid var(--chip-border);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.hobby-icon svg {
  width: 22px; height: 22px;
}
.hobby-card:nth-child(5n+2) .hobby-icon { color: var(--accent-2); background: rgba(180, 139, 255, 0.08); border-color: rgba(180, 139, 255, 0.25); }
.hobby-card:nth-child(5n+4) .hobby-icon { color: var(--accent-3); background: rgba(255, 122, 182, 0.08); border-color: rgba(255, 122, 182, 0.25); }
.hobby-label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------------- Projects ---------------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 170px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.project-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  background: radial-gradient(250px circle at var(--mx) var(--my), var(--accent-glow), transparent 60%);
  opacity: 0; transition: opacity 0.3s var(--ease);
  pointer-events: none; z-index: -1;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.project-card:hover::before { opacity: 1; }

.project-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-name {
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 8px;
}
.project-name::before { content: "/"; color: var(--text-soft); }
.project-link-arrow { color: var(--text-soft); transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
.project-card:hover .project-link-arrow { color: var(--accent); transform: translate(2px, -2px); }

.project-desc { color: var(--text-dim); font-size: 0.93rem; margin: 0; flex: 1; }

.project-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-soft); font-family: var(--font-mono); }
.project-meta .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; }
.project-meta .stars::before { content: "★"; margin-right: 4px; color: var(--accent); }

/* Skeleton */
.project-card.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-strong) 50%, var(--surface) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  border-color: var(--border);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.projects-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------------- Timeline ---------------- */

.timeline {
  list-style: none;
  padding: 0; margin: 30px 0 0;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute;
  left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  padding-left: 38px;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 2px; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline-head h3 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.timeline-when {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-soft);
  padding: 2px 10px; border: 1px solid var(--border); border-radius: 999px;
}
.timeline-where { color: var(--accent); font-size: 0.9rem; margin: 4px 0 10px; font-family: var(--font-mono); }
.timeline-body p { color: var(--text-dim); margin: 0 0 6px; }
.timeline-note { margin-top: 10px !important; }

/* ---------------- Recognition ---------------- */

.recognition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 30px;
}
.recognition-heading {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 500;
}
.recognition-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.recognition-list li {
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.recognition-list li:hover {
  border-color: var(--border-strong);
  background: var(--surface-strong);
}
.rec-title {
  margin: 0 0 4px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.97rem;
  line-height: 1.4;
}
.rec-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}

@media (max-width: 780px) {
  .recognition-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------------- Writing ---------------- */

.writing-empty {
  margin-top: 30px;
  padding: 40px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,248,212,0.04), rgba(180,139,255,0.04));
  text-align: center;
}
.writing-empty-inner { max-width: 560px; margin: 0 auto; }
.writing-kbd {
  display: inline-block;
  font-family: var(--font-mono); color: var(--accent);
  font-size: 14px; margin-bottom: 12px;
}
.writing-empty p {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin: 0 0 16px;
  min-height: 1.6em;
}
.writing-sub {
  font-family: var(--font-sans) !important;
  color: var(--text-dim);
  font-size: 0.98rem !important;
  margin-bottom: 24px !important;
}

/* ---------------- Contact ---------------- */

.contact { text-align: center; padding-bottom: 140px; }
.contact .section-title { justify-content: center; }
.contact-lead {
  max-width: 560px; margin: 0 auto 32px;
  color: var(--text-dim); font-size: 1.1rem;
}
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.copy-email { font-family: var(--font-mono); }
.copy-email.copied { background: linear-gradient(120deg, var(--accent-2), var(--accent-3)); }

/* ---------------- Footer ---------------- */

.footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: var(--text-soft);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer .heart { color: var(--accent-3); animation: beat 1.4s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.footer .sep { margin: 0 10px; opacity: 0.5; }

/* ---------------- Toast ---------------- */

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translate(-50%, 40px);
  padding: 12px 20px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- Reveal on scroll ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Light-mode tuning ---------------- */

@media (prefers-color-scheme: light) {
  .blob { opacity: 0.25; mix-blend-mode: multiply; }
  .blob-3 { opacity: 0.18; }
  .cursor-glow { opacity: 0; } /* cursor glow fights white bg — just hide it */

  .brand-mark { filter: none; }

  .btn-ghost {
    background: var(--bg-soft);
  }

  .nav-links a.active {
    color: var(--accent);
  }

  .project-card::before {
    background: radial-gradient(250px circle at var(--mx) var(--my), rgba(15, 181, 145, 0.2), transparent 60%);
  }

  .recognition-list li:hover,
  .project-card:hover,
  .hobby-card:hover {
    box-shadow: 0 8px 24px -14px rgba(15, 18, 40, 0.18);
  }
}

/* ---------------- Narrow-viewport tuning ---------------- */

@media (max-width: 640px) {
  .typewriter {
    font-size: 0.62em;
    min-height: 1.5em;
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: clamp(1.9rem, 9vw, 4.6rem); }
  .typewriter { font-size: 0.58em; min-height: 1.5em; }
  .section { padding: 70px 0; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .eyebrow { font-size: 12px; }
}
