/* 
  Marcus Thomas - Personal Portfolio & Blog
  Vanilla Web Standards Design System
*/

:root {
  /* Core Palette: Deep Space & Starlight */
  --bg-color: #000000;
  --text-color: #f0f0f0;
  --accent-color: #00f2ff; /* Starlight Neon Blue */
  --secondary-accent: #ff00ea; /* Nebula Purple */
  --surface-color: #111111;
  --border-color: #222222;
  --muted-text: #888888;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing & Layout */
  --container-max-width: 1200px;
  --gap: 1.5rem;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img, picture {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* Header & Navigation */
header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

nav a {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  padding: 8rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto;
}

/* Subtle Reactive Typography */
p, h1, h2, h3, li, time {
  transition: filter 0.4s ease;
}

p:hover, h1:hover, h2:hover, h3:hover, li:hover, time:hover {
  filter: brightness(1.15);
}

/* Portfolio Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  padding: 4rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background-color: var(--surface-color);
  opacity: 0;
  transform: translateY(20px);
  display: block;
}

.gallery-item picture {
  display: block;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Text-only Gallery Item */
.gallery-text-item {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: 3 / 2;
  border: none;
  transition: all 0.3s ease;
  text-align: left;
  padding: 2rem;
  background-color: #000000;
  text-decoration: none;
}

.gallery-text-item:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.gallery-text-item .text-content {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.5;
  transition: color 0.3s ease;
}

.gallery-text-item:hover .text-content {
  color: var(--accent-color);
}

/* Blog Section */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 4rem 0;
}

.blog-post {
  border-left: 2px solid var(--border-color);
  padding-left: 2rem;
  transition: border-color 0.3s ease;
}

.blog-post:hover {
  border-color: var(--accent-color);
}

.blog-post h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.blog-post time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted-text);
}

/* Footer */
footer {
  margin-top: auto;
  padding: 4rem 0;
  text-align: center;
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Utilities for JS Animations */
.reveal {
  will-change: opacity, transform;
}
