/* ═══════════════════════════════════════════════════════════════
   ALVIN MAINA PORTFOLIO — style.css
   Dark Futuristic | Cybersecurity + AI Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --bg-primary:      #070709;
  --bg-secondary:    #0d0d14;
  --bg-card:         rgba(13, 17, 28, 0.85);
  --bg-glass:        rgba(10, 14, 25, 0.6);

  --blue-primary:    #1a6fff;
  --blue-bright:     #3d8bff;
  --blue-dim:        #0d3d8a;
  --blue-glow:       rgba(26, 111, 255, 0.3);

  --gold-primary:    #c9a227;
  --gold-bright:     #f0c040;
  --gold-dim:        #6b5311;
  --gold-glow:       rgba(201, 162, 39, 0.25);

  --text-primary:    #e8eaf2;
  --text-secondary:  #8a90aa;
  --text-muted:      #4a5070;
  --text-accent:     #3d8bff;

  --border-color:    rgba(26, 111, 255, 0.15);
  --border-gold:     rgba(201, 162, 39, 0.2);
  --border-bright:   rgba(26, 111, 255, 0.4);

  --font-display:    'Exo 2', sans-serif;
  --font-mono:       'Share Tech Mono', monospace;
  --font-body:       'Rajdhani', sans-serif;

  --radius-sm:       4px;
  --radius-md:       8px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-med:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-blue:     0 0 30px rgba(26, 111, 255, 0.15), 0 8px 32px rgba(0,0,0,0.4);
  --shadow-gold:     0 0 30px rgba(201, 162, 39, 0.1), 0 8px 32px rgba(0,0,0,0.4);
  --glow-blue:       0 0 20px rgba(26, 111, 255, 0.5);
  --glow-gold:       0 0 20px rgba(201, 162, 39, 0.5);

  --nav-height:      70px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loading { overflow: hidden; }

::selection {
  background: var(--blue-dim);
  color: var(--blue-bright);
}

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

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--blue-primary), var(--gold-primary));
  border-radius: 2px;
}

/* ── PARTICLE CANVAS ────────────────────────────────────────── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
.cursor-glow {
  position: fixed;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,111,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
}

.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-blue);
  transition: transform 0.04s linear, width 0.2s, height 0.2s, background 0.2s;
}

.cursor-dot.hovering {
  width: 20px; height: 20px;
  background: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

/* ── LOADING SCREEN ─────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-hex {
  position: relative;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-svg {
  position: absolute;
  width: 100%; height: 100%;
}

.hex-shape {
  fill: none;
  stroke: var(--blue-primary);
  stroke-width: 2;
  stroke-dasharray: 310;
  stroke-dashoffset: 310;
  animation: hexDraw 1.5s ease forwards;
}

@keyframes hexDraw {
  to { stroke-dashoffset: 0; }
}

.loader-initials {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--blue-bright);
  letter-spacing: 4px;
  animation: fadeIn 0.5s 0.8s ease both;
}

.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(26,111,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  border-radius: 2px;
  width: 0%;
  animation: loaderFill 2s ease forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 80%; }
  100% { width: 100%; }
}

.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 3px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-med), border-color var(--transition-med), box-shadow var(--transition-med);
}

.navbar.scrolled {
  background: rgba(7, 7, 9, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo:hover { color: var(--blue-bright); }

.logo-bracket {
  color: var(--blue-primary);
  font-weight: 300;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background: var(--blue-bright);
  transition: width var(--transition-med);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after { width: 60%; }

.nav-link.active { color: var(--blue-bright); }

.nav-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  width: 0%;
  transition: width 0.1s linear;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all var(--transition-med);
}

.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); }

/* ── CONTAINER & SECTIONS ───────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-header {
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-bright);
  letter-spacing: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  margin-top: 8px;
}

/* ── SCROLL REVEAL ANIMATIONS ───────────────────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before { left: 100%; }

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
  border: 1px solid var(--blue-bright);
  box-shadow: 0 0 20px rgba(26,111,255,0.2);
}

.btn-primary:hover {
  background: var(--blue-bright);
  box-shadow: var(--glow-blue), 0 8px 24px rgba(26,111,255,0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 16px rgba(201,162,39,0.1);
}

.btn-secondary:hover {
  background: rgba(201,162,39,0.1);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
  color: var(--gold-bright);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.btn-icon { font-size: 14px; }

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 0;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,111,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,111,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

.hero-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), transparent);
  opacity: 0.3;
  animation: scanDown 6s linear infinite;
  pointer-events: none;
}

@keyframes scanDown {
  0% { top: 0%; opacity: 0.3; }
  50% { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

.hero-content {
  z-index: 1;
  padding: 80px 0 80px 80px;
  max-width: 700px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-primary);
  background: rgba(201,162,39,0.08);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.name-first {
  display: block;
  color: var(--text-primary);
}

.name-last {
  display: block;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(61, 139, 255, 0.6);
  background: linear-gradient(135deg, var(--blue-bright), var(--gold-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.2vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 24px;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.typed-text { color: var(--blue-bright); }

.typed-cursor {
  color: var(--blue-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 560px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 20px 28px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: fit-content;
}

.stat-item {
  text-align: center;
  padding: 0 28px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--blue-bright);
  line-height: 1;
  display: inline;
}

.stat-plus {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-primary);
}

.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

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

.hero-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-med);
}

.social-link svg { width: 17px; height: 17px; }

.social-link:hover {
  color: var(--blue-bright);
  border-color: var(--blue-primary);
  background: rgba(26,111,255,0.1);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

/* Hero Visual — Hex Avatar */
.hero-visual {
  padding: 0 80px 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.hex-avatar {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hex-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotate-ring 20s linear infinite;
}

.hex-ring-1 {
  width: 100%; height: 100%;
  border-color: rgba(26,111,255,0.2);
  animation-duration: 25s;
}

.hex-ring-2 {
  width: 75%; height: 75%;
  border-color: rgba(201,162,39,0.2);
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 18s;
}

.hex-ring-3 {
  width: 50%; height: 50%;
  border-color: rgba(26,111,255,0.35);
  animation-duration: 12s;
}

@keyframes rotate-ring {
  to { transform: rotate(360deg); }
}

.hex-core {
  position: relative;
  width: 140px; height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(26,111,255,0.15), rgba(201,162,39,0.1));
  border: 1px solid rgba(26,111,255,0.4);
  border-radius: 50%;
  box-shadow: var(--glow-blue), inset 0 0 40px rgba(26,111,255,0.05);
}

