/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --bg-alt: #0b0f10;
  --accent: #00ff41;
  --accent-soft: #00aa2f;
  --text: #e5ffe5;
  --muted: #6b9473;
  --border: #1b2a1f;
  --shadow: 0 0 40px rgba(0, 255, 65, 0.35);
  --radius: 12px;
  --font-mono: "Space Mono", "Fira Code", "JetBrains Mono", "Consolas",
    monospace;
}

/* make everything bigger */
html {
  font-size: 19px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #061608 0, #020202 60%);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Matrix canvas */

#matrix-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Foreground page content */

.page {
  position: relative;
  z-index: 1;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.logo {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

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

.nav a {
  margin-left: 1.6rem;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--muted);
}

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

/* Layout */

main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.5rem 2rem 5rem;
}

/* Hero / terminal */

.hero {
  margin-top: 0.5rem;
  margin-bottom: 4rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.terminal {
  width: 100%;
  max-width: 900px;
  background: linear-gradient(135deg, #020805, #020202);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: #0a0f0a;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.terminal-title {
  margin-left: 0.5rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.red {
  background: #ff5f57;
}

.yellow {
  background: #febc2e;
}

.green {
  background: #28c840;
}

.terminal-body {
  padding: 1.8rem 1.5rem 2rem;
  font-size: 1.15rem;
  line-height: 1.7;
}

.prompt {
  color: var(--accent-soft);
}

.output {
  margin: 0.1rem 0 0.9rem;
  color: var(--text);
}

.cursor {
  display: inline-block;
  width: 8px;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 0.9s step-end infinite;
}

/* Sections */

.section {
  margin-bottom: 4rem;
  padding: 3rem 0;
  min-height: 75vh;
}

.section-title {
  font-size: 1.2rem;
  text-transform: lowercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-left: 3px solid var(--accent-soft);
  padding-left: 0.6rem;
  margin-bottom: 1.5rem;
}

.section p {
  color: var(--text);
  max-width: 75ch;
  font-size: 1.15rem;
}

.section p + p {
  margin-top: 1rem;
}

/* Cards / grids */

.skills-grid,
.projects-grid {
  display: grid;
  gap: 1.3rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  background: rgba(4, 10, 6, 0.96);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.3rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.card ul {
  list-style: none;
  padding-left: 1.1rem;
  margin: 0;
}

.card ul li::before {
  content: "> ";
  color: var(--accent-soft);
}

.card ul li {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 1.1rem;
}

.card .meta {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

/* Contact */

.links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.links li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

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

.links a:hover {
  text-decoration: underline;
}

.label {
  color: var(--muted);
  margin-right: 0.25rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 2rem 2.2rem;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  max-width: 1150px;
  margin: 0 auto;
  color: var(--muted);
}

.site-footer .muted {
  opacity: 0.7;
}

/* Section reveal (slower) */

.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s ease-out,
    transform 1.1s ease-out;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utilities */

@keyframes blink {
  50% {
    background: transparent;
  }
}
