@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* DARK THEME (Sleek, deep high-contrast modern devops aesthetic) */
  --bg: #090c10;
  --bg-subtle: #0d1117;
  --surface: #131922;
  --surface-hover: #192230;
  --surface-elevated: #1b2434;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(56, 189, 248, 0.5);

  --text-main: #f3f6fa;
  --text-sub: #94a3b8;
  --text-muted: #64748b;

  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --accent-amber: #f59e0b;

  --nav-bg: rgba(9, 12, 16, 0.75);
  --grid-line: rgba(255, 255, 255, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px -5px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] {
  /* LIGHT THEME (Crisp, clean Apple / Vercel style) */
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --surface-elevated: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);
  --border-focus: rgba(2, 132, 199, 0.5);

  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;

  --accent: #0284c7;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --accent-green: #059669;
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;

  --nav-bg: rgba(248, 250, 252, 0.8);
  --grid-line: rgba(0, 0, 0, 0.035);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 30px -5px rgba(2, 132, 199, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Subdued background ambient lighting */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 90%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* TOP NAVBAR */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease;
}

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

.logo {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.logo-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

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

.theme-toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg);
  border: 1px solid transparent;
}

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

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

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* HERO SECTION */
.hero {
  padding: 5.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.hero-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 2rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* TERMINAL COMPONENT */
.terminal-window {
  background: #07090e;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.terminal-titlebar {
  background: #0f141d;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.traffic-dots {
  display: flex;
  gap: 6px;
}

.traffic-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.t-red { background: #f43f5e; }
.t-yellow { background: #eab308; }
.t-green { background: #22c55e; }

.terminal-title {
  font-size: 0.775rem;
  color: #94a3b8;
  margin-left: auto;
  margin-right: auto;
}

.terminal-content {
  padding: 1.25rem;
  font-size: 0.825rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.t-line { margin-bottom: 0.35rem; }
.t-cyan { color: #38bdf8; }
.t-green-text { color: #34d399; }
.t-dim { color: #64748b; }
.t-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin: 0.4rem 0;
}

/* SECTION HEADINGS */
.section {
  padding: 5.5rem 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-subheading {
  color: var(--text-sub);
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 600px;
}

/* SKILLS MATRIX */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.skill-icon-box {
  width: 40px;
  height: 40px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.skill-card p {
  color: var(--text-sub);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 5px;
}

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-card.featured {
  grid-column: span 2;
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-glow) 0%, var(--surface) 35%);
}

.project-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-category {
  font-size: 0.775rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.project-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.project-card.featured .project-title {
  font-size: 1.6rem;
}

.project-summary {
  color: var(--text-sub);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* WORKFLOW SECTION */
.workflow-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.workflow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 10px;
  position: relative;
}

.step-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.workflow-step h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.workflow-step p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* EXPERIENCE TIMELINE */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  max-width: 900px;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s;
}

.exp-card:hover {
  border-color: var(--border-strong);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.exp-role {
  font-size: 1.3rem;
  font-weight: 700;
}

.exp-company {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
}

.exp-period {
  font-size: 0.825rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-sub);
  font-size: 0.925rem;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.exp-bullets li strong {
  color: var(--text-main);
}

/* EDUCATION & CREDENTIALS */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.cred-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

.cred-badge {
  font-size: 0.775rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: block;
}

.cred-entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

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

.cred-entry h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cred-entry .inst {
  font-size: 0.9rem;
  color: var(--text-sub);
}

.cred-entry .meta-sub {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 0.25rem;
  display: inline-block;
}

/* CONTACT CTA */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.contact-box h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.contact-box p {
  color: var(--text-sub);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer a {
  color: var(--text-sub);
  text-decoration: none;
}

.footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-card.featured {
    grid-column: span 1;
  }
  .workflow-row {
    grid-template-columns: 1fr;
  }
  .creds-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .exp-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  .contact-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}
