/* ========================================
   Design tokens
   ======================================== */

:root,
[data-theme="dark"] {
  --bg-primary: #0b1220;
  --bg-secondary: #121a2a;
  --bg-elevated: #162033;
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --border-glass: rgba(148, 163, 184, 0.14);
  --border-glass-hover: rgba(148, 163, 184, 0.28);

  --accent: #5b8def;
  --accent-strong: #3b6fd9;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --accent-glow: rgba(91, 141, 239, 0.28);
  --accent-gradient: linear-gradient(135deg, #3b6fd9 0%, #7ba3f0 100%);

  --text-primary: #e8eef4;
  --text-secondary: #9aa8b6;
  --text-muted: #6b7a8a;

  --ok: #4ade80;
  --header-bg: rgba(11, 18, 32, 0.82);
  --code-bg: #080e1a;
  --shadow-glass: 0 10px 36px rgba(0, 0, 0, 0.35);
  --nav-menu-bg: rgba(11, 18, 32, 0.96);
}

[data-theme="light"] {
  --bg-primary: #f4f6fa;
  --bg-secondary: #e9eef5;
  --bg-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.92);
  --border-glass: rgba(15, 23, 42, 0.1);
  --border-glass-hover: rgba(15, 23, 42, 0.18);

  --accent: #1d4ed8;
  --accent-strong: #2563eb;
  --accent-soft: rgba(29, 78, 216, 0.1);
  --accent-glow: rgba(29, 78, 216, 0.22);
  --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --ok: #15803d;
  --header-bg: rgba(244, 246, 250, 0.88);
  --code-bg: #0f172a;
  --shadow-glass: 0 10px 30px rgba(15, 23, 42, 0.08);
  --nav-menu-bg: rgba(244, 246, 250, 0.98);
}

:root {
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Source Sans 3', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --header-height: 72px;
  --container-width: 1140px;
  --section-padding: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--accent-soft);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--accent);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ========================================
   Background
   ======================================== */

.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% -10%, rgba(91, 141, 239, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 40% at 95% 20%, rgba(123, 163, 240, 0.1), transparent 50%),
    radial-gradient(ellipse 50% 35% at 70% 100%, rgba(59, 111, 217, 0.08), transparent 55%);
  pointer-events: none;
  z-index: -2;
}

[data-theme="light"] .bg-gradient {
  background:
    radial-gradient(ellipse 70% 45% at 10% -10%, rgba(29, 78, 216, 0.1), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 15%, rgba(59, 130, 246, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f8 0%, #f4f6fa 40%, #e8edf5 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent);
}

[data-theme="light"] .bg-grid { opacity: 0.35; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1100;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.05s linear;
}

/* ========================================
   Glass
   ======================================== */

.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

/* ========================================
   Header
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid var(--border-glass);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  z-index: 2;
}

.nav__logo-bracket { color: var(--accent); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.nav__chip {
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.nav__chip:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
}

.nav__chip svg {
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 36px;
  padding: 8px;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  background: var(--bg-glass);
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.active .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle.active .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle.active .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn svg { width: 16px; height: 16px; }

.btn--primary {
  background: var(--accent-gradient);
  color: #041016;
  box-shadow: 0 8px 24px var(--accent-glow);
}

[data-theme="light"] .btn--primary { color: #fff; }

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}

.btn--outline {
  border-color: var(--border-glass-hover);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015), transparent);
}

[data-theme="light"] .section--alt {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.03), transparent);
}

.section__header {
  margin-bottom: 36px;
  max-width: 720px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 32px);
  padding-bottom: 80px;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.status-badge,
.meta-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-badge {
  color: var(--ok);
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.28);
}

.meta-badge {
  color: var(--text-muted);
  background: var(--bg-glass);
  border-color: var(--border-glass);
}

.hero__greeting {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 500;
  color: var(--text-secondary);
  min-height: 1.6em;
  margin-bottom: 18px;
}

.typing-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__description {
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__card {
  overflow: hidden;
}

.hero__code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .hero__code-header {
  background: rgba(15, 23, 42, 0.04);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--red { background: #f87171; }
.dot--yellow { background: #fbbf24; }
.dot--green { background: #34d399; }

.hero__code-filename {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero__code-body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
  background: var(--code-bg);
  color: #dbe7f0;
  overflow-x: auto;
}

.code-keyword { color: #7dd3fc; }
.code-class { color: #5eead4; }
.code-string { color: #fcd34d; }
.code-func { color: #a5b4fc; }

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1s both;
}

.hero__scroll-icon {
  width: 18px;
  height: 28px;
  border: 1.5px solid var(--text-muted);
  border-radius: 10px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: scrollDot 1.6s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ========================================
   About / Skills
   ======================================== */

.about__panel {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 820px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about__text p { color: var(--text-secondary); }

.about__prefs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.about__prefs dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.about__prefs dd {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skills__category { padding: 28px; }

.skills__category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.skills__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
}

.skills__icon svg { width: 20px; height: 20px; }

.skills__category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: 8px;
}

[data-theme="light"] .skill-tag {
  background: rgba(15, 23, 42, 0.03);
}

/* ========================================
   Timeline / Background
   ======================================== */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}

.timeline__item {
  position: relative;
  padding: 28px 28px 28px 56px;
}

.timeline__marker {
  position: absolute;
  left: 22px;
  top: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.timeline__marker::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 60px);
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.35;
}

