:root {
  --bg: #0b0f1a;
  --panel: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --text: #e8ecf1;
  --muted: #9aa7b1;
  --primary: #72e0a6;
  --primary-2: #8ac9ff;
  --accent: #ff7ab6;
  --chip: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.14);
}

/* Light theme variables */
body[data-theme="light"] {
  --bg: #f6f7fb;
  --panel: rgba(0,0,0,0.04);
  --glass: rgba(255,255,255,0.75);
  --text: #0a0f18;
  --muted: #4a5560;
  --primary: #1dd68f;
  --primary-2: #3aa2ff;
  --accent: #ef4fa3;
  --chip: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% 10%, #0f162a 0%, #0b0f1a 35%, #0b0f1a 100%);
  overflow-x: hidden;
}
body[data-theme="light"] {
  background: radial-gradient(1000px 600px at 10% 10%, #ffffff 0%, #f6f7fb 35%, #eef1f7 100%);
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(180deg, rgba(11,15,26,0.75) 30%, rgba(11,15,26,0) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
body[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(246,247,251,0.85) 30%, rgba(246,247,251,0) 100%);
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand .avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
  border: 1px solid var(--border);
}
.brand .avatar img { width: 100%; height: 100%; object-fit: cover; }
.brand .titles h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: 0.2px; }
.brand .subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 10px 14px; color: var(--text); background: var(--panel); transition: box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease; }
.btn:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.25); border-color: rgba(255,255,255,0.24); background-color: rgba(255,255,255,0.1); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(138,201,255,0.45); }
.btn.primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: #0a0f18; border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.03); box-shadow: 0 8px 22px rgba(114,224,166,0.25), 0 8px 22px rgba(138,201,255,0.15); }
.btn.outline { background: transparent; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 8px 12px; font-size: 12px; }

.section { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; }
.hero-title { margin: 0 0 12px; font-size: 40px; line-height: 1.08; letter-spacing: -0.8px; }
.hero-desc { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.socials { display: flex; gap: 16px; }
.hero-visual { position: relative; min-height: 220px; }
.orb {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(600px 300px at 20% 10%, rgba(114,224,166,0.12), rgba(138,201,255,0.08) 45%, rgba(255,122,182,0.08) 100%);
  filter: blur(18px);
}
.glass-card {
  position: relative;
  margin: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.glass-card h3 { margin: 0 0 8px 0; }
.glass-card p { margin: 6px 0; color: var(--muted); }

.section-header h3 { margin: 0; font-size: 22px; }
.section-header p { margin: 6px 0 24px; color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.25); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-header h4 { margin: 0; font-size: 16px; }
.card-desc { margin: 10px 0 14px; color: var(--muted); font-size: 14px; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.stack span {
  background: var(--chip); border: 1px solid var(--border);
  color: var(--muted); font-size: 12px; padding: 6px 8px; border-radius: 999px;
}
.chip {
  background: linear-gradient(135deg, rgba(114,224,166,0.25), rgba(138,201,255,0.25));
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px; padding: 6px 8px; border-radius: 999px;
}

.more-projects { margin-top: 18px; display: flex; justify-content: center; }

.timeline { position: relative; margin-top: 6px; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 16px; width: 2px; background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.06));
}
.tl-item { position: relative; padding-left: 48px; margin: 22px 0; }
.tl-dot { position: absolute; left: 7px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(255,255,255,0.06), 0 10px 25px rgba(0,0,0,0.35);
}
.tl-content h4 { margin: 0 0 6px; font-size: 16px; }
.tl-content p { margin: 0; color: var(--muted); }

.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.edu-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.skills .chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.skills .chips span {
  background: var(--chip); border: 1px solid var(--border);
  color: var(--text); font-size: 13px; padding: 8px 10px; border-radius: 999px;
}

.cta-card {
  background: linear-gradient(135deg, rgba(114,224,166,0.08), rgba(138,201,255,0.08));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
  text-align: center;
}
.cta-actions { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }

.site-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.footer-socials { display: flex; gap: 12px; }

.tilt { transform-style: preserve-3d; will-change: transform; }

/* Canvas background subtle stars */
#bg { position: fixed; inset: 0; z-index: -1; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .brand .titles h1 { font-size: 18px; }
  .hero-title { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}