/* ── ICON FONT (self-hosted, subset) ───────────────── */
/* Material Symbols Outlined subset to only the ~20 icons used on index.html.
   Self-hosted 2.5KB woff2 replaces the ~1MB Google-hosted variable font that
   was the primary cause of slow mobile load. Icons are referenced by codepoint
   (e.g. &#xe2bd;) in the markup, so ligatures/GSUB are intentionally dropped. */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(../fonts/material-symbols-subset.woff2) format('woff2');
}
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

/* ── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background-color: #ffffff; color: #2c2e2f; font-family: 'Inter', sans-serif; overflow-x: hidden; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #d9dde0; border-radius: 2px; }

/* ── KEYFRAMES ─────────────────────────────────────── */
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-glow { 0%,100%{opacity:1} 50%{opacity:0.35} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes heroFlow { to { stroke-dashoffset: -12; } }

/* ── UTILITY CLASSES ───────────────────────────────── */
.cursor-blink { animation: blink 1s step-end infinite; }
.avail-dot    { animation: pulse-glow 2s infinite; }
.open-dot     { animation: pulse-glow 2s infinite; }

/* ── HERO ARCHITECTURE SVG ─────────────────────────── */
.hero-arch-label     { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: #2c2e2f; font-weight: 600; }
.hero-arch-sublabel  { font-family: 'JetBrains Mono', monospace; font-size: 8px;  fill: #687173; }
.hero-arch-node      { fill: rgba(255,255,255,0.95); stroke: rgba(0,48,135,0.35);  stroke-width: 1.5; }
.hero-arch-node-cyan { fill: rgba(255,255,255,0.95); stroke: rgba(0,156,222,0.4);  stroke-width: 1.5; }
.hero-arch-line      { stroke-dasharray: 6 6; animation: heroFlow 1.2s linear infinite; }
.hero-arch-pulse     { animation: pulse-glow 3s ease-in-out infinite; }

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

/* ── GLASS PANEL ───────────────────────────────────── */
.glass-panel {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 24px rgba(0,0,0,0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── SECTION ALT BACKGROUND ────────────────────────── */
.section-alt { background: #f8f9fb; }
.glow-indigo { box-shadow: 0 0 40px -10px rgba(0, 48, 135, 0.15); }

/* ── MESH GLOW ─────────────────────────────────────── */
.mesh-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 48, 135, 0.06) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none; z-index: 0;
}

/* ── SCROLL REVEAL ─────────────────────────────────── */
.reveal-hidden {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22,1,0.36,1),
              transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
.reveal-visible { opacity: 1 !important; transform: translateY(0) !important; }

/* ── MOBILE MENU ───────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span { width: 22px; height: 2px; background: #2c2e2f; display: block; transition: all .3s; }

.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 8px 24px 20px; z-index: 49; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: #2c2e2f; text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 14px 4px; border-bottom: 1px solid rgba(0,0,0,0.06);
  min-height: 48px; display: flex; align-items: center; transition: color .2s;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: #003087; }

/* ── EXPERIENCE ACCORDION ──────────────────────────── */
.exp-row { cursor: pointer; }
.exp-row:hover  { border-color: rgba(0, 48, 135, 0.25) !important; }
.exp-row.open   { border-color: rgba(0, 48, 135, 0.25) !important; }
.exp-role-title { transition: color .25s ease; }
.exp-row:hover .exp-role-title,
.exp-row.open  .exp-role-title { color: #003087; }
.exp-toggle-icon { display: inline-flex; align-items: center; justify-content: center; transition: transform 0.35s cubic-bezier(0.4,1.4,0.5,1); }
.exp-row.open .exp-toggle-icon { transform: rotate(45deg); }

.exp-body { display: none; border-top: 1px solid rgba(0,0,0,0.07); }
.exp-row.open .exp-body { display: block; }

.exp-bullets { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.exp-bullets li {
  font-size: 14px; color: #687173; line-height: 1.65;
  padding-left: 22px; position: relative;
}
.exp-bullets li::before {
  content: '→'; color: #003087; position: absolute; left: 0; top: 0;
  font-size: 12px; line-height: 2.2; font-weight: 700;
}
.exp-bullets li strong { color: #2c2e2f; font-weight: 600; }

/* ── PROJECT VISUAL OVERLAY ────────────────────────── */
.proj-visual-overlay { position: absolute; inset: 0; pointer-events: none; }

/* ── PROJECT CARDS ─────────────────────────────────── */
.proj-card { position: relative; cursor: pointer; }
.proj-card:hover { border-color: rgba(0, 48, 135, 0.35) !important; }
.proj-name { transition: color .25s ease; }
.proj-card:hover .proj-name { color: #003087; }
.proj-visual { overflow: hidden; position: relative; flex-shrink: 0; }
.proj-visual svg { width: 100%; height: 100%; display: block; transition: transform .5s ease; }
.proj-card:hover .proj-visual svg { transform: scale(1.04); }
.preview-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.proj-visual:hover .preview-overlay { opacity: 1; }
.preview-overlay-text {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: rgba(0,48,135,.9); backdrop-filter: blur(6px);
  padding: 6px 16px; border-radius: 5px; pointer-events: none;
}
.proj-footer {
  display: flex; align-items: center; margin-top: auto; padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.proj-gh-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #687173;
  transition: color .2s;
}
.proj-card:hover .proj-gh-link { color: #003087; }
.proj-small-card:hover { border-color: rgba(0,48,135,0.25) !important; }
.proj-arrow { transition: transform .2s ease; }
.proj-small-card:hover .proj-arrow { transform: translateX(4px); }

/* proj-link-base — keeps links clickable inside clickable cards */
.proj-link-base { position: relative; z-index: 2; }

/* ── CONTACT ROW ───────────────────────────────────── */
.c-row { position: relative; overflow: hidden; }
.c-row::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: #003087; transform: scaleY(0); transform-origin: top; transition: transform .25s ease;
}
.c-row:hover::before { transform: scaleY(1); }
.c-row:hover { background: rgba(0, 48, 135, 0.04); }
.c-arrow { transition: color .2s, transform .2s; }
.c-row:hover .c-arrow { color: #003087 !important; transform: translateX(4px); }

/* ── FORM STATUS ───────────────────────────────────── */
.form-status {
  display: none; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; line-height: 1.4;
}
.form-status.show    { display: flex; }
.form-status.success { color: #15803d; background: rgba(21,128,61,0.1);  border: 1px solid rgba(21,128,61,0.2); }
.form-status.error   { color: #f87171; background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2); }
.form-status.loading { color: #687173; background: rgba(0,0,0,0.04);border: 1px solid rgba(0,0,0,0.1); }

/* ── REDUCED MOTION ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-hidden { opacity: 1; transform: none; }
  #particle-canvas { display: none; }
}

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 960px) {
  .hide-tablet { display: none !important; }
  .hamburger   { display: flex; }
}
@media (max-width: 640px) {
  .hero-photo-col  { display: none !important; }
  .grid-2cols-sm   { grid-template-columns: 1fr !important; }
  .grid-4cols-sm   { grid-template-columns: 1fr 1fr !important; }
  .grid-3cols-sm   { grid-template-columns: 1fr !important; }
  .form-row-2      { grid-template-columns: 1fr !important; }
  .exp-body { padding-left: 16px !important; padding-right: 16px !important; }
  .edu-cert-grid   { gap: 2rem !important; }
  .contact-grid    { gap: 2.5rem !important; }
  .proj-footer     { padding-top: 10px; }
  .preview-overlay-text { font-size: 10px; padding: 5px 12px; }
}
