@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg: #040404;
  --bg-card: rgba(8, 8, 10, 0.92);
  --bg-card-hover: rgba(15, 15, 18, 0.96);

  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(180,120,255,0.4);

  --accent: #b26cff;
  --accent-bright: #d5b3ff;
  --accent-dim: rgba(178,108,255,0.12);

  --green: #00ff95;
  --red: #ff5f57;
  --yellow: #ffc857;

  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.45);
  --text-dim: rgba(255,255,255,0.68);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 12px;
  --radius-lg: 16px;

  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  min-height: 100%;
  background: #000 !important;
}

body {
  background: #020202 !important;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at top right,
      rgba(178,108,255,0.12),
      transparent 35%),
    radial-gradient(circle at bottom left,
      rgba(100,50,255,0.08),
      transparent 40%);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.04) 0px,
      rgba(255,255,255,0.04) 1px,
      transparent 1px,
      transparent 2px
    );
}

.page-bg {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  max-width: none !important;
  z-index: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-sizing: border-box !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}

a:hover {
  color: #fff;
}

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

.container {
  max-width: 100%;
  padding: 0;
}

.page-content {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
}

/* ─── MAGNETIC TEXT ─────────────────────────────────────── */
.magnetic-text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  cursor: default;
  user-select: none;
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
}

.hero-title {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  max-width: none;
}

.hero-title.magnetic-text,
#home-hero-title {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

#home-hero-title .char {
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: 800;
}

h1.section-title.magnetic-text {
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0;
}

.magnetic-text .char {
  display: inline-block;
  transition: color 0.15s ease, text-shadow 0.15s ease;
  will-change: transform;
}

.magnetic-text .char.active {
  color: var(--accent);
}

/* ─── NAV ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(12, 20, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 var(--page-pad);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: all .2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--accent-dim);
}

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

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .25s;
}

/* ─── NAV REPLAY ──────────────────────────────── */
.nav-replay-link {
  color: var(--accent) !important;
}

/* ─── FOOTER ──────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(12, 20, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dim);
}

.footer-icons {
  display: flex;
  gap: 12px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  transition: all .2s;
}

.footer-icon:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

/* ─── HERO ────────────────────────────────────── */
.hero-row {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 60px;
  width: 100%;
}

.hero-row .hero {
  flex: 1 1 0;
  min-width: 0;
  padding-bottom: 0;
}

.hero-row .term-window {
  flex: 0 0 480px;
  width: 480px;
  margin-top: 0;
  align-self: flex-start;
}

.hero {
  margin: 0;
  padding: 0 0 60px;
  position: relative;
  overflow: visible;
}

.hero-content {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px !important;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-sub:last-of-type {
  margin-bottom: 36px;
}

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

.hero-focus {
  margin-top: 32px;
}

.hero-focus-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-focus-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-focus-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-focus-card-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
}

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

/* ─── CARDS ───────────────────────────────────── */
.section-header {
  margin-top: 0;
  margin-bottom: 36px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
}

.section-desc {
  color: var(--text-dim);
  margin-top: 10px;
  max-width: 540px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  opacity: 0;
  transition: opacity .25s;
}

.project-card,
.project-card::before,
.project-card::after {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
}

