:root {
  /* Colors - Absolute Tech Aesthetic */
  --bg-absolute: #000000;
  --bg-surface: #0a0a0a;
  --accent-cyan: #ffffff; /* Shifted to Silver/White */
  --accent-purple: #7000ff;
  --accent-gold: #FFD700;
  --accent-gradient: linear-gradient(90deg, #FFD700 0%, #ffffff 100%);
  --text-main: #ffffff;
  --text-muted: #888888;
  --text-dim: #444444;
  --border-glow: rgba(255, 255, 255, 0.1);
  
  /* Radii & Spacing */
  --radius-sharp: 4px;
  --spacing-huge: 160px;
  --spacing-mid: 80px;
}

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

body {
  background-color: var(--bg-absolute);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* Background Code Stream Effect */
/* Global Cursor Glow */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4; /* Slightly more visible for aurora effect */
  filter: blur(40px); /* Smooth out the gradient mesh */
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  scroll-margin-top: 100px; /* Ensures space above anchors */
}

/* Header */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 40px 0;
  z-index: 1000;
  mix-blend-mode: difference;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background 0.3s ease;
}

nav.nav-hidden {
  transform: translateY(-100%);
}

nav.nav-scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  mix-blend-mode: normal; /* Turn off difference mode for better visibility on scroll */
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 20px;
  text-transform: uppercase;
  color: white;
  text-decoration: none;
}

/* Hero - Aggressive Hook */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-tag {
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(32px, 7vw, 80px); /* Reduced by approx 30% from 110px */
  line-height: 1.25; /* Slightly increased for more breath */
  margin-bottom: 56px;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.highlight-money {
  color: var(--accent-gold); /* Changed to Gold */
  font-weight: 900;
  font-size: 1.1em; /* Scale up relative to h1 */
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.3), 0 0 40px rgba(255, 215, 0, 0.1);
  display: inline-block;
  animation: money-glow 3s infinite alternate;
}

@keyframes money-glow {
  0% { transform: scale(1); text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
  100% { transform: scale(1.02); text-shadow: 0 0 40px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2); }
}

.hero h1 span {
  display: block;
}

.strike-text {
  text-decoration: line-through;
  color: var(--text-dim);
  text-decoration-color: var(--accent-purple);
  text-decoration-thickness: 4px;
}

.hero p {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 64px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center; /* Ensure centering */
  height: 64px; /* Fixed height for consistency */
  padding: 0 40px;
  background: var(--accent-gold);
  color: #000;
  text-decoration: none;
  font-weight: 800;
  border-radius: var(--radius-sharp);
  font-size: 18px;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-gold);
  white-space: nowrap;
  box-sizing: border-box; /* Crucial for consistency */
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4); /* Slightly lighter for visibility */
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.qr-container {
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: inline-block;
  backdrop-filter: blur(10px);
}

.btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.btn-outline {
  background: transparent;
  transform: translateX(10px);
}

.tech-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 80px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 32px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  backdrop-filter: blur(10px);
}

.stat-card:hover {
  transform: translateY(-12px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-gold);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 215, 0, 0.1);
}

.stat-icon {
  font-size: 36px;
  color: var(--accent-gold);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.stat-card h3 {
  font-size: 36px;
  color: var(--accent-gold);
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

.stat-card h4 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* AI Agent Assistant Styles */
#ai-agent-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.ai-robot {
  width: 60px;
  height: 60px;
  position: relative;
  animation: robot-float 4s ease-in-out infinite;
}

.robot-head {
  width: 40px;
  height: 30px;
  background: linear-gradient(135deg, #111, #333);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: absolute;
  top: 0;
  left: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.robot-eyes {
  width: 25px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: robot-blink 5s infinite;
}

.robot-body {
  width: 30px;
  height: 25px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  position: absolute;
  bottom: 5px;
  left: 15px;
  z-index: 1;
}

.robot-glow {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.ai-status {
  font-size: 10px;
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  font-weight: 800;
  opacity: 0.7;
}

@keyframes robot-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes robot-blink {
  0%, 90%, 100% { opacity: 1; transform: scaleY(1); }
  95% { opacity: 0; transform: scaleY(0); }
}

.stat-item p {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Projects Gallery */
.section-header {
  margin: var(--spacing-huge) 0 var(--spacing-mid);
}

.section-header h2 {
  font-size: 48px;
  margin-bottom: 16px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-item {
  position: relative;
  background: var(--bg-surface);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-item:hover {
  transform: scale(0.98);
}

.project-thumbnail {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.2);
  transition: all 0.8s ease;
}

.project-item:hover .project-thumbnail img {
  filter: grayscale(0) contrast(1);
}

.project-overlay {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-title h3 {
  font-size: 32px;
  margin-bottom: 8px;
}

.project-title p {
  color: var(--text-muted);
  font-size: 14px;
}

.project-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

/* Utilities */
/* Advanced Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity, filter;
}

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

/* Staggered Delays for Siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

.project-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.03);
}

.project-link:hover {
  background: white;
  color: black;
  border-color: white;
  transform: translateY(-5px);
}

footer {
  padding: var(--spacing-mid) 0;
  border-top: 1px solid var(--text-dim);
  margin-top: var(--spacing-huge);
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  line-height: 2; /* Increased line-height */
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: 1fr; }
  .tech-stats { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 64px; }
}
