/* ============================================
   ERANGA HARSHANI – CYBERSECURITY PORTFOLIO
   ============================================ */

:root {
  --bg: #050a14;
  --bg2: #080f1e;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --border: rgba(0,212,255,0.15);
  --accent: #00d4ff;
  --accent2: #7c3aed;
  --accent3: #06ffa5;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --nav-h: 70px;
  --radius: 16px;
  --radius-sm: 8px;
  --font: 'Outfit', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ---- Canvas ---- */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ============================  NAVBAR  ============================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 1000;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(5,10,20,0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.logo-bracket { color: var(--accent); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}
.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s, background 0.3s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================  HERO – ULTIMATE HUD  ============================ */
#hero.hero-immersive {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
  position: relative;
  overflow: hidden;
  background: #02060e;
}

/* Background mesh & glow */
.hero-bg-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw; height: 100vh;
  background: radial-gradient(circle at 70% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 30% 70%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* ── LEFT: COMMAND CENTER ──────────────────────── */
.hero-left {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5vw 4rem 10vw;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  letter-spacing: 0.25em;
}
.eyebrow-line { width: 40px; height: 2px; background: var(--accent3); border-radius: 2px; }
.eyebrow-text { font-family: var(--mono); font-size: 0.75rem; color: var(--accent3); font-weight: 700; }

.hero-name {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.name-line { display: block; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200%;
  animation: gradientShift 4s infinite linear;
}

/* Terminal Feel */
.hero-terminal {
  background: rgba(8, 15, 30, 0.6);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(15px);
  max-width: 500px;
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: fadeUp 0.8s 0.2s ease both;
}
.terminal-header {
  background: rgba(255,255,255,0.05);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.term-dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.6; }
.term-dot:nth-child(1) { background: #ff5f56; }
.term-dot:nth-child(2) { background: #ffbd2e; }
.term-dot:nth-child(3) { background: #27c93f; }
.term-title { font-family: var(--mono); font-size: 0.7rem; color: var(--text-muted); margin-left: auto; letter-spacing: 0.1em; }

.terminal-body { padding: 1.25rem; font-family: var(--mono); }
.term-prompt { color: var(--accent3); font-size: 0.85rem; margin-right: 0.75rem; }
.term-cmd { color: var(--text); font-size: 0.85rem; opacity: 0.9; }

.typed-wrapper {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
#typed-text { border-left: 2px solid var(--accent); padding-left: 0.5rem; }
.typed-cursor { display: none; } 

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
}
.text-white { color: #fff; font-weight: 600; }

.hero-cta { display: flex; gap: 1.5rem; margin-bottom: 3.5rem; }
.btn-scan {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: #000;
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  font-weight: 800;
  border: none;
}
.scan-effect {
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 2px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 0 15px #fff;
  animation: btnScan 2s infinite linear;
}
@keyframes btnScan { to { top: 200%; } }

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 1rem 2rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: var(--accent); color: var(--accent); }

.hero-socials { display: flex; gap: 1rem; }
.social-link {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.social-link:hover {
  background: rgba(0,212,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-5px) scale(1.1);
}

/* ── RIGHT: HUD PHOTO ──────────────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 10vw;
  perspective: 1000px;
}

.hud-container {
  position: relative;
  width: 420px; height: 420px;
  display: flex; align-items: center; justify-content: center;
}

/* SVG Rings */
.hud-svg-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ring-main {
  width: 110%; height: 110%;
  stroke: var(--accent);
  stroke-width: 0.5px;
  fill: none;
  opacity: 0.2;
  animation: spin 30s linear infinite;
}
.ring-outer {
  width: 130%; height: 130%;
  stroke: var(--accent3);
  stroke-width: 0.5px;
  fill: none;
  opacity: 0.1;
  animation: spin 45s linear infinite reverse;
}

/* HUD Markers */
.hud-marker {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--accent);
  opacity: 0.6;
}
.marker-tl { top: -10px; left: -10px; border-right: none; border-bottom: none; }
.marker-tr { top: -10px; right: -10px; border-left: none; border-bottom: none; }
.marker-bl { bottom: -10px; left: -10px; border-right: none; border-top: none; }
.marker-br { bottom: -10px; right: -10px; border-left: none; border-top: none; }

/* Data Points */
.hud-data-point {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
  padding: 4px 10px;
  border-left: 2px solid var(--accent);
  backdrop-filter: blur(5px);
  white-space: nowrap;
  animation: fadeIn 1s 0.8s both;
}
.dp-1 { top: 15%; right: -20%; }
.dp-2 { top: 40%; left: -30%; border-left: none; border-right: 2px solid var(--accent); color: var(--accent3); border-color: var(--accent3); }
.dp-3 { bottom: 15%; right: -15%; }

/* Glass Photo Frame */
.hero-photo-glass {
  position: relative;
  width: 320px; height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  box-shadow: 0 40px 100px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.1);
  animation: float 6s ease-in-out infinite;
}
.hero-img-main {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.1) brightness(0.9) saturate(0.8);
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero-photo-glass:hover .hero-img-main { transform: scale(1.05); }

.glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(2,6,14,0.8) 100%);
  pointer-events: none;
}
.scan-bar {
  position: absolute;
  top: -100px; left: 0;
  width: 100%; height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(0,212,255,0.15), transparent);
  animation: scan 4s linear infinite;
}

@keyframes scan { 0% { top: -100px; } 100% { top: 100%; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ── SCROLL INDICATOR ──────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.6;
}
.scroll-indicator span { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--text-muted); }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(var(--accent), transparent); animation: scrollAnim 2.5s infinite; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1100px) {
  #hero.hero-immersive { grid-template-columns: 1fr; padding: 6rem 5vw; height: auto; align-content: center; }
  .hero-left { padding: 4rem 5vw; text-align: center; align-items: center; }
  .hero-right { padding-right: 0; margin-top: 4rem; order: -1; }
  .hud-container { width: 300px; height: 300px; }
  .hero-photo-glass { width: 240px; height: 300px; }
  .dp-1, .dp-2, .dp-3 { display: none; }
  .hero-name { font-size: 3.5rem; text-align: center; }
}
@media (max-width: 500px) {
  .hero-name { font-size: 2.8rem; }
  .hero-terminal { max-width: 100%; }
}





/* ============================  SECTIONS  ============================ */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 8vw;
}
.section-dark { background: var(--bg2); }
.container { max-width: 1200px; margin: 0 auto; }

