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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #7c6ee6;
  --accent2: #a78bfa;
  --accent3: #38bdf8;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(124, 110, 230, 0.2);
  --card: rgba(26, 26, 36, 0.8);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent2); }

.nav-cta {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent2) !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: rgba(124, 110, 230, 0.15) !important; }

/* ---- HERO ---- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,110,230,0.15) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content { position: relative; max-width: 760px; }

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--accent2);
  margin-bottom: 1.5rem;
  background: rgba(124,110,230,0.07);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 .gradient {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(124,110,230,0.35);
}

.btn-primary:hover { box-shadow: 0 6px 28px rgba(124,110,230,0.5); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ---- SECTION COMMON ---- */
section { padding: 5rem 1.5rem; }

.section-inner { max-width: 1000px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 0.6rem;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3rem;
  font-size: 1rem;
}

/* ---- ABOUT / EDUCATION ---- */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-text p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }

.edu-cards { display: flex; flex-direction: column; gap: 1rem; }

.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  transition: border-color 0.2s;
}

.edu-card:hover { border-color: var(--accent); }

.edu-degree { font-weight: 700; font-size: 0.95rem; }
.edu-school { color: var(--accent2); font-size: 0.875rem; margin: 0.15rem 0; }
.edu-meta { color: var(--text-muted); font-size: 0.8rem; display: flex; gap: 1rem; }

/* ---- ACHIEVEMENTS ---- */
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.achieve-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.achieve-card:hover { transform: translateY(-4px); border-color: var(--accent); }

.achieve-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.achieve-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; }
.achieve-desc { color: var(--text-muted); font-size: 0.83rem; line-height: 1.5; }

/* ---- EXPERIENCE ---- */
#experience { background: var(--bg2); }

.timeline { display: flex; flex-direction: column; gap: 1.5rem; }

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.timeline-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  flex-shrink: 0;
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 30px;
  background: var(--border);
  margin-top: 6px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-card:hover { border-color: var(--accent); }

.job-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.job-title { font-weight: 700; font-size: 1rem; }
.job-period { color: var(--accent3); font-size: 0.8rem; font-weight: 600; }
.job-company { color: var(--accent2); font-size: 0.875rem; margin-bottom: 0.75rem; }

.job-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.job-bullets li {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-left: 1.2rem;
  position: relative;
}
.job-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent2);
}

/* ---- PROJECTS ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124,110,230,0.15);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.project-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.project-period { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; }

.project-supervisor {
  color: var(--accent3);
  font-size: 0.78rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.project-desc { color: var(--text-muted); font-size: 0.86rem; line-height: 1.65; flex: 1; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.tag {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  background: rgba(124,110,230,0.12);
  color: var(--accent2);
  border: 1px solid rgba(124,110,230,0.25);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.project-link:hover { color: var(--accent2); }

.coming-soon-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent3);
  border: 1px solid rgba(56, 189, 248, 0.25);
  align-self: flex-start;
  margin-top: 1rem;
}

/* ---- SKILLS ---- */
#skills { background: var(--bg2); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.skill-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem;
}

.skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.skill-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}

.skill-pill:hover {
  background: rgba(124,110,230,0.15);
  border-color: var(--accent);
}

/* ---- RESPONSIBILITIES ---- */
.resp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.resp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s;
}

.resp-card:hover { border-color: var(--accent); }

.resp-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent3);
  background: rgba(56,189,248,0.1);
  border: 1px solid rgba(56,189,248,0.2);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 0.1rem;
}

.resp-info {}
.resp-role { font-weight: 700; font-size: 0.9rem; }
.resp-org { color: var(--accent2); font-size: 0.8rem; margin-bottom: 0.3rem; }
.resp-detail { color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }

/* ---- CONTACT ---- */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.15s;
}

.contact-item:hover { border-color: var(--accent); transform: translateX(4px); }

.contact-icon { font-size: 1.3rem; }
.contact-label { font-size: 0.75rem; color: var(--text-muted); }
.contact-value { font-weight: 600; font-size: 0.9rem; }

.contact-cta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-cta h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.contact-cta p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---- FOOTER ---- */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* ---- ANIMATIONS ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  nav { padding: 0.875rem 1rem; }
  .nav-links { display: none; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 1.5rem; }
}

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