/* ═══════════════════════════════════════════════════
   MOSSES MUWA — PORTFOLIO CSS
   Dark theme default, light theme via [data-theme="light"]
   Terminal section uses pure dark regardless
═══════════════════════════════════════════════════ */

/* ─── FONTS ─────────────────────────────────────── */
/* Rajdhani       → headings (bold, tactical, angular) */
/* Inter          → body text (crisp, technical)       */
/* Orbitron       → logo, stats, numbers               */
/* Share Tech Mono→ terminal, labels, tags, code only  */

/* ─── DARK THEME VARIABLES ──────────────────────── */
[data-theme="dark"],
:root {
  --bg: #06090d;
  --bg2: #0a0f16;
  --surface: rgba(13, 24, 36, 0.85);
  --surface2: rgba(17, 34, 51, 0.9);
  --border: rgba(0, 229, 255, 0.12);
  --border2: rgba(0, 255, 136, 0.15);
  --accent: #00ff88;
  --cyan: #00e5ff;
  --red: #ff4466;
  --amber: #ffcc00;
  --text: #b8ccd8;
  --text-dim: #4a6a7a;
  --text-bright: #e8f4ff;
  --heading: #ffffff;
  --card-bg: rgba(13, 24, 36, 0.7);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --nav-bg: rgba(6, 9, 13, 0.82);
  --glow-g: 0 0 24px rgba(0, 255, 136, 0.35);
  --glow-c: 0 0 24px rgba(0, 229, 255, 0.35);
  --glow-r: 0 0 24px rgba(255, 68, 102, 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --kali-bg: #2e3440;
  --kali-bar: #3b4252;
  --kali-border: #4c566a;
  --kali-text: #d8dee9;
  --kali-green: #a3be8c;
  --kali-red: #bf616a;
  --kali-blue: #81a1c1;
  --kali-white: #eceff4;
  --kali-menu: #3b4252;
}

/* ─── LIGHT THEME VARIABLES ─────────────────────── */
[data-theme="light"] {
  --bg: #f0f4f8;
  --bg2: #e2eaf2;
  --surface: rgba(255, 255, 255, 0.9);
  --surface2: rgba(240, 244, 248, 0.95);
  --border: rgba(0, 150, 100, 0.2);
  --border2: rgba(0, 150, 100, 0.25);
  --accent: #00aa55;
  --cyan: #0088bb;
  --red: #dd2244;
  --amber: #cc8800;
  --text: #334455;
  --text-dim: #778899;
  --text-bright: #112233;
  --heading: #0a1628;
  --card-bg: rgba(255, 255, 255, 0.92);
  --glass: rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --nav-bg: rgba(240, 244, 248, 0.9);
  --glow-g: 0 0 20px rgba(0, 170, 85, 0.2);
  --glow-c: 0 0 20px rgba(0, 136, 187, 0.2);
  --glow-r: 0 0 20px rgba(221, 34, 68, 0.2);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --kali-bg: #2e3440;
  --kali-bar: #3b4252;
  --kali-border: #4c566a;
  --kali-text: #d8dee9;
  --kali-green: #a3be8c;
  --kali-red: #bf616a;
  --kali-blue: #81a1c1;
  --kali-white: #eceff4;
  --kali-menu: #3b4252;
}

/* ─── RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition:
    background 0.4s,
    color 0.4s;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button {
  cursor: pointer;
  font-family: inherit;
}
::selection {
  background: rgba(0, 255, 136, 0.25);
  color: var(--text-bright);
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

/* ─── GRID BG ─────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  transition: opacity 0.4s;
}
[data-theme="light"] .grid-bg {
  opacity: 0.5;
}

.wrapper {
  position: relative;
  z-index: 1;
}

/* ─── NAVBAR ─────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
  transition:
    background 0.4s,
    border 0.4s;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--heading);
  letter-spacing: 1px;
}
.nav-logo-text .dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  margin-left: auto;
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 8px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s,
    border 0.2s,
    transform 0.2s;
}
.theme-toggle:hover {
  background: var(--glass-border);
  transform: scale(1.1);
}
[data-theme="dark"] .theme-icon-light {
  display: none;
}
[data-theme="light"] .theme-icon-dark {
  display: none;
}

.terminal-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.terminal-btn:hover {
  background: rgba(0, 255, 136, 0.2);
  box-shadow: var(--glow-g);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── MOBILE DRAWER ──────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 1000;
  background: var(--bg2);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-inner {
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.drawer-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  padding: 14px 16px;
  border-radius: 10px;
  transition:
    color 0.2s,
    background 0.2s;
  border-bottom: 1px solid var(--glass-border);
}
.drawer-link:hover {
  color: var(--accent);
  background: var(--glass);
}
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.drawer-overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ─── KALI TERMINAL ──────────────────────────────── */
/* Always dark — it's a real terminal window */
.kali-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 1rem;
}
.kali-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.kali-terminal {
  width: min(760px, 96vw);
  height: min(520px, 85vh);
  background: var(--kali-bg);
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: "Share Tech Mono", monospace;
}
.kali-overlay.open .kali-terminal {
  transform: scale(1) translateY(0);
}

