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

:root {
  --bg:          #070d1a;
  --bg2:         #0d1625;
  --bg-card:     #111e33;
  --accent:      #00d2ff;
  --accent2:     #a855f7;
  --accent3:     #f59e0b;
  --text:        #e2e8f0;
  --text-dim:    #94a3b8;
  --text-muted:  #475569;
  --border:      rgba(255, 255, 255, 0.07);
  --border-acc:  rgba(0, 210, 255, 0.22);
  --radius:      14px;
  --radius-sm:   8px;
  --tr:          0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow:        0 0 28px rgba(0, 210, 255, 0.22);
  --shadow:      0 8px 40px rgba(0, 0, 0, 0.45);
  --font:        'Inter', -apple-system, sans-serif;
  --mono:        'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

/* ─── SCROLL PROGRESS ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background var(--tr), box-shadow var(--tr);
}
.nav.scrolled {
  background: rgba(7, 13, 26, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  transition: opacity var(--tr);
}
.nav-logo span { color: var(--accent); }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--tr), background var(--tr);
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
}

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.btn-outline {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  transition: all var(--tr);
}
.btn-outline:hover {
  background: rgba(0, 210, 255, 0.1);
  box-shadow: var(--glow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all var(--tr);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  background: rgba(7, 13, 26, 0.97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 500;
  transition: all var(--tr);
}
.mobile-menu a:hover { color: var(--accent); background: rgba(0, 210, 255, 0.08); }
.mobile-cv-btn {
  margin-top: 8px;
  color: var(--accent) !important;
  border: 1px solid var(--border-acc);
  text-align: center;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px;
  max-width: 780px;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.3s forwards;
}
.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 15%, #00d2ff 55%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.5s forwards;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-dim);
  font-family: var(--mono);
  min-height: 2em;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.7s forwards;
}
.cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}
.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.6s ease 0.9s forwards;
}
.hero-location svg { color: var(--accent); flex-shrink: 0; }

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.1s forwards;
}
.contact-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: all var(--tr);
  backdrop-filter: blur(4px);
}
.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.scroll-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 8px;
  transition: all var(--tr);
  animation: fadeUp 0.6s ease 1.3s both, bounce 2.5s ease 2s infinite;
}
.scroll-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* ─── SECTIONS ─── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.badge {
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid var(--border-acc);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  transition: all var(--tr);
}
.badge:hover {
  background: rgba(0, 210, 255, 0.14);
}

/* ─── TERMINAL ─── */
.terminal {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #08111f;
  box-shadow: var(--shadow);
  transition: box-shadow var(--tr);
}
.terminal:hover {
  box-shadow: var(--glow), var(--shadow);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c940; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.terminal-body { padding: 24px; overflow-x: auto; }
.terminal-body pre {
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.9;
  white-space: pre;
}
/* Syntax colours */
.tk   { color: #c792ea; }
.tv   { color: #82aaff; }
.to   { color: var(--text-dim); }
.tkey { color: #f07178; }
.tstr { color: #c3e88d; }
.tnum { color: #f78c6c; }
.tbool{ color: #ff5370; }
.tcmt { color: #546e7a; font-style: italic; }

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--tr);
}
.skill-category:hover {
  border-color: var(--border-acc);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.skill-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.skill-cat-title svg { color: var(--accent); flex-shrink: 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  padding: 5px 13px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--mono);
  cursor: default;
  transition: all var(--tr);
}
.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 210, 255, 0.07);
}
.skill-tag.hi {
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
  background: rgba(168, 85, 247, 0.07);
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent2) 60%, transparent 100%);
  opacity: 0.25;
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 22px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.4);
  transition: all var(--tr);
}
.timeline-dot.gold {
  border-color: var(--accent3);
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
  transform: scale(1.25);
}
.timeline-item:hover .timeline-dot.gold {
  background: var(--accent3);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: all var(--tr);
}
.timeline-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--glow);
  transform: translateX(5px);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.timeline-company {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.timeline-role {
  font-size: 0.88rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}
.timeline-meta { text-align: right; display: flex; flex-direction: column; gap: 4px; }
.timeline-date {
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-muted);
}
.timeline-location { font-size: 0.78rem; color: var(--text-muted); }

.timeline-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.timeline-bullets li {
  font-size: 0.92rem;
  color: var(--text-dim);
  padding-left: 18px;
  position: relative;
  line-height: 1.65;
}
.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 3px;
}
.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
}
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.timeline-tags span {
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.15);
  font-size: 0.73rem;
  color: var(--accent);
  font-family: var(--mono);
}

/* ─── RESEARCH ─── */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
}
.research-card {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--tr);
}
.research-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.research-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid var(--border-acc);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.research-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.research-role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
  font-family: var(--mono);
}
.research-content p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.research-tags span {
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.2);
  font-size: 0.73rem;
  color: #c084fc;
  font-family: var(--mono);
}

/* ─── ACHIEVEMENTS ─── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
}
.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--tr);
}
.achievement-card:hover {
  border-color: var(--border-acc);
  box-shadow: var(--glow);
  transform: translateY(-6px);
}
.achievement-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.achievement-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.achievement-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── LEADERSHIP ─── */
.section-sub-header {
  margin: 52px 0 24px;
}
.section-sub-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

.leadership-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.leadership-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: all var(--tr);
}
.leadership-item:hover {
  border-color: var(--border-acc);
  transform: translateX(6px);
}
.leadership-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.leadership-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 4px;
}
.leadership-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── LANGUAGES ─── */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.lang-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  transition: border-color var(--tr);
}
.lang-item:hover { border-color: var(--border-acc); }
.lang-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.lang-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.lang-level { font-size: 0.75rem; color: var(--accent); font-family: var(--mono); font-weight: 500; }
.lang-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50px;
  overflow: hidden;
}
.lang-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0%;
  transition: width 1.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 44px 0;
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer p { font-size: 0.875rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--tr);
}
.footer-links a:hover { color: var(--accent); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── KEYFRAMES ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0);  }
  50%       { transform: translateY(7px); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .research-grid { grid-template-columns: 1fr; }
  .research-card { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-links  { display: none; }
  .btn-outline { display: none; }
  .hamburger  { display: flex; }

  .section { padding: 72px 0; }
  .timeline { padding-left: 28px; }
  .timeline-header { flex-direction: column; }
  .timeline-meta { text-align: left; }
  .timeline-card { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-contacts { flex-direction: column; align-items: center; }
  .achievements-grid { grid-template-columns: 1fr 1fr; }
  .languages-grid { grid-template-columns: 1fr; }
}
