/* ============================================
   Curtis Campbell – Resume Site
   Dark slate theme, sky-blue accent
   ============================================ */

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

:root {
  --bg:           #0F172A;
  --surface:      #1E293B;
  --border:       #334155;
  --accent:       #38BDF8;
  --accent-dim:   rgba(56, 189, 248, 0.1);
  --accent-glow:  rgba(56, 189, 248, 0.2);
  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-subtle:  #64748B;
  --radius:       12px;
  --max-width:    1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.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 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  right: -150px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(44px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2.5px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hero-bio {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.print-only {
  display: none;
}

.btn-primary {
  background: var(--accent);
  color: #0F172A;
}

.btn-primary:hover {
  background: #7DD3FC;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}

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

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

.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-subtle);
}

/* Photo */
.hero-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.hero-image-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, var(--accent), #818CF8);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px var(--accent-glow);
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--surface);
  display: block;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   SECTIONS (shared)
   ============================================ */

.section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 52px;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SKILLS
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card-featured {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.08) 0%, var(--surface) 55%);
  border-color: rgba(56, 189, 248, 0.4);
}

.skill-card-featured h3 {
  font-size: 22px;
  text-transform: none;
  letter-spacing: -0.5px;
  color: var(--text);
}

.skill-card-lead {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 18px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, opacity 0.5s, translate 0.5s;
}

.skill-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.08);
}

.skill-card-icon {
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}

.skill-card-icon svg {
  width: 28px;
  height: 28px;
}

.skill-card h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.tags.compact .tag {
  font-size: 11px;
  padding: 2px 9px;
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.25);
  color: var(--text-muted);
}

/* ============================================
   TIMELINE (Experience)
   ============================================ */

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, rgba(56, 189, 248, 0.1) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transition: transform 0.2s;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.06);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.timeline-header h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.role-level {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-subtle);
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
  vertical-align: middle;
}

.company {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.timeline-meta {
  text-align: right;
  flex-shrink: 0;
}

.date {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.location {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 3px;
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.timeline-bullets li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.9;
}

/* ============================================
   EDUCATION
   ============================================ */

.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s, opacity 0.5s, translate 0.5s;
}

.edu-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-3px);
}

.edu-icon {
  color: var(--accent);
  margin-bottom: 14px;
  line-height: 1;
}

.edu-icon svg {
  width: 32px;
  height: 32px;
}

.edu-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.edu-card p {
  font-size: 14px;
  color: var(--text-muted);
}

.edu-year {
  display: block;
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 8px;
}

/* ============================================
   CONTACT
   ============================================ */

.section-contact {
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.025) 100%);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, opacity 0.5s, translate 0.5s;
}

.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.1);
}