.section-header { margin-bottom: 3.5rem; }
.section-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================  ABOUT  ============================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
}
.highlight { color: var(--accent); font-weight: 600; }
.about-contact { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 2.5rem; }
.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 99px;
  transition: border-color 0.3s, color 0.3s;
}
.contact-pill:hover { border-color: var(--accent); color: var(--accent); }

/* About Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.a-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.a-stat:hover { transform: translateY(-3px); border-color: var(--accent); }
.a-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.a-stat-plus { font-size: 1rem; color: var(--accent3); margin-left: 2px; }
.a-stat-label { display: block; font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
.sub-heading {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 1rem;
}
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  transition: background 0.3s;
}
.tag:hover { background: rgba(0,212,255,0.18); }
.soft-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.soft-skill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  transition: border-color 0.3s;
}
.soft-skill:hover { border-color: var(--accent); }
.ss-icon { font-size: 1.1rem; }

/* ============================  TIMELINE  ============================ */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 1.5rem; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.marker-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg2);
  margin-top: 0.35rem;
  transition: background 0.3s;
  flex-shrink: 0;
}
.marker-dot.active { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.marker-line { flex: 1; width: 2px; background: var(--border); margin: 8px 0; min-height: 40px; }
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  flex: 1;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-card:hover { border-color: var(--accent); transform: translateX(4px); }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.card-top h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-sub { font-size: 0.88rem; color: var(--accent); }
.card-org { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.2rem; }
.card-date {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
}
.card-list { list-style: none; padding: 0; }
.card-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
}
.card-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================  EXPERIENCE  ============================ */
.exp-card {
  display: flex;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.3s;
}
.exp-card:hover { border-color: var(--accent); }
.exp-left { display: flex; flex-direction: column; align-items: center; }
.exp-logo {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: -0.03em;
}
.exp-line { flex: 1; width: 2px; background: var(--border); margin: 1rem 0; }
.exp-right { flex: 1; }
.exp-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.75rem; }
.exp-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.exp-company { color: var(--accent); font-size: 0.9rem; }
.exp-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent3);
  background: rgba(6,255,165,0.08);
  border: 1px solid rgba(6,255,165,0.2);
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}
.exp-desc { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 1rem; }
.tool-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tool-badge {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.3);
  color: #a78bfa;
  font-size: 0.78rem;
  padding: 0.3rem 0.8rem;
  border-radius: 99px;
  font-weight: 500;
}

