:root {
  --bg: #0b1020;
  --bg-alt: #111729;
  --card: #151b30;
  --accent: #4ea3ff;
  --accent-soft: rgba(78,163,255,0.12);
  --text: #f5f7ff;
  --muted: #a4acc4;
  --border: #252c45;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.45);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --transition: 0.22s ease;
}

[data-theme="light"] {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #2f7ae5;
  --accent-soft: rgba(47,122,229,0.08);
  --text: #111322;
  --muted: #5b627a;
  --border: #d4d8e6;
  --shadow-soft: 0 10px 26px rgba(15,23,42,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2440 0, #050814 55%, #02030a 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[data-theme="light"] body {
  background: #f0f2f9;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7fd1ff, #4ea3ff);
  box-shadow: 0 0 12px rgba(78,163,255,0.9);
}

.brand-logo {
  font-weight: 800;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0b1020;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 0 12px rgba(78,163,255,0.4);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(10,16,35,0.9);
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="light"] .tag-pill {
  background: #ffffff;
}

.tag-pill span.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 8px rgba(61,214,140,0.8);
}

.mode-toggle {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(9,13,30,0.9);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

[data-theme="light"] .mode-toggle {
  background: #ffffff;
}

.mode-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(78,163,255,0.6);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 28px;
  margin-bottom: 32px;
}

.hero-main {
  background: linear-gradient(145deg, rgba(21,27,48,0.96), rgba(9,13,30,0.98));
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  border: 1px solid rgba(78,163,255,0.18);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hero-main {
  background: linear-gradient(145deg, #ffffff, #f3f5fd);
  border-color: rgba(47,122,229,0.25);
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(78,163,255,0.18), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(61,214,140,0.12), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-main-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-tag {
  font-size: 11px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(164,172,196,0.35);
  color: var(--muted);
  background: rgba(9,13,30,0.9);
}

[data-theme="light"] .hero-tag {
  background: #ffffff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
}

.btn-primary {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, #4ea3ff, #2f7ae5);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(46,122,229,0.55);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(46,122,229,0.7);
  opacity: 0.96;
}

.btn-ghost {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(9,13,30,0.9);
  color: var(--muted);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

[data-theme="light"] .btn-ghost {
  background: #ffffff;
}

.btn-ghost:hover {
  background: rgba(21,27,48,0.95);
  border-color: rgba(78,163,255,0.4);
  color: var(--text);
}

[data-theme="light"] .btn-ghost:hover {
  background: #f3f5fd;
}

.hero-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-meta span::before {
  content: "•";
  color: #4ea3ff;
  font-size: 12px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.card {
  background: rgba(9,13,30,0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.55);
  font-size: 13px;
  color: var(--muted);
}

[data-theme="light"] .card {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15,23,42,0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.card-pill {
  font-size: 11px;
  color: var(--muted);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(15,22,45,0.9);
  border: 1px solid var(--border);
}

[data-theme="light"] .card-pill {
  background: #f5f7ff;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
}

.metric-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: rgba(12,20,44,0.9);
  border: 1px solid rgba(78,163,255,0.3);
  margin-top: 6px;
}

[data-theme="light"] .metric-chip {
  background: #f5f7ff;
}

.metric-chip span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ea3ff;
  box-shadow: 0 0 10px rgba(78,163,255,0.9);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr);
  gap: 24px;
  margin-top: 10px;
}

.section {
  background: rgba(9,13,30,0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  margin-bottom: 18px;
}

[data-theme="light"] .section {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,0.08);
}

.section-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.section-title span.bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #4ea3ff, #3dd68c);
}

.section-body {
  font-size: 13px;
  color: var(--muted);
}

.section-body p + p {
  margin-top: 8px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(164,172,196,0.35);
  color: var(--muted);
  background: rgba(8,12,28,0.96);
}

[data-theme="light"] .pill {
  background: #f7f8ff;
}

.experience-item {
  margin-bottom: 10px;
}

.experience-role {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.experience-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.experience-points {
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  margin-top: 4px;
}

.experience-points li {
  margin-bottom: 3px;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.insight-card {
  background: rgba(11,16,35,0.96);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 11px;
}

[data-theme="light"] .insight-card {
  background: #f7f8ff;
}

.insight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7f86a8;
  margin-bottom: 3px;
}

.insight-title {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
}

.insight-text {
  font-size: 12px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 14px;
  margin-top: 10px;
}

.contact-details p {
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-details a {
  text-decoration: underline;
  text-decoration-color: rgba(78,163,255,0.6);
}

.contact-form {
  background: rgba(11,16,35,0.96);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 10px 11px 12px;
}

[data-theme="light"] .contact-form {
  background: #f7f8ff;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.form-row label {
  font-size: 12px;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 7px 9px;
  font-size: 13px;
  background: rgba(5,9,24,0.96);
  color: var(--text);
}

[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea {
  background: #ffffff;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(78,163,255,0.7);
  box-shadow: 0 0 0 1px rgba(78,163,255,0.35);
}

footer {
  margin-top: 26px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  border-top: 1px solid rgba(37,44,69,0.9);
  padding-top: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-link {
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(37,44,69,0.9);
  background: rgba(8,12,28,0.96);
}

[data-theme="light"] .footer-link {
  background: #ffffff;
}

/* Responsive */

@media (max-width: 960px) {
  main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* --- FINAL POLISH UPDATES --- */

/* 1. Increase spacing between sections */
.section {
  margin-top: 70px;
  margin-bottom: 70px;
}

/* 2. More premium padding for RP header mark */
.brand-logo {
  padding: 6px 12px;
  font-size: 17px;
}

/* 3. Mobile refinements */
@media (max-width: 768px) {

  /* Increase spacing between sections on mobile */
  .section {
    margin-top: 60px;
    margin-bottom: 60px;
  }

  /* Slightly larger hero title for readability */
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }
}
