/* ==================================================================
   DESIGN TOKENS
   Change colors, fonts, and spacing here to re-theme the whole site.
   ================================================================== */
:root {
  /* --- Dark theme (default) --- */
  --bg: #0a0c11;
  --bg-alt: #0d1017;
  --surface: #12151d;
  --surface-2: #171b25;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9ebf0;
  --text-muted: #9aa1b0;
  --text-dim: #666d7d;

  --accent: #ffb454;        /* phosphor amber — signature accent */
  --accent-strong: #ffc978;
  --accent-dim: rgba(255, 180, 84, 0.14);
  --accent2: #8b7bff;       /* cool violet — secondary accent */
  --accent2-dim: rgba(139, 123, 255, 0.14);
  --green: #7ee787;
  --red: #ff6b6b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-glow: 0 0 40px rgba(255, 180, 84, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

/* --- Light theme overrides --- */
html[data-theme="light"] {
  --bg: #f6f5f2;
  --bg-alt: #eeece7;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --border: rgba(20, 20, 20, 0.09);
  --border-strong: rgba(20, 20, 20, 0.18);

  --text: #161a1f;
  --text-muted: #565d6b;
  --text-dim: #8a909c;

  --accent: #b9701f;
  --accent-strong: #96591a;
  --accent-dim: rgba(185, 112, 31, 0.12);
  --accent2: #5b46e0;
  --accent2-dim: rgba(91, 70, 224, 0.1);

  --shadow-glow: 0 0 40px rgba(185, 112, 31, 0.08);
  color-scheme: light;
}

/* ==================================================================
   RESET & BASE
   ================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

::selection { background: var(--accent-dim); color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ==================================================================
   BACKGROUND DECOR
   ================================================================== */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 90%);
}

.bg-glow {
  position: fixed;
  top: -10%;
  left: 50%;
  translate: -50% 0;
  width: 900px;
  height: 700px;
  z-index: -1;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

/* ==================================================================
   SPLASH SCREEN
   ================================================================== */
#splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#splash.hidden { opacity: 0; visibility: hidden; }

.splash-inner { text-align: center; }

.splash-logo {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-dim);
}
.splash-cursor { animation: blink 1s step-end infinite; }

.splash-bar {
  width: 180px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin: 1.5rem auto 1rem;
  overflow: hidden;
}
.splash-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: splashLoad 1.1s var(--ease) forwards;
}
@keyframes splashLoad { to { width: 100%; } }

.splash-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.dots span { animation: blink 1.4s infinite; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* ==================================================================
   NAVIGATION
   ================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav-link {
  position: relative;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.25s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}
.nav-toggle span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================================================================
   BUTTONS
   ================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #16110a;
  box-shadow: 0 0 0 rgba(255, 180, 84, 0);
}
.btn-primary:hover { box-shadow: 0 8px 24px -6px var(--accent-dim), var(--shadow-glow); background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 0.55rem 1.1rem; font-size: 0.75rem; }

/* ==================================================================
   SECTION LAYOUT
   ================================================================== */
.section { padding: 7rem 0; }
.section-alt { background: var(--bg-alt); }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-eyebrow::before { content: ''; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.langs-eyebrow { margin-top: 4.5rem; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==================================================================
   HERO
   ================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--accent2);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}
.hero-hello {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.hero-typed {
  display: block;
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  background: linear-gradient(100deg, var(--text) 30%, var(--accent) 65%, var(--accent2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.hero-intro {
  max-width: 46ch;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; }
.hero-stats > div { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }

/* Terminal window */
.terminal-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5), var(--shadow-glow);
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 220px;
  color: var(--text);
}
.terminal-body .prompt { color: var(--accent2); }
.cursor-blink { animation: blink 1s step-end infinite; color: var(--accent); }
.terminal-line-done { color: var(--green); }
.terminal-line-done::before { content: '✓ '; }

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue { 0% { opacity: 1; transform: translateY(0); } 70% { opacity: 0; transform: translateY(10px); } 100% { opacity: 0; } }

/* ==================================================================
   ABOUT
   ================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-photo img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}
.about-copy p { color: var(--text-muted); margin-bottom: 1.1rem; max-width: 62ch; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 1.5rem;
  margin: 1.8rem 0 1.8rem;
}
.fact { display: flex; flex-direction: column; gap: 0.2rem; }
.fact-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.fact-value { font-size: 0.92rem; font-weight: 500; }

/* ==================================================================
   SKILLS
   ================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
}
.skill-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.skill-percent { color: var(--accent); }
.skill-bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skill-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  transition: width 1.2s var(--ease);
}

/* Languages */
.langs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.lang-item { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.lang-ring { position: relative; width: 110px; height: 110px; }
.lang-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--surface-2); stroke-width: 8; }
.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.3s var(--ease);
}
.lang-percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}
.lang-name { font-size: 0.85rem; color: var(--text-muted); }