/* Kali title bar — Nord theme style */
.kali-titlebar {
  background: var(--kali-bar);
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  user-select: none;
  flex-shrink: 0;
}
.kali-titlebar-left {
  display: flex;
  gap: 7px;
  align-items: center;
}
.wb-btn {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.wb-btn:hover {
  filter: brightness(1.3);
  transform: scale(1.15);
}
.wb-close {
  background: #bf616a;
}
.wb-min {
  background: #ebcb8b;
}
.wb-max {
  background: #a3be8c;
}
.kali-titlebar-center {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--kali-text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.kali-title-icon {
  font-size: 0.7rem;
}
.kali-titlebar-right {
  display: flex;
}
.kali-tab {
  font-size: 0.72rem;
  color: #888;
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.kali-tab.active {
  color: var(--kali-white);
}

/* Kali menu bar */
.kali-menubar {
  background: var(--kali-menu);
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.kali-menubar span {
  font-size: 0.72rem;
  color: #aab;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.kali-menubar span:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--kali-white);
}

/* Kali body */
.kali-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--kali-text);
  background: var(--kali-bg);
}
.kali-body::-webkit-scrollbar {
  width: 4px;
}
.kali-body::-webkit-scrollbar-thumb {
  background: #4c566a;
}

.kali-line {
  display: block;
  word-break: break-all;
}
.k-red {
  color: #bf616a;
}
.k-green {
  color: #a3be8c;
}
.k-blue {
  color: #81a1c1;
}
.k-white {
  color: #eceff4;
}
.k-yellow {
  color: #ebcb8b;
}
.k-cyan {
  color: #88c0d0;
}
.k-dim {
  color: #616e88;
}

/* Kali input row */
.kali-input-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 14px 12px;
  background: var(--kali-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.k-prompt {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--kali-white);
  flex-shrink: 0;
  padding-top: 2px;
}
.kali-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--kali-white);
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  caret-color: var(--kali-green);
  min-width: 0;
}

/* ─── SECTION COMMON ─────────────────────────────── */
.section-clean {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-alt {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 6rem 2rem;
}
.section-alt > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-heading {
  font-family: "Rajdhani", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.section-heading em {
  font-style: normal;
  color: var(--accent);
}
.section-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent);
  color: #050a0e;
  border-color: var(--accent);
  box-shadow: 0 0 0 rgba(0, 255, 136, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 255, 136, 0.4),
    var(--glow-g);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 136, 0.15);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--glass-border);
}
.btn-ghost:hover {
  background: var(--glass-border);
  color: var(--text-bright);
  transform: translateY(-1px);
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── HERO ───────────────────────────────────────── */
#hero {
  min-height: 100svh;
  padding: 7rem 2rem 4rem;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 4rem;
  position: relative;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 136, 0.07) 0%,
    transparent 65%
  );
  top: -150px;
  left: -100px;
}
.orb2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.05) 0%,
    transparent 65%
  );
  bottom: 50px;
  right: -100px;
}
.orb3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 68, 102, 0.04) 0%,
    transparent 65%
  );
  top: 50%;
  left: 50%;
}

.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
  }
}

.hero-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  line-height: 0.95;
  color: var(--heading);
  display: block;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.hero-name .name-line {
  display: block;
}
.hero-name .accent {
  color: var(--accent);
}

.hero-role {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.role-bracket {
  color: var(--text-dim);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-dim);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.social-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 255, 136, 0.06);
}

/* ─── HERO PROFILE ────────────────────────────────── */
.profile-hex {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
}
.hex-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px solid;
  animation: spin-ring 12s linear infinite;
}
.hex-ring-1 {
  border-color: rgba(0, 255, 136, 0.25);
}
.hex-ring-2 {
  inset: -28px;
  border-color: rgba(0, 229, 255, 0.15);
  animation-direction: reverse;
  animation-duration: 18s;
}
@keyframes spin-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.profile-img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 0 6px rgba(0, 255, 136, 0.08),
    var(--shadow);
  filter: saturate(0.9) contrast(1.05);
  transition: filter 0.3s;
}
.profile-img:hover {
  filter: saturate(1.1) contrast(1);
}

