* {
  box-sizing: border-box;
}

:root {
  --bg: #0b0914;
  --surface: rgba(20, 17, 36, 0.86);
  --surface-hover: rgba(30, 25, 52, 0.96);
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(45, 212, 191, 0.42);
  --teal: #2dd4bf;
  --violet: #a78bfa;
  --rose: #fb7185;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --dim: #71717a;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Soft Atmospheric Glows & Subtle Canvas */
.ambient-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.14;
  pointer-events: none;
  z-index: -2;
}

.glow-1 {
  background: #7c3aed;
  top: -140px;
  left: -160px;
}

.glow-2 {
  background: #0d9488;
  bottom: -140px;
  right: -160px;
}

#subtle-net-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
}

/* Top Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 9, 20, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #0b0914;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.accent {
  color: var(--teal);
}

.navbar nav {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}

.navbar nav a:hover {
  color: var(--teal);
}

.nav-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(45, 212, 191, 0.1);
  color: var(--teal);
  transition: 0.2s;
}

.nav-btn:hover {
  background: var(--teal);
  color: #0b0914;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

/* Hero Section: Left Gently Animating Portrait + Right Attractive Fonts & Logo-Only Socials */
.hero {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 52px;
  align-items: center;
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--border);
}

.hero-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-wrapper {
  position: relative;
  width: 280px;
  height: 290px;
  display: grid;
  place-items: center;
}

.avatar-halo {
  position: absolute;
  width: 236px;
  height: 236px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.28), transparent 70%);
  animation: breatheHalo 4.5s ease-in-out infinite;
  pointer-events: none;
}

.avatar-ring {
  width: 214px;
  height: 214px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--teal), var(--violet), var(--rose));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
  animation: gentleFloat 5s ease-in-out infinite;
  z-index: 2;
}

.profile-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: #ffffff;
  border: 3px solid var(--bg);
  display: block;
}

.avatar-status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(20, 17, 36, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 13px;
  font: 500 11px "Outfit", sans-serif;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  display: inline-block;
  animation: pulseDot 2.2s ease-in-out infinite;
}

/* Right Hero Typography */
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 14px;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  background: linear-gradient(95deg, #ffffff 10%, #2dd4bf 55%, #c4b5fd 95%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: softShine 6s ease-in-out infinite;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #e4e4e7;
  line-height: 1.55;
}

.hero-bio {
  margin: 0 0 26px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 630px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--violet));
  color: #0b0914;
  font-weight: 700;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, opacity 0.2s;
}

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

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--teal);
  background: var(--surface-hover);
}

/* Logo-Only Social Media Buttons (No Text Labels) */
.icon-only-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.icon-only-socials.large {
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.social-icon-btn.lg {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
}

.social-icon-btn.li { color: #38bdf8; }
.social-icon-btn.li:hover { border-color: #38bdf8; box-shadow: 0 8px 22px rgba(56, 189, 248, 0.25); }

.social-icon-btn.gh { color: #f8fafc; }
.social-icon-btn.gh:hover { border-color: #f8fafc; box-shadow: 0 8px 22px rgba(248, 250, 252, 0.2); }

.social-icon-btn.ig { color: #f472b6; }
.social-icon-btn.ig:hover { border-color: #f472b6; box-shadow: 0 8px 22px rgba(244, 114, 182, 0.25); }

.social-icon-btn.fb { color: #60a5fa; }
.social-icon-btn.fb:hover { border-color: #60a5fa; box-shadow: 0 8px 22px rgba(96, 165, 250, 0.25); }

.social-icon-btn.sc { color: #fde047; }
.social-icon-btn.sc:hover { border-color: #fde047; box-shadow: 0 8px 22px rgba(253, 224, 71, 0.25); }

.social-icon-btn.gm { color: #fb7185; }
.social-icon-btn.gm:hover { border-color: #fb7185; box-shadow: 0 8px 22px rgba(251, 113, 133, 0.25); }

/* Sections */
.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 34px;
}

.section-head.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}

.section-head h2,
.social-dock-box h2 {
  margin: 0;
  font-family: "Syne", "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mono-link {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--teal);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.timeline-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--muted);
  padding-top: 4px;
}

.timeline-card h3 {
  margin: 0 0 4px;
  font-size: 18.5px;
  font-weight: 700;
}

.org {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
}

.timeline-card ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.timeline-card li {
  margin-bottom: 6px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #e4e4e7;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.project-card,
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--teal);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.project-card h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
}

.pill-badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.12);
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
}

.project-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.project-meta {
  display: flex;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--dim);
}

.repo-status {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--dim);
  margin: 20px 0 0;
}

/* Split Education & Certifications */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 24px;
  align-items: start;
}

.box-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.box-title {
  margin: 0 0 20px;
  font-family: "Syne", sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.edu-entry {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.edu-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.edu-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--teal);
}

.edu-entry h4 {
  margin: 4px 0;
  font-size: 16px;
}

.edu-sub {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: #e4e4e7;
}

.edu-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.cert-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cert-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 14px;
  background: rgba(11, 9, 20, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.logo-box {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #141124;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-content {
  flex: 1;
}

.cert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.provider {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.cert-badge-pill {
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.3);
  padding: 1px 7px;
  border-radius: 4px;
}

.verify-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.verify-btn:hover {
  background: rgba(45, 212, 191, 0.25);
}

.cert-content h4 {
  margin: 5px 0 3px;
  font-size: 14.5px;
  font-weight: 600;
}

.cred-id {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: #99f6e4;
  word-break: break-all;
}

/* Skills & Social Dock */
.skill-card h3 {
  margin: 0 0 8px;
  font-size: 15.5px;
}

.skill-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}

.social-dock-box {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 5, 14, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #141124;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 4px 0 0;
  font-size: 19px;
}

.modal-close {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.tab-btn {
  padding: 7px 14px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font: 600 12px "Outfit", sans-serif;
  cursor: pointer;
}

.tab-btn.active {
  background: var(--teal);
  color: #0b0914;
  border-color: var(--teal);
}

.arch-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #99f6e4;
  overflow-x: auto;
  line-height: 1.65;
}

.modal-summary {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.modal-list {
  margin: 12px 0 18px;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

.preview-frame {
  width: 100%;
  height: 320px;
  margin: 16px 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
}

.modal-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.footer {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--dim);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes gentleFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-7px); } }
@keyframes breatheHalo { 0%, 100% { transform: scale(0.96); opacity: 0.5; } 50% { transform: scale(1.06); opacity: 0.85; } }
@keyframes softShine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .navbar nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    padding: 16px;
    background: #141124;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    flex-direction: column;
    gap: 14px;
  }
  .navbar nav.open { display: flex; }
  .nav-btn { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 44px; }
  .timeline-row { grid-template-columns: 1fr; gap: 8px; }
  .grid-2, .split-grid, .grid-3 { grid-template-columns: 1fr; }
  .section-head.flex-between { flex-direction: column; align-items: flex-start; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}
