/**
 * Madhan Kumar R — Portfolio
 * Aesthetic: Precision Dark  (fintech / systems engineer)
 * Fonts: Syne · Plus Jakarta Sans · IBM Plex Mono
 * Accent: Electric Blue #4f81f0
 */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #030508;
  --bg-2:        #070b12;
  --surface:     #0b0f19;
  --surface-2:   #0f1520;
  --border:      #161e30;
  --border-soft: #0e1424;

  --text:        #dce6f5;
  --text-2:      #7a8fa8;
  --text-3:      #3d5068;

  --accent:      #4f81f0;
  --accent-dim:  rgba(79, 129, 240, 0.10);
  --accent-glow: rgba(79, 129, 240, 0.18);
  --accent-hi:   #7ba3f7;

  --green:       #10b981;
  --green-dim:   rgba(16, 185, 129, 0.10);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'IBM Plex Mono', monospace;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  position: relative;
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Deep space background with subtle dot grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 0%,   rgba(79, 129, 240, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%,  rgba(79, 129, 240, 0.04) 0%, transparent 55%),
    var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 0%,   rgba(79, 129, 240, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%,  rgba(79, 129, 240, 0.04) 0%, transparent 55%),
    radial-gradient(circle, rgba(79, 129, 240, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px;
  z-index: -2;
}

/* Grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 9998;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-hi); }

strong { color: var(--text); font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--font-display); }

/* ── Header / Hero ──────────────────────────────────────── */
#header {
  transition: all 0.4s var(--ease);
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  z-index: 997;
  overflow-y: auto;
}

#header * { transition: ease-in-out 0.3s; }

#header .container {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Role badge */
.header-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  background: var(--accent-dim);
  padding: 5px 14px;
  margin-bottom: 24px;
  animation: fadeUp 0.7s var(--ease) both;
}

#header h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 20px 0;
  padding: 0;
  animation: fadeUp 0.7s var(--ease) 0.08s both;
}

#header h1 a,
#header h1 a:hover { color: var(--text); display: block; }

.header-tagline {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-2);
  max-width: 520px;
  line-height: 1.65;
  margin: 0 0 32px 0;
  animation: fadeUp 0.7s var(--ease) 0.16s both;
}

.header-tagline span { color: var(--text); font-weight: 500; }

/* Stats row */
.header-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  animation: fadeUp 0.7s var(--ease) 0.24s both;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}

.stat:first-child { padding-left: 0; }

.stat strong {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat strong span {
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.stat small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin-right: 28px;
  flex-shrink: 0;
}

/* Social links */
#header .social-links {
  display: flex;
  gap: 8px;
  animation: fadeUp 0.7s var(--ease) 0.32s both;
}

#header .social-links a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all 0.25s var(--ease);
}

#header .social-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Desktop Nav (inside header, hidden on mobile) */
.desktop-nav {
  padding: 0;
  margin-bottom: 36px;
  animation: fadeUp 0.7s var(--ease) 0.2s both;
}

.desktop-nav ul {
  margin: 0; padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.desktop-nav li { position: relative; }
.desktop-nav li + li { margin-left: 28px; }

.desktop-nav a,
.desktop-nav a:focus {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav .active::after,
.desktop-nav li:hover > a::after { width: 100%; }

.desktop-nav a:hover,
.desktop-nav .active,
.desktop-nav li:hover > a { color: var(--text); }

@media (max-width: 991px) {
  .desktop-nav { display: none !important; }
}

/* Mobile drawer — hidden on desktop */
@media (min-width: 992px) {
  #navbar { display: none !important; }
}

@media (max-width: 992px) {
  #header h1 { font-size: clamp(36px, 10vw, 64px); }
  .header-tagline { font-size: 14px; }
  .header-stats { gap: 0; flex-wrap: wrap; }
  .stat { padding: 0 20px 0 0; }
  .stat-sep { margin-right: 20px; }
  #header .container { padding-top: 40px; padding-bottom: 40px; }
}

@media (max-width: 576px) {
  .stat strong { font-size: 20px; }
  .stat-sep { height: 28px; }
}

/* ── Sticky Header ──────────────────────────────────────── */
#header.header-top {
  height: 64px;
  position: fixed;
  left: 0; top: 0; right: 0;
  background: rgba(3, 5, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

#header.header-top .header-badge,
#header.header-top .header-tagline,
#header.header-top .header-stats,
#header.header-top .social-links { display: none; }

#header.header-top h1 {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0;
  margin-right: auto;
  animation: none;
}

#header.header-top .container {
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  height: 64px;
}

#header.header-top .desktop-nav {
  margin: 0;
  animation: none;
}

