﻿:root {
  --bg: #07090e;
  --bg-surface: #0f141f;
  --bg-card: rgba(18, 24, 38, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.4);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-blue: #2563eb;
  --accent-purple: #818cf8;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; }
body { overflow-x: hidden; position: relative; min-height: 100vh; }
body::before {
  content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 10% 15%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.06) 0%, transparent 45%);
  pointer-events: none; z-index: -1;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

/* Navbar */
.navbar {
  position: sticky; top: 0; backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 14, 0.88);
  border-bottom: 1px solid var(--border);
  z-index: 100; padding: 0.9rem 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 0.4rem 0.6rem; border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); fill: none; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff; box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(2, 132, 199, 0.45); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08); border-color: var(--border-hover);
  transform: translateY(-2px);
}
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }

/* Hero */
.hero { padding: 5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3.5rem; align-items: center; }
.badge-status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25);
  color: #4ade80; font-size: 0.8rem; font-weight: 500; margin-bottom: 1.25rem;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(0.95); opacity: 0.7; } 50% { transform: scale(1.15); opacity: 1; } }
.hero-title { font-size: 3.25rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 0.75rem; }
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-role { font-size: 1.25rem; color: var(--accent); font-weight: 600; margin-bottom: 1.25rem; }
.hero-desc { font-size: 1rem; color: var(--text-muted); max-width: 540px; margin-bottom: 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; }

/* Avatar Card */
.avatar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.avatar-wrapper {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-md);
  overflow: hidden; background: #131b2e; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; border: 1px solid var(--border);
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { text-align: center; color: var(--text-muted); padding: 1.5rem; }
.avatar-placeholder svg { width: 56px; height: 56px; stroke: var(--accent); margin-bottom: 0.5rem; }
.avatar-placeholder p { font-size: 0.85rem; line-height: 1.4; }
.avatar-info h4 { font-size: 1.05rem; font-weight: 700; }
.avatar-info p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.avatar-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.badge {
  font-size: 0.725rem; font-weight: 600; padding: 0.25rem 0.55rem;
  border-radius: 6px; background: rgba(56, 189, 248, 0.12);
  color: var(--accent); border: 1px solid rgba(56, 189, 248, 0.25);
}
.badge-gold {
  background: rgba(234, 179, 8, 0.12); color: #facc15;
  border-color: rgba(234, 179, 8, 0.25);
}

/* Sections */
section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.775rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 0.5rem;
}
.section-title { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.025em; }

/* Skills Grid */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.4rem;
  transition: var(--transition);
}
.skill-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.skill-card-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1rem; }
.skill-card-head svg { width: 22px; height: 22px; stroke: var(--accent); }
.skill-card-head h3 { font-size: 1rem; font-weight: 700; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-tag {
  font-size: 0.8rem; padding: 0.3rem 0.65rem; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: #cbd5e1;
}

/* Projects Grid (Enterprise Case Studies) */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: var(--transition); position: relative; overflow: hidden;
}
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-purple));
  opacity: 0; transition: var(--transition);
}
.project-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3); }
.project-card:hover::before { opacity: 1; }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.4rem 0.75rem; margin-bottom: 0.75rem; }
.project-client {
  font-size: 0.75rem; font-family: var(--font-mono); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
.project-region {
  font-size: 0.7rem; font-family: var(--font-mono); color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05); padding: 0.15rem 0.45rem; border-radius: 4px;
}
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.65rem; line-height: 1.35; }
.project-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.6; }
.project-deliverables { list-style: none; margin-bottom: 1.25rem; }
.project-deliverables li {
  font-size: 0.825rem; color: #cbd5e1; padding-left: 1.1rem; position: relative; margin-bottom: 0.25rem;
}
.project-deliverables li::before {
  content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: bold;
}
.project-deliverables code {
  font-family: var(--font-mono); font-size: 0.78em;
  background: rgba(56, 189, 248, 0.1); color: #bae6fd;
  padding: 0.08rem 0.35rem; border-radius: 4px;
}
.project-tech {
  display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 1rem;
  border-top: 1px solid var(--border); margin-top: auto;
}
.tech-tag {
  font-size: 0.725rem; font-family: var(--font-mono); padding: 0.2rem 0.5rem;
  border-radius: 4px; background: rgba(56, 189, 248, 0.08);
  color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.2);
}
.tech-link {
  background: rgba(56, 189, 248, 0.16); color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4); font-weight: 600;
  transition: var(--transition);
}
.tech-link:hover {
  background: rgba(56, 189, 248, 0.28); color: #fff;
}

