/* ================================================================
   ESWARAN S — SOC ANALYST PORTFOLIO
   Design System: Midnight SOC Terminal
   Palette: Deep navy blacks, electric cyan-green, steel blue
   Font: JetBrains Mono (mono) + Inter (body)
================================================================ */

/* ================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
================================================================ */
:root {
  /* Background layers */
  --bg-void:       #080B10;  /* deepest background */
  --bg-primary:    #0C1018;  /* main page bg */
  --bg-secondary:  #111720;  /* section alt bg */
  --bg-card:       #161D2A;  /* cards, panels */
  --bg-card-hover: #1C2535;  /* card hover state */
  --bg-elevated:   #1F2940;  /* modals, dropdowns */

  /* Border system */
  --border-dim:    #1E2A3A;
  --border:        #253348;
  --border-bright: #2E4060;

  /* Accent palette */
  --accent-cyan:   #00E5CC;  /* primary — SOC screen green-cyan */
  --accent-blue:   #4D9EFF;  /* secondary — link blue */
  --accent-yellow: #F0C040;  /* warning / highlight */
  --accent-red:    #FF4D6A;  /* error / alert */
  --accent-purple: #A78BFA;  /* purple accent */

  /* Semantic status */
  --status-active:  #00D68F;
  --status-warn:    #F0C040;
  --status-alert:   #FF4D6A;

  /* Text hierarchy */
  --text-primary:   #CDD9E8;  /* headings, important */
  --text-secondary: #8BA0B8;  /* body copy */
  --text-muted:     #546478;  /* placeholders, captions */
  --text-dim:       #3A4A5C;  /* very muted */

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --max-width: 1140px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 14px;

  /* Motion */
  --transition-fast: 0.15s ease;
  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;

  /* Glow effects */
  --glow-cyan:   0 0 18px rgba(0, 229, 204, 0.28);
  --glow-blue:   0 0 18px rgba(77, 158, 255, 0.28);
  --glow-card:   0 8px 32px rgba(0, 0, 0, 0.55);
}

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

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

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
  /* subtle noise texture via repeating gradient */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(0, 229, 204, 0.008) 3px,
      rgba(0, 229, 204, 0.008) 4px
    );
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* Selection */
::selection { background: rgba(0, 229, 204, 0.2); color: var(--text-primary); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Typography defaults */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}
a:hover { color: var(--accent-blue); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.2;
}

/* ================================================================
   3. LAYOUT HELPERS
================================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 88px 0;
  position: relative;
}

section + section {
  border-top: 1px solid var(--border-dim);
}

/* ================================================================
   4. SECTION HEADERS
================================================================ */
.section-header {
  margin-bottom: 48px;
}

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  opacity: 0.8;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-title .accent-text {
  color: var(--accent-cyan);
}

/* ================================================================
   5. NAVBAR
================================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 11, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dim);
  transition: border-color var(--transition), background var(--transition);
}

#navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 24px;
}

/* Logo */
.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.nav-logo:hover { color: var(--text-primary); text-decoration: none; }
.logo-bracket { color: var(--text-muted); }
.logo-accent  { color: var(--accent-cyan); }
.nav-cursor {
  color: var(--accent-cyan);
  animation: blink-cursor 1.1s step-end infinite;
  margin-left: 2px;
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 11.5px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  letter-spacing: 0.03em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0, 229, 204, 0.07);
  text-decoration: none;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Live clock */
.nav-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-dim);
  padding: 16px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  padding: 10px 28px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.mobile-menu a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 229, 204, 0.06);
  text-decoration: none;
}

/* ================================================================
   6. HERO
================================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 58px;
  position: relative;
  overflow: hidden;
}

/* Canvas background */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

/* Grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 204, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 740px;
}

/* Breadcrumb path */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-breadcrumb .accent-text { color: var(--accent-cyan); }

/* Status badge */
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--status-active);
  border-radius: 24px;
  padding: 5px 16px;
  font-size: 11px;
  color: var(--status-active);
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.hero-status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--status-active);
  border-radius: 50%;
  animation: status-pulse 2s ease-in-out infinite;
}

