/* Pavan Kumar Regalla — portfolio. Dark theme, cyan accents. */


:root {
  --bg: #0d1117;
  --bg-raised: #161b22;
  --bg-card: #131a23;
  --border: #26303b;
  --accent: #22d3ee;
  --accent-dim: #0e7490;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --faint: #6e7b88;
  --green: #3fb950;
  --radius: 12px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.28); }

a { color: var(--accent); }
a:hover { color: #7ee7f7; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #062a33;
  padding: 10px 16px; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent); color: #062a33;
  font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
}
.brand-name { font-weight: 700; font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 8px 12px; border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-raised); }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  border: 1px solid var(--border); color: var(--text) !important;
  margin-left: 8px;
}
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; border-bottom: 1px solid var(--border); }
.headshot {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); margin: 0 0 20px; display: block;
}
.eyebrow {
  color: var(--accent); font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 18px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.08; margin: 0 0 6px; letter-spacing: -0.5px; }
.role { font-size: clamp(20px, 3vw, 28px); color: var(--muted); margin: 0 0 22px; font-weight: 600; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.resume-actions { margin-top: 12px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-raised);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #062a33; }
.btn-primary:hover { background: #7ee7f7; border-color: #7ee7f7; color: #062a33; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; border-bottom: 1px solid var(--border); }
.kicker {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 14px;
}
.section h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.5px; margin: 0 0 18px; line-height: 1.2; }
.section-sub { color: var(--muted); margin: 0 0 40px; max-width: 640px; }
#about p { color: var(--muted); font-size: 18px; }
#about p strong, .section p strong { color: var(--text); }

/* ---------- projects ---------- */
.project-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; margin: 0 0 28px;
  transition: border-color 0.2s ease;
}
.project-card:hover { border-color: var(--accent-dim); }
.project-kicker {
  color: var(--accent); font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 10px;
}
.project-card h3 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; line-height: 1.3; }
.project-card > .project-body > p { color: var(--muted); margin: 0 0 20px; }
.case { display: grid; gap: 12px; margin: 0 0 20px; padding: 0; }
.case > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; }
.case dt { color: var(--accent); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding-top: 3px; }
.case dd { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.case dd code { font-size: 13.5px; }
.shot { margin: 0 0 20px; }
.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--border); border-radius: 8px; }
.shot figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; line-height: 1.5; }
.limits { font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; margin: 0 0 20px; line-height: 1.6; }
.limits strong { color: var(--text); }
.limits code { font-size: 12.5px; }
.metrics { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.metrics li {
  padding: 12px 16px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; font-size: 15.5px; color: var(--muted);
}
.metrics strong { color: var(--accent); font-size: 17px; margin-right: 6px; }
.tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 13px; color: var(--muted); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 13px; background: var(--bg);
}
.disclosure { color: var(--faint); font-size: 14px; margin: 8px 0 0; }

/* ---------- skills ---------- */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.skill-group {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.skill-group h3 { font-size: 16px; margin: 0 0 12px; color: var(--accent); }
.skill-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.skill-group li { color: var(--muted); font-size: 15px; }

/* ---------- certifications ---------- */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
}
.cert-featured { border-top: 3px solid var(--accent); }
.cert-card h3 { font-size: 17px; margin: 0 0 8px; line-height: 1.4; }
.cert-card p { color: var(--faint); font-size: 14px; margin: 0; }
.additional-title { font-size: 18px; margin: 0 0 12px; }
.additional-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.additional-certs li { color: var(--muted); font-size: 15.5px; padding-left: 22px; position: relative; }
.additional-certs li::before { content: "–"; position: absolute; left: 0; color: var(--accent); }

/* ---------- contact ---------- */
#contact p { color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 14px; }
.contact-list li {
  display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px; font-size: 16px;
}
.contact-label { color: var(--faint); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0; }
.site-footer p { color: var(--faint); font-size: 14px; margin: 6px 0; }
.footer-note { max-width: 640px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .skills-grid, .certs-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .project-card { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-raised); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav { position: relative; }
  .brand-name { display: none; }
  .skills-grid, .certs-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .metrics li { font-size: 14.5px; }
  .case > div { grid-template-columns: 1fr; gap: 2px; }
}