/* Featured Open-Source Project Spotlight */
.projects-grid--stack {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.projects-grid--stack .project-deliverables li {
  min-width: 0;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .projects-grid--stack .project-deliverables {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 0.4rem;
  }
  .projects-grid--stack .project-deliverables li {
    margin-bottom: 0;
  }
}
.project-card--featured {
  border-color: rgba(56, 189, 248, 0.28);
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.85), rgba(15, 23, 42, 0.75));
}
.project-card--featured::before { opacity: 0.65; }
.project-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.project-metric {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 0.85rem;
}
.project-metric-val {
  font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700;
  color: var(--accent); display: block;
}
.project-metric-label {
  font-size: 0.725rem; color: var(--text-muted); display: block; margin-top: 0.15rem;
}
.project-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto;
}
.project-footer .project-tech {
  padding-top: 0; border-top: none; margin-top: 0;
}
.project-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}

/* Project Screenshot Preview & Lightbox */
.project-top {
  display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 1.25rem;
}
.project-top .project-desc { margin-bottom: 0; }
.project-preview {
  appearance: none; background: #0b101b; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; cursor: zoom-in; position: relative;
  width: 100%; max-width: 100%; display: block; aspect-ratio: 16 / 10; max-height: 240px;
  transition: var(--transition);
}
.project-preview img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  display: block; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-preview:hover, .project-preview:focus-visible {
  border-color: var(--border-hover); outline: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.project-preview:hover img { transform: scale(1.03); }
.project-preview-cue {
  position: absolute; right: 0.6rem; bottom: 0.6rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  padding: 0.2rem 0.5rem; border-radius: 4px;
  background: rgba(7, 9, 14, 0.82); color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}
@media (min-width: 900px) {
  .project-top {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    gap: 1.5rem;
    align-items: center;
  }
  .project-preview { max-height: 220px; }
}

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 6, 11, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lightbox-dialog {
  position: relative; z-index: 1;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.75rem;
  max-width: min(92vw, 1120px); max-height: 90vh;
  display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.lightbox-img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  border-radius: var(--radius-sm); display: block;
}
.lightbox-caption {
  font-size: 0.825rem; color: var(--text-muted);
  text-align: center; padding: 0 2rem;
}
.lightbox-close {
  position: absolute; top: 0.6rem; right: 0.6rem;
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(7, 9, 14, 0.85); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  font-size: 1.25rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { border-color: var(--border-hover); color: var(--accent); }

/* Timeline */
.timeline { max-width: 820px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; top: 8px; left: 6px; height: calc(100% - 16px);
  width: 2px; background: linear-gradient(180deg, var(--accent), rgba(56, 189, 248, 0.1));
}
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-dot {
  position: absolute; top: 6px; left: -2rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.timeline-header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem;
}
.timeline-role { font-size: 1.15rem; font-weight: 700; }
.timeline-company { color: var(--accent); font-weight: 600; }
.timeline-period { font-size: 0.8rem; color: var(--text-muted); font-family: var(--font-mono); }
.timeline-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.timeline-list { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.timeline-list li {
  font-size: 0.85rem; color: var(--text-muted); padding-left: 1.25rem; position: relative;
}
.timeline-list li::before { content: '▹'; position: absolute; left: 0; color: var(--accent); }

/* Certifications (Visual Split) */
.certs-official {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem; margin-bottom: 2rem;
}
.cert-card-featured {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(37, 99, 235, 0.04));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md); padding: 1.4rem;
  display: flex; align-items: center; gap: 1rem;
}
.cert-icon-lg {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(56, 189, 248, 0.15); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cert-icon-lg svg { width: 24px; height: 24px; stroke: var(--accent); }
.cert-card-featured h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.cert-card-featured p { font-size: 0.8rem; color: var(--text-muted); }
.superbadges-title {
  font-size: 0.85rem; font-family: var(--font-mono); color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; text-align: center;
}
.superbadges-wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; max-width: 860px; margin: 0 auto;
}
.superbadge-item {
  font-size: 0.8rem; padding: 0.35rem 0.75rem; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  color: #cbd5e1;
}

/* Education & Achievements Grid */
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem;
}
.edu-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.edu-school { color: var(--accent); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.25rem; }
.edu-period { font-size: 0.775rem; color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 0.75rem; }
.edu-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* Contact CTA */
.contact-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.05));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 3.5rem 2rem; text-align: center; max-width: 760px; margin: 0 auto;
}
.contact-box h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.contact-box p { color: var(--text-muted); max-width: 480px; margin: 0 auto 2rem; font-size: 0.95rem; }
.contact-links { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0;
  text-align: center; color: var(--text-muted); font-size: 0.85rem;
}

@media (max-width: 868px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-title { font-size: 2.5rem; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7, 9, 14, 0.98); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.25rem 1.5rem; gap: 1rem;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .dual-grid { grid-template-columns: 1fr; }
  .certs-official { grid-template-columns: 1fr; }
  .project-metrics { grid-template-columns: repeat(2, 1fr); }
  .timeline { padding-left: 1.5rem; }
}
@media (max-width: 640px) {
  .project-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