/* Name */
.hero-name {
  font-size: clamp(38px, 6.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.hero-name .name-accent { color: var(--accent-cyan); }

/* Typing line */
.hero-role-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 30px;
}
.role-prefix {
  color: var(--accent-cyan);
  font-weight: 700;
}
.hero-typing { color: var(--accent-blue); }

/* Cursor blink */
.cursor-blink {
  color: var(--accent-cyan);
  animation: blink-cursor 1.1s step-end infinite;
}

/* Tagline */
.hero-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 36px;
  max-width: 560px;
  font-family: var(--font-body);
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Metrics row */
.hero-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  flex-wrap: wrap;
}

.metric-block {
  flex: 1;
  min-width: 120px;
  padding: 18px 22px;
  border-right: 1px solid var(--border);
  transition: background var(--transition-fast);
}
.metric-block:last-child { border-right: none; }
.metric-block:hover { background: var(--bg-card-hover); }

.metric-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.metric-label {
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent-cyan), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

/* ================================================================
   7. BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  border: none;
}

.btn-primary {
  background: transparent;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}
.btn-primary:hover {
  background: var(--accent-cyan);
  color: var(--bg-void);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  border: 1px solid transparent;
  color: var(--accent-cyan);
  padding: 6px 14px;
}
.btn-ghost:hover {
  border-color: var(--accent-cyan);
  text-decoration: none;
}

/* ================================================================
   8. TERMINAL BLOCK (About)
================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.terminal-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glow-card);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28C840; }
.terminal-filename {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 10px;
}

.terminal-body {
  padding: 22px 26px;
  font-size: 13px;
  line-height: 1.95;
}

.t-line { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 4px; }
.t-prompt { color: var(--accent-cyan); flex-shrink: 0; user-select: none; }
.t-cmd    { color: var(--accent-blue); }
.t-out    { color: var(--text-secondary); padding-left: 24px; margin-bottom: 10px; font-family: var(--font-body); font-size: 12.5px; }

/* About stats panel */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.stat-card:hover { border-color: var(--border-bright); transform: translateX(4px); }
.stat-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.stat-body {}
.stat-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}
.stat-value {
  font-size: 12.5px;
  color: var(--text-primary);
}

/* ================================================================
   9. SKILLS
================================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-cyan);
  opacity: 0;
  transition: opacity var(--transition);
}
.skill-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--glow-card);
}
.skill-card:hover::before { opacity: 1; }

.skill-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.skill-icon { font-size: 15px; }
.skill-cat-name {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 600;
}

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

.tag {
  font-size: 11px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: all var(--transition-fast);
  cursor: default;
}
.tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 229, 204, 0.05);
}
.tag.tool-tag {
  border-color: rgba(77, 158, 255, 0.25);
  color: var(--accent-blue);
  background: rgba(77, 158, 255, 0.05);
}
.tag.tool-tag:hover {
  background: rgba(77, 158, 255, 0.1);
  border-color: var(--accent-blue);
}

/* ================================================================
   10. PROJECTS
================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.project-card:hover {
  border-color: rgba(0, 229, 204, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), var(--glow-cyan);
}
.project-card:hover::after { transform: scaleX(1); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}
.project-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}
.project-title .featured-badge {
  font-size: 9px;
  padding: 2px 8px;
  background: rgba(240, 192, 64, 0.12);
  border: 1px solid rgba(240, 192, 64, 0.3);
  border-radius: 3px;
  color: var(--accent-yellow);
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-pill {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-ongoing  { background: rgba(240,192,64,0.1); border: 1px solid rgba(240,192,64,0.35); color: var(--accent-yellow); }
.status-completed{ background: rgba(0,214,143,0.1); border: 1px solid rgba(0,214,143,0.35); color: var(--status-active); }

.project-category {
  font-size: 10.5px;
  color: var(--accent-blue);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.project-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
  font-family: var(--font-body);
  flex: 1;
}

.project-features {
  list-style: none;
  margin-bottom: 20px;
}
.project-features li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0 3px 16px;
  position: relative;
  line-height: 1.6;
}
.project-features li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.stack-chip {
  font-size: 10.5px;
  padding: 3px 10px;
  background: rgba(77, 158, 255, 0.07);
  border: 1px solid rgba(77, 158, 255, 0.18);
  border-radius: 3px;
  color: var(--accent-blue);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
.project-link {
  font-size: 11.5px;
  color: var(--accent-cyan);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition-fast), gap var(--transition-fast);
}
.project-link:hover {
  color: var(--accent-blue);
  gap: 8px;
  text-decoration: none;
}
.project-link::before { content: '↗'; }

/* ================================================================
   11. EXPERIENCE (Timeline)
================================================================ */
.experience-list {
  position: relative;
  padding-left: 28px;
}
.experience-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-cyan), transparent);
}