.hex-badge {
  position: absolute;
  bottom: 10px;
  right: -10px;
  background: var(--accent);
  color: #050a0e;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-stat-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-stat {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
  min-width: 80px;
}
.ms-num {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.ms-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ─── REVEAL ANIMATION ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── EXPLAINER ──────────────────────────────────── */
.explainer-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.exp-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.exp-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  opacity: 0;
  transition: opacity 0.25s;
}
.exp-card:hover {
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.exp-card:hover::after {
  opacity: 1;
}
.exp-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.exp-card h3 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.exp-card p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}
.exp-pill {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.exp-pill.red {
  background: rgba(255, 68, 102, 0.12);
  color: var(--red);
  border: 1px solid rgba(255, 68, 102, 0.3);
}
.exp-pill.blue {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

/* ─── ABOUT ──────────────────────────────────────── */
.about-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: start;
}
.about-photo-col {
  flex-shrink: 0;
}
.photo-stack {
  position: relative;
  display: inline-block;
}
.photo-deco {
  position: absolute;
  inset: -10px;
  border: 1.5px dashed var(--border2);
  border-radius: 20px;
  transform: rotate(3deg);
}
.about-photo {
  width: 320px;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  box-shadow: var(--shadow);
  filter: saturate(0.85);
  transition: filter 0.3s;
}
.about-photo:hover {
  filter: saturate(1);
}
.photo-caption {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #050a0e;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.about-text-col p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text-col strong {
  color: var(--text-bright);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.astat {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}
.astat-num {
  font-family: "Orbitron", monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
}
.astat-plus {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  color: var(--accent);
}
.astat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

/* ─── SKILLS ─────────────────────────────────────── */
.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
  max-width: 800px;
}
.skill-row {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.skill-row:hover {
  border-color: rgba(0, 255, 136, 0.25);
  box-shadow: var(--shadow);
}
.skill-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0.75rem;
}
.skill-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.skill-title {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  color: var(--heading);
  font-size: 1rem;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.skill-plain {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.skill-track {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border-radius: 100px;
  height: 6px;
  overflow: visible;
  position: relative;
}
.skill-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  background: var(--color, var(--accent));
  box-shadow: 0 0 8px var(--color, var(--accent));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}
.skill-pct {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  flex-shrink: 0;
  width: 34px;
  text-align: right;
}

/* Certs */
.certs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  flex: 1;
  min-width: 220px;
  transition: border-color 0.2s;
}
.cert-item:hover {
  border-color: var(--accent);
}
.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.cert-item.in-progress .cert-dot {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}
.cert-item.done .cert-dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.cert-name {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-bright);
  letter-spacing: 0.5px;
}
.cert-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ─── PROJECTS ───────────────────────────────────── */
.projects-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.proj-tile {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.proj-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 229, 255, 0.3);
}

.proj-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.proj-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition:
    filter 0.4s,
    transform 0.4s;
}
.proj-tile:hover .proj-img-wrap img {
  filter: brightness(0.85) saturate(1);
  transform: scale(1.04);
}
.proj-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, var(--card-bg) 100%);
}

.proj-content {
  padding: 1.25rem 1.5rem 1.5rem;
}
.proj-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 229, 255, 0.25);
}
.proj-tag.offensive {
  background: rgba(255, 68, 102, 0.1);
  color: var(--red);
  border-color: rgba(255, 68, 102, 0.25);
}
.proj-tag.websec {
  background: rgba(255, 204, 0, 0.1);
  color: var(--amber);
  border-color: rgba(255, 204, 0, 0.25);
}
.proj-tag.blueteam {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.25);
}

