:root {
  /* Modern Premium Palette - Deep Space Theme */
  --bg-body: #0a0a0c;
  --bg-card: #141416;
  --bg-card-hover: #1c1c1f;
  --bg-glass: rgba(20, 20, 22, 0.7);

  /* Text */
  --text-main: #ffffff;
  --text-muted: #a0a0a2;
  --text-accent: #3b82f6;
  /* Electric Blue */
  --text-gradient-start: #ffffff;
  --text-gradient-end: #a0a0a2;

  /* Accents */
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  /* Violet */
  --accent-glow: rgba(59, 130, 246, 0.5);
  --border-light: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1.5rem;
  --space-m: 3rem;
  --space-l: 6rem;
  --space-xl: 10rem;

  /* Layout */
  --max-width: 1200px;
  --radius-xs: 4px;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Animation */
  --ease-spring: cubic-bezier(0.4, 0.0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-display);
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: var(--space-s);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, var(--text-gradient-start), var(--text-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

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

main {
  position: relative;
  z-index: 1;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  z-index: 102;
  margin-bottom: 0;
}

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

nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
}

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

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Hero Styles (Moved to Card) */
.tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--accent-primary);
  margin-bottom: 2rem;
  margin-top: 2rem;
  font-weight: 600;
  opacity: 0.9;
}


/* Typography Hierarchy */
.bento-card h1 {
  line-height: 1.1;
  margin-bottom: 1.5rem;
  /* Tighter layout */
}

.hero-line {
  display: block;
  /* Stacked on mobile */
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  margin-bottom: 0.25rem;
  /* Spacing for stacked */
}

@media (min-width: 768px) {
  .hero-line {
    display: inline-block;
    /* Inline on desktop */
    margin-right: 1.5rem;
    /* Spacing between phrases */
    margin-bottom: 0;
  }

  .hero-line:last-child {
    margin-right: 0;
  }
}

.hero-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-line:nth-child(3) {
  animation-delay: 0.2s;
}

.hero-line:nth-child(5) {
  animation-delay: 0.3s;
}

/* Hero Identity (Transparent) */
.hero-identity {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.hero-identity:hover {
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}

.hero-pronoun {
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.5;
  margin-right: 0.3rem;
  font-size: 0.9em;
}

.hero-verb {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* Unified Content Blocks */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.intro-block-1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.4;
  opacity: 0;
  letter-spacing: -0.01em;
  animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.intro-block-2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.8s forwards;
  font-weight: 400;
}

.hero-actions {
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 0.8s ease-out 1s forwards;
}

/* Animations included */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDivider {
  from {
    opacity: 0;
    height: 0;
  }

  to {
    opacity: 0.3;
    height: 40px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-m);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: var(--bg-body);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background-color: #fff;
}

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

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
  margin-bottom: var(--space-l);
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

/* Bento Card Typography */
.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.bento-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.bento-link {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
}

.bento-card:hover .bento-link {
  opacity: 1;
  color: var(--accent-primary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0;
  margin-top: var(--space-xl);
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Mobile */
@media (max-width: 900px) {

  .span-4,
  .span-6,
  .span-8 {
    grid-column: span 12;
  }

  h1 {
    font-size: 2.5rem;
  }

  header {
    padding: 1rem 0;
  }

  header .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1.5rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 140px 0 60px;
  }
}

/* Utilities */
.text-gradient {
  background: linear-gradient(to right, var(--text-gradient-start), var(--text-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-on-hover:hover {
  box-shadow: 0 0 30px var(--accent-glow);
}

/* Mobile Optimization */
/* Mobile Optimization */
@media (max-width: 768px) {

  /* Fix Header Overlap & Spacing */
  #work.container {
    margin-top: 5.5rem !important;
    /* Balanced gap based on user feedback */
    padding-top: 0 !important;
  }

  /* Force H1 Visibility (Disable Animation on Mobile to prevent hiding) */
  .hero-line {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    display: block;
    /* Ensure stacking */
    margin-bottom: 0.25rem;
  }

  /* Force Pronoun Visibility */
  .hero-pronoun {
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    /* High contrast */
    display: inline-block !important;
  }

  /* Stack Hero Buttons on Mobile for Single Line Text */
  .hero-actions {
    flex-direction: column !important;
    width: 100%;
    gap: 1rem !important;
  }

  .hero-actions .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    white-space: nowrap;
    /* Force single line */
    padding: 1rem;
  }
}