:root {
  --bg-obsidian: #09090B;
  --bg-bento: #121216;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --accent-indigo: #6366F1;
  --accent-cyan: #22D3EE;
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

/* Subtle Architectural Grid Overlay */
.bg-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 25%, #000 40%, transparent 100%);
}

/* Ambient Background Glow Orbs */
.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(130px);
  opacity: 0.22;
  will-change: transform;
}

.orb-indigo {
  width: 520px;
  height: 520px;
  background: var(--accent-indigo);
  top: -120px;
  left: -100px;
}

.orb-cyan {
  width: 460px;
  height: 460px;
  background: var(--accent-cyan);
  top: 28%;
  right: -140px;
}

/* Glassmorphic Sticky Navbar */
.nav-glass {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Gradient Accent Text */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Primary Gradient Button */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-indigo) 0%, #4F46E5 55%, var(--accent-cyan) 130%);
  background-size: 160% 160%;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-position 0.4s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 30px -8px rgba(99, 102, 241, 0.45);
}

/* Elevated Bento Card Surface & Glassmorphism Hover */
.bento-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(18, 18, 22, 0.92) 100%), var(--bg-bento);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.7),
    0 0 25px -5px rgba(99, 102, 241, 0.22);
}

/* Category Filter Tabs */
.filter-btn.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.2));
  color: var(--text-primary);
  border: 1px solid rgba(34, 211, 238, 0.4);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

/* Smooth Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Respect Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bento-card:hover,
  .btn-gradient:hover {
    transform: none;
  }
}