.project-card,
.skill-category,
.cs2-card,
.quick-link-card {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.project-card:hover,
.skill-category:hover,
.cs2-card:hover {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
}

.project-card:hover {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.project-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-personal {
  background: var(--accent2-dim);
  color: var(--accent2);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.badge-school {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(178,108,255, 0.2);
}

.badge-capstone {
  background: rgba(0, 230, 118, 0.08);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.card-links-row {
  display: flex;
  gap: 8px;
}

.card-link-btn {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all .2s;
  font-family: var(--font-mono);
}

.card-link-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  flex: 1;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-bullets li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}

.card-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ─── TERMINAL WINDOW ─────────────────────────── */
.term-window {
  background: linear-gradient(180deg, #050505, #020202);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.term-bar {
  background: #070707;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot:nth-child(1) {
  background: #ff5f57;
}

.term-dot:nth-child(2) {
  background: #febc2e;
}

.term-dot:nth-child(3) {
  background: #28c840;
}

.term-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.term-body {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
}

.term-line {
  color: var(--text-dim);
}

.term-cmd {
  color: var(--accent);
}

.term-out {
  color: var(--green);
}

.term-prompt {
  color: var(--text-muted);
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

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

/* ─── SKILLS PAGE ─────────────────────────────── */
.ospf-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  margin-bottom: 40px;
}

.ospf-canvas-wrap {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 50%;
}

.ospf-canvas-wrap canvas {
  display: block;
  width: 100%;
}

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

.neighbor-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.neighbor-table th {
  text-align: left;
  padding: 6px 10px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.neighbor-table td {
  padding: 5px 10px;
  color: var(--text-dim);
  border-bottom: 1px solid rgba(24, 38, 64, 0.5);
}

.state-FULL {
  color: var(--green);
}

.state-DOWN {
  color: var(--red);
}

.state-INIT,
.state-2WAY,
.state-EXSTART,
.state-EXCHANGE,
.state-LOADING {
  color: var(--yellow);
}

.event-log {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.log-entry {
  padding: 3px 0;
  border-bottom: 1px solid rgba(24, 38, 64, 0.4);
  line-height: 1.5;
}

.log-ts {
  color: var(--text-muted);
  margin-right: 6px;
}

.log-info {
  color: var(--text-dim);
}

.log-success {
  color: var(--green);
}

.log-warn {
  color: var(--yellow);
}

.log-error {
  color: var(--red);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.skill-category {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(178,108,255, 0.15);
}

.skill-cat-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cat-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-dim);
  transition: all .2s;
}

.skill-tag:hover {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(178,108,255, 0.3);
}

.cert-card {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--green-dim);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  max-width: 50%;
}

.cert-icon {
  width: 42px;
  height: 42px;
  background: var(--green-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  margin-top: 3px;
}

/* ─── CS2 PAGE ────────────────────────────────── */
.cs2-hero {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid rgba(255, 107, 53, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  text-align: center;
}

.cs2-stat-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: -1.5px;
}

.cs2-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cs2-stat-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.youtube-embed {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 20px;
}

.youtube-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── INDEX QUICK LINKS ───────────────────────── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.quick-link-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all .25s;
  display: block;
}

.quick-link-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-bright);
  transform: translateY(-2px);
  color: inherit;
}

.ql-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.ql-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ql-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── MOBILE DRAWER ───────────────────────────── */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(6, 10, 18, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 99;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  transition: all .2s;
}

.nav-mobile-menu a:last-child {
  border-bottom: none;
}

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

.nav-mobile-menu a:hover {
  color: var(--text);
  padding-left: 4px;
}

/* ─── DIVIDER ─────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 48px 0;
}

/* ─── ANIMATIONS ──────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp .5s ease both;
}

.fade-up-1 {
  animation-delay: .05s;
}

.fade-up-2 {
  animation-delay: .12s;
}

.fade-up-3 {
  animation-delay: .20s;
}

.fade-up-4 {
  animation-delay: .28s;
}

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .container {
    padding: var(--gap-under-nav) 20px 0;
  }

  .hero-row {
    flex-direction: column;
    gap: 32px;
    padding-bottom: 40px;
  }

  .hero-row .hero {
    padding-bottom: 0;
  }

  .hero-row .term-window {
    flex: none;
    width: 100%;
  }

  .ospf-container {
    grid-template-columns: 1fr;
  }

  .cs2-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .hero-title,
  #home-hero-title {
    letter-spacing: -1px;
  }

  .container {
    padding: var(--gap-under-nav) 16px 0;
  }
}

@media (max-width: 767px) {

  .hero-title.magnetic-text,
  h1.section-title.magnetic-text {
    display: block !important;
    word-spacing: normal;
    white-space: nowrap !important;
    gap: 0;
  }

  .magnetic-text .char {
    display: inline !important;
    transform: none !important;
    color: inherit !important;
    text-shadow: none !important;
  }
}

/* ─── GLOBAL TYPOGRAPHY ───────────────────────── */
* {
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .hero-title, .ql-title {
  font-weight: 400;
  text-transform: uppercase;
}

/* ─── CS2 PAGE (cs2.php) ──────────────────────── */
#scoreboard {
  display: block;
}

#scoreboard:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: rgba(80, 220, 100, 0.4) !important;
}

@media (max-width: 767px) {
  #scoreboard {
    display: none !important;
  }
}