.hex-inner-text {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-bright), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hex-orbit {
  position: absolute;
  width: 100%; height: 100%;
  animation: rotate-ring 4s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: var(--glow-gold);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--blue-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { height: 40px; opacity: 0.5; }
  50% { height: 60px; opacity: 1; }
}

/* ── ABOUT SECTION ──────────────────────────────────────────── */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}

.about-card-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-blue);
  position: sticky;
  top: 100px;
}

.about-avatar-hex {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(26,111,255,0.2), rgba(201,162,39,0.1));
  border: 1px solid rgba(26,111,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background-clip: text;
  color: var(--blue-bright);
  box-shadow: var(--glow-blue);
}

.about-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(26,255,100,0.05);
  border: 1px solid rgba(26,255,100,0.15);
  padding: 6px 14px;
  border-radius: 20px;
}

.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #26e87a;
  box-shadow: 0 0 8px #26e87a;
}

.status-dot.pulse {
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.about-mini-stats {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}

.mini-stat {
  text-align: center;
}

.ms-val {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--blue-bright);
}

.ms-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.about-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 18px;
  font-weight: 400;
}

.about-text em {
  color: var(--blue-bright);
  font-style: normal;
}

.about-text.lead {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 500;
}

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-primary);
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border-gold);
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
  transition: all var(--transition-fast);
}

.value-tag:hover {
  background: rgba(201,162,39,0.15);
  box-shadow: var(--glow-gold);
}

.value-tag span { color: var(--gold-bright); font-size: 8px; }

/* ── SKILLS SECTION ─────────────────────────────────────────── */
.skills-section { background: var(--bg-primary); }

.skills-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.skill-filter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.skill-filter:hover,
.skill-filter.active {
  color: var(--blue-bright);
  border-color: var(--blue-primary);
  background: rgba(26,111,255,0.08);
}

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

.skill-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-med);
  overflow: hidden;
}

.skill-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
}

.skill-card.hidden { display: none; }

.skill-card-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity var(--transition-med);
  background: radial-gradient(circle at 50% 0%, rgba(26,111,255,0.08), transparent 70%);
}

.skill-card:hover .skill-card-glow { opacity: 1; }

.skill-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.skill-icon-wrap svg { width: 26px; height: 26px; }