.contact-card-icon {
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

.contact-card-icon svg {
  width: 26px;
  height: 26px;
}

.contact-label {
  font-size: 11px;
  color: var(--text-subtle);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer p {
  text-align: center;
  font-size: 13px;
  color: var(--text-subtle);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    border-radius: 8px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-image-wrap {
    order: -1;
    margin: 0 auto;
  }

  .hero-image-ring {
    width: 200px;
    height: 200px;
  }

  .hero-image-glow {
    width: 240px;
    height: 240px;
  }

  .hero-bio {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-meta {
    justify-content: center;
  }

  .timeline-header {
    flex-direction: column;
    gap: 8px;
  }

  .timeline-meta {
    text-align: left;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .timeline {
    padding-left: 28px;
  }

  .timeline-card {
    padding: 20px;
  }

  .timeline-dot {
    left: -24px;
  }

  .timeline::before {
    left: 5px;
  }
}

/* ============================================
   PRINT  (renders the page as a tight résumé)
   ============================================ */

@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }

  html, body {
    background: #fff !important;
  }

  body {
    color: #1a2233;
    font-size: 10pt;
    line-height: 1.35;
  }

  /* Hide interactive / decorative chrome */
  .nav,
  .nav-toggle,
  .hero-actions,
  .hero-meta,
  .hero-image-wrap,
  .hero-bg-glow,
  .hero-image-glow,
  .contact-actions,
  .footer,
  .skill-card-icon,
  .edu-icon,
  .timeline-dot,
  #contact {
    display: none !important;
  }

  .timeline::before {
    display: none !important;
  }

  /* Show print-only content */
  .print-only {
    display: block !important;
  }

  /* Force scroll-reveal items visible */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Reset layout containers */
  .container {
    max-width: none;
    padding: 0;
  }

  .hero {
    min-height: 0;
    display: block;
    padding: 0 0 6px;
    overflow: visible;
  }

  .hero-content {
    display: block;
    gap: 0;
  }

  .section {
    padding: 7px 0 0;
  }

  /* Header block */
  .hero h1 {
    font-size: 22pt;
    letter-spacing: -0.5px;
    margin-bottom: 1px;
    color: #111827;
  }

  .hero h1 .accent { color: #111827; }

  .hero-title {
    font-size: 11pt;
    font-weight: 600;
    color: #0a6db5;
    margin-bottom: 4px;
  }

  .print-contact {
    font-size: 9pt;
    color: #475569;
    margin-bottom: 6px;
  }

  .hero-bio {
    font-size: 9.5pt;
    color: #3d4757;
    max-width: none;
    margin: 0 0 4px;
    line-height: 1.45;
  }

  /* Section titles */
  .section-title {
    font-size: 12pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0a6db5;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 3px;
    margin-bottom: 7px;
  }

  .section-title .accent { color: #0a6db5; }

  /* Skills */
  .skills-grid {
    display: block;
  }

  .skill-card,
  .skill-card-featured {
    background: none !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    margin-bottom: 4px;
    box-shadow: none !important;
  }

  .skill-card h3,
  .skill-card-featured h3 {
    display: inline;
    font-size: 9.5pt;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: #1a2233;
  }

  .skill-card h3::after {
    content: ': ';
  }

  .skill-card-featured h3::after {
    content: ' \2014 ';
  }

  .skill-card-lead {
    display: inline;
    font-size: 9.5pt;
    color: #3d4757;
    margin: 0;
  }

  .tags,
  .tags.compact {
    display: inline;
  }

  .tag {
    display: inline;
    background: none !important;
    border: none !important;
    color: #3d4757 !important;
    padding: 0;
    font-size: 9.5pt;
    white-space: normal;
  }

  .tag:not(:last-child)::after {
    content: ', ';
  }

  /* Experience timeline -> plain blocks */
  .timeline {
    padding-left: 0;
  }

  .timeline-item {
    margin-bottom: 8px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .timeline-card {
    background: none !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    box-shadow: none !important;
  }

  .timeline-header {
    margin-bottom: 3px;
    gap: 8px;
  }

  .timeline-header h3 {
    font-size: 10.5pt;
    color: #1a2233;
  }

  .role-level {
    background: none;
    border: none;
    color: #5a6678;
    padding: 0;
    font-size: 8pt;
  }

  .company {
    font-size: 10pt;
    color: #0a6db5;
  }

  .date {
    font-size: 9pt;
    color: #5a6678;
  }

  .location {
    font-size: 8.5pt;
    color: #5a6678;
    margin-top: 0;
  }

  .timeline-bullets {
    margin-bottom: 2px;
  }

  .timeline-bullets li {
    font-size: 9.5pt;
    color: #3d4757;
    margin-bottom: 2px;
    line-height: 1.4;
    padding-left: 13px;
  }

  .timeline-bullets li::before {
    content: '\2022';
    color: #0a6db5;
    line-height: 1.5;
  }

  /* Hide per-job tag rows in print to keep it tight */
  .timeline-card .tags.compact {
    display: none !important;
  }

  /* Education */
  .edu-grid {
    display: block;
  }

  .edu-card {
    background: none !important;
    border: none !important;
    border-radius: 0;
    padding: 0;
    margin-bottom: 3px;
  }

  .edu-card h3 {
    display: inline;
    font-size: 9.5pt;
    color: #1a2233;
  }

  .edu-card h3::after {
    content: ' \2014 ';
    color: #5a6678;
  }

  .edu-card p {
    display: inline;
    font-size: 9.5pt;
    color: #3d4757;
  }

  .edu-year {
    display: inline;
    font-size: 9pt;
    color: #5a6678;
  }

  .edu-year::before {
    content: '  ·  ';
  }

  a {
    color: inherit !important;
    text-decoration: none !important;
  }
}
