/* ---------------------------------------------------------------
   Gregory Standerfer — portfolio styles
   Plain CSS, no build step. Tweak the variables below to re-theme.
----------------------------------------------------------------- */

:root {
  --bg:        #0e1320;
  --bg-soft:   #161d2e;
  --surface:   #1b2335;
  --text:      #e6ebf5;
  --text-muted:#9aa6bd;
  --accent:    #5eead4;   /* teal */
  --accent-2:  #818cf8;   /* indigo */
  --border:    #27314a;
  --radius:    14px;
  --max-width: 1040px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 19, 32, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }
.brand-dot { color: var(--accent); }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-menu a:hover { color: var(--accent); text-decoration: none; }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--accent); color: #0b101c !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(56px, 10vw, 110px) 70px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-photo { display: flex; justify-content: center; }
.hero-photo img {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.hero-socials {
  display: flex;
  gap: 18px;
  margin-top: 30px;
}
.hero-socials a {
  color: var(--text-muted);
  display: inline-flex;
  transition: transform 0.15s ease, color 0.2s ease;
}
.hero-socials a:hover { color: var(--accent); transform: translateY(-2px); }
.hero-blurb strong { color: var(--text); }
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.hero-name {
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -1px;
}
.hero-tagline {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
  color: var(--text-muted);
  margin: 8px 0 22px;
  line-height: 1.1;
  font-weight: 700;
}
.hero-blurb {
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b101c;
  box-shadow: 0 6px 20px rgba(94, 234, 212, 0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ---------- Sections ---------- */
.section { padding-block: 70px; border-top: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 30px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.section-num {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
}
.about-text p { margin: 0 0 16px; color: var(--text-muted); }
.about-text strong { color: var(--text); }

.skills {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  max-width: 360px;
}
.skills li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.skills li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.skills-inline {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skills-inline li {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-aside { display: grid; gap: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: grid;
  gap: 4px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Section lead text ---------- */
.section-lead {
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: -10px 0 32px;
}

/* ---------- Experience timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.timeline-item {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.timeline-head h3 { margin: 0; font-size: 1.2rem; }
.level { color: var(--accent); font-weight: 600; }
.timeline-date {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.timeline-org { color: var(--accent-2); margin: 4px 0 10px; font-weight: 600; }
.timeline-points { margin: 0; padding-left: 18px; color: var(--text-muted); }
.timeline-points li { margin-bottom: 6px; }
.timeline-points strong { color: var(--text); }

/* ---------- Skills grid ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.skill-group-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list li {
  padding: 5px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text);
}

/* ---------- Life gallery ---------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.gallery-item { margin: 0; width: 200px; max-width: 100%; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.gallery-item figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Contact ---------- */
.contact-lead { max-width: 560px; color: var(--text-muted); font-size: 1.08rem; }
.contact-btn { margin: 8px 0 36px; }

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.contact-links li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-label {
  width: 90px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  text-align: center;
}
.site-footer p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-photo { order: -1; justify-content: flex-start; }
  .hero-photo img { max-width: 220px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-menu.open { max-height: 420px; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 16px 24px; }
  .nav-menu li + li a { border-top: 1px solid var(--border); }
  .nav-cta {
    border: 0;
    border-radius: 0;
    color: var(--accent) !important;
    padding: 16px 24px;
  }
  .nav-cta:hover { background: transparent; color: var(--accent) !important; }

  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-links li { flex-direction: column; gap: 4px; }
  .contact-label { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
