/* Shaffer Softworks — electric blue & black (logo theme) */
:root {
  --bg: #000000;
  --bg-alt: #0a0a0a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #0099ff;
  --accent-hover: #33adff;
  --accent-dim: rgba(0, 153, 255, 0.15);
  --accent-glow: rgba(0, 153, 255, 0.4);
  --border: rgba(0, 153, 255, 0.2);
  --radius: 8px;
  --font-heading: 'Jura', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 153, 255, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0, 153, 255, 0.04), transparent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
  text-shadow: 0 0 12px var(--accent-glow);
}

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 70%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text) !important;
}

.logo:hover {
  color: var(--accent) !important;
  text-shadow: 0 0 12px var(--accent-glow);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter 0.2s ease;
}

.logo-text {
  display: inline-block;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 28px;
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(0, 153, 255, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 70% 30%, rgba(0, 153, 255, 0.06) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 640px;
}

.hero-logo {
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 0 24px var(--accent-glow));
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}


.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  letter-spacing: 0.1em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 28px;
  line-height: 1.65;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(0, 153, 255, 0.5);
}

.btn-outline:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
}

/* Sections */
.section {
  padding: 72px 0;
}

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

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-intro {
  color: var(--text-muted);
  margin: 0 0 24px;
  max-width: 60ch;
}

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

@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .about-links {
    justify-content: center;
  }
}

.about-photo {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  /* Dark border hides white ring from image; blue glow only on the outside */
  border: 4px solid var(--bg);
  box-shadow: 0 0 24px var(--accent-glow), inset 0 0 35px rgba(0, 0, 0, 0.5);
  background: var(--bg);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 58% horizontal centers face; 26% vertical = content pushed down so white at bottom is cropped out */
  object-position: 58% 26%;
  /* Stronger zoom crops white crescent off bottom of circle */
  transform: scale(1.65);
  display: block;
}

.about-content p {
  margin: 0 0 16px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.about-links a {
  font-weight: 600;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.project-card {
  padding: 24px;
  background: rgba(0, 153, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.project-card:hover {
  border-color: rgba(0, 153, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 153, 255, 0.1);
}

.project-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.project-card h3 a:hover {
  text-shadow: 0 0 12px var(--accent-glow);
}

.project-card p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  margin-right: 6px;
  margin-top: 4px;
}

.projects-cta {
  margin: 0;
}

.link-arrow:hover {
  text-shadow: 0 0 12px var(--accent-glow);
}

/* Resume section */
.resume-tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.resume-cta {
  margin: 20px 0 0;
}

.resume-cta .btn { margin-left: 0; }
.resume-cta .btn + .btn { margin-left: 12px; }

.resume-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-text {
  font-size: 1rem;
  margin: 0;
}

.contact-text a {
  font-weight: 500;
}

/* Footer */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

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