/* ========================================
   A.D. Lee — CV Site
   Northern MI × High Tech
   ======================================== */

:root {
  /* Lake + forest palette */
  --color-pine:        #1b3a2d;
  --color-pine-light:  #2d5e47;
  --color-lake:        #3a7ca5;
  --color-lake-light:  #5ba4cf;
  --color-sand:        #f5f0e8;
  --color-sand-dark:   #e8e0d0;
  --color-bark:        #5c4a3a;
  --color-white:       #fdfcfa;
  --color-text:        #2a2a28;
  --color-text-muted:  #6b6a65;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1080px;
  --section-pad: 5rem 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  font-size: 1rem;
}

a { color: var(--color-lake); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-pine); }

ul { list-style: none; }

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-pine);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.nav-brand:hover { color: var(--color-lake); }

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover { color: var(--color-pine); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--color-pine) 0%, #1e453a 40%, var(--color-pine-light) 100%);
  color: var(--color-sand);
  padding: 7rem 2rem 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(58, 124, 165, 0.15), transparent),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(45, 94, 71, 0.3), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-lake-light);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.8;
  max-width: 560px;
  color: var(--color-sand-dark);
  margin-bottom: 2.5rem;
}

.hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  pointer-events: none;
}

.hero-accent svg {
  width: 100%;
  height: 100%;
  display: block;
}

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

.hero-actions .btn {
  min-height: 44px;
  min-width: 44px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-lake);
  color: var(--color-white);
  border-color: var(--color-lake);
}

.btn-primary:hover {
  background: var(--color-lake-light);
  border-color: var(--color-lake-light);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-sand);
  border-color: rgba(245, 240, 232, 0.4);
}

.btn-outline:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: var(--color-sand);
  color: var(--color-sand);
}

/* Context-aware outline on light backgrounds */
.section .btn-outline,
.section-alt .btn-outline {
  color: var(--color-pine);
  border-color: var(--color-pine-light);
}

.section .btn-outline:hover,
.section-alt .btn-outline:hover {
  background: var(--color-pine);
  color: var(--color-white);
  border-color: var(--color-pine);
}

/* ---- Sections ---- */
.section {
  padding: var(--section-pad);
}

.section-alt {
  background: var(--color-sand);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-pine);
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-lake);
  border-radius: 2px;
}

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

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.about-sidebar {
  display: flex;
  flex-direction: column;
}

.about-panel {
  background: var(--color-sand);
  border-radius: 10px;
  border-left: 3px solid var(--color-pine-light);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(27, 58, 45, 0.12);
}

.about-panel-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-panel-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.about-panel-body h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}

.about-panel-body h3:first-child {
  margin-top: 0;
}

.about-panel-body p {
  font-weight: 500;
  color: var(--color-pine);
}

/* ---- Work ---- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 58, 45, 0.08);
}

.work-card-header {
  margin-bottom: 1rem;
}

.work-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-lake);
  background: rgba(58, 124, 165, 0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.work-card h3 {
  font-size: 1.2rem;
  color: var(--color-pine);
  margin-bottom: 0.75rem;
}

.work-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.work-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-lake);
}

.work-link:hover {
  color: var(--color-pine);
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.skill-group h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-pine);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-pine-light);
}

.skill-group li {
  padding: 0.4rem 0;
  color: var(--color-text);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1rem;
}

.skill-group li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-lake);
  font-weight: 600;
}

/* ---- Experience ---- */
.exp-company {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-pine-light);
}

.exp-company:first-of-type {
  margin-top: 0;
}

.exp-company-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-pine);
}

.exp-company-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.exp-role {
  margin-bottom: 2.5rem;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  border-left: 2px solid var(--color-sand-dark);
}

.exp-role-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.exp-role-header h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

.exp-dates {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-lake);
  white-space: nowrap;
}

.exp-bullets {
  list-style: none;
  padding: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-lake);
  font-weight: 600;
}

/* ---- Beyond ---- */
.beyond-grid {
  max-width: 720px;
}

.beyond-text p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.8;
}

.beyond-text p:last-child {
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---- Contact ---- */
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Footer ---- */
.footer {
  padding: 2.5rem 1.5rem;
  background: var(--color-pine);
  color: var(--color-sand-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Infrastructure ---- */
.infra-lede {
  max-width: 760px;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.infra-panel {
  background: #11251c;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 8px 28px rgba(27, 58, 45, 0.25);
}

.infra-panel-bar {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  background: linear-gradient(to bottom, #2a4b3c, #1e3a2e);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
}

.infra-panel-dots {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.infra-panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.3) inset;
}

.infra-panel-dot-red    { background: #ff5f57; }
.infra-panel-dot-yellow { background: #febc2e; }
.infra-panel-dot-green  { background: #28c841; }

.infra-panel-title {
  flex: 1;
  text-align: center;
  color: var(--color-sand-dark);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.infra-panel-spacer {
  /* balances the dots so the title actually centers */
  width: calc(3 * 12px + 2 * 0.45rem);
}

.infra-panel-body {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--color-sand);
  padding: 1.5rem;
  margin: 0;
  overflow-x: auto;
  white-space: pre;
}

.infra-panel-user { color: #7fd28f; font-weight: 600; }
.infra-panel-path { color: var(--color-lake-light); font-weight: 600; }

.infra-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.infra-service {
  padding: 1.25rem 1.5rem;
  background: var(--color-sand);
  border-radius: 8px;
  border-left: 3px solid var(--color-pine-light);
}

.infra-service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-lake);
  background: rgba(58, 124, 165, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.infra-service p {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.55;
}

.infra-stack {
  margin-bottom: 1.5rem;
}

.infra-stack h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-pine);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-pine-light);
}

.infra-stack ul {
  list-style: none;
  padding: 0;
}

.infra-stack li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
}

.infra-stack li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-lake);
  font-weight: 600;
}

.infra-stack strong {
  color: var(--color-pine);
  font-weight: 600;
}

.infra-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---- Responsive ---- */
/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger,
.nav-hamburger::before,
.nav-hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-pine);
  border-radius: 2px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-hamburger::before,
.nav-hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
}

.nav-hamburger::before { top: -7px; }
.nav-hamburger::after { top: 7px; }

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

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0.75rem;
  }

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

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
  }

  .hero { min-height: 70vh; padding: 7rem 1.5rem 4rem; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }

  .section { padding: 3.5rem 1.5rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .infra-services { grid-template-columns: 1fr; }
  .infra-panel-body { font-size: 0.72rem; padding: 1rem; }
  .infra-panel-bar { padding: 0.55rem 1rem; }

  .about-panel {
    max-width: 320px;
    margin: 0 auto;
  }

  .exp-company { flex-direction: column; gap: 0.25rem; }
  .exp-role-header { flex-direction: column; gap: 0.25rem; }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .skills-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