@media (max-width: 768px) {
  #header.header-top { height: 56px; }
  #header.header-top h1 { font-size: 15px; }
  #header.header-top .container { height: 56px; }
}

/* ── Mobile Nav Toggle ──────────────────────────────────── */
.mobile-nav-toggle {
  display: none; /* revealed in mobile media query */
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  line-height: 0;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1002;
  transition: color 0.2s;
}

/* Drawer extras: GLOBALLY hidden — shown only when drawer is open */
.drawer-meta {
  display: none;
}

/* ── Backdrop ───────────────────────────────────────────── */
#nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1003;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

#nav-backdrop.show {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ── Mobile: Drawer Panel ───────────────────────────────── */
@media (max-width: 991px) {

  .mobile-nav-toggle { display: block; }

  /* Hide desktop horizontal list */
  .navbar > ul { display: none; }

  /* Navbar becomes a fixed right-side panel, off-screen by default.
     animation: none cancels the fadeUp that would override transform. */
  #navbar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 1004;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: hidden;
    animation: none !important;
    transform: translateX(110%);
    transition: transform 0.4s var(--ease);
  }

  /* Open state — slides in */
  #navbar.navbar-mobile {
    transform: translateX(0);
  }

  /* Reveal drawer extras only when open */
  #navbar.navbar-mobile .drawer-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
  }

  /* Nav list inside open drawer */
  #navbar.navbar-mobile > ul {
    display: flex !important;
    flex-direction: column;
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
  }

  #navbar.navbar-mobile > ul li { padding: 0; }
  #navbar.navbar-mobile > ul li + li { margin: 0; }

  /* Individual link rows */
  #navbar.navbar-mobile .nav-link {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    color: var(--text-3);
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(18px);
    animation: drawerLinkIn 0.32s var(--ease) forwards;
  }

  /* Stagger each link */
  #navbar.navbar-mobile > ul li:nth-child(1) .nav-link { animation-delay: 0.08s; }
  #navbar.navbar-mobile > ul li:nth-child(2) .nav-link { animation-delay: 0.14s; }
  #navbar.navbar-mobile > ul li:nth-child(3) .nav-link { animation-delay: 0.20s; }
  #navbar.navbar-mobile > ul li:nth-child(4) .nav-link { animation-delay: 0.26s; }
  #navbar.navbar-mobile > ul li:nth-child(5) .nav-link { animation-delay: 0.32s; }

  /* Remove desktop underline on drawer links */
  #navbar.navbar-mobile .nav-link::after { display: none; }

  /* Hover / active: blue left-border accent */
  #navbar.navbar-mobile .nav-link:hover,
  #navbar.navbar-mobile .nav-link.active {
    color: var(--text);
    background: var(--accent-dim);
    border-left: 2px solid var(--accent);
    padding-left: 26px;
  }

  /* Hide floating hamburger while drawer is open */
  #navbar.navbar-mobile .mobile-nav-toggle {
    opacity: 0;
    pointer-events: none;
  }
}

/* ── Drawer Internal Pieces ─────────────────────────────── */
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-monogram {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.drawer-close-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-3);
  cursor: pointer;
  font-size: 14px;
  line-height: 0;
  transition: all 0.2s var(--ease);
}
.drawer-close-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.drawer-avail-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.drawer-social-row {
  display: flex;
  gap: 8px;
}

.drawer-social-row a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 14px;
  transition: all 0.2s var(--ease);
}
.drawer-social-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 11px 20px;
  transition: all 0.25s var(--ease);
}
.drawer-cta:hover {
  background: var(--accent-hi);
  color: var(--bg) !important;
}

/* ── Keyframe ───────────────────────────────────────────── */
@keyframes drawerLinkIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Sections General ────────────────────────────────────── */
section {
  overflow: hidden;
  position: absolute;
  width: 100%;
  top: 120px;
  bottom: 100%;
  opacity: 0;
  transition: opacity 0.4s var(--ease), top 0.4s var(--ease);
  z-index: 2;
}

section.section-show {
  top: 80px;
  bottom: auto;
  opacity: 1;
  padding-bottom: 72px;
}

section .container {
  background: rgba(7, 11, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  padding: 52px 48px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  section { top: 100px; }
  section.section-show { top: 56px; }
  section .container { padding: 32px 20px; }
}

/* ── Section Title ──────────────────────────────────────── */
.section-title {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-3);
  letter-spacing: 0.06em;
  padding-top: 6px;
  flex-shrink: 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin: 0 0 6px 0;
}