.exp-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 4px;
}
.exp-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(0, 229, 204, 0.5);
}
.exp-item.current::before {
  animation: status-pulse 2s ease-in-out infinite;
}

.exp-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.exp-role {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}
.exp-company {
  font-size: 13px;
  color: var(--accent-blue);
}
.exp-type-badge {
  font-size: 9px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.exp-current-badge {
  font-size: 9px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 229, 204, 0.3);
  border-radius: 3px;
  color: var(--accent-cyan);
  background: rgba(0, 229, 204, 0.07);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.exp-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.exp-dur {
  padding: 2px 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.exp-highlights { list-style: none; }
.exp-highlights li {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.75;
  font-family: var(--font-body);
}
.exp-highlights li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ================================================================
   12. EDUCATION
================================================================ */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: border-color var(--transition);
  flex-wrap: wrap;
}
.edu-card:hover { border-color: var(--border-bright); }

.edu-card.current { border-left: 3px solid var(--accent-cyan); }

.edu-left {}
.edu-institution { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.edu-degree { font-size: 13px; color: var(--accent-blue); margin-bottom: 4px; }
.edu-spec { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.edu-extras { display: flex; flex-wrap: wrap; gap: 7px; }
.edu-extra-badge {
  font-size: 10px;
  padding: 2px 9px;
  border: 1px solid rgba(0, 229, 204, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  background: rgba(0, 229, 204, 0.05);
}

.edu-right { text-align: right; flex-shrink: 0; }
.edu-score { font-size: 18px; font-weight: 700; color: var(--accent-cyan); margin-bottom: 4px; }
.edu-duration { font-size: 11px; color: var(--text-muted); }
.edu-status {
  display: inline-block;
  font-size: 9px;
  padding: 2px 8px;
  border: 1px solid rgba(0, 214, 143, 0.3);
  border-radius: 3px;
  color: var(--status-active);
  background: rgba(0, 214, 143, 0.07);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ================================================================
   13. CERTIFICATIONS
================================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.cert-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
  box-shadow: var(--glow-card);
}

.cert-card-top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  overflow: hidden;
}
.cert-card-top-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.cert-card-top-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,11,16,0.55);
}

.cert-card-body { padding: 16px 18px; }
.cert-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}
.cert-issuer-date {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cert-type-badge {
  display: inline-block;
  font-size: 9.5px;
  padding: 2px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.cert-type-badge.professional { background:rgba(0,229,204,0.1); border:1px solid rgba(0,229,204,0.25); color:var(--accent-cyan); }
.cert-type-badge.foundational { background:rgba(77,158,255,0.1); border:1px solid rgba(77,158,255,0.25); color:var(--accent-blue); }
.cert-type-badge.practical    { background:rgba(240,192,64,0.1); border:1px solid rgba(240,192,64,0.25); color:var(--accent-yellow); }

.cert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-btn {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 5px 13px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-secondary);
}
.cert-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); text-decoration: none; background: rgba(0,229,204,0.05); }
.cert-btn.view-btn { border-color: rgba(0,229,204,0.3); color: var(--accent-cyan); background: rgba(0,229,204,0.07); }
.cert-btn.view-btn:hover { background: rgba(0,229,204,0.14); }

/* ================================================================
   14. ACHIEVEMENTS / CTF
================================================================ */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.achieve-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.achieve-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.achieve-card:hover {
  border-color: rgba(0,229,204,0.35);
  transform: translateY(-4px);
  box-shadow: var(--glow-card);
}
.achieve-card:hover::before { transform: scaleX(1); }

.achieve-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.achieve-icon { font-size: 20px; }
.achieve-tag {
  font-size: 9.5px;
  padding: 2px 9px;
  background: rgba(0,229,204,0.07);
  border: 1px solid rgba(0,229,204,0.2);
  border-radius: 3px;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.achieve-rank {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-yellow);
  margin-left: auto;
}
.achieve-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.achieve-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-family: var(--font-body);
}

