/* ─── CSS Custom Properties ───────────────────────────── */
:root {
  --navy:       #0f172a;   /* page background - deep slate */
  --navy-mid:   #1e293b;   /* card surface */
  --navy-light: #334155;   /* hover / elevated surface */
  --accent:     #2dd4bf;   /* teal */
  --accent-2:   #38bdf8;   /* sky blue */
  --text:       #f1f5f9;   /* near-white headings */
  --text-body:  #cbd5e1;   /* body text */
  --text-muted: #94a3b8;   /* muted labels */
  --text-dark:  #1e293b;
  --surface:    #1e293b;   /* cards float above page bg */
  --surface-alt:#172036;   /* subtle alt-section tint */
  --border:     rgba(148,163,184,.12);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,.5);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.6);
  --radius:     12px;
  --radius-sm:  8px;

  --comptia-color: #c0392b;
  --aws-color:     #ff9900;
  --microsoft-color: #0078d4;
  --itil-color:    #6b21a8;

  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--navy); color: var(--text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img, svg { display: block; }

/* ─── NAV ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148,163,184,.1);
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.3); }

.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  color: var(--accent);
  font-weight: 700; font-size: 1.1rem; letter-spacing: -.3px;
}

.nav-links {
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-links a {
  color: #cbd5e1; font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

.btn-download {
  background: var(--accent); color: var(--navy);
  border: none; border-radius: var(--radius-sm);
  padding: .45rem 1rem; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: background .2s, transform .15s;
}
.btn-download:hover { background: #5eead4; transform: translateY(-1px); }

/* hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #cbd5e1; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #07101e 0%, var(--navy) 45%, #16243f 100%);
  padding: 7rem 1.5rem 5rem;
  min-height: 520px;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 15% 55%, rgba(45,212,191,.1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(56,189,248,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,191,.055) 0%, transparent 65%);
  top: -280px; right: -180px;
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; gap: 3.5rem;
}

/* photo column */
.hero-photo-col { flex-shrink: 0; }
.hero-photo-wrap {
  width: 190px; height: 190px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 40px rgba(45,212,191,.35);
}
.hero-photo {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 3px solid var(--navy);
}
.hero-photo-missing { display: none; }

/* text column */
.hero-text-col { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-block;
  background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.35);
  color: var(--accent); border-radius: 100px;
  padding: .3rem 1rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.25rem;
  animation: badgePulse 3.5s ease-in-out infinite;
}
.hero-name {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700; letter-spacing: -.02em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #94a3b8; margin-bottom: 2rem;
}

.hero-contact {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem;
  margin-bottom: 2.25rem;
}
.hero-contact li {
  display: flex; align-items: center; gap: .4rem;
  font-size: .9rem; color: #5eead4;
}
.hero-contact svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.hero-contact a { color: inherit; text-decoration: none; }
.hero-contact a:hover { color: var(--accent); text-decoration: none; }
.hero-contact a[href^="tel"] { pointer-events: none; cursor: default; color: #5eead4; text-decoration: none; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--accent); color: var(--navy);
  border: none; border-radius: var(--radius-sm);
  padding: .75rem 1.75rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(45,212,191,.35);
}
.btn-primary:hover {
  background: #5eead4; transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(45,212,191,.5);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: .75rem 1.75rem; font-size: 1rem; font-weight: 600;
  color: #e2e8f0; cursor: pointer;
  transition: border-color .2s, color .2s, transform .15s;
}
.btn-secondary:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); text-decoration: none;
}

@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); opacity: .6; }
  to   { transform: translate(-80px, 80px) scale(1.2); opacity: 1; }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,.35); }
  50%      { box-shadow: 0 0 0 8px rgba(45,212,191,0); }
}

/* ─── SECTIONS ───────────────────────────────────────────── */
.section,
.section-alt { padding: 5rem 1.5rem; }
.section-alt { background: var(--navy); }
.section-inner { max-width: 1000px; margin: 0 auto; }

.section-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.5rem; font-weight: 700; color: var(--text-muted);
  margin-bottom: 2rem; padding-bottom: .75rem;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, var(--accent), var(--accent-2), transparent) 1;
}
.section-icon { display: flex; }
.section-icon svg { width: 24px; height: 24px; color: var(--accent); }