.section-title h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* ── About ──────────────────────────────────────────────── */
.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  filter: grayscale(10%) contrast(1.05);
  display: block;
  border: 1px solid var(--border);
  transition: filter 0.4s var(--ease);
}

.about-photo img:hover {
  filter: grayscale(0%) contrast(1.08);
}

/* Decorative corner accent */
.about-photo::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -8px;
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
}

.about-photo::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  pointer-events: none;
}

.about-lead {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 14px;
}

.about-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 28px;
}

.about-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-key {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.meta-val {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
}

.meta-val.highlight { color: var(--accent-hi); font-weight: 500; }

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

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: var(--accent);
  color: var(--bg) !important;
  border: 1px solid var(--accent);
  font-weight: 400;
  transition: all 0.25s var(--ease);
}

.btn-primary-cta:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  color: var(--bg) !important;
}

.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 24px;
  background: transparent;
  color: var(--text-2) !important;
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}

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

@media (max-width: 576px) {
  .about-meta-grid { grid-template-columns: 1fr; }
}

/* ── Experience ─────────────────────────────────────────── */
.exp-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-entry {
  position: relative;
  padding: 36px 0 40px 32px;
  border-left: 1px solid var(--border);
}

.exp-entry::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 42px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-2), 0 0 12px var(--accent-glow);
}

.exp-entry:last-child {
  padding-bottom: 0;
}

.exp-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.exp-company {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.exp-location {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
}

.exp-location i { margin-right: 4px; font-size: 9px; }

.exp-entry-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.exp-current-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: var(--green-dim);
  padding: 2px 10px;
}

.exp-role-line {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.exp-role {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-hi);
}

.exp-role-note {
  font-size: 12px;
  color: var(--text-3);
}

/* Client block within an entry */
.exp-client-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.exp-client-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.exp-client-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.client-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 2px 7px;
}

.client-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

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

.tech {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(79, 129, 240, 0.2);
  padding: 3px 10px;
}

.exp-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exp-bullets li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 4px 0 4px 16px;
  position: relative;
}

.exp-bullets li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 12px;
}

.exp-bullets li strong { color: var(--text); font-weight: 500; }

/* ── Skills ─────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.skill-cat {
  background: var(--bg-2);
  padding: 28px 28px 24px;
  transition: background 0.25s var(--ease);
}

.skill-cat:hover { background: var(--surface); }

.skill-cat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.skill-cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-glow);
}

.skill-cat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

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

.stag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  background: transparent;
  border: 1px solid var(--border);
  padding: 4px 10px;
  transition: all 0.2s var(--ease);
  cursor: default;
}

.stag:hover {
  color: var(--text-2);
  border-color: rgba(79, 129, 240, 0.3);
}

.stag.core {
  color: var(--text-2);
  border-color: rgba(79, 129, 240, 0.25);
  background: rgba(79, 129, 240, 0.04);
}

.stag.core:hover {
  color: var(--accent-hi);
  border-color: var(--accent);
  background: var(--accent-dim);
}

@media (max-width: 768px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skill-cat { padding: 22px 20px; }
}

/* ── Contact ────────────────────────────────────────────── */
.contact-lead {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.contact-card {
  background: var(--bg-2);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  color: var(--text) !important;
  transition: background 0.25s var(--ease);
}

.contact-card:hover { background: var(--surface); }
.contact-card.no-link { cursor: default; }

.contact-card > i:first-child {
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 6px;
}

.cc-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cc-value {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 400;
  transition: color 0.2s var(--ease);
}

.contact-card:hover .cc-value { color: var(--text); }

.cc-arrow {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 13px;
  color: var(--text-3);
  transition: all 0.2s var(--ease);
}

.contact-card:hover .cc-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (max-width: 576px) {
  .contact-cards { grid-template-columns: 1fr; }
}

/* ── Scroll Progress Bar ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  z-index: 10000;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ── Availability Pill ──────────────────────────────────── */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: rgba(16, 185, 129, 0.06);
  padding: 5px 14px;
  margin-bottom: 20px;
  animation: fadeUp 0.7s var(--ease) 0.04s both;
}

.avail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse-green 2.2s ease-in-out infinite;
}

#header.header-top .availability-pill { display: none; }

/* ── Copy to Clipboard ──────────────────────────────────── */
.cc-copy-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
  transition: color 0.2s var(--ease);
}

.cc-copy-hint.copied { color: var(--green); }

#email-card {
  cursor: pointer;
}

#email-card:hover .cc-copy-hint { color: var(--text-2); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-green {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  60%  { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Disable hero animations when sticky */
#header.header-top h1,
#header.header-top .navbar { animation: none; }
