:root {
  --bg: #0b0f14;
  --surface: #121824;
  --text: #e6edf7;
  --muted: #9aa4b2;
  --primary: #7c3aed;
  --primary-2: #22d3ee;
  --accent: #f97316;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --glass: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 400px at 80% 10%, rgba(124,58,237,0.15), transparent 70%),
    radial-gradient(800px 300px at 10% 40%, rgba(34,211,238,0.12), transparent 70%),
    linear-gradient(180deg, #0a0f16, #0b0f14 30%, #0b0f14 100%);
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(8px);
  background: linear-gradient(to bottom, rgba(18,24,36,0.7), rgba(18,24,36,0.3));
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(124,58,237,0.25);
}
.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 180ms ease;
}
.nav a:hover { background: var(--glass); }

.hero {
  padding: 80px 0 40px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}
.hero-text h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  margin: 0;
}
.gradient-text {
  background: linear-gradient(90deg, #eaeaea, #cbd5e1 40%, #7c3aed 60%, #22d3ee 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 18px;
}
.location { margin: -6px 0 16px; }
.cta { display: flex; gap: 12px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 600;
  border: 1px solid var(--border); transition: 200ms ease;
}
.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white; border: none; box-shadow: 0 10px 25px rgba(124,58,237,0.22);
}
.btn.ghost { background: rgba(255,255,255,0.05); color: var(--text); }
.btn:hover { transform: translateY(-1px); }
.social { display: flex; gap: 16px; margin-top: 10px; }
.social a { color: var(--muted); text-decoration: none; }
.social a:hover { color: var(--text); }

.hero-art {
  position: relative;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(34,211,238,0.08));
  border: 1px solid var(--border);
}
.orb {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  left: 10%; top: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(124,58,237,0.6), rgba(34,211,238,0.6));
  filter: blur(10px);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-16px) translateX(6px); }
}
.mesh {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(2, 1fr); opacity: 0.7;
}
.mesh span {
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(2px);
}

.section { padding: 64px 0; }
.section h2 {
  font-size: 28px; margin: 0 0 16px; letter-spacing: 0.4px;
}
.lead { color: var(--muted); margin-bottom: 20px; }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.card h3 { margin: 0 0 8px; font-size: 18px; }

.timeline { position: relative; margin-top: 10px; }
.timeline::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: rgba(255,255,255,0.08);
}
.timeline-item {
  position: relative; padding-left: 60px; margin: 22px 0;
}
.timeline-dot {
  position: absolute; left: 14px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 18px rgba(124,58,237,0.35);
}
.timeline-content { background: var(--glass); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.muted { color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface);
}
.project-media {
  height: 140px; background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.18));
}
.shimmer {
  position: relative; overflow: hidden;
}
.shimmer::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}
.project-body { padding: 14px; }
.project h3 { margin: 0 0 6px; font-size: 18px; }
.project p { margin: 0 0 10px; color: var(--muted); }
.tags { display: flex; gap: 8px; }
.tags span {
  font-size: 12px; color: #cbd5e1; border: 1px dashed rgba(255,255,255,0.2);
  padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.04);
}

.contact-actions { display: flex; gap: 12px; }

.edu-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: rgba(18,24,36,0.5);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.back-to-top {
  color: var(--muted); text-decoration: none; border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,0.05);
}
.back-to-top:hover { color: var(--text); }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .edu-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .cards { grid-template-columns: 1fr; }
  .edu-list { grid-template-columns: 1fr; }
}
