/* ====================================================
   OLIVER ASCENCIO — Portfolio
   Cyberpunk Terminal + Glassmorphism
   ==================================================== */

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

:root {
  /* Backgrounds */
  --bg-deep: #05070d;
  --bg-base: #0a0e1a;
  --bg-card: rgba(18, 24, 40, 0.45);
  --bg-card-strong: rgba(22, 28, 48, 0.65);

  /* Neon palette */
  --cyan: #00f0ff;
  --cyan-soft: rgba(0, 240, 255, 0.5);
  --cyan-glow: rgba(0, 240, 255, 0.18);
  --magenta: #ec4899;
  --purple: #a855f7;
  --purple-soft: rgba(168, 85, 247, 0.4);

  /* Text */
  --text: #e6ecf3;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders */
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  /* Typography */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  /* Spacing */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
code { font-family: var(--font-mono); font-size: 0.92em; }

/* ---------- ANIMATED BACKGROUND ---------- */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #00f0ff 0%, transparent 70%);
  top: -200px; left: -150px;
  animation: float-1 22s ease-in-out infinite;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #a855f7 0%, transparent 70%);
  top: 40%; right: -100px;
  animation: float-2 26s ease-in-out infinite;
}

.orb-3 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px; left: 30%;
  animation: float-3 30s ease-in-out infinite;
  opacity: 0.35;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -60px) scale(0.9); }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -100px) scale(1.2); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ---------- GLASS COMPONENT ---------- */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), transparent 40%, transparent 60%, rgba(168, 85, 247, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}

.glass:hover:not(.no-hover) {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 0 30px var(--cyan-glow);
}
.glass:hover:not(.no-hover)::before { opacity: 1; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(5, 7, 13, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease;
}
.nav.scrolled { padding: 0.7rem 2.5rem; }

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color .25s ease;
}
.nav-logo:hover { color: var(--cyan); }
.logo-bracket { color: var(--cyan); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color .25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1.5px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-soft);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: all .25s ease;
  letter-spacing: 0.05em;
}
.lang-toggle:hover {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.lang-current { color: var(--cyan); font-weight: 700; }
.lang-sep { color: var(--text-dim); margin: 0 0.4rem; }
.lang-other { color: var(--text-muted); }
.lang-toggle.en .lang-current { color: var(--text-muted); font-weight: 500; }
.lang-toggle.en .lang-other { color: var(--cyan); font-weight: 700; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.menu-toggle:hover {
  border-color: var(--cyan-soft);
  box-shadow: 0 0 16px var(--cyan-glow);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all .25s ease;
  border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 8rem 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-grid {
  width: 100%;
  max-width: var(--container);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.06);
  border-radius: 100px;
  color: #86efac;
  margin-bottom: 1.5rem;
}
.status-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 12px #4ade80;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

.hero-name {
  font-family: var(--font-display);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.hero-fullname {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--cyan) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}
.role-pill {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.role-sep { color: var(--cyan); font-weight: 700; }

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all .25s ease;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #06b6d4 100%);
  color: #001019;
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--cyan-glow), 0 0 0 1px var(--cyan);
}
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--cyan-soft);
  background: rgba(0, 240, 255, 0.04);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.hero-socials {
  display: flex;
  gap: 0.7rem;
}
.hero-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all .25s ease;
  background: rgba(255, 255, 255, 0.02);
}
.hero-socials a:hover {
  color: var(--cyan);
  border-color: var(--cyan-soft);
  box-shadow: 0 0 14px var(--cyan-glow);
  transform: translateY(-2px);
}

/* TERMINAL */
.terminal {
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 240, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  position: relative;
}

.terminal::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--cyan-soft), transparent 50%, var(--purple-soft));
  z-index: -1;
  opacity: 0.5;
  filter: blur(8px);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.t-red { background: #ff5f57; }
.t-yellow { background: #febc2e; }
.t-green { background: #28c840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1.4rem 1.2rem;
  min-height: 320px;
  line-height: 1.75;
  color: var(--text);
}

.term-line { display: block; }
.term-prompt { color: var(--cyan); margin-right: 0.5rem; }
.term-user { color: #86efac; }
.term-path { color: var(--purple); }
.term-command { color: var(--text); }
.term-output { color: var(--text-muted); padding-left: 0.2rem; display: block; }
.term-output .em { color: var(--cyan); font-weight: 500; }
.term-output .em2 { color: var(--magenta); font-weight: 500; }
.term-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--cyan);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-muted);
  border-radius: 100px;
  display: grid;
  place-items: start center;
  padding-top: 7px;
  transition: border-color .25s ease;
}
.scroll-down span {
  width: 3px;
  height: 7px;
  background: var(--cyan);
  border-radius: 100px;
  animation: scroll-bounce 1.8s ease-in-out infinite;
}
.scroll-down:hover { border-color: var(--cyan); }
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 7rem 2.5rem;
  position: relative;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 500;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.about-text {
  padding: 2.2rem;
  font-size: 1.02rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}
