
.hero-card {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-card .avatar-box {
  width: 240px;
  height: 240px;
  margin: 0 auto 24px;
}
.hero-card .pill-list {
  justify-content: center;
}
.hero-card .terminal-mini {
  width: 100%;
  text-align: left;
}

/* Three.js Interactive Background */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

body.dark #webgl-canvas {
  opacity: 0.85;
}

/* Vercel & Linear Inspired - Monochrome Minimalist Design System */
:root {
  --bg-base: #fafafa;
  --bg-surface: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.75);
  --border-card: rgba(228, 228, 231, 0.85);
  --text-main: #09090b;
  --text-muted: #71717a;
  --accent-contrast: #18181b;
  --accent-subtle: rgba(24, 24, 27, 0.06);
  --accent-glow: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

body.dark {
  --bg-base: #09090b;
  --bg-surface: rgba(18, 18, 20, 0.85);
  --bg-card: rgba(20, 20, 23, 0.7);
  --border-card: rgba(255, 255, 255, 0.09);
  --text-main: #fafafa;
  --text-muted: #a1a1aa;
  --accent-contrast: #ffffff;
  --accent-subtle: rgba(255, 255, 255, 0.07);
  --accent-glow: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.7;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
  position: relative;
}

/* Subtle Monochrome Ambient (Clean Spotlight, no flashy violet) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.glow-2 {
  width: 600px;
  height: 600px;
  bottom: 5%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

/* Glassmorphism Common Class */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
}

body:not(.dark) .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

/* Loader */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-contrast);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 16px;
  width: calc(100% - 48px);
  max-width: 1440px; width: 92%;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: 40px;
  z-index: 1000;
  box-shadow: var(--card-shadow);
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.brand-code {
  color: var(--text-muted);
}

.dot {
  color: var(--text-main);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

#toggle-dark {
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#toggle-dark:hover {
  transform: scale(1.05);
  border-color: var(--text-muted);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  z-index: 1;
  max-width: 1440px; width: 92%;
  margin: 56px auto 100px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 1fr; gap: 64px;
  gap: 48px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}

.gradient-text {
  color: var(--text-main);
  text-decoration: underline;
  text-decoration-color: var(--border-card);
  text-underline-offset: 6px;
}

.typing-text {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--text-muted);
  min-height: 1.6em;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 30px;
  max-width: 560px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent-contrast);
  color: var(--bg-base);
  border: 1px solid var(--accent-contrast);
}

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

.btn.secondary {
  background: var(--accent-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Hero Right Card */
.hero-card-wrapper {
  position: relative;
}



.avatar-box {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-card);
}

.online-indicator {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-base);
}

.card-details h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.role-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.pill-list span {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-mini {
  background: #000;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a1a1aa;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.term-prompt {
  color: #10b981;
  font-weight: 600;
}

.term-cmd {
  color: #fafafa;
}

.term-out {
  color: #71717a;
  margin-top: 4px;
  font-size: 0.73rem;
}

/* Sections Common */
.section {
  position: relative;
  z-index: 1;
  max-width: 1440px; width: 92%;
  margin: 0 auto 100px;
  padding: 0 32px;
}

.section-heading {
  margin-bottom: 36px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  max-width: 650px;
}

.section-heading.text-center {
  text-align: center;
}
.section-heading.text-center h2 {
  margin: 0 auto;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr;
  gap: 28px;
}

.about-card {
  padding: 32px;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 18px;
}

.highlights-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
}

.hl-item {
  display: flex;
  gap: 12px;
}

.hl-icon-svg {
  color: var(--text-main);
  opacity: 0.85;
}

.hl-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.hl-item p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.stat-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Skills Category Grid */
.skills-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-group {
  padding: 24px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-main);
}

.group-icon-svg {
  color: var(--text-muted);
}

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

.skill-pill {
  padding: 5px 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

.skill-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Projects Grid */
.project-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.project-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.project-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 14px;
  background: var(--accent-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
}

.project-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.project-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

.project-footer {
  border-top: 1px solid var(--border-card);
  padding-top: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}

.project-link:hover {
  gap: 10px;
  text-decoration: underline;
}

/* Contact Card */
.contact-card {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.contact-card h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.contact-card p {
  color: var(--text-muted);
  max-width: 480px;
  font-size: 0.95rem;
}

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

/* Footer */
footer {
  border-top: 1px solid var(--border-card);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1440px; width: 92%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--border-card);
}

/* Scroll Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 20px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .navbar.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-card);
  }
  .highlights-row {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
