:root {
  /* Default: Light Theme */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --status-bg: #fef3c7;
  --status-border: #fde68a;
  --status-text: #92400e;
  --status-dot: #f59e0b;
  --github-bg: #0f172a;
  --github-text: #ffffff;
  --linkedin-bg: #0077b5;
  --linkedin-text: #ffffff;
  --shadow-card: 0 20px 35px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 25px 40px -10px rgba(15, 23, 42, 0.14);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-card: #111827;
  --bg-card-subtle: #1f2937;
  --border-color: #1f2937;
  --border-hover: #374151;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --accent-primary: #38bdf8;
  --accent-hover: #0284c7;
  --status-bg: rgba(245, 158, 11, 0.12);
  --status-border: rgba(245, 158, 11, 0.28);
  --status-text: #fbbf24;
  --status-dot: #f59e0b;
  --github-bg: #1f2937;
  --github-text: #ffffff;
  --linkedin-bg: #0a66c2;
  --linkedin-text: #ffffff;
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background accent */
.bg-pattern {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 50% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Navbar */
.navbar {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--bg-card);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Icon visibility based on theme */
[data-theme="light"] .dark-icon {
  display: none;
}
[data-theme="dark"] .light-icon {
  display: none;
}

/* Main Content Area */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}

/* Central Profile Card */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.profile-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

/* Status Pill */
.badge-wrapper {
  margin-bottom: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--status-bg);
  border: 1px solid var(--status-border);
  color: var(--status-text);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-dot);
  display: inline-block;
  box-shadow: 0 0 6px var(--status-dot);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Name & Role */
.name {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.role {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.summary {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* Action Links (GitHub & LinkedIn) */
.action-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.65rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-icon {
  width: 19px;
  height: 19px;
}

.btn-arrow {
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.link-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* GitHub Button Styling */
.github-btn {
  background: var(--github-bg);
  color: var(--github-text);
}

.github-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

/* LinkedIn Button Styling */
.linkedin-btn {
  background: var(--linkedin-bg);
  color: var(--linkedin-text);
}

.linkedin-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 119, 181, 0.3);
}

/* Live Metadata Footnote */
.card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.meta-val {
  color: var(--text-muted);
  font-weight: 500;
}

.status-ok {
  color: #059669;
  font-weight: 600;
}

[data-theme="dark"] .status-ok {
  color: #34d399;
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
  .profile-card {
    padding: 2.5rem 1.5rem;
  }

  .name {
    font-size: 2.15rem;
  }

  .role {
    font-size: 1.15rem;
  }

  .summary {
    font-size: 0.95rem;
  }

  .action-links {
    flex-direction: column;
    gap: 0.85rem;
  }

  .link-btn {
    width: 100%;
    justify-content: center;
  }
}
