/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080d18;
  --bg2:       #0d1424;
  --bg3:       #111827;
  --border:    rgba(255,255,255,0.07);
  --accent:    #38bdf8;
  --accent2:   #818cf8;
  --text:      #e2e8f0;
  --muted:     #64748b;
  --muted2:    #94a3b8;
  --k8s:       #326ce5;
  --aws:       #ff9900;
  --gcp:       #4285f4;
  --azure:     #0078d4;
  --radius:    12px;
  --radius-sm: 6px;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ── Scrollbar ─────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ── Nav ───────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,13,24,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
#nav.scrolled { box-shadow: 0 4px 32px rgba(0,0,0,0.4); }

.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono); font-size: 1.15rem; font-weight: 500;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted2);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--accent); color: #080d18; font-weight: 600;
  font-size: 0.85rem; transition: opacity var(--transition);
}
.nav-links .nav-cta:hover { opacity: 0.85; color: #080d18; }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  transition: var(--transition); border: none;
}
.btn-primary {
  background: var(--accent); color: #080d18;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 1rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 100px 24px 60px;
  position: relative; overflow: hidden;
}

#hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 40%, rgba(56,189,248,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(129,140,248,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
}

.hero-text { flex: 1; max-width: 580px; }

.hero-greeting {
  font-family: var(--mono); font-size: 0.9rem; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 700;
  letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 400;
  color: var(--muted2); height: 2rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 2px;
}

.cursor {
  color: var(--accent); animation: blink 1s step-end infinite;
  font-weight: 300; margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 0.95rem; color: var(--muted2); margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

.badge-open {
  font-size: 0.72rem; font-weight: 600; padding: 3px 9px;
  border-radius: 20px; border: 1px solid rgba(56,189,248,0.3);
  color: var(--accent); background: rgba(56,189,248,0.08);
  letter-spacing: 0.03em;
}

.hero-actions { display: flex; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }

.hero-socials { display: flex; gap: 20px; }
.hero-socials a {
  color: var(--muted); font-size: 1.1rem;
  transition: color var(--transition);
  display: flex; align-items: center;
}
.hero-socials a:hover { color: var(--accent); }

.hero-photo { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.photo-ring {
  width: 280px; height: 280px; border-radius: 50%;
  border: 2px solid rgba(56,189,248,0.2);
  padding: 5px;
  background: linear-gradient(135deg, rgba(56,189,248,0.1), rgba(129,140,248,0.05));
  position: relative;
  box-shadow: 0 0 60px rgba(56,189,248,0.1), 0 0 120px rgba(56,189,248,0.05);
}
.photo-ring img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}

.hero-badges { display: flex; flex-direction: column; gap: 8px; }
.hbadge {
  font-size: 0.78rem; font-weight: 600; padding: 5px 14px;
  border-radius: 20px; letter-spacing: 0.04em; text-align: center;
}
.hbadge-k8s { background: rgba(50,108,229,0.15); border: 1px solid rgba(50,108,229,0.3); color: #7baef8; }
.hbadge-aws { background: rgba(255,153,0,0.1); border: 1px solid rgba(255,153,0,0.25); color: #ffc066; }
.hbadge-gcp { background: rgba(66,133,244,0.1); border: 1px solid rgba(66,133,244,0.25); color: #80aef8; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 100px 0; }

.section-label {
  font-family: var(--mono); font-size: 0.8rem; color: var(--accent);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 52px;
}

/* ── Reveal Animation ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── About ─────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.about-text p {
  color: var(--muted2); font-size: 1.02rem; line-height: 1.8;
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { color: var(--text); font-weight: 600; }

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stat-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color var(--transition);
}
.stat-card:hover { border-color: rgba(56,189,248,0.25); }
.stat-num {
  font-size: 2rem; font-weight: 700; color: var(--accent);
  letter-spacing: -1px; line-height: 1;
}
.stat-lbl { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

/* ── Skills ────────────────────────────────────────────────────── */
#skills { background: var(--bg2); }

.skills-top { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; }
.skill-bar-item { }
.sb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sb-name { font-size: 0.9rem; font-weight: 500; }
.sb-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--accent);
  font-family: var(--mono);
}
.sb-track {
  height: 4px; background: var(--bg3);
  border-radius: 2px; overflow: hidden;
}
.sb-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

.stack-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.stack-col {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color var(--transition);
}
.stack-col:hover { border-color: rgba(56,189,248,0.2); }

.stack-col-title {
  font-size: 0.78rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.78rem; padding: 4px 10px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--muted2); font-weight: 500;
  transition: var(--transition);
}
.chip:hover { border-color: rgba(56,189,248,0.3); color: var(--text); }
.chip-aws { color: #ffc066; border-color: rgba(255,153,0,0.2); background: rgba(255,153,0,0.06); }
.chip-gcp { color: #80aef8; border-color: rgba(66,133,244,0.2); background: rgba(66,133,244,0.06); }
.chip-azure { color: #6cb3f5; border-color: rgba(0,120,212,0.2); background: rgba(0,120,212,0.06); }

/* ── Experience Timeline ───────────────────────────────────────── */
.timeline { position: relative; }

.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--accent), transparent);
}

.tl-item {
  position: relative; padding-left: 40px; margin-bottom: 40px;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute; left: -5px; top: 20px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15), 0 0 12px rgba(56,189,248,0.4);
}

