/* The Journey — Site Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");
@import url("/cdn/css/fontawesome.min.css");
@import url("/cdn/css/solid.min.css");
@import url("/cdn/css/brands.min.css");

:root {
  /* Modern dark theme with gold accents */
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --bg-accent: #1a1a1a;
  --surface: #1e1e1e;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-light: #737373;
  --brand: #d4af37;   /* Gold */
  --brand-dark: #b8941e;
  --brand-light: #f0d875;
  --accent: #ffd700;  /* Bright gold accent */
  --accent-2: #c9a961; /* Lighter gold */
  --border: #262626;
  --border-light: #1f1f1f;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.7);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.8);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand-light));
  z-index: 9999;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Keyframe Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
  50% { box-shadow: 0 0 40px rgba(212, 175, 55, 0.6); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes neuralPulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 0.6;
  }
  50% { 
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes neuralMove1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

@keyframes neuralMove2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 30px); }
}

@keyframes neuralMove3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 25px); }
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.6; }
}

/* Rubik's Cube 3D Rotation */
@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
  33% { transform: rotateX(360deg) rotateY(90deg) rotateZ(0deg); }
  66% { transform: rotateX(360deg) rotateY(360deg) rotateZ(90deg); }
  100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes floatCube {
  0%, 100% { 
    transform: translateY(0px) translateX(0px);
  }
  25% { 
    transform: translateY(-30px) translateX(20px);
  }
  50% { 
    transform: translateY(-15px) translateX(-20px);
  }
  75% { 
    transform: translateY(-40px) translateX(10px);
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-100px) translateX(50px) scale(1.2);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) translateX(-30px) scale(0.8);
    opacity: 0;
  }
}

/* Animation Classes */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.5s ease-out forwards;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }
.delay-5 { animation-delay: 0.5s; opacity: 0; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-top: 60px; /* Account for fixed header */
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}

/* AI Brain Neural Network Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.02) 0%, transparent 70%);
}

/* Neural Network Nodes */
.neural-network {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.neural-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
  animation: neuralPulse 3s ease-in-out infinite;
}

.neural-node::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.neural-node:nth-child(1) {
  top: 15%;
  left: 15%;
  animation: neuralPulse 3s ease-in-out infinite, neuralMove1 8s ease-in-out infinite;
}

.neural-node:nth-child(2) {
  top: 25%;
  right: 20%;
  animation: neuralPulse 3s ease-in-out infinite 0.5s, neuralMove2 10s ease-in-out infinite;
}

.neural-node:nth-child(3) {
  bottom: 30%;
  left: 25%;
  animation: neuralPulse 3s ease-in-out infinite 1s, neuralMove3 9s ease-in-out infinite;
}

.neural-node:nth-child(4) {
  bottom: 20%;
  right: 30%;
  animation: neuralPulse 3s ease-in-out infinite 1.5s, neuralMove1 11s ease-in-out infinite;
}

.neural-node:nth-child(5) {
  top: 50%;
  left: 50%;
  animation: neuralPulse 3s ease-in-out infinite 2s, neuralMove2 7s ease-in-out infinite;
}

.neural-node:nth-child(6) {
  top: 40%;
  left: 35%;
  animation: neuralPulse 3s ease-in-out infinite 0.8s, neuralMove3 9.5s ease-in-out infinite;
}

.neural-node:nth-child(7) {
  top: 70%;
  left: 60%;
  animation: neuralPulse 3s ease-in-out infinite 1.2s, neuralMove1 10.5s ease-in-out infinite;
}

.neural-node:nth-child(8) {
  top: 35%;
  right: 35%;
  animation: neuralPulse 3s ease-in-out infinite 2.5s, neuralMove2 8.5s ease-in-out infinite;
}

.neural-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.2;
  animation: lineGlow 4s ease-in-out infinite;
  transform-origin: left center;
}

.neural-line:nth-child(1) { top: 15%; left: 15%; width: 200px; transform: rotate(25deg); }
.neural-line:nth-child(2) { top: 25%; right: 20%; width: 180px; transform: rotate(-35deg); animation-delay: 0.5s; }
.neural-line:nth-child(3) { bottom: 30%; left: 25%; width: 220px; transform: rotate(45deg); animation-delay: 1s; }
.neural-line:nth-child(4) { bottom: 20%; right: 30%; width: 160px; transform: rotate(-55deg); animation-delay: 1.5s; }
.neural-line:nth-child(5) { top: 50%; left: 40%; width: 190px; transform: rotate(15deg); animation-delay: 2s; }
.neural-line:nth-child(6) { top: 40%; right: 25%; width: 210px; transform: rotate(-25deg); animation-delay: 2.5s; }
.neural-line:nth-child(7) { bottom: 35%; left: 50%; width: 170px; transform: rotate(35deg); animation-delay: 3s; }
.neural-line:nth-child(8) { top: 60%; right: 40%; width: 195px; transform: rotate(-45deg); animation-delay: 3.5s; }