.skill-icon-wrap.security { background: rgba(255,80,80,0.1); color: #ff5050; border: 1px solid rgba(255,80,80,0.2); }
.skill-icon-wrap.ai       { background: rgba(26,111,255,0.1); color: var(--blue-bright); border: 1px solid rgba(26,111,255,0.2); }
.skill-icon-wrap.web      { background: rgba(100,200,255,0.1); color: #64c8ff; border: 1px solid rgba(100,200,255,0.2); }
.skill-icon-wrap.mobile   { background: rgba(160,100,255,0.1); color: #a064ff; border: 1px solid rgba(160,100,255,0.2); }
.skill-icon-wrap.cloud    { background: rgba(26,220,180,0.1); color: #1adcb4; border: 1px solid rgba(26,220,180,0.2); }
.skill-icon-wrap.se       { background: rgba(201,162,39,0.1); color: var(--gold-bright); border: 1px solid var(--border-gold); }
.skill-icon-wrap.ds       { background: rgba(255,150,50,0.1); color: #ff9632; border: 1px solid rgba(255,150,50,0.2); }
.skill-icon-wrap.net      { background: rgba(80,255,120,0.1); color: #50ff78; border: 1px solid rgba(80,255,120,0.2); }

.skill-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.skill-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

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

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 3px 9px;
  border-radius: 3px;
}

.skill-bar {
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ── PROJECTS SECTION ───────────────────────────────────────── */
.projects-section { background: var(--bg-secondary); }

.projects-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.proj-filter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.proj-filter:hover,
.proj-filter.active {
  color: var(--gold-bright);
  border-color: var(--gold-primary);
  background: rgba(201,162,39,0.07);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all var(--transition-med);
}

.project-card:hover {
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
}

.project-card.hidden { display: none; }

.project-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1a2e, #091420);
}

.project-img-placeholder.ai-bg   { background: linear-gradient(135deg, #0a1428, #0d2040); }
.project-img-placeholder.sec-bg  { background: linear-gradient(135deg, #1a0a0a, #200d0d); }
.project-img-placeholder.data-bg { background: linear-gradient(135deg, #0d1a0a, #122010); }
.project-img-placeholder.cloud-bg { background: linear-gradient(135deg, #0a0d1a, #0d1530); }

.project-img-placeholder svg {
  width: 60px; height: 60px;
  color: rgba(255,255,255,0.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,7,9,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-med);
}

.project-card:hover .project-overlay { opacity: 1; }

.overlay-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--blue-bright);
  border: 1px solid var(--blue-primary);
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  background: rgba(26,111,255,0.1);
}

.overlay-btn:hover {
  background: var(--blue-primary);
  color: #fff;
}

.project-number {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(7,7,9,0.7);
  padding: 3px 8px;
  border-radius: 3px;
}

.project-body { padding: 24px; }

.project-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-badge.fullstack { background: rgba(100,200,255,0.1); color: #64c8ff; border: 1px solid rgba(100,200,255,0.2); }
.project-badge.ai        { background: rgba(26,111,255,0.1); color: var(--blue-bright); border: 1px solid rgba(26,111,255,0.2); }
.project-badge.security  { background: rgba(255,80,80,0.1); color: #ff8080; border: 1px solid rgba(255,80,80,0.2); }
.project-badge.cloud     { background: rgba(26,220,180,0.1); color: #1adcb4; border: 1px solid rgba(26,220,180,0.2); }

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gold-primary);
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border-gold);
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 1px;
}

.project-actions {
  display: flex;
  gap: 12px;
}

.proj-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.proj-btn.primary {
  background: var(--blue-primary);
  color: #fff;
  border: 1px solid var(--blue-bright);
}

.proj-btn.primary:hover {
  background: var(--blue-bright);
  box-shadow: var(--glow-blue);
}

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

.proj-btn.ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
}

/* ── EXPERIENCE / TIMELINE ──────────────────────────────────── */
.experience-section { background: var(--bg-primary); }

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(var(--blue-primary), var(--gold-primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 28px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--blue-primary);
  box-shadow: var(--glow-blue);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-med);
}

.timeline-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-blue);
}

.tc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 14px;
}

.tc-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.tc-org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-bright);
  letter-spacing: 1px;
}

.tc-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-primary);
  white-space: nowrap;
  background: rgba(201,162,39,0.07);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: 3px;
}

.tc-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.tc-tags span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}

/* ── CERTIFICATIONS ─────────────────────────────────────────── */
.certs-section { background: var(--bg-secondary); }

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

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-med);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