.timeline__item:last-child .timeline__marker::before { display: none; }

.timeline__badge,
.timeline__period {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.timeline__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline__org {
  font-size: 0.95rem;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline__description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.education__modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-top: 18px;
}

.education__modules li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.education__modules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ========================================
   Projects
   ======================================== */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.project-card__image {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.project-preview {
  width: 100%;
  height: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-preview--steam {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(15, 23, 42, 0.35));
  color: #a5b4fc;
}

.project-preview--trading {
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(15, 23, 42, 0.35));
  color: #5eead4;
}

.project-preview--crypto {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.35));
  color: #7dd3fc;
}

.project-preview--blog {
  background: linear-gradient(145deg, rgba(148, 163, 184, 0.18), rgba(15, 23, 42, 0.3));
  color: #cbd5e1;
}

.project-preview__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.project-preview__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.project-preview__bar em {
  margin-left: 8px;
  font-style: normal;
}

.project-preview__body {
  flex: 1;
  background: rgba(4, 10, 16, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chart {
  height: 54px;
  color: var(--accent);
}

.chart svg {
  width: 100%;
  height: 100%;
}

.preview-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.preview-lines .ok { color: #4ade80; }

.steam-mock {
  justify-content: center;
  gap: 6px;
}

.steam-mock__bubble {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1.35;
  padding: 6px 10px;
  border-radius: 10px;
  max-width: 92%;
}

.steam-mock__bubble--user {
  align-self: flex-end;
  background: rgba(99, 102, 241, 0.35);
  color: #e0e7ff;
  border-bottom-right-radius: 3px;
}

.steam-mock__bubble--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  border-bottom-left-radius: 3px;
}

.steam-mock__bubble--ok {
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.steam-mock__status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.steam-mock__status span {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  color: #94a3b8;
}

.steam-mock__status .ok {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}

.preview-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
}

.mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  font-family: var(--font-mono);
}

.mini-card strong {
  display: block;
  font-size: 0.75rem;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.mini-card em {
  font-style: normal;
  font-size: 0.7rem;
  color: #4ade80;
}

.mini-card:last-child em { color: #fb7185; }

.blog-mock {
  justify-content: center;
  gap: 10px;
}

.blog-mock__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.3;
}

.blog-mock__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #94a3b8;
}

.blog-mock__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.blog-mock__rows span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
}

.blog-mock__rows span:nth-child(1) { width: 92%; }
.blog-mock__rows span:nth-child(2) { width: 78%; }
.blog-mock__rows span:nth-child(3) { width: 64%; }

.blog-mock__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.blog-mock__tags em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px 8px;
}

.project-card__status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ok);
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card__description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.project-card__bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.project-card__bullets li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.project-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 4px 10px;
  border-radius: 6px;
}

[data-theme="light"] .tech-tag {
  background: rgba(15, 23, 42, 0.03);
}

.project-card__actions {
  margin-top: auto;
}

/* ========================================
   Contact
   ======================================== */

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__card {
  padding: 24px 20px;
  text-align: center;
}

.contact__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px var(--accent-glow);
}

.contact__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent);
  transition: background var(--transition), color var(--transition);
}

.contact__card:hover .contact__icon {
  background: var(--accent-gradient);
  color: #041016;
}

[data-theme="light"] .contact__card:hover .contact__icon { color: #fff; }

.contact__icon svg { width: 22px; height: 22px; }

.contact__card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact__card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

.contact__form {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.contact__form h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}

[data-theme="light"] .contact__form input,
[data-theme="light"] .contact__form textarea {
  background: rgba(255, 255, 255, 0.85);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact__form .btn { align-self: flex-start; margin-top: 4px; }

.contact__form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================================
   Footer / scroll top / reveal
   ======================================== */

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--border-glass);
}

.footer__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #041016;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), box-shadow var(--transition);
  z-index: 999;
}

[data-theme="light"] .scroll-top { color: #fff; }

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: translateY(-2px);
}

.scroll-top svg { width: 22px; height: 22px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1100px) {
  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-menu-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 24px 24px;
    gap: 4px;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: center;
  }

  .nav__toggle { display: flex; }

  .about__prefs { grid-template-columns: 1fr; gap: 16px; }
  .contact__layout { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__description { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__badges { justify-content: center; }
  .hero__visual { order: -1; max-width: 520px; margin: 0 auto; }
  .skills__grid,
  .projects__grid { grid-template-columns: 1fr; }
  .about__prefs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px; }

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

  .hero__scroll { display: none; }

  .scroll-top {
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn { width: 100%; }

  .about__panel,
  .skills__category,
  .timeline__item,
  .project-card__body,
  .contact__form { padding: 22px; }

  .timeline__item { padding-left: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .typing-cursor { animation: none; }
}
