/* THEME TOKENS */
:root {
  --bg: #fcfbf9;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;

  --accent-blue: #38bdf8;
  --accent-orange: #f97316;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.06);
  --shadowHover: 0 10px 24px rgba(0,0,0,.08);

  --max: 1200px;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #1e293b;
  --card: #111827;
}

/* GLOBAL */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s, color .3s;
}

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

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

.muted { color: var(--muted); }
.small { font-size: 12px; }

/* STICKY HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s ease, background .3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.brand {
  font-weight: 800;
  color: var(--accent-blue);
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  font-weight: 700;
  color: var(--accent-blue);
  opacity: .9;
}

.nav a.active {
  color: var(--accent-orange);
}

.theme-toggle {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 12px;
}

/* FIX ADDED — theme toggle visible in dark mode */
[data-theme="dark"] .theme-toggle {
  color: #ffffff !important;
  border-color: #ffffff;
  background: #1e293b;
}
[data-theme="dark"] .theme-toggle:hover {
  background: #334155;
}

/* MOBILE MENU BUTTON (3-line hamburger) */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.menu-btn span {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 4px;
  transition: .3s;
}

/* FIX ADDED — hamburger lines visible in dark mode */
[data-theme="dark"] .menu-btn span {
  background: #ffffff;
}

/* MOBILE NAV DROPDOWN */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  animation: slideDown .3s ease;
}

.mobile-nav a {
  padding: 14px 20px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav.show {
  display: flex;
}

/* SLIDE DOWN ANIMATION */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO */
.hero {
  padding: 60px 0 30px;
}

.hero-title {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(120deg, var(--accent-blue), var(--accent-orange));
  -webkit-background-clip: text;
  color: transparent;
}

.subtitle {
  margin-top: 14px;
  max-width: 70ch;
  color: var(--muted);
}

.hero-meta {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
}

.pill.soft {
  background: rgba(56,189,248,.12);
  border-color: rgba(56,189,248,.3);
}

/* RESUME CARD */
.resume-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0 40px;
}

.resume-card {
  width: 100%;
  max-width: 360px;
  padding: 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: .3s;
}

.resume-avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  display: grid;
  place-items: center;
}

.resume-initials {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  color: var(--accent-blue);
}

.resume-name {
  margin: 10px 0 4px;
  font-size: 22px;
  font-weight: 900;
}

.resume-role {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.resume-handle {
  margin: 6px 0 16px;
  font-size: 13px;
  color: var(--accent-blue);
}

.resume-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-view,
.btn-download {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s;
}

.btn-view {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  color: #0f172a;
}

.btn-download {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

/* CARDS */
.section {
  padding-bottom: 40px;
}

.section-head h2 {
  margin-bottom: 4px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 14px;
  margin-top: 20px;
}

.card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: auto;
  transition: .2s;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
}

/* UPDATED ICONS — PERFECT EQUAL SIZE */
.card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  border-radius: 14px;
  background: rgba(56,189,248,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: var(--accent-blue);
  text-transform: uppercase;
}

.card-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.card-text p {
  margin-top: 6px;
  color: var(--muted);
}

/* ABOUT */
.about {
  padding: 40px 0 70px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.about-title {
  font-size: 24px;
  font-weight: 900;
}

.about-body p {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.3);
  font-size: 12px;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.social-link {
  font-weight: 700;
  color: var(--accent-blue);
}

/* BLOG LAYOUT */
.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding-top: 40px;
}

.blog-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 20px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: .2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-blue);
}

.blog-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.blog-content {
  padding: 14px 16px;
}

.blog-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.3);
}

.blog-content h2 {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.blog-content p {
  margin: 0 0 10px;
  color: var(--muted);
}

.blog-date {
  font-size: 12px;
  color: var(--muted);
}

/* SIDEBAR */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 16px;
}

.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.search-input {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
}

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

.sidebar-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.3);
  font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
}
