/* ==========================================================================
   PORTFOLIO DESIGN SYSTEM: THIMIRA (T.N. PANDITHA)
   Cyber-Engineering & Distributed Systems Aesthetic
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-primary: #070a0f;
  --bg-secondary: #0c111c;
  --bg-tertiary: #121929;
  --bg-glass: rgba(12, 17, 28, 0.75);
  --bg-glass-card: rgba(18, 25, 41, 0.65);
  --bg-glass-hover: rgba(26, 36, 58, 0.85);

  --accent-emerald: #00f5a0;
  --accent-cyan: #00d2ff;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-crimson: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-emerald: rgba(0, 245, 160, 0.3);
  --border-cyan: rgba(0, 210, 255, 0.3);
  --border-violet: rgba(139, 92, 246, 0.3);

  --glow-emerald: 0 0 25px rgba(0, 245, 160, 0.25);
  --glow-cyan: 0 0 25px rgba(0, 210, 255, 0.25);

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Cyber Canvas */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* Ambient Radial Glows */
.ambient-glow-1 {
  position: fixed;
  top: -15vw;
  right: -10vw;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 5vw;
  left: -15vw;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid var(--border-emerald);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background var(--transition-fast), border var(--transition-fast), backdrop-filter var(--transition-fast);
}

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

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-badge {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(0, 245, 160, 0.12);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  border-radius: 4px;
  font-size: 0.8rem;
}

.brand-sub {
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-nav-gh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-nav-gh:hover {
  background: rgba(0, 245, 160, 0.1);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(0, 245, 160, 0.08);
  border: 1px solid var(--border-emerald);
  padding: 6px 14px;
  border-radius: 999px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}

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

.hero-title {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-roles {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-tag {
  color: var(--text-main);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-emerald);
  color: #070a0f;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 20px rgba(0, 245, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #26ffb4;
  box-shadow: 0 6px 28px rgba(0, 245, 160, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-glass-card);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 6px;
  border: 1px solid var(--border-cyan);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(0, 210, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* Profile Visual / Cyber Frame */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cyber-frame {
  position: relative;
  width: 380px;
  height: 440px;
  border-radius: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-emerald);
  padding: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--glow-emerald);
  overflow: hidden;
}

.cyber-frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-emerald);
  z-index: 5;
  pointer-events: none;
}

.corner-tl { top: 6px; left: 6px; border-right: none; border-bottom: none; }
.corner-tr { top: 6px; right: 6px; border-left: none; border-bottom: none; }
.corner-bl { bottom: 6px; left: 6px; border-right: none; border-top: none; }
.corner-br { bottom: 6px; right: 6px; border-left: none; border-top: none; }

.frame-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0d131f;
}

.frame-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) saturate(1.05);
  transition: transform var(--transition-smooth);
}

.cyber-frame:hover .frame-image {
  transform: scale(1.03);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: scan-vertical 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scan-vertical {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 98%; opacity: 0; }
}

.telemetry-tag {
  position: absolute;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  z-index: 4;
}

.tag-top {
  top: 22px;
  left: 22px;
  color: var(--accent-cyan);
  border-color: var(--border-cyan);
}

.tag-bottom {
  bottom: 22px;
  right: 22px;
  color: var(--accent-emerald);
  border-color: var(--border-emerald);
}

/* Stats Counter Strip */
.stats-strip {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass-card);
  backdrop-filter: blur(12px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.stat-card:hover {
  background: rgba(0, 245, 160, 0.05);
  border-color: var(--border-emerald);
  transform: translateY(-2px);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   ENGINEERING PILLARS
   ========================================================================== */
.pillars-section {
  padding: 90px 0;
  position: relative;
}

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

.pillar-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 34px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
  transition: all var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), var(--glow-emerald);
}

.pillar-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-emerald);
  background: rgba(0, 245, 160, 0.1);
  border: 1px solid var(--border-emerald);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 20px;
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.pillar-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  line-height: 1.3;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.pill-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   INTERACTIVE TERMINAL (/dev/thimira)
   ========================================================================== */
.terminal-section {
  padding: 90px 0;
  position: relative;
}