/* ================================================================
   15. TOOLS & TECHNOLOGIES
================================================================ */
.tools-container {}

.tools-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tool-category-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.05em;
}
.tool-category-btn:hover,
.tool-category-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0,229,204,0.07);
}

.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: default;
}
.tool-pill:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.tool-cat-label {
  font-size: 9.5px;
  padding: 1px 7px;
  border-radius: 3px;
  background: rgba(0,229,204,0.07);
  border: 1px solid rgba(0,229,204,0.15);
  color: var(--accent-cyan);
  letter-spacing: 0.07em;
}
.tool-pill.hidden { display: none; }

/* ================================================================
   16. CONTACT
================================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

.contact-info {}
.contact-headline {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.contact-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 28px;
  font-family: var(--font-body);
  max-width: 480px;
}

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

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}
.contact-item:hover {
  border-color: var(--accent-cyan);
  transform: translateX(5px);
  text-decoration: none;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0,229,204,0.07);
  border: 1px solid rgba(0,229,204,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1px;
}
.contact-item-value {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* Resume card */
.contact-resume-panel {}
.resume-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.resume-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.resume-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.resume-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  font-family: var(--font-body);
}
.resume-download-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.resume-download-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-void);
  box-shadow: var(--glow-cyan);
  text-decoration: none;
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
}
.social-link:hover {
  border-color: var(--border-bright);
  background: var(--bg-card);
  text-decoration: none;
  transform: translateX(-3px);
}
.social-link-left { display: flex; align-items: center; gap: 10px; }
.social-label { font-size: 12px; color: var(--text-secondary); }
.social-handle { font-size: 11px; color: var(--text-muted); }
.social-arrow { font-size: 12px; color: var(--text-dim); transition: color var(--transition-fast); }
.social-link:hover .social-arrow { color: var(--accent-cyan); }

/* ================================================================
   17. FOOTER
================================================================ */
#footer {
  border-top: 1px solid var(--border-dim);
  background: var(--bg-secondary);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-left, .footer-right {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.footer-center {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-align: center;
}

/* ================================================================
   18. MODAL (Cert Viewer)
================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(6px);
  cursor: pointer;
}
.modal-box {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
  animation: modal-in 0.25s ease;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.modal-header h3 { font-size: 14px; color: var(--text-primary); }
.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.modal-close:hover { color: var(--accent-red); background: rgba(255,77,106,0.1); }
.modal-body { padding: 22px; }
.modal-cert-preview { min-height: 200px; border-radius: var(--radius); overflow: hidden; }
.cert-placeholder {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  gap: 10px;
}
.cert-placeholder-icon { font-size: 40px; }
.cert-placeholder { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.cert-placeholder-issuer { font-size: 13px; color: var(--accent-blue); }
.cert-placeholder-date   { font-size: 12px; color: var(--text-muted); }
.cert-placeholder-note   { font-size: 11px; color: var(--text-dim); margin-top: 8px; font-family: var(--font-body); }

.modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-wrap: wrap;
}

/* ================================================================
   19. BACK TO TOP BUTTON
================================================================ */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
#back-to-top:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* ================================================================
   20. SCROLL REVEAL
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   21. ANIMATIONS
================================================================ */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50%       { transform: scaleY(0.6); opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.94) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   22. RESPONSIVE
================================================================ */
@media (max-width: 960px) {
  .about-grid      { grid-template-columns: 1fr; }
  .contact-layout  { grid-template-columns: 1fr; }
  .edu-card        { flex-direction: column; }
  .edu-right       { text-align: left; }
}

@media (max-width: 760px) {
  html { font-size: 13px; }

  section { padding: 64px 0; }

  .nav-links { display: none; }
  .nav-clock { display: none; }
  .nav-toggle { display: flex; }

  .hero-name    { font-size: clamp(30px, 9vw, 48px); }
  .hero-metrics { flex-direction: column; }
  .metric-block { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-block:last-child { border-bottom: none; }

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

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

  .exp-header { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-cta  { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .contact-layout { grid-template-columns: 1fr; }
}