/* ============================  SKILLS  ============================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s;
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.skill-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.skill-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-tags span {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color 0.3s, border-color 0.3s;
}
.skill-tags span:hover { color: var(--accent); border-color: rgba(0,212,255,0.4); }

/* ============================  CERTIFICATIONS  ============================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.cert-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  transition: border-color 0.3s, transform 0.3s;
}
.cert-card:hover { border-color: var(--accent); transform: translateX(4px); }
.cert-badge { font-size: 1.8rem; flex-shrink: 0; }
.cert-info { flex: 1; }
.cert-info h4 { font-size: 0.88rem; font-weight: 600; margin-bottom: 0.2rem; }
.cert-info p { font-size: 0.77rem; color: var(--text-muted); }
.cert-year {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent2);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 99px;
  flex-shrink: 0;
}

/* ============================  PROJECTS  ============================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }
.project-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,212,255,0.1); }
.project-card.featured { border-color: rgba(0,212,255,0.3); }
.proj-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.proj-icon { font-size: 1.8rem; }
.proj-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent3);
  background: rgba(6,255,165,0.08);
  border: 1px solid rgba(6,255,165,0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
}
.project-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.65rem; }
.project-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tech span {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a78bfa;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ============================  CONTACT  ============================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-lead {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.3s, transform 0.3s;
}
.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }
.ci-icon { font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: rgba(0,212,255,0.08); border-radius: var(--radius-sm); flex-shrink: 0; }
.ci-label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.15rem; font-family: var(--mono); }
.ci-value { font-size: 0.9rem; font-weight: 500; }

.references h3 { margin-bottom: 1.25rem; }
.ref-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}
.ref-card:hover { border-color: var(--accent2); }
.ref-card h4 { font-weight: 700; margin-bottom: 0.3rem; }
.ref-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.ref-card a { display: block; font-size: 0.83rem; color: var(--accent); text-decoration: none; margin-bottom: 0.2rem; }
.ref-card span { font-size: 0.83rem; color: var(--text-muted); font-family: var(--mono); }

/* ============================  FOOTER  ============================ */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 8vw;
  text-align: center;
}
.footer-content { max-width: 600px; margin: 0 auto; }
.footer-logo { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
footer p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 0.3rem; }
.footer-quote { font-style: italic; color: var(--accent); margin-top: 0.5rem; }

/* ============================  ANIMATIONS  ============================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================  RESPONSIVE  ============================ */
@media (max-width: 1024px) {
  #hero { flex-direction: column; text-align: center; padding-top: calc(var(--nav-h) + 4rem); }
  .hero-content { max-width: 100%; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .profile-orbit { width: 280px; height: 280px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(5,10,20,0.97); backdrop-filter: blur(20px); padding: 1rem; gap: 0; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .section { padding: 4rem 6vw; }
  .skills-grid, .projects-grid, .certs-grid { grid-template-columns: 1fr; }
  .exp-card { flex-direction: column; }
  .card-top { flex-direction: column; }
  .profile-orbit { width: 220px; height: 220px; }
  .profile-frame { width: 160px; height: 160px; }
}