/* ─── LINKS (content areas) ─────────────────────────────── */
.summary-text a,
.job-bullets a,
.hero-contact a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.summary-text a:hover,
.job-bullets a:hover { color: #5eead4; }
.hero-contact a { color: #5eead4; }
.hero-contact a:hover { color: #fff; text-decoration: underline; }

/* ─── SUMMARY ────────────────────────────────────────────── */
.summary-text {
  font-size: 1.05rem; line-height: 1.8; color: var(--text-body);
  max-width: 860px;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: var(--shadow-sm);
}

/* ─── JOB CARDS ──────────────────────────────────────────── */
.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.job-card:hover { box-shadow: var(--shadow-md), inset 0 2px 0 var(--accent); transform: translateY(-2px); border-color: rgba(45,212,191,.3); }

.job-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap;
}
.job-company { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.job-role { font-size: .92rem; color: var(--accent); font-weight: 600; margin-top: .15rem; }
.job-date {
  background: var(--navy); color: var(--accent);
  border-radius: 100px; padding: .25rem .8rem;
  font-size: .78rem; font-weight: 600; white-space: nowrap;
  flex-shrink: 0;
}

.job-bullets { padding-left: 1.2rem; list-style: disc; }
.job-bullets li {
  margin-bottom: .5rem; font-size: .93rem;
  color: var(--text-body); line-height: 1.65;
  list-style-type: disc;
}
.job-bullets strong { color: var(--text); font-weight: 400; }

.subsection-title {
  font-size: 1rem; font-weight: 700; color: var(--text-muted);
  margin: 2rem 0 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.subsection-title::before {
  content: ''; display: block;
  width: 18px; height: 2px; background: var(--accent);
  border-radius: 2px;
}

/* ─── TABLE ──────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.prior-table {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
.prior-table th {
  background: var(--navy); color: var(--text);
  padding: .65rem 1rem; text-align: left; font-weight: 600;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
}
.prior-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.prior-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.prior-table td {
  padding: .65rem 1rem; border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.prior-table tr:last-child td { border-bottom: none; }
.prior-table tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.prior-table tr:hover td { background: rgba(45,212,191,.06); }

/* ─── EDUCATION ──────────────────────────────────────────── */
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.edu-card:hover { box-shadow: var(--shadow-md), inset 0 2px 0 var(--accent); transform: translateY(-2px); border-color: rgba(45,212,191,.3); }

.edu-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.edu-school { font-size: 1.05rem; font-weight: 700; color: var(--text); }
.edu-degree {
  font-size: .92rem; color: var(--text-body); margin-top: .2rem;
}
.edu-degree a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.edu-degree a:hover { color: #5eead4; }
.edu-date {
  background: var(--navy); color: var(--accent);
  border-radius: 100px; padding: .25rem .8rem;
  font-size: .78rem; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}

.coursework-label {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted); margin-bottom: .6rem;
}

/* ─── CERTIFICATIONS ─────────────────────────────────────── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.cert-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: rgba(45,212,191,.35); }

.cert-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px;
  margin: 0 auto .85rem;
  background: #e8f0ef;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  padding: 9px;
  transition: background .2s, box-shadow .2s;
}
.cert-card:hover .cert-logo-wrap { background: #d0eceb; box-shadow: 0 0 0 3px rgba(45,212,191,.25); border-color: rgba(45,212,191,.4); }
.cert-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}
/* ITIL inline badge */
.cert-logo-itil {
  width: 100%; height: 100%;
  border-radius: 8px;
  background: var(--itil-color);
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem; font-weight: 800; letter-spacing: .05em;
  color: #fff; text-transform: uppercase;
}

.cert-name { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.cert-date { font-size: .78rem; color: var(--text-muted); }
.cert-verify {
  display: inline-block;
  margin-top: .45rem;
  font-size: .75rem; font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: .02em;
}
.cert-verify:hover { color: #5eead4; }

/* ─── SKILLS ─────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s;
}
.skill-group:hover { border-color: rgba(45,212,191,.25); }
.skill-group-title {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted);
  margin-bottom: .75rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* ─── TAGS ───────────────────────────────────────────────── */
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 100px;
  padding: .25rem .7rem; font-size: .8rem; color: var(--text-muted); font-weight: 500;
  transition: background .15s, color .15s;
}
.tag:hover { background: rgba(45,212,191,.12); border-color: var(--accent); color: var(--accent); }
.tag.tag-code    { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.25); color: #38bdf8; font-family: 'Fira Code', monospace; }
.tag.tag-cloud   { background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.3); color: #a5b4fc; }
.tag.tag-ai      { background: rgba(167,139,250,.1); border-color: rgba(167,139,250,.3); color: #c4b5fd; }
.tag.tag-sec     { background: rgba(251,146,60,.1); border-color: rgba(251,146,60,.3); color: #fb923c; }

/* ─── CONTACT FORM ───────────────────────────────────────── */
.contact-intro {
  color: var(--text-body); margin-bottom: 2rem; font-size: 1rem;
}
.contact-form {
  max-width: 680px;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.contact-field {
  display: flex; flex-direction: column; gap: .4rem;
}
.contact-field label {
  font-size: .85rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.contact-field input,
.contact-field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--text-muted); }
.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,212,191,.15);
}
.contact-submit { align-self: flex-start; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--navy); color: var(--accent);
  padding: 1.5rem 1.5rem;
  text-align: center; font-size: .85rem;
}
.footer-inner { max-width: 700px; margin: 0 auto; }
.footer a {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.footer a:hover { opacity: 1; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; inset-inline: 0;
    background: rgba(15,23,42,.98);
    padding: 1.25rem 1.5rem; gap: 1rem;
    border-bottom: 1px solid rgba(148,163,184,.1);
  }
  .nav-links.open { display: flex; }
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 5.5rem 1rem 3rem; }
  .hero-inner { flex-direction: column; text-align: center; gap: 2rem; }
  .hero-photo-wrap { width: 150px; height: 150px; }
  .hero-contact { justify-content: center; }
  .hero-actions { justify-content: center; }
  .job-header { flex-direction: column; }
  .job-date, .edu-date { align-self: flex-start; }
  .cert-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .contact-row { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
.anim-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* active nav link */
.nav-links a.active { color: var(--accent); }

/* ─── FOCUS VISIBLE ──────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
  /* Print in full color — preserve all dark-mode backgrounds and gradients */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .navbar, .hero-actions, #downloadBtn, .btn-download, #contact,
  .no-print { display: none !important; }

  /* Reduce section padding so content fits properly */
  .section, .section-alt { padding: 2rem 0 !important; }

  /* Page 1: hero + summary — fixed height, not vh-based */
  .hero {
    min-height: 260px;
    display: flex;
    align-items: center;
    padding: 2rem 0 !important;
  }
  #summary { padding-bottom: 2rem !important; }

  /* Keep cards from splitting across pages */
  .job-card, .edu-card, .cert-card, .skill-group { break-inside: avoid; }

  /* Page breaks */
  #experience    { break-before: page; }
  #education     { break-before: page; }
  #skills        { break-before: page; }

  /* Suppress URLs after links */
  a::after,
  a[href^="http"]::after { content: none !important; }

  @page { size: letter; margin: 1.2cm; }
}