.terminal-window {
  background: #090e17;
  border: 1px solid rgba(0, 245, 160, 0.35);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 30px rgba(0, 245, 160, 0.15);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.terminal-topbar {
  background: #111827;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.terminal-status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(0, 245, 160, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border-emerald);
}

.terminal-chips-bar {
  padding: 10px 18px;
  background: rgba(17, 24, 39, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.chips-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.term-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-chip:hover {
  background: rgba(0, 210, 255, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #e2e8f0;
  height: 380px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.term-line {
  margin-bottom: 12px;
}

.term-cmd-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.term-prompt {
  color: var(--accent-emerald);
  font-weight: 600;
}

.term-cmd-text {
  color: #ffffff;
  font-weight: 500;
}

.term-response {
  padding-left: 4px;
  color: #cbd5e1;
}

.term-ascii {
  color: var(--accent-emerald);
  font-size: 0.65rem;
  line-height: 1.1;
  white-space: pre;
  margin-bottom: 14px;
}

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

.term-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
  margin-top: 8px;
}

.cmd-name {
  color: var(--accent-emerald);
  font-weight: 600;
}

.cmd-desc {
  color: var(--text-muted);
}

.term-sec {
  margin-top: 10px;
}

.term-tag {
  color: var(--accent-amber);
  font-weight: 600;
  margin-bottom: 4px;
}

.term-highlight {
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: 8px;
}

.term-warn {
  color: #fb7185;
}

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

.term-chip-inline {
  display: inline-block;
  background: rgba(0, 245, 160, 0.15);
  color: var(--accent-emerald);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.repo-item {
  margin-bottom: 8px;
}

.repo-n a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
}

.repo-c {
  color: var(--accent-violet);
  font-size: 0.78rem;
  margin-left: 6px;
}

.repo-d {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.term-log {
  margin-bottom: 4px;
}

.log-ok {
  color: var(--accent-emerald);
  font-weight: 700;
}

.term-code {
  color: #93c5fd;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}

.terminal-input-bar {
  background: #0d131f;
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
}

.terminal-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.terminal-input {
  flex-grow: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #ffffff;
}

.terminal-input::placeholder {
  color: var(--text-dim);
}

/* ==========================================================================
   REPOSITORIES SHOWCASE
   ========================================================================== */
.projects-section {
  padding: 90px 0;
  position: relative;
}

.repo-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: rgba(0, 245, 160, 0.12);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
}

.search-box {
  position: relative;
  min-width: 280px;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 9px 14px 9px 40px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

.repo-count-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

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

.project-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(14px);
  transition: all var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-cyan);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), var(--glow-cyan);
}

.project-card.featured-card {
  border-color: var(--border-emerald);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.8) 0%, rgba(12, 17, 28, 0.65) 100%);
}

.project-card.featured-card:hover {
  border-color: var(--accent-emerald);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--glow-emerald);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
}

.cat-network-security {
  background: rgba(0, 245, 160, 0.1);
  color: var(--accent-emerald);
  border: 1px solid var(--border-emerald);
}

.cat-backend-systems {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
}

.cat-systems-iot {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.cat-fullstack {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
  border: 1px solid var(--border-violet);
}

.feat-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: break-word;
}

.card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.card-summary {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.tech-pill.more {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.btn-card-gh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-card-gh:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}

.btn-card-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 210, 255, 0.12);
  color: var(--accent-cyan);
  border: 1px solid var(--border-cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.btn-card-live:hover {
  background: var(--accent-cyan);
  color: #070a0f;
}

.btn-card-modal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--accent-emerald);
  border: 1px solid var(--border-emerald);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  margin-left: auto;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-modal:hover {
  background: rgba(0, 245, 160, 0.15);
  box-shadow: var(--glow-emerald);
}

/* ==========================================================================
   TECHNICAL SKILLS MATRIX
   ========================================================================== */
.skills-section {
  padding: 90px 0;
  position: relative;
}

.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.skill-category-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  backdrop-filter: blur(14px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 14px;
}

.cyber-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.skill-cat-title {
  font-size: 1.15rem;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.skill-name {
  color: var(--text-main);
  font-weight: 500;
}

.skill-percent {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.82rem;
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.5);
  transition: width 1.2s ease;
}

/* ==========================================================================
   CONTACT & DOSSIER SECTION
   ========================================================================== */
.contact-section {
  padding: 90px 0 120px;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.dossier-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-emerald);
  border-radius: 14px;
  padding: 34px;
  box-shadow: var(--glow-emerald);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dossier-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.dossier-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-emerald);
  letter-spacing: 0.1em;
}

.dossier-title {
  font-size: 1.6rem;
  margin-top: 6px;
}

.dossier-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dossier-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.d-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.d-content {
  flex-grow: 1;
}

.d-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.d-val {
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 500;
}

.copy-trigger {
  background: none;
  border: none;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 34px;
}

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

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 15px rgba(0, 245, 160, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   PROJECT MODAL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 6, 12, 0.85);
  backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.project-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  background: #0d131f;
  border: 1px solid var(--accent-emerald);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), var(--glow-emerald);
  z-index: 210;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.modal-backdrop.active, .project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal.active {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  background: #111827;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title-box h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.modal-title-box p {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  border-color: var(--accent-crimson);
  color: var(--accent-crimson);
}

.modal-content-area {
  padding: 26px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.modal-section {
  margin-bottom: 22px;
}

.modal-sec-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.modal-sec-text {
  color: var(--text-muted);
}

.modal-highlights {
  list-style: none;
}

.modal-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.bullet-glyph {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.modal-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-footer {
  padding: 16px 26px;
  background: #111827;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ==========================================================================
   FOOTER & TOAST
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06090e;
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

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

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-link:hover {
  color: var(--accent-emerald);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(12, 17, 28, 0.95);
  border: 1px solid var(--accent-emerald);
  box-shadow: var(--glow-emerald);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-fast);
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skills-matrix-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

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

  .cyber-frame {
    width: 300px;
    height: 360px;
  }
}