.about-text p { line-height: 1.75; }
.highlight {
  color: var(--cyan);
  font-weight: 500;
}
.about-text code {
  padding: 0.15rem 0.45rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 5px;
  color: var(--cyan);
  font-size: 0.85em;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  justify-content: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---------- SKILLS ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.skill-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cyan);
}
.skill-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text);
  transition: all .25s ease;
}
.tag:hover {
  border-color: var(--cyan-soft);
  background: rgba(0, 240, 255, 0.05);
  transform: translateY(-1px);
}
.tag i { font-size: 1.05rem; }

.lang-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lang-bar { display: flex; flex-direction: column; gap: 0.4rem; }
.lang-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.lang-info > span:first-child { color: var(--text); }
.lang-level { color: var(--cyan); }
.bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 100px;
  box-shadow: 0 0 10px var(--cyan-glow);
  animation: bar-fill 1.4s cubic-bezier(.16,1,.3,1) forwards;
  transform-origin: left;
}
@keyframes bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- PROJECTS ---------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project {
  padding: 2rem 2.2rem;
  position: relative;
  overflow: hidden;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.project-tag {
  padding: 0.3rem 0.7rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--cyan);
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.project-date { color: var(--text-muted); }
.project-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.project-sub {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.project-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-width: 800px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #c4b5fd;
  border-radius: 5px;
}

/* ---------- EDUCATION ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.col-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.col-title-spaced { margin-top: 2.5rem; }

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
}
.timeline-item {
  padding: 1.5rem 1.8rem 1.5rem 2.5rem;
  position: relative;
}
.t-dot-marker {
  position: absolute;
  left: 1rem;
  top: 1.95rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-soft);
}
.t-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  display: block;
  margin-bottom: 0.4rem;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.t-org {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.t-detail {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.cert {
  padding: 1.1rem;
  text-align: left;
}
.cert-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
  height: 28px;
}
.cert-icon i { font-size: 1.6rem; }
.cert h4 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.cert p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.award {
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.award-icon { font-size: 1.6rem; flex-shrink: 0; }
.cert-icon svg { color: var(--cyan); display: block; }
.award-icon svg { color: var(--magenta); display: block; }
.award h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.award p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- CONTACT ---------- */
.section-contact { padding-bottom: 4rem; }
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.contact-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #ffffff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-intro p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.contact-card {
  padding: 1.2rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
}
.contact-card svg {
  color: var(--cyan);
  flex-shrink: 0;
}
.contact-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.c-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.c-value {
  font-size: 0.9rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  background: rgba(5, 7, 13, 0.6);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer p {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-meta { display: flex; align-items: center; gap: 0.5rem; }
.dot-sep { color: var(--cyan); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .edu-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { padding: 1rem 1.2rem; }
  .nav.scrolled { padding: 0.7rem 1.2rem; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(5, 7, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 6rem 1.2rem 3rem; }
  .section { padding: 5rem 1.2rem; }
  .section-header { gap: 0.8rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .project { padding: 1.5rem 1.4rem; }
  .terminal-body { padding: 1rem; font-size: 0.78rem; min-height: 280px; }
  .footer { padding: 1.5rem 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* touch targets ≥44px */
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .lang-toggle { min-height: 44px; padding: 0.65rem 1rem; }
  .hero-socials a { width: 46px; height: 46px; }

  /* layout fixes */
  .skills-grid { grid-template-columns: 1fr; }
  .project-title { font-size: 1.4rem; }

  /* prevent text overflow in tight containers */
  .c-value { white-space: normal; word-break: break-word; }
  .term-output { word-break: break-word; overflow-wrap: break-word; }
  .terminal-body { min-height: 220px; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1rem 2rem; }
  .section { padding: 4rem 1rem; }

  /* hero typography */
  .hero-fullname { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-tagline { font-size: 0.97rem; }
  .hero-role { font-size: 0.9rem; }

  /* stack CTA buttons full-width */
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .hero-socials { gap: 0.5rem; }

  /* section header: hide decorative line to save space */
  .section-line { display: none; }
  .section-header h2 { font-size: 1.55rem; }

  /* terminal */
  .terminal-body { min-height: 190px; font-size: 0.74rem; padding: 0.8rem; }

  /* stats */
  .stat-value { font-size: 2rem; }
  .stat { padding: 1.1rem; }

  /* projects */
  .project { padding: 1.2rem 1rem; }
  .project-title { font-size: 1.25rem; }
  .project-meta { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  /* education */
  .col-title { font-size: 1.1rem; }
  .timeline-item { padding: 1.2rem 1rem 1.2rem 2rem; }
  .cert { padding: 0.85rem; }
  .awards-list { gap: 0.5rem; }

  /* contact */
  .contact-intro h3 { font-size: 1.3rem; }
  .contact-card { padding: 0.9rem 1rem; }

  /* nav mobile menu tighter */
  .nav-links { padding: 1.5rem 1rem; gap: 0; }
  .nav-links a { padding: 0 0.5rem; }
}

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

/* Selection */
::selection {
  background: var(--cyan);
  color: #001019;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 240, 255, 0.4); }