.tl-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.tl-card:hover { border-color: rgba(56,189,248,0.2); transform: translateX(4px); }

.tl-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.tl-role { font-size: 1.02rem; font-weight: 600; margin-bottom: 4px; }
.tl-company { font-size: 0.88rem; color: var(--accent); font-weight: 500; }
.tl-type {
  font-size: 0.72rem; padding: 2px 7px; border-radius: 4px;
  background: rgba(129,140,248,0.12); border: 1px solid rgba(129,140,248,0.25);
  color: var(--accent2); margin-left: 6px; vertical-align: middle;
}
.tl-date { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.tl-desc { font-size: 0.9rem; color: var(--muted2); line-height: 1.7; margin-bottom: 14px; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-tags span {
  font-size: 0.72rem; padding: 3px 9px; border-radius: 4px;
  background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.15);
  color: var(--accent); font-weight: 500;
}

/* ── Certifications ────────────────────────────────────────────── */
.cert-featured { margin-bottom: 32px; }
.cert-feat-card {
  display: flex; align-items: center; gap: 24px;
  background: linear-gradient(135deg, rgba(50,108,229,0.12), rgba(50,108,229,0.04));
  border: 1px solid rgba(50,108,229,0.3);
  border-radius: var(--radius); padding: 28px 32px;
  max-width: 600px;
}
.cert-feat-card.kubestronaut { border-color: rgba(50,108,229,0.35); }
.cert-feat-icon { font-size: 2.5rem; flex-shrink: 0; }
.cert-feat-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.cert-feat-card p { font-size: 0.88rem; color: var(--muted2); font-family: var(--mono); }

.certs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.cert-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; gap: 14px; align-items: flex-start;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer;
}
.cert-card:hover { border-color: rgba(56,189,248,0.25); transform: translateY(-2px); }

.cert-card-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.cert-card-body { display: flex; flex-direction: column; gap: 3px; }
.cert-card-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.cert-card-full { font-size: 0.75rem; color: var(--muted2); line-height: 1.4; }
.cert-card-issuer { font-size: 0.72rem; color: var(--muted); font-family: var(--mono); margin-top: 4px; }

.cert-k8s { border-color: rgba(50,108,229,0.2); }
.cert-k8s:hover { border-color: rgba(50,108,229,0.45); }
.cert-aws { border-color: rgba(255,153,0,0.15); }
.cert-aws:hover { border-color: rgba(255,153,0,0.4); }
.cert-gcp { border-color: rgba(66,133,244,0.15); }
.cert-gcp:hover { border-color: rgba(66,133,244,0.4); }
.cert-azure { border-color: rgba(0,120,212,0.15); }
.cert-azure:hover { border-color: rgba(0,120,212,0.4); }

/* ── Footer ────────────────────────────────────────────────────── */
#contact {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 100px 0 60px;
}

.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 24px;
}

.footer-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.2;
}
.footer-sub { color: var(--muted2); font-size: 1rem; }

.footer-links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.88rem; color: var(--muted2);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column-reverse; gap: 48px; text-align: center; }
  .hero-socials { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { justify-content: center; }
  .hero-photo { width: 100%; align-items: center; }
  .photo-ring { width: 200px; height: 200px; }
  .hero-badges { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero-scroll { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; inset: 64px 0 0 0;
    background: var(--bg2); padding: 32px 24px; gap: 24px;
    border-top: 1px solid var(--border);
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .section { padding: 72px 0; }
  .stack-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
  .tl-item { padding-left: 0; }
  .tl-dot { display: none; }
}
