:root {
  --bg: #080c0a;
  --bg2: #0e1410;
  --bg3: #121a14;
  --text: #e8f0e9;
  --muted: #5a6e5e;
  --accent: #a8ff3e;
  --accent-dim: rgba(168,255,62,0.25);
  --accent2: #ff5e3a;
  --border: rgba(168,255,62,0.12);
  --border-strong: rgba(168,255,62,0.2);
  --radius: 3px;
  --font-display: 'Unbounded', sans-serif;
  --font-mono: 'Inconsolata', monospace;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #080c0a; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 300;
  background: var(--accent);
  color: #080c0a;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* ─── CANVAS PARTICLES ─── */
#particles-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: 0.45;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
}
nav.scrolled {
  background: rgba(8,12,10,0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 2.5rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-decoration: none;
  position: relative;
  transition: text-shadow var(--transition);
}
.nav-logo:hover { text-shadow: 0 0 20px var(--accent-dim); }
.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  padding: 0.35em 0;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ─── LANGUAGE SWITCHER ─── */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 0.4rem;
}
.nav-links .nav-lang a {
  padding: 0.2em 0.55em;
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.nav-links .nav-lang a::after { display: none; }
.nav-links .nav-lang a + a { border-left: 1px solid var(--border-strong); }
.nav-links .nav-lang a:hover,
.nav-links .nav-lang a.active { color: var(--accent); }

.nav-mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 101;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--accent); transition: all var(--transition);
  transform-origin: center;
}
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding: 8rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  max-width: 1300px;
  margin: 0 auto;
  overflow: hidden; /* contains the decorative radial glow on small screens */
}
.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 55%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,255,62,0.05) 0%, transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: heroPulse 8s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.7; }
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.1s forwards;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  position: relative;
}
.hero-label .pulse-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168,255,62,0.5); }
  50% { box-shadow: 0 0 0 10px rgba(168,255,62,0); }
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.2s forwards;
}
h1 .accent {
  color: var(--accent);
  position: relative;
  display: inline-block;
}
h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 0.35em;
  background: var(--accent);
  opacity: 0.08;
  transform: skewX(-12deg);
}
.hero-desc {
  font-size: 1.05rem;
  color: rgba(232,240,233,0.6);
  max-width: 500px;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.35s forwards;
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.5s forwards;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: #080c0a;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(168,255,62,0.15);
}
.btn-primary:hover {
  background: #bfff55;
  box-shadow: 0 0 35px rgba(168,255,62,0.3);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(232,240,233,0.18);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(168,255,62,0.08);
}
.hero-right {
  display: flex; flex-direction: column; gap: 1.25rem;
  opacity: 0;
  animation: fadeSlideUp 0.7s ease 0.4s forwards;
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.stat-card {
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  background: rgba(14,20,16,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top left, rgba(168,255,62,0.04), transparent 70%);
  opacity: 0; transition: opacity var(--transition);
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.terminal-box {
  border: 1px solid var(--border);
  background: rgba(14,20,16,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: all var(--transition);
}
.terminal-box:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.terminal-header {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-line { color: var(--muted); line-height: 2; }
.terminal-line .cmd { color: var(--accent); }
.terminal-line .val { color: #7dd3fc; }
.cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s infinite;
}
@keyframes blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }

/* ─── SECTIONS ─── */
section {
  position: relative; z-index: 1;
  padding: 7rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before {
  content: '';
  width: 22px; height: 1px; background: var(--accent);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 3rem;
}
.divider {
  width: calc(100% - 5rem);
  height: 1px;
  background: var(--border);
  margin: 0 2.5rem;
  position: relative; z-index: 1;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal-left.visible { transform: none; }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-right.visible { transform: none; }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.reveal-scale.visible { transform: scale(1); }

/* ─── TICKER ─── */
.ticker-wrap {
  position: relative; z-index: 1;
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.ticker {
  display: flex; gap: 3rem;
  animation: ticker 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker:hover { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 1rem;
  transition: color var(--transition);
}
.ticker-item:hover { color: var(--accent); }
.ticker-item::after {
  content: '◆';
  color: var(--accent);
  font-size: 0.45rem;
  opacity: 0.6;
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── ABOUT GRID ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ─── SKILLS GRID ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 0.75rem;
}
.skill-pill {
  border: 1px solid var(--border);
  padding: 0.7rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
  transition: all var(--transition);
  cursor: default;
  background: var(--bg2);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.skill-pill::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.skill-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(168,255,62,0.05);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}
.skill-pill:hover::after { width: 70%; }

/* ─── TIMELINE ─── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5rem; bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 3.5rem;
  padding-left: 2rem;
  transition: transform var(--transition);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px rgba(168,255,62,0.25);
  transition: box-shadow var(--transition);
}
.timeline-item:hover::before {
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px rgba(168,255,62,0.4);
}
.timeline-item:hover { transform: translateX(4px); }
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.timeline-desc {
  font-size: 0.9rem;
  color: rgba(232,240,233,0.55);
  max-width: 560px;
  line-height: 1.8;
}

/* ─── EDUCATION ─── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.edu-card {
  border: 1px solid var(--border);
  padding: 1.6rem;
  background: var(--bg2);
  transition: all var(--transition);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.edu-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(168,255,62,0.04), transparent 60%);
  opacity: 0; transition: opacity var(--transition);
}
.edu-card:hover {
  border-color: rgba(168,255,62,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,0,0,0.35);
}
.edu-card:hover::before { opacity: 1; }
.edu-school {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.edu-period {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ─── CERTIFICATIONS ─── */
.cert-list { display: flex; flex-direction: column; gap: 0.75rem; }
.cert-item {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: all var(--transition);
  border-radius: var(--radius);
}
.cert-item:hover {
  border-color: var(--border-strong);
  transform: translateX(5px);
  box-shadow: 0 5px 25px rgba(0,0,0,0.25);
}
.cert-icon {
  font-size: 1.3rem;
  min-width: 2.5rem;
  text-align: center;
  transition: transform var(--transition);
}
.cert-item:hover .cert-icon { transform: scale(1.2); }
.cert-name {
  font-size: 0.88rem;
  font-weight: 500;
}
.cert-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

/* ─── CONTACT FORM ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
/* Let grid items shrink below their content width (prevents blowout). */
.contact-grid > div { min-width: 0; }
.contact-intro {
  font-size: 1.05rem;
  color: rgba(232,240,233,0.6);
  line-height: 1.9;
  margin-bottom: 2rem;
}
.contact-form {
  display: flex; flex-direction: column; gap: 1rem;
}
.form-group { position: relative; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
  transition: color var(--transition);
}
.form-group:focus-within label { color: var(--accent); }
.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(168,255,62,0.06);
  background: var(--bg3);
}
.form-input.error, .form-textarea.error {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(255,94,58,0.08);
}
.form-textarea { min-height: 130px; resize: vertical; }
.form-error-msg {
  font-size: 0.72rem;
  color: var(--accent2);
  margin-top: 0.35rem;
  display: none;
  font-family: var(--font-mono);
}
.form-error-msg.show { display: block; }
.form-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
}
.form-submit:disabled {
  opacity: 0.5; cursor: not-allowed; pointer-events: none;
}
.form-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #080c0a;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-submit.loading .form-spinner { display: inline-block; }
.form-submit.loading .form-submit-text { display: none; }

/* Honeypot — hidden anti-spam field, must stay invisible to humans. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
}

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--border);
  background: var(--bg2);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: var(--radius);
}
.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}
.contact-link-icon { font-size: 1.1rem; transition: transform var(--transition); }
.contact-link:hover .contact-link-icon { transform: scale(1.15); }
.contact-link-label {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.15rem;
}
.big-text {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: rgba(232,240,233,0.06);
  letter-spacing: -0.02em;
  transition: color var(--transition);
  user-select: none;
}
.big-text:hover, .glow-text:hover { color: rgba(232,240,233,0.12); }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 200;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  max-width: min(360px, calc(100vw - 4rem));
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  border: 1px solid;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success {
  background: rgba(168,255,62,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
.toast.error {
  background: rgba(255,94,58,0.1);
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 150;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  font-size: 1.1rem;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(168,255,62,0.1);
  transform: translateY(-3px);
}

/* ─── BG GRID ─── */
.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(168,255,62,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,255,62,0.8) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ─── GLOW ORB ─── */
.glow-orb {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.06;
}

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.09em;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-heart {
  color: var(--accent2);
  display: inline-block;
  animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.25); }
  30% { transform: scale(1); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.25rem; }
  nav.scrolled { padding: 0.7rem 1.25rem; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
    background: rgba(8,12,10,0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid var(--border);
    align-items: flex-start;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-mobile-toggle { display: flex; }
  .nav-lang { margin-left: 0; margin-top: 0.5rem; }
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.25rem 3rem;
    gap: 2.5rem;
  }
  .hero-right { order: -1; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  section { padding: 4.5rem 1.25rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .big-text { font-size: clamp(1.8rem, 8vw, 3rem); }
  .divider { margin: 0 1.25rem; width: calc(100% - 2.5rem); }
  .back-to-top { bottom: 1rem; left: 1rem; }
}

@media (max-width: 480px) {
  .hero { padding: 5rem 1rem 2.5rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .stat-row { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  footer { flex-direction: column; text-align: center; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-label, h1, .hero-desc, .hero-btns, .hero-right { opacity: 1 !important; }
  .ticker { animation: none; }
}