/* Rubik's Cube 3D Background Effect */
.rubiks-cube {
  position: fixed;
  width: 150px;
  height: 150px;
  top: 20%;
  right: 10%;
  perspective: 1000px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.rubiks-cube:nth-of-type(2) {
  top: 60%;
  left: 5%;
  width: 120px;
  height: 120px;
  opacity: 0.12;
}

.rubiks-cube:nth-of-type(2) .cube-container {
  animation-duration: 25s;
  animation-delay: 5s;
}

.rubiks-cube:nth-of-type(3) {
  bottom: 15%;
  right: 15%;
  width: 100px;
  height: 100px;
  opacity: 0.1;
}

.rubiks-cube:nth-of-type(3) .cube-container {
  animation-duration: 30s;
  animation-delay: 10s;
}

.cube-container {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear, floatCube 8s ease-in-out infinite;
}

.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  border: 2px solid rgba(212, 175, 55, 0.3);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}

.rubiks-cube:nth-of-type(2) .cube-face {
  width: 120px;
  height: 120px;
}

.rubiks-cube:nth-of-type(3) .cube-face {
  width: 100px;
  height: 100px;
}

.cube-cell {
  background: var(--brand);
  border-radius: 3px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.cube-face.front {
  background: rgba(212, 175, 55, 0.1);
  transform: translateZ(75px);
}

.rubiks-cube:nth-of-type(2) .cube-face.front {
  transform: translateZ(60px);
}

.rubiks-cube:nth-of-type(3) .cube-face.front {
  transform: translateZ(50px);
}

.cube-face.back {
  background: rgba(255, 215, 0, 0.1);
  transform: translateZ(-75px) rotateY(180deg);
}

.rubiks-cube:nth-of-type(2) .cube-face.back {
  transform: translateZ(-60px) rotateY(180deg);
}

.rubiks-cube:nth-of-type(3) .cube-face.back {
  transform: translateZ(-50px) rotateY(180deg);
}

.cube-face.right {
  background: rgba(184, 148, 30, 0.1);
  transform: rotateY(90deg) translateZ(75px);
}

.rubiks-cube:nth-of-type(2) .cube-face.right {
  transform: rotateY(90deg) translateZ(60px);
}

.rubiks-cube:nth-of-type(3) .cube-face.right {
  transform: rotateY(90deg) translateZ(50px);
}

.cube-face.left {
  background: rgba(240, 216, 117, 0.1);
  transform: rotateY(-90deg) translateZ(75px);
}

.rubiks-cube:nth-of-type(2) .cube-face.left {
  transform: rotateY(-90deg) translateZ(60px);
}

.rubiks-cube:nth-of-type(3) .cube-face.left {
  transform: rotateY(-90deg) translateZ(50px);
}

.cube-face.top {
  background: rgba(201, 169, 97, 0.1);
  transform: rotateX(90deg) translateZ(75px);
}

.rubiks-cube:nth-of-type(2) .cube-face.top {
  transform: rotateX(90deg) translateZ(60px);
}

.rubiks-cube:nth-of-type(3) .cube-face.top {
  transform: rotateX(90deg) translateZ(50px);
}

.cube-face.bottom {
  background: rgba(212, 175, 55, 0.1);
  transform: rotateX(-90deg) translateZ(75px);
}

.rubiks-cube:nth-of-type(2) .cube-face.bottom {
  transform: rotateX(-90deg) translateZ(60px);
}

.rubiks-cube:nth-of-type(3) .cube-face.bottom {
  transform: rotateX(-90deg) translateZ(50px);
}

/* Floating Particles */
.particle {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  animation: particleFloat 15s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 15s; }
.particle:nth-child(3) { left: 80%; top: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(5) { left: 40%; top: 50%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; top: 10%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 30%; top: 60%; animation-delay: 6s; animation-duration: 17s; }
.particle:nth-child(8) { left: 85%; top: 45%; animation-delay: 2.5s; animation-duration: 14.5s; }
.particle:nth-child(9) { left: 15%; top: 85%; animation-delay: 4.5s; animation-duration: 16.5s; }
.particle:nth-child(10) { left: 55%; top: 25%; animation-delay: 1.5s; animation-duration: 15.5s; }

body {
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { 
  color: var(--brand); 
  text-decoration: none; 
  transition: var(--transition-fast);
}
a:hover { 
  color: var(--brand-dark);
}

.h1, h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

/* Gradient text effect for hero titles */
.hero h1,
.hero h2 {
  background: linear-gradient(135deg, var(--text) 0%, var(--brand-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

p { 
  margin: 0 0 1rem; 
  color: var(--text-secondary); 
  line-height: 1.7; 
}

.lead { 
  font-size: 1.25rem; 
  line-height: 1.6; 
  color: var(--text-secondary); 
  font-weight: 400; 
}

.container { width: min(1100px, 92vw); margin-inline: auto; }
.narrow { width: min(900px, 92vw); }
.grid { display: grid; gap: 1.25rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero-grid { grid-template-columns: 1.3fr 1fr; align-items: center; }
@media (max-width: 900px) {
  .grid.two, .grid.three, .hero-grid { grid-template-columns: 1fr; }
  
  /* Simplify neural network on mobile */
  .neural-node:nth-child(n+5),
  .neural-line:nth-child(n+4) {
    display: none;
  }
  
  .neural-node {
    width: 6px;
    height: 6px;
  }
  
  /* Hide extra Rubik's cubes on mobile */
  .rubiks-cube:nth-of-type(2),
  .rubiks-cube:nth-of-type(3) {
    display: none;
  }
  
  .rubiks-cube {
    width: 100px;
    height: 100px;
    opacity: 0.1;
  }
  
  .cube-face {
    width: 100px !important;
    height: 100px !important;
  }
  
  .rubiks-cube .cube-face.front {
    transform: translateZ(50px) !important;
  }
  
  .rubiks-cube .cube-face.back {
    transform: translateZ(-50px) rotateY(180deg) !important;
  }
  
  .rubiks-cube .cube-face.right {
    transform: rotateY(90deg) translateZ(50px) !important;
  }
  
  .rubiks-cube .cube-face.left {
    transform: rotateY(-90deg) translateZ(50px) !important;
  }
  
  .rubiks-cube .cube-face.top {
    transform: rotateX(90deg) translateZ(50px) !important;
  }
  
  .rubiks-cube .cube-face.bottom {
    transform: rotateX(-90deg) translateZ(50px) !important;
  }
  
  /* Reduce particles on mobile */
  .particle:nth-child(n+7) {
    display: none;
  }
  
  /* Hero gradient text might be too heavy on mobile */
  .hero h1, .hero h2 {
    animation: none;
    background: var(--text);
    -webkit-text-fill-color: var(--text);
  }
}

.site-header { 
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border); 
  z-index: 1002; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5); 
  transition: var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.7);
}

.header-inner { 
  display: flex; 
  align-items: center; 
  gap: 1rem; 
  padding: .75rem 0; 
}

.brand { 
  font-weight: 750; 
  letter-spacing: .2px; 
  color: var(--text); 
  position: relative;
  transition: var(--transition-fast);
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transition: width 0.3s ease;
}

.brand:hover::after {
  width: 100%;
}

.site-nav ul { 
  list-style: none; 
  display: flex; 
  gap: .25rem; 
  padding: 0; 
  margin: 0; 
  align-items: center; 
}

.site-nav a, .site-nav button.submenu-toggle { 
  color: #111827; 
  padding: .6rem .75rem; 
  border-radius: 8px; 
  border: 1px solid transparent; 
  background: transparent; 
  cursor: pointer; 
  font-weight: 600; 
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.site-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
  transition: left 0.5s ease;
}

.site-nav a:hover::before {
  left: 100%;
}

.site-nav a:hover, .site-nav button.submenu-toggle:hover {
  background: var(--surface);
  border-color: var(--border);
  transform: translateY(-2px);
}

.site-nav a.active, .site-nav button.submenu-toggle.active { 
  background: var(--panel); 
  border-color: var(--border); 
  box-shadow: var(--shadow);
}

.has-submenu { 
  position: relative; 
}

.submenu { 
  display: none; 
  position: absolute; 
  top: 2.6rem; 
  left: 0; 
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border); 
  border-radius: 12px; 
  min-width: 280px; 
  padding: .5rem; 
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.submenu li a { 
  display: block; 
  padding: .5rem .6rem; 
  border-radius: 8px; 
  transition: var(--transition-fast);
}

.submenu li a:hover { 
  background: linear-gradient(135deg, rgba(212,175,55,0.08), rgba(255,215,0,0.08)); 
  transform: translateX(5px);
}

.has-submenu.open .submenu { 
  display: block; 
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.3s ease-out;
}

/* Desktop: open submenu on hover as well */
@media (min-width: 901px) {
  .has-submenu:hover .submenu {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.25s ease-out;
    pointer-events: auto;
  }
}

.header-cta { 
  margin-left: auto; 
}

.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: .5rem; 
  background: var(--brand); 
  color: white; 
  border: 2px solid var(--brand); 
  border-radius: var(--radius-sm); 
  padding: .875rem 1.5rem; 
  font-weight: 600; 
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm); 
  transition: var(--transition); 
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

/* Primary button variant for header/menu CTAs */
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover { 
  background: var(--brand-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn:active { 
  transform: translateY(0); 
}

.btn .fa-solid { 
  margin-left: .35rem; 
  font-size: .95em; 
  transition: transform 0.3s ease;
}

.btn:hover .fa-solid {
  transform: translateX(4px);
}

.btn-ghost { 
  background: transparent; 
  border: 2px solid var(--border); 
  color: var(--text); 
  box-shadow: none; 
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-2px);
}

.btn-outline { 
  background: white; 
  border: 2px solid var(--brand); 
  color: var(--brand); 
  box-shadow: none; 
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-outline { 
  background: transparent; 
  color: var(--brand); 
  border: 1px solid var(--brand); 
  box-shadow: none; 
}

.btn-outline:hover {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 20px rgba(212,175,55,0.25);
}

.nav-toggle { 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto; 
  background: transparent; 
  color: var(--text); 
  border: none; 
  border-radius: 8px; 
  padding: .5rem; 
  cursor: pointer;
  transition: var(--transition-fast);
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.nav-toggle:hover {
  background: var(--surface);
}

.nav-toggle i {
  font-size: 1.5rem;
  transition: var(--transition);
}

/* Rotate and change icon when open */
.nav-toggle[aria-expanded="true"] i::before {
  content: "\f00d"; /* fa-xmark */
}

.nav-toggle:hover i {
  color: var(--brand);
}

/* Navigation menu - starts hidden, opens with hamburger */
.site-nav { 
  display: none; 
  position: absolute; 
  right: 0;
  top: 100%; 
  min-width: 280px;
  max-width: 400px;
  max-height: 0;
  background: rgba(10, 10, 10, 0.98); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  padding: 0; 
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
  z-index: 1001;
}

.site-nav.open { 
  display: block; 
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

/* Overlay removed - dropdown doesn't need full overlay */

.site-nav ul { 
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column; 
  align-items: stretch;
  gap: 0;
}

.site-nav > ul {
  padding: 0.75rem 0;
}

.site-nav li {
  width: 100%;
  margin: 0;
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-nav a,
.site-nav button.submenu-toggle {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.875rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.site-nav li:hover {
  background: var(--surface);
  border-left-color: var(--brand);
}

.site-nav a:hover,
.site-nav button.submenu-toggle:hover {
  color: var(--brand);
  text-decoration: none;
  transform: none;
}

.site-nav a.active {
  background: var(--surface);
  border-left-color: var(--brand);
  color: var(--brand);
}

.site-nav a::before {
  display: none;
}

/* Submenu in dropdown mode */
.has-submenu .submenu { 
  position: static; 
  display: none; 
  box-shadow: none; 
  border: none; 
  padding: 0; 
  background: var(--alt);
  margin: 0;
  list-style: none;
}

.has-submenu.open .submenu {
  display: block;
  opacity: 1;
  transform: none;
  animation: fadeIn 0.3s ease;
}

.has-submenu .submenu li {
  margin: 0;
}

.has-submenu .submenu li a {
  padding: 0.75rem 1.25rem 0.75rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.has-submenu .submenu li a:hover {
  background: rgba(212, 175, 55, 0.1);
  border-left-color: var(--accent);
}

.submenu-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.has-submenu.open .submenu-toggle::after {
  transform: rotate(180deg);
}

/* Hide header CTA when menu is visible */
.header-cta { 
  display: none;
}

@media (max-width: 900px) {
  .site-nav {
    min-width: 260px;
  }
}

@media (max-width: 480px) {
  .site-nav {
    min-width: 240px;
    right: 0;
    left: 0;
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0a0a 0%, #111111 100%);
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  z-index: 0;
  animation: float 20s ease-in-out infinite;
}

.hero::before {
  background: radial-gradient(circle, #d4af37 0%, transparent 70%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero::after {
  background: radial-gradient(circle, #ffd700 0%, transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-delay: 10s;
}.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero .subhead {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero .actions .btn { 
  margin-right: .5rem; 
  margin-bottom: .5rem; 
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-card { 
  display: grid; 
  gap: 1rem; 
  position: relative;
  z-index: 1;
}

.subhead { 
  color: var(--text-secondary); 
  font-size: 1.1rem; 
}

.hero .actions .btn { 
  margin-right: .5rem; 
  margin-bottom: .5rem; 
}

.hero-card { 
  display: grid; 
  gap: 1rem; 
}

.stat { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 1.5rem; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5); 
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  border-color: var(--brand-light);
}

.stat:hover::before {
  transform: scaleX(1);
}

.stat-number { 
  font-size: 2.5rem; 
  font-weight: 800; 
  color: var(--brand); 
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label { 
  color: var(--text-secondary); 
  font-size: 0.95rem;
}

.subhead { 
  color: var(--text-secondary); 
  font-size: 1.125rem; 
}

.section { 
  padding: 4rem 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section:hover::before {
  opacity: 1;
}

/* First section gets extra padding on pages without hero */
main > .section:first-child {
  padding-top: 5rem;
}

/* Section after hero needs extra top padding */
.hero + .section {
  padding-top: 5rem;
}

.section + .section { 
  border-top: 1px solid var(--border); 
}

.section.alt { 
  background: var(--bg-secondary); 
  border-top: 1px solid var(--border-light); 
  border-bottom: 1px solid var(--border-light); 
}

.cards { 
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 2rem;
}

.card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: var(--radius-lg); 
  padding: 2rem; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5); 
  transition: var(--transition); 
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.875rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--text);
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card.link { 
  cursor: pointer; 
  text-decoration: none;
}

.card.link:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  transform: translateY(-6px);
  border-color: var(--brand-light);
}

.card.link:hover::after {
  transform: scaleX(1);
}.card.link:hover { 
  transform: translateY(-8px); 
  border-color: var(--brand); 
  text-decoration: none; 
  box-shadow: var(--shadow-hover);
}

.card.link:hover::before {
  left: 100%;
}

.card h3 {
  position: relative;
  display: block;
}

.card h3 i {
  margin-right: 0.5rem;
}

.card.link:hover h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  animation: fadeIn 0.3s ease;
}

.pill-list { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .5rem; 
  padding: 0; 
  list-style: none; 
}

.pill-list li { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: 999px; 
  padding: .4rem .7rem; 
  color: var(--text-secondary); 
  transition: var(--transition-fast);
  cursor: default;
}

.pill-list li:hover {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

/* Lead paragraph and tag pills */
.lead { 
  font-size: 1.125rem; 
  color: var(--text-secondary); 
}

.tags { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .5rem; 
  padding: 0; 
  margin: 0; 
  list-style: none; 
}

.tags li { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: 999px; 
  padding: .35rem .65rem; 
  color: var(--text-secondary); 
  font-weight: 600; 
  font-size: .9rem; 
  transition: var(--transition-fast);
  cursor: default;
}

.tags li:hover {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: var(--text);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.tech-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); 
  gap: 1rem; 
  list-style: none; 
  padding: 0; 
}

.tech-grid li { 
  background: var(--card);
  border: 1px solid var(--border); 
  border-radius: var(--radius); 
  padding: 1.2rem 1rem; 
  text-align: center; 
  box-shadow: var(--shadow); 
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  font-size: 0.95rem;
  font-weight: 600;
}

.tech-grid li i {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--brand);
}

.tech-grid li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(255,215,0,0.1));
  transition: left 0.5s ease;
}

.tech-grid li:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-hover);
  border-color: var(--brand);
}

.tech-grid li:hover::before {
  left: 0;
}

.form { 
  display: grid; 
  gap: .8rem; 
}

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

label span { 
  display: block; 
  color: var(--text-secondary); 
  font-size: .9rem; 
  margin-bottom: .3rem; 
  font-weight: 600;
}

input, textarea { 
  width: 100%; 
  background: #ffffff; 
  color: var(--text); 
  border: 1px solid var(--border); 
  border-radius: 10px; 
  padding: .65rem .75rem; 
  outline: none; 
  transition: var(--transition-fast);
}

input:focus, textarea:focus { 
  border-color: var(--brand); 
  box-shadow: 0 0 0 3px var(--ring); 
  transform: translateY(-2px);
}

input:hover, textarea:hover {
  border-color: var(--brand);
}

.site-footer { 
  border-top: 1px solid var(--border); 
  background: var(--bg-secondary); 
  margin-top: 2rem; 
  position: relative;
  color: var(--brand); /* Gold text color for footer */
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--accent), transparent);
  opacity: 0.5;
}

.footer-grid { 
  display: grid; 
  grid-template-columns: 1.3fr .8fr .8fr; 
  gap: 1rem; 
  padding: 1.25rem 0; 
}

.site-footer h3,
.site-footer h4 {
  color: var(--brand-light); /* Lighter gold for headings */
  font-weight: 700;
}

.site-footer p,
.site-footer li {
  color: var(--brand); /* Gold for text */
}

.site-footer ul { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
}

.site-footer a {
  transition: var(--transition-fast);
  position: relative;
  color: var(--brand); /* Gold for links */
}

.site-footer a:hover {
  color: var(--accent); /* Bright gold on hover */
}

.site-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  transition: width 0.3s ease;
}

.site-footer a:hover::after {
  width: 100%;
}

.legal { 
  padding-bottom: 1.25rem; 
  color: var(--brand); /* Gold for legal text */
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.portfolio-grid { 
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); 
}

.project-tag { 
  display: inline-block; 
  background: transparent; 
  border: 1px solid var(--border); 
  padding: .2rem .5rem; 
  border-radius: 999px; 
  font-size: .8rem; 
  color: var(--text-secondary); 
  margin-bottom: .5rem;
}

/* Project features list */
.project-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.project-features li {
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.project-features li i {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.inpage-nav { 
  display: flex; 
  flex-wrap: wrap; 
  gap: .5rem; 
  margin: 1rem 0 1.5rem; 
}

.inpage-nav a { 
  border: 1px solid var(--border); 
  border-radius: 999px; 
  padding: .4rem .7rem; 
  color: var(--text-secondary); 
  transition: var(--transition-fast);
}

.inpage-nav a:hover { 
  color: var(--text); 
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

/* Subtle icon-only bounce on hover/focus for in-page nav */
.inpage-nav a i {
  margin-right: .4rem;
  display: inline-block; /* ensure transform animations render smoothly */
}

.inpage-nav a:hover i,
.inpage-nav a:focus-visible i {
  animation-name: fa-bounce; /* reuse Font Awesome bounce keyframes */
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
  animation-iteration-count: 1;
}

/* Beat-fade on nav/submenu icons when hovered (if icons are present) */
.site-nav a:hover i,
.site-nav button.submenu-toggle:hover i,
.submenu li a:hover i {
  animation: fa-beat-fade 1s ease both;
}

/* Icon Animations */
.fa-spin-custom {
  animation: rotate 2s linear infinite;
}

.fa-pulse-custom {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Scroll Reveal Elements */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  border-top-color: var(--brand);
  animation: rotate 1s ease-in-out infinite;
}

.mt-lg { 
  margin-top: 1.5rem; 
}

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

.sr-only { 
  position: absolute; 
  width: 1px; 
  height: 1px; 
  padding: 0; 
  margin: -1px; 
  overflow: hidden; 
  clip: rect(0, 0, 0, 0); 
  white-space: nowrap; 
  border: 0; 
}

.skip-link { 
  position: absolute; 
  left: -9999px; 
  top: -9999px; 
}

.skip-link:focus { 
  left: .5rem; 
  top: .5rem; 
  background: #000; 
  color: #fff; 
  padding: .5rem .75rem; 
  border-radius: 8px; 
  z-index: 1000;
}

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

.contact-list li { 
  margin-bottom: .4rem; 
  transition: var(--transition-fast);
}

.contact-list li:hover {
  transform: translateX(5px);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .btn, .card { transition: none !important; }
  .btn:active, .card.link:hover { transform: none !important; }
  
  /* Disable neural network animations */
  .neural-network { display: none; }
  
  .fade-in-up,
  .fade-in,
  .slide-in-right,
  .slide-in-left,
  .scale-in,
  .float-animation {
    animation: none !important;
  }
}
