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

:root {
  --bg:          #06080f;
  --glass-bg:    rgba(255, 255, 255, 0.04);
  --glass-border:rgba(255, 255, 255, 0.09);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --cyan:   #00d4ff;
  --violet: #a855f7;
  --teal:   #06b6d4;
  --green:  #10b981;
  --amber:  #f59e0b;

  --text-primary:   #f0f4ff;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--violet); }

/* ============================================================
   BACKGROUND ORBS
   ============================================================ */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  top: -200px; left: -150px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  bottom: 0; right: -100px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0d9488 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  align-items: start;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, opacity 0.5s;
}

.glass-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

/* Scroll animation */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: sticky;
  top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4px;
}

.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 16px;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  z-index: 0;
  animation: spin-ring 6s linear infinite;
}

.avatar-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.name {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.name span {
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.tag-code { color: var(--cyan); }
.sep      { color: var(--text-muted); margin: 0 4px; }

/* Divider */
.divider {
  height: 1px;
  background: var(--glass-border);
  margin: 20px 0;
}

/* Section block */
.section-block { display: flex; flex-direction: column; gap: 12px; }

.block-title {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* Contact list */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Skill tags */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  border: 1px solid;
  cursor: default;
  transition: transform 0.2s, box-shadow 0.2s;
}
.skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,212,255,0.2);
}

.tier-1 {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--cyan);
}
.tier-2 {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
  color: #c084fc;
}
.tier-3 {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
  color: #67e8f9;
}
.soft {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

/* Languages */
.lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.lang-level {
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
}
.native       { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.intermediate { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Card label / section header */
.card-label {
  margin-bottom: 16px;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  opacity: 0.7;
}

/* ============================================================
   ABOUT / STATS
   ============================================================ */
.card-about { }

.about-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}
.about-text strong { color: var(--text-primary); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
}
.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-plus { font-size: 1rem; }
.stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--violet), transparent);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 28px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -14px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  transition: border-color 0.3s;
}

.tl-item.current .tl-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(0,212,255,0.6); }
  50%       { box-shadow: 0 0 20px rgba(0,212,255,0.9); }
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.tl-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tl-company {
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 500;
  margin-top: 2px;
}

.tl-date {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}

.tl-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.3s;
}
.edu-item:hover { border-color: rgba(0,212,255,0.25); }

.edu-item.highlight-edu {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
}

.edu-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.edu-item h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.edu-item p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================================
   TWO-COLUMN GRID (publications + research)
   ============================================================ */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Publications */
.pub-list { display: flex; flex-direction: column; gap: 14px; }

.pub-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--violet);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.pub-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.pub-isbn {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

/* Research / conferences */
.conf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.conf-tag {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--teal);
}
.conf-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .sidebar {
    position: static;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .tl-header {
    flex-direction: column;
    gap: 4px;
  }
}
