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

:root {
  --accent: #00d4ff;
  --accent2: #a78bfa;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover: rgba(255, 255, 255, 0.08);
  --text: #c8c8d0;
  --text-muted: #7e7e8a;
  --text-bright: #f0f0f2;
  --radius: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #0c0a1d;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(88, 28, 135, .25), transparent),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(14, 116, 144, .18), transparent),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(55, 48, 107, .2), transparent);
  background-attachment: fixed;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(0, 212, 255, .2); color: var(--text-bright); }

a { color: var(--accent); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .8; }

strong { color: var(--text-bright); font-weight: 600; }

/* ===== BACKGROUND ===== */
.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); opacity: .15;
  animation: drift 35s ease-in-out infinite alternate;
}
.orb-1 { width: 500px; height: 500px; background: #7c3aed; top: -8%; left: -8%; }
.orb-2 { width: 380px; height: 380px; background: #0ea5e9; bottom: 5%; right: -5%; animation-delay: -12s; }
.orb-3 { width: 250px; height: 250px; background: #a855f7; top: 45%; left: 55%; opacity: .08; animation-delay: -22s; }

@keyframes drift {
  to { transform: translate(30px, -20px) scale(1.06); }
}

/* ===== GLASS ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 100; padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav-name {
  font-weight: 800; font-size: .9rem; color: var(--text-bright);
  letter-spacing: 1px; margin-right: auto;
}

.nav-right { display: flex; gap: 20px; }
.nav-right a { color: var(--text-muted); font-size: .82rem; font-weight: 500; }
.nav-right a:hover { color: var(--accent); opacity: 1; }

/* ===== LAYOUT ===== */
.container { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }

section { padding: 48px 0 0; }
section:first-of-type { padding-top: 0; }

h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--text-bright);
  margin-bottom: 18px; padding-left: 14px;
  border-left: 3px solid var(--accent);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
}

.hero-row {
  display: flex; gap: 32px; align-items: center;
}

.avatar-wrap {
  flex-shrink: 0; position: relative;
  width: 120px; height: 120px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(124, 58, 237, .12);
}

.avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  display: block;
  border: 2px solid #0c0a1d;
}

.hero-greeting {
  font-size: .85rem; color: var(--text-muted); font-weight: 500;
  letter-spacing: .3px; margin-bottom: 2px;
}

.hero-text h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--text-bright);
  letter-spacing: -.03em; line-height: 1.15;
}

.tagline { font-size: .88rem; color: var(--text-muted); margin-top: 4px; }
.tagline a { color: var(--accent); font-weight: 600; }

.intro {
  margin-top: 14px; font-size: .88rem; color: var(--text); line-height: 1.7;
}

.links {
  margin-top: 16px; font-size: .83rem;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.sep { color: var(--text-muted); opacity: .3; }

/* ===== WORK ===== */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.work-card {
  padding: 18px 20px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.work-card:hover {
  border-color: rgba(0,212,255,.15);
  box-shadow: 0 0 24px rgba(0,212,255,.06);
  transform: translateY(-2px);
}

.work-period {
  font-size: .7rem; font-weight: 600; color: var(--accent);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 5px;
}

.work-card h3 { font-size: .9rem; font-weight: 600; color: var(--text-bright); line-height: 1.3; }
.work-co { font-size: .78rem; color: var(--text-muted); margin: 3px 0 7px; }
.work-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; }

.edu-card {
  margin-top: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: .83rem; color: var(--text-muted);
}
.edu-card strong { color: var(--text); }

/* ===== PROJECTS ===== */
.projects-row { display: flex; flex-direction: column; gap: 10px; }

.project-card {
  display: flex; gap: 18px; padding: 14px; align-items: stretch;
  text-decoration: none; color: var(--text);
  transition: border-color .3s, box-shadow .3s, transform .3s;
  overflow: hidden;
}
.project-card:hover {
  border-color: rgba(0,212,255,.15);
  box-shadow: 0 0 28px rgba(0,212,255,.08);
  transform: translateY(-2px);
  opacity: 1;
}
.project-card:hover .project-thumb {
  transform: scale(1.03);
}

.project-thumb {
  width: 140px; min-height: 90px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  transition: transform .4s ease;
  border: 1px solid rgba(255,255,255,.05);
}

.project-info {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
}

.project-card h3 { font-size: .9rem; font-weight: 600; color: var(--text-bright); margin-bottom: 3px; }
.project-card p { font-size: .8rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 5px; }
.project-url { font-size: .75rem; color: var(--accent); font-weight: 500; }

/* ===== CONTACT ===== */
.contact-section { padding-bottom: 20px; }

.contact-card {
  padding: 32px; text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(0,212,255,.04));
}

.contact-card h2 {
  border: none; padding: 0; margin-bottom: 10px; text-align: center;
  font-size: 1.4rem;
}

.contact-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 20px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  background: var(--accent); color: #0c0a1d; font-weight: 600; font-size: .84rem;
  transition: box-shadow .2s, transform .2s;
}
.btn-primary:hover { box-shadow: 0 0 28px var(--accent-glow); transform: translateY(-1px); opacity: 1; }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--glass-border); color: var(--text); font-size: .84rem; font-weight: 500;
  transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }

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

/* ===== SR-ONLY (SEO crawlable, visually hidden) ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .hero-row { flex-direction: column; align-items: center; text-align: center; }
  .links { justify-content: center; }
  .work-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
  .navbar { top: auto; bottom: 12px; padding: 8px 18px; gap: 14px; }
  .nav-right { gap: 14px; }
  .nav-right a { font-size: .78rem; }
  .contact-card { padding: 24px 20px; }
  .project-thumb { width: 100px; min-height: 70px; }
}

@media (max-width: 420px) {
  .hero-text h1 { font-size: 1.5rem; }
  .contact-row { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .avatar-wrap { width: 100px; height: 100px; }
  .project-card { flex-direction: column; }
  .project-thumb { width: 100%; min-height: 120px; }
}
