@import url('https://api.fontshare.com/v2/css?f[]=satoshi@1,2&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=swap');

:root {
  --color-void: #080b10;
  --color-surface-base: #101319;
  --color-surface-low: #191c21;
  --color-surface-container: #1d2025;
  --color-surface-high: #272a30;
  --color-surface-highest: #32353b;
  --color-primary: #2f6fed;
  --color-primary-light: #b1c5ff;
  --color-secondary: #8acefa;
  --color-tertiary: #5fa8ff;
  --color-text: #e1e2ea;
  --color-text-bright: #f4f8ff;
  --color-text-muted: #8c90a0;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--color-surface-base);
}

body {
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--color-surface-base);
  color: var(--color-text);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-secondary);
}

/* Tabular numbers for telemetry & metrics */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Themed Browser Surfaces */
::selection {
  background-color: #2f6fed;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

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

::-webkit-scrollbar-track {
  background: #0b0e13;
}

::-webkit-scrollbar-thumb {
  background: #272a30;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #36393f;
}

/* Three.js Canvas containers */
.three-canvas-holder,
#halvic-mark,
#hero-threejs-container {
  width: 100%;
  height: 100%;
  position: relative;
  touch-action: none;
}

.three-canvas-holder canvas,
#halvic-mark canvas,
#hero-threejs-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Typographic scale to guarantee clear hierarchy */
h1 { font-size: 3.75rem; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: 2.5rem; line-height: 1.15; letter-spacing: -0.025em; }
h3 { font-size: 1.5rem; line-height: 1.3; letter-spacing: -0.015em; }
p { font-size: 1rem; line-height: 1.6; }

/* Clean Elevation with directional neutral shadows and guaranteed padding */
.elevation-card {
  padding: 1.75rem;
  background: rgba(19, 26, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 2px 8px -2px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}

.elevation-card:hover {
  border-color: rgba(143, 211, 255, 0.3);
  box-shadow: 0 16px 36px -6px rgba(0, 0, 0, 0.7), 0 4px 14px -2px rgba(0, 0, 0, 0.4);
}

/* Smooth Equalizer Animation with Exponential Deceleration */
@keyframes eq-wave-1 {
  0%, 100% { height: 14px; opacity: 0.4; }
  50% { height: 38px; opacity: 0.9; }
}

@keyframes eq-wave-2 {
  0%, 100% { height: 32px; opacity: 0.8; }
  50% { height: 16px; opacity: 0.5; }
}

@keyframes eq-wave-3 {
  0%, 100% { height: 22px; opacity: 0.6; }
  50% { height: 44px; opacity: 0.95; }
}

.eq-bar-1 { animation: eq-wave-1 1.6s var(--ease-out-expo) infinite; }
.eq-bar-2 { animation: eq-wave-2 1.2s var(--ease-out-expo) infinite; }
.eq-bar-3 { animation: eq-wave-3 1.9s var(--ease-out-expo) infinite; }

/* Modal transition */
.modal-overlay {
  transition: opacity 0.25s var(--ease-out-expo), visibility 0.25s var(--ease-out-expo);
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   TRIONN-INSPIRED CUSTOM FLUID MAGNETIC CURSOR
   ========================================================================== */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (pointer: fine) {
  .cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, left, top;
    transition: opacity 0.2s ease, transform 0.15s ease;
  }

  .cursor-ring {
    --cursor-scale: 1;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    background-color: transparent;
    border-radius: 50%;
    transform: translate3d(0, 0, 0) translate(-50%, -50%) scale(var(--cursor-scale));
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 9998;
    will-change: transform, background-color;
    transition: transform 0.35s var(--ease-out-expo),
                background-color 0.3s var(--ease-out-expo),
                border-color 0.3s ease;
  }

  /* Hover state: expands and adds subtle translucent fill */
  .cursor-ring.cursor--hover {
    --cursor-scale: 1.72;
    border-color: rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.12);
  }

  /* View / Explore Badge state over project cards */
  .cursor-ring.cursor--view {
    --cursor-scale: 2.55;
    background-color: #ffffff;
    border-color: #ffffff;
    mix-blend-mode: normal;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .cursor-ring.cursor--view .cursor-badge {
    opacity: 1;
    color: #080b10;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    transform: scale(0.65);
  }

  .cursor-dot.cursor--hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}

/* Monumental Statement Section Responsive Centering & Scaling */
.statement-headline-text {
  font-size: clamp(1.75rem, 3.8vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: uppercase;
  display: inline-block;
}

.statement-badge {
  width: clamp(1.5rem, 2.2vw, 2.25rem);
  height: clamp(1.5rem, 2.2vw, 2.25rem);
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
}

@media (max-width: 640px) {
  .statement-headline-text {
    font-size: clamp(1.35rem, 6vw, 2rem);
    letter-spacing: -0.02em;
  }

  .statement-badge {
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.75rem;
  }
}