.cs2-card {
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cs2-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(178,108,255, 0.15);
}

.cs2-link-card {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
}

.cs2-link-icon {
  width: 42px;
  height: 42px;
  background: rgba(178,108,255, 0.1);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.cs2-bento-card.cs2-link-card:hover .cs2-link-icon {
  background: rgba(178,108,255, 0.2);
  transform: scale(1.1);
}

.cs2-link-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}

.cs2-link-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

#scoreboard {
  background: rgba(0, 200, 100, 0.08) !important;
  border: 1px solid rgba(80, 220, 100, 0.4) !important;
}

#scoreboard .cs2-stat-val {
  color: #b8ffc0;
}

#scoreboard .cs2-stat-label {
  color: #c0ffc0;
  opacity: 0.85;
}

#sb-bar {
  background: #2eff7a !important;
  box-shadow: 0 0 4px #2eff7a;
}

#sb-timer {
  color: #b8ffb0 !important;
  font-weight: 500;
}

.start-practice-btn {
  background: linear-gradient(135deg, #1f9e4f, #0f6e3a);
  border: none;
  border-radius: 60px;
  padding: 12px 28px;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  width: fit-content;
  margin-top: 8px;
}

.start-practice-btn:hover {
  transform: scale(1.02);
  background: linear-gradient(135deg, #2bb85e, #1b8745);
  box-shadow: 0 0 12px rgba(50, 255, 100, 0.5);
}

.start-practice-btn:active {
  transform: scale(0.98);
}

#scoreboard-content {
  transition: opacity 0.2s;
}

#sb-bar-wrap {
  max-width: 200px;
  width: 100%;
}


.scoreboard-footer-wrap {
  display: flex;
  justify-content: center;
  padding: 24px 0 32px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  #sb-bar-wrap {
    max-width: 140px;
  }
}

/* ─── SKILLS PAGE (skills.php) ────────────────── */
.ospf-main-wrap {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ospf-canvas-wrap {
  flex: 0 0 52%;
  min-width: 0;
  max-width: none;
  background: linear-gradient(135deg, rgba(178,108,255, 0.07) 0%, rgba(6, 10, 18, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stack-panel {
  flex: 1;
  min-width: 0;
}

.stack-panel .skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
  margin: 0;
}

.certs-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.cert-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cert-bar-icon {
  font-size: 18px;
}

.cert-bar-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.cert-bar-id {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cert-bar-item--pending {
  opacity: 0.6;
}

.ospf-toolbar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

#ospf-toggle {
  background: rgba(255, 68, 68, 0.12);
  border: 1px solid #ff4444;
  color: #ff4444;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: .05em;
}

.ospf-legend {
  display: flex;
  gap: 20px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}

.ospf-legend-group {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.ospf-state-viz {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  min-height: 38px;
  line-height: 2;
}

.ospf-state-viz-placeholder {
  color: var(--text-muted);
}

.dot-hello {
  color: #b26cff;
}

.dot-dbd {
  color: #ffc800;
}

.dot-lsr {
  color: #ff6b35;
}

.dot-lsu {
  color: #00e676;
}

.dot-lsack {
  color: #bf80ff;
}

.dot-full {
  color: #00e676;
}

.dot-down {
  color: #ff4444;
}

.dot-trans {
  color: #ffc800;
}

@media (max-width: 900px) {
  .ospf-main-wrap {
    flex-direction: column;
  }

  .ospf-canvas-wrap {
    flex: none;
    width: 100%;
  }

  .stack-panel .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
