@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-matte: #070709;
  --surface-panel: rgba(16, 16, 20, 0.85);
  --surface-panel-hover: rgba(22, 22, 28, 0.95);
  --surface-highlight: rgba(28, 28, 36, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(245, 158, 11, 0.4);
  --accent-amber: #f59e0b;
  --accent-blue: #3b82f6;
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-faint: #71717a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-matte);
  color: var(--text-main);
  letter-spacing: -0.015em;
  overflow-x: hidden;
  position: relative;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
}

/* Atmospheric Canvas Background */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Linear-style Hairline Panels with Glassmorphism */
.matte-panel {
  background-color: var(--surface-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.matte-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.08);
}

.matte-panel-active {
  background-color: var(--surface-highlight);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
}

/* Expansive Ambient Background Gradients */
.spotlight-bg {
  position: relative;
  z-index: 10;
}

/* High-Impact Hero Photo Deck */
.hero-photo-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 13, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-photo-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 45px rgba(245, 158, 11, 0.2);
}

/* Screen Side Click Navigation Zones */
.side-nav-zone {
  position: fixed;
  top: 4rem;
  bottom: 0;
  width: 14rem;
  z-index: 35;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
}

.side-nav-zone-left {
  left: 0;
  justify-content: flex-start;
  padding-left: 1.5rem;
}

.side-nav-zone-right {
  right: 0;
  justify-content: flex-end;
  padding-right: 1.5rem;
}

/* Always-Visible Ambient Teaser Rails with Faint Line and Text */
.side-teaser-rail {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.side-nav-zone-right .side-teaser-rail {
  right: 0.75rem;
}

.side-nav-zone-left .side-teaser-rail {
  left: 0.75rem;
}

/* Faint Line Animation */
.side-teaser-line {
  width: 2px;
  height: 90px;
  border-radius: 9999px;
  background: linear-gradient(to bottom, transparent, rgba(245, 158, 11, 0.5), transparent);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.side-nav-zone-left .side-teaser-line {
  background: linear-gradient(to bottom, transparent, rgba(56, 189, 248, 0.5), transparent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.side-teaser-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.5);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 0.5rem 0.25rem;
  border-radius: 0.375rem;
  background: rgba(15, 15, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.side-nav-zone-right .side-teaser-tag {
  transform: rotate(180deg);
}

/* 1-Second Noticeable Highlight Pulse on Arrival / Step Load */
.teaser-highlight-anim {
  animation: teaserHighlightPulse 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes teaserHighlightPulse {
  0% {
    opacity: 0.4;
    transform: translateY(-50%) scale(0.95);
  }
  25% {
    opacity: 1;
    transform: translateY(-50%) scale(1.18);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scale(1.12);
  }
  100% {
    opacity: 0.5;
    transform: translateY(-50%) scale(1);
  }
}

.teaser-highlight-anim .side-teaser-tag {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.teaser-highlight-anim .side-teaser-line {
  background: linear-gradient(to bottom, transparent, #f59e0b, transparent);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
}

/* When Hovered: Teaser Fades Out smoothly & Project Pill Fades In */
.side-nav-zone:hover .side-teaser-rail,
.side-nav-zone.is-hovered .side-teaser-rail {
  opacity: 0 !important;
  transform: translateY(-50%) scale(0.9) !important;
}

/* Materialized Side Project Preview Pill (Reveals Next/Prev Project Title on Hover) */
.side-project-pill {
  padding: 0.65rem 1.15rem;
  border-radius: 1rem;
  background: rgba(16, 16, 22, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  max-width: 250px;
}

.side-nav-zone:hover .side-project-pill,
.side-nav-zone.is-hovered .side-project-pill {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1.03);
  background: rgba(20, 20, 28, 0.96);
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.35), 0 20px 45px rgba(0, 0, 0, 0.85);
}

.side-nav-zone-left:hover .side-project-pill,
.side-nav-zone-left.is-hovered .side-project-pill {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3), 0 20px 45px rgba(0, 0, 0, 0.85);
}



/* Custom Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-matte);
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Horizontal Scroll Bar for Project Tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Tab Active Styles */
.horizontal-tab-item.active {
  border-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2);
}

/* Directional Smooth Step Transitions */
.step-slide-in-right {
  animation: slideInRight 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-slide-in-left {
  animation: slideInLeft 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(45px) scale(0.99);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-45px) scale(0.99);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

/* Default Tab Fade Animation */
.tab-pane {
  animation: fadeInTab 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