.cert-logo {
  height: 36px;
  display: flex;
  align-items: center;
}

.cert-logo.cisco     { color: #1ba0d7; }
.cert-logo.aws       { color: #ff9900; }
.cert-logo.google    { color: #4285f4; }
.cert-logo.tryhackme { color: #1db954; }
.cert-logo.coursera  { color: #0056d2; }

.cert-logo svg { height: 100%; }

.cert-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.cert-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cert-footer { margin-top: auto; }

.cert-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 3px;
}

.cert-badge.verified {
  color: #26e87a;
  background: rgba(38,232,122,0.08);
  border: 1px solid rgba(38,232,122,0.2);
}

.cert-badge.inprogress {
  color: var(--gold-primary);
  background: rgba(201,162,39,0.08);
  border: 1px solid var(--border-gold);
}

/* ── LEARNING SECTION ───────────────────────────────────────── */
.learning-section { background: var(--bg-primary); }

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

.learning-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: all var(--transition-med);
  position: relative;
  overflow: hidden;
}

.learning-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.learning-card:hover::before { transform: scaleX(1); }

.learning-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-5px);
  box-shadow: var(--shadow-blue);
}

.lc-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.lc-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.lc-icon svg { width: 28px; height: 28px; }

.lc-icon.sec-color   { color: #ff5050; }
.lc-icon.ai-color    { color: var(--blue-bright); }
.lc-icon.cloud-color { color: #1adcb4; }
.lc-icon.os-color    { color: var(--gold-primary); }

.lc-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.lc-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.lc-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.lcp-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.lcp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--gold-primary));
  border-radius: 2px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.lc-progress span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right;
}

.lc-resources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lc-resources span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3px 9px;
  border-radius: 3px;
}

/* ── CONTACT SECTION ────────────────────────────────────────── */
.contact-section { background: var(--bg-secondary); }

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

.contact-intro {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-med);
  backdrop-filter: blur(10px);
}

.contact-link-item:hover {
  border-color: var(--border-bright);
  transform: translateX(6px);
  box-shadow: var(--shadow-blue);
}

.cli-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,111,255,0.1);
  border: 1px solid rgba(26,111,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--blue-bright);
  flex-shrink: 0;
}

.cli-icon svg { width: 18px; height: 18px; }

.cli-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cli-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 16px;
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-primary);
  background: rgba(26,111,255,0.04);
  box-shadow: 0 0 0 3px rgba(26,111,255,0.08);
}

.form-group input.error,
.form-group textarea.error {
  border-color: rgba(255,80,80,0.5);
}

.form-error {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff5050;
  margin-top: 6px;
  min-height: 16px;
  letter-spacing: 1px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 13px;
}

.form-success {
  margin-top: 16px;
  padding: 12px 20px;
  background: rgba(38,232,122,0.08);
  border: 1px solid rgba(38,232,122,0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  color: #26e87a;
  text-align: center;
  letter-spacing: 1px;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 0 24px;
  background: var(--bg-primary);
}

.footer-grid-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-primary), var(--gold-primary), transparent);
  opacity: 0.4;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-bright);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 20px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.back-to-top {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.back-to-top svg { width: 18px; height: 18px; }

.back-to-top:hover {
  border-color: var(--blue-primary);
  color: var(--blue-bright);
  background: rgba(26,111,255,0.08);
  box-shadow: var(--glow-blue);
  transform: translateY(-3px);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 100px 40px 60px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-card-frame { position: static; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(7,7,9,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition-med);
    pointer-events: none;
    gap: 4px;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .hamburger { display: flex; }
  .hero-content { padding: 90px 20px 60px; }
  .hero-stats {
    flex-direction: column;
    width: 100%;
    gap: 16px;
    padding: 20px;
  }
  .stat-divider { width: 40px; height: 1px; }
  .stat-item { padding: 0; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .tc-header { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .skills-grid, .projects-grid, .certs-grid, .learning-grid {
    grid-template-columns: 1fr;
  }
  body { cursor: auto; }
  .cursor-glow, .cursor-dot { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 48px; }
  .hero-intro { font-size: 15px; }
  .section-title { font-size: 26px; }
  .projects-grid { grid-template-columns: 1fr; }
}