.proj-content h3 {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.proj-content p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.proj-plain {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
  padding: 6px 10px;
  border-left: 2px solid var(--accent);
  background: rgba(0, 255, 136, 0.04);
  margin-bottom: 0.75rem;
  border-radius: 0 6px 6px 0;
}
.proj-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1rem;
}
.proj-tools span {
  font-size: 0.68rem;
  color: var(--text-dim);
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: var(--glass);
  cursor: default;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.proj-tile:hover .proj-tools span {
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.25);
}
.proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.proj-year {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}
.proj-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}
.proj-link:hover {
  letter-spacing: 0.5px;
}
.proj-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ─── WHY STATS ───────────────────────────────────── */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.stat-hero {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.stat-hero::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.stat-hero:hover {
  border-color: rgba(0, 255, 136, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.stat-hero:hover::before {
  transform: scaleX(1);
}
.sh-num {
  font-family: "Orbitron", monospace;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--accent);
  text-shadow: var(--glow-g);
  display: block;
  margin-bottom: 0.75rem;
}
.sh-label {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.6;
}
.why-cta {
  text-align: center;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.why-cta p {
  font-size: 1.15rem;
  color: var(--text-bright);
  font-weight: 600;
}

/* ─── CONTACT ─────────────────────────────────────── */
.contact-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}
.contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.2s;
  cursor: pointer;
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row:hover {
  background: var(--glass);
}
.contact-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.contact-row:hover .contact-icon-wrap {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--accent);
}
.cinfo-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cinfo-val {
  font-size: 0.9rem;
  color: var(--text-bright);
  font-weight: 500;
  margin-top: 1px;
}
.cinfo-arrow {
  margin-left: auto;
  color: var(--text-dim);
  flex-shrink: 0;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.contact-row:hover .cinfo-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.availability-badge {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.25);
  border-radius: 14px;
  padding: 1rem 1.2rem;
}
.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
  animation: pulse-dot 2s infinite;
}
.avail-title {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}
.avail-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Form */
.contact-form-wrap {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--glass-border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-bright);
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-feedback {
  margin-top: 1rem;
  font-size: 0.88rem;
  min-height: 22px;
  padding: 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  transition: all 0.3s;
}
.form-feedback.success {
  color: var(--accent);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  padding: 10px;
}
.form-feedback.error {
  color: var(--red);
  background: rgba(255, 68, 102, 0.08);
  border: 1px solid rgba(255, 68, 102, 0.3);
  padding: 10px;
}

/* ─── FOOTER ─────────────────────────────────────── */
#footer {
  background: var(--bg2);
  border-top: 1px solid var(--glass-border);
  padding: 4rem 2rem 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--glass-border);
}
.footer-brand {
}
.footer-logo {
  margin-bottom: 1rem;
  display: inline-flex;
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.footer-links-col {
}
.footer-col-title {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-links-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-links-col a:hover {
  color: var(--text-bright);
}
.footer-terminal-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.footer-terminal-btn:hover {
  background: rgba(0, 255, 136, 0.18);
  box-shadow: var(--glow-g);
}
.footer-terminal-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.6;
}
.footer-terminal-hint code {
  color: var(--accent);
}
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2.5s infinite;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-photo-col {
    display: flex;
    justify-content: center;
  }
  .about-photo {
    width: 260px;
    height: 310px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .projects-mosaic {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    text-align: center;
    padding-top: 6rem;
    gap: 3rem;
  }
  .hero-desc {
    max-width: 100%;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-socials {
    justify-content: center;
  }
  .hero-visual {
    width: 100%;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .terminal-btn span {
    display: none;
  }
  .terminal-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 768px) {
  .section-clean,
  .section-alt {
    padding: 4rem 1.25rem;
  }
  .projects-mosaic {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }
  .stats-showcase {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .nav-inner {
    padding: 0 1.25rem;
  }
  #hero {
    padding: 5.5rem 1.25rem 3rem;
  }
  .skill-track {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .stats-showcase {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .certs-row {
    flex-direction: column;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .profile-hex {
    width: 220px;
    height: 220px;
  }
  .profile-img {
    width: 220px;
    height: 220px;
  }
  .hex-ring-1 {
    inset: -12px;
  }
  .hex-ring-2 {
    inset: -22px;
  }
  .mini-stat-grid {
    gap: 0.75rem;
  }
  .section-heading {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
}

@media (hover: none) {
  .proj-tile:hover {
    transform: none;
  }
  .exp-card:hover {
    transform: none;
  }
  .stat-hero:hover {
    transform: none;
  }
  .proj-content .proj-link,
  .proj-content .proj-meta {
    opacity: 1;
  }
}

/* ─── LOADING SCREEN ─────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.loader-path {
  animation: draw-path 0.8s ease forwards 0.2s;
}
.loader-check {
  animation: draw-check 0.4s ease forwards 1s;
}
@keyframes draw-path {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

.loader-text {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.loader-dots::after {
  content: "...";
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}

/* ─── CURSOR TRAIL ───────────────────────────────── */
#cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
}

/* ─── TYPING CURSOR ──────────────────────────────── */
.type-cursor {
  color: var(--accent);
  animation: blink-cursor 0.8s step-end infinite;
  font-family: "Share Tech Mono", monospace;
}
@keyframes blink-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
