/* =============================================
   nickbolger.com — styles.css
   Dark modern personal site, no build tools
   ============================================= */

/* --- Custom Properties --- */
:root {
  --bg: #0d0d12;
  --surface: #16161e;
  --surface-2: #1e1e28;
  --border: #2a2a3a;
  --accent: #6c8ef4;
  --accent-hover: #8aa4ff;
  --text: #e8e8f0;
  --muted: #8888a8;
  --radius: 8px;
  --max-w: 1100px;
  --nav-h: 60px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  display: block;
}

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

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1;
}

/* --- Navigation --- */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* Hamburger button */
.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: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* --- Footer --- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-easter {
  color: var(--border);
  font-size: 0.75rem;
  transition: color 0.15s;
}

.footer-easter:hover {
  color: var(--muted);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Sections --- */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.section-line {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* --- Hero --- */
.hero {
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-tagline {
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

/* --- About --- */
.about-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Project Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s, transform 0.15s;
}

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

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.tag {
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.card-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Placeholder card (dashed, dimmed) */
.card-placeholder {
  opacity: 0.5;
  border-style: dashed;
}

.card-placeholder:hover {
  transform: none;
  border-color: var(--border);
}

/* --- Skills --- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.skills-group h3 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

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

/* --- Resume Page --- */
.resume-header {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.resume-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.resume-contact {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.resume-contact a {
  color: var(--muted);
}

.resume-contact a:hover {
  color: var(--accent);
}

.resume-download {
  margin-top: 1.5rem;
}

.resume-body {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1.25rem;
}

.resume-entry {
  margin-bottom: 1.25rem;
}

.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.resume-entry-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.resume-entry-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.resume-entry-sub {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  margin-top: 0.15rem;
}

.resume-entry ul {
  list-style: none;
  padding: 0;
}

.resume-entry ul li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.25rem;
}

.resume-entry ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* --- Funky Page --- */
.funky-page {
  padding: 4rem 0;
  text-align: center;
}

.funky-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #f5c542;
}

.funky-page p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.funky-img {
  margin: 2rem auto;
  max-width: 400px;
  border-radius: var(--radius);
}

/* --- 404 Page --- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  flex: 1;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  letter-spacing: -0.05em;
}

.error-page h2 {
  font-size: 1.4rem;
  margin: 0.75rem 0;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* --- Utility --- */
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* --- Responsive --- */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
  }

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

  .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

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

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-entry-header {
    flex-direction: column;
  }

  .resume-contact {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .resume-contact span {
    display: none;
  }
}
