:root {
  --bg: #0a0e14;
  --bg-soft: #0f1420;
  --surface: #121826;
  --surface-border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf3;
  --text-muted: #8b96a8;
  --accent: #5eead4;
  --accent-2: #818cf8;
  --accent-3: #f472b6;
  --radius: 16px;
  --max-width: 1100px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 0.5em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.08), transparent 40%),
    radial-gradient(circle at 80% 0%, rgba(129, 140, 248, 0.1), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(244, 114, 182, 0.06), transparent 40%);
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 20, 0.7);
  border-bottom: 1px solid var(--surface-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}
.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06111b;
  box-shadow: 0 8px 24px -8px rgba(94, 234, 212, 0.5);
}

.btn-outline {
  border-color: var(--surface-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); }

.btn-ghost {
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  min-height: 80vh;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(94, 234, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.role {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 8px;
}

.hero-desc {
  margin-top: 20px;
  max-width: 560px;
  color: var(--text-muted);
}
.hero-desc strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.hero-socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.hero-socials a:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.glass {
  background: linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
}

.hero-card { display: flex; justify-content: center; }

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111b;
  margin-bottom: 16px;
}

.muted { color: var(--text-muted); font-size: 0.92rem; }

.stat-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.stat-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-list span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Sections */
.section { padding: 80px 24px; }
.section-head { margin-bottom: 40px; }
.section-tag {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-top: 8px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { color: var(--text-muted); font-size: 1.02rem; }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.highlight {
  display: flex;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
}
.highlight i {
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 2px;
}
.highlight h4 { font-size: 0.98rem; margin-bottom: 4px; }
.highlight p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.timeline-header h3 { font-size: 1.2rem; }
.company { color: var(--accent); font-weight: 600; margin-top: 2px; }
.period {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  border: 1px solid var(--surface-border);
}
.timeline-content ul { display: flex; flex-direction: column; gap: 10px; }
.timeline-content li {
  position: relative;
  padding-left: 20px;
  font-size: 0.93rem;
  color: var(--text-muted);
}
.timeline-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}
.timeline-content li.bullet-extra { display: none; }
.timeline-content.expanded li.bullet-extra { display: block; }
.show-more-btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--surface-border);
  color: var(--accent);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.show-more-btn:hover { border-color: var(--accent); background: rgba(94, 234, 212, 0.08); }
.show-more-btn i { font-size: 0.75rem; transition: transform 0.25s ease; }
.timeline-content.expanded .show-more-btn i { transform: rotate(180deg); }

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.project-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-size: 1.1rem;
}
.project-card h3 { font-size: 1.05rem; line-height: 1.3; }
.project-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.project-tags { margin: 2px 0; }
.project-impact {
  margin: 0;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-impact i { color: var(--accent-2); }

/* Leadership */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.leadership-grid .card { text-align: left; }
.leadership-grid i { font-size: 1.4rem; color: var(--accent-2); margin-bottom: 14px; display: block; }
.leadership-grid p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Skills */
.skills-subhead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 24px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skills-subhead:first-child { margin-top: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: var(--accent);
}
.tag-alt {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.25);
  color: var(--accent-2);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-card { text-align: center; }
.cert-card i { font-size: 1.8rem; color: var(--accent-3); margin-bottom: 12px; display: block; }
.cert-card h4 { font-size: 1rem; margin-bottom: 4px; }

/* 2026 Achievements & Certifications */
.achv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.achv-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 18px;
}
.achv-card.featured {
  border-color: rgba(94, 234, 212, 0.4);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.08), rgba(129, 140, 248, 0.04));
}
.achv-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06111b;
}
.achv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.achv-icon { font-size: 1.3rem; color: var(--accent-2); }
.achv-eye-btn {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.achv-eye-btn:hover {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
.achv-card h4 {
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.achv-meta { font-size: 0.8rem; margin: 0; }

/* Achievement modal */
.achv-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.achv-modal-overlay[hidden] { display: none; }
.achv-modal {
  position: relative;
  max-width: 460px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.achv-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.achv-modal-close:hover { color: var(--text); border-color: var(--accent); }
.achv-modal-icon { font-size: 1.8rem; color: var(--accent); margin-bottom: 14px; display: block; }
.achv-modal-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.achv-modal-desc { color: var(--text-muted); font-size: 0.92rem; margin: 14px 0 22px; }

/* Two column (education/awards) */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.award-list { display: flex; flex-direction: column; gap: 14px; }
.award-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.award-list i { color: var(--accent-3); margin-top: 3px; }

/* Contact */
.contact-section { padding-top: 40px; }
.contact-card { text-align: center; }
.contact-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }

.contact-form {
  max-width: 440px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.form-row label .optional {
  font-weight: 400;
  opacity: 0.7;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: rgba(139, 150, 168, 0.6); }
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.15);
}
.form-submit {
  justify-content: center;
  margin-top: 4px;
}
.form-status {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--accent);
  margin: 0;
}
.form-status.error { color: var(--accent-3); }

.contact-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  transition: all 0.2s;
}
.contact-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hobbies */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}
.hobby-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all 0.25s;
  cursor: default;
}
.hobby-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.hobby-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--bg);
  font-size: 1.2rem;
}
.hobby-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.hobby-card p { color: var(--text-muted); font-size: 0.8rem; margin: 0; line-height: 1.4; }
.cube-variants { font-size: 0.75rem; font-weight: 500; }

/* Beta Builds */
.beta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.beta-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
}
.beta-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.beta-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  color: var(--bg);
  font-size: 1.1rem;
}
.beta-icon svg { width: 26px; height: 26px; }
.beta-card h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.beta-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; line-height: 1.4; flex-grow: 1; }
.beta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: 8px;
  transition: all 0.2s;
}
.beta-link:hover { color: var(--accent-2); transform: translateX(4px); }
.beta-link i { font-size: 0.8rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-to-top {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--surface-border);
  transition: all 0.2s;
}
.back-to-top:hover { border-color: var(--accent); color: var(--accent); }

/* Scroll reveal */
.pre-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.pre-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .about-grid, .two-col { grid-template-columns: 1fr; }
  .leadership-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .beta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .navbar.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--surface-border);
  }
  .about-highlights { grid-template-columns: 1fr; }
  .leadership-grid, .cert-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .beta-grid { grid-template-columns: 1fr; }
  .stat-list { grid-template-columns: 1fr 1fr; }
}

/* Anthropic logo (not in Font Awesome) — rendered via mask so it inherits icon colour */
.icon-anthropic {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.achv-modal-icon.icon-anthropic { margin-bottom: 14px; }
