/* ============================================
   Lukealford.com — Cyberpunk Portfolio Theme
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg: #0a0a0f;
  --text: #e0e0e0;
  --accent-cyan: #00f0ff;
  --accent-magenta: #ff00aa;
  --accent-green: #00ff41;
  --border-subtle: #1a1a2e;
  --card-bg: rgba(255, 255, 255, 0.03);
  --glow-cyan: rgba(0, 240, 255, 0.15);
  --glow-cyan-heavy: rgba(0, 240, 255, 0.3);
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Grid Overlay --- */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* --- Sections --- */
section[data-section],
footer[data-section] {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

section h2 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* --- HUD Badge --- */
.hud-badge {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--accent-green);
  padding: 6px 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.hud-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- Hero --- */
#hero {
  text-align: center;
  justify-content: center;
  align-items: center;
}

.hero__content {
  position: relative;
}

.hero__prefix {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 30px var(--glow-cyan-heavy);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero__tagline {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-green);
  min-height: 1.6em;
  margin-bottom: 0.5rem;
}

.hero__tagline::after {
  content: '▊';
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

.hero__boot-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  opacity: 0.6;
  min-height: 1.4em;
}

.hero__boot-text::after {
  content: '▊';
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  color: var(--accent-cyan);
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--glow-cyan);
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

.about__bio p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

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

.about__sysinfo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--accent-green);
}

.sysinfo__line {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.sysinfo__key {
  color: var(--accent-green);
  opacity: 0.7;
}

.sysinfo__sep {
  color: var(--accent-green);
  opacity: 0.4;
}

.sysinfo__val {
  color: var(--text);
}

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

/* --- Skills --- */
.skill-category {
  margin-bottom: 2rem;
}

.skill-category__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.skill-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-bar__label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 140px;
  color: var(--text);
}

.skill-bar__track {
  flex-grow: 1;
  height: 12px;
  background: var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
}

.skill-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  border-radius: 6px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.exp-card__header {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.exp-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 16px;
}

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

/* --- Tags --- */
.tag {
  display: inline-block;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2px 10px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
}

/* --- Projects --- */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card__title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 16px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.project-card__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-magenta);
  text-decoration: none;
  transition: opacity 0.2s;
}

.project-card__link:hover {
  opacity: 0.8;
}

.project-grid__more {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  opacity: 0.5;
  margin-top: 8px;
}

/* --- Footer --- */
#footer {
  min-height: auto;
  text-align: center;
  padding: 60px 24px;
  align-items: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--accent-cyan);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  .hero__boot-text {
    font-size: 0.75rem;
  }

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

  .skill-bar__label {
    min-width: 100px;
    font-size: 0.8rem;
  }

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

  section[data-section] {
    padding: 60px 16px;
  }

  .hud-badge {
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    padding: 4px 10px;
  }
}