/* ==================================================================
   PROJECTS
   ================================================================== */
.tabs {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab {
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.tab:hover { border-color: var(--accent); color: var(--text); }
.tab.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.project-card.hide { display: none; }
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,0.45), 0 0 0 1px var(--accent-dim);
}
.project-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background-color: #1a1a2e;
  border-radius: 12px;
}
.skeleton-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1a1a2e 0%,
    #2d2d44 20%,
    #3d3d5c 40%,
    #2d2d44 60%,
    #1a1a2e 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 2;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.project-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  z-index: 3;
}
.project-image.loaded {
  opacity: 1;
}
.project-img.loaded .skeleton-loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.project-card:hover .project-img img { transform: scale(1.06); }

.project-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.project-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent2);
  background: var(--accent2-dim);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.project-body h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; }
.project-body p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.project-tech li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
}
.project-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ==================================================================
   ARTICLES
   ================================================================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.6rem;
}
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.article-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.article-meta {
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}
.article-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.6rem; }
.article-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.1rem; }
.article-link { font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent); }
.article-link:hover { color: var(--accent-strong); }

/* ==================================================================
   GITHUB REPOS
   ================================================================== */
.repos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.repo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.repo-card:hover { border-color: var(--accent2); transform: translateY(-4px); }
.repo-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; color: var(--text); }
.repo-head h3 { font-family: var(--font-mono); font-size: 1rem; font-weight: 600; }
.repo-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.3rem; min-height: 2.6em; }
.repo-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.repo-lang { display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); }
.repo-lang i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-kotlin { background: #a97bff; }
.dot-ts { background: #3178c6; }
.dot-gd { background: #6bd9c5; }

/* ==================================================================
   CREATIVE GALLERY
   ================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  border: 1px solid var(--border);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,7,10,0.94) 10%, rgba(6,7,10,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery-card:hover .gallery-overlay,
.gallery-card:focus-within .gallery-overlay { opacity: 1; }
.gallery-overlay h3 { font-family: var(--font-display); color: #fff; font-size: 1.05rem; margin-bottom: 0.35rem; }
.gallery-overlay p { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 0.9rem; }
.gallery-overlay .btn { align-self: flex-start; }

/* ==================================================================
   CONTACT
   ================================================================== */
.contact-lead { color: var(--text-muted); max-width: 50ch; margin-bottom: 2.8rem; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.contact-card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 0.4rem; }
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.contact-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.contact-value { font-weight: 500; }

/* ==================================================================
   FOOTER
   ================================================================== */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.back-to-top {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ==================================================================
   RESPONSIVE
   ================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo img { max-width: 220px; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav-links.open { max-height: 420px; }
  .nav-link { padding: 1rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-link::after { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 6rem; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .section { padding: 4.5rem 0; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 1rem 1.2rem; }
  .section-inner { padding: 0 1.2rem; }
  .hero { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .about-facts { grid-template-columns: 1fr; }
}

.project-img23 {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease);
}

.project-img23 img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease);
}
.project-img23::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #1a1a2e 0%,
    #2d2d44 20%,
    #3d3d5c 40%,
    #2d2d44 60%,
    #1a1a2e 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.project-img23 img.loaded + .project-img23::after,
.project-img23.loaded::after {
  opacity: 0;
  visibility: hidden;
}