/* =====================================================
   PORTFOLIO — PREMIUM DARK DESIGN SYSTEM
   Theme: Deep navy-black, violet/indigo accent,
          warm cream text, neon glow effects
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,700;0,14..32,900;1,14..32,300;1,14..32,700;1,14..32,900&family=JetBrains+Mono:wght@400;700&display=swap');

/* ── Tokens ─────────────────────────────────────── */
:root {
  --primary: 212, 175, 55;
  /* #D4AF37 - Muted Gold */
  --secondary: 245, 158, 11;
  /* #F59E0B - Amber */
  --accent: 255, 255, 255;
  /* White */

  --bg: #040404;
  /* Deep Space Black */
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #F8FAFC;
  /* Text Primary */
  --muted: #9CA3AF;
  /* Text Secondary (Slate-400) */
  --cream: #F8FAFC;
}

/* ── Reset ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Cursor ─────────────────────────────────────── */
* {
  cursor: none !important;
}

@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }
}

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 4px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(var(--primary), 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary), 0.5);
}

/* ── Glass surfaces ─────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Glows (Reduced Intensity) ─────────────────────── */
.glow-sm {
  box-shadow: 0 0 15px rgba(var(--primary), 0.08);
}

.glow-md {
  box-shadow: 0 0 30px rgba(var(--primary), 0.1), 0 0 60px rgba(var(--primary), 0.03);
}

.glow-lg {
  box-shadow: 0 0 45px rgba(var(--primary), 0.12), 0 0 90px rgba(var(--primary), 0.04);
}

/* ── Typography ─────────────────────────────────── */
.heading-xl {
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.85;
  text-transform: uppercase;
}

.heading-lg {
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
}

/* ── Outlined / ghost text ──────────────────────── */
.text-outline {
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  color: transparent;
}

.text-outline-accent {
  -webkit-text-stroke: 1px rgba(var(--primary), 0.25);
  color: transparent;
}

/* ── Gradient text ──────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(var(--primary), 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Noise overlay (subtle grain) ──────────────── */
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

/* ── Horizontal rule ────────────────────────────── */
.hr-accent {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(var(--primary), 0.25), transparent);
  border: none;
  margin: 0;
}

/* ── Tag pill ───────────────────────────────────── */
.tag {
  padding: 3px 12px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: italic;
  background: rgba(var(--primary), 0.08);
  border: 1px solid rgba(var(--primary), 0.18);
  color: rgba(var(--primary), 0.9);
}

/* ── Button styles ──────────────────────────────── */
.btn-primary {
  background: rgba(var(--primary), 0.9);
  color: #000;
  font-weight: 800;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 16px 36px;
  border: 1px solid rgba(var(--primary), 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(var(--primary), 1);
  box-shadow: 0 0 25px rgba(var(--primary), 0.25);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 800;
  font-style: italic;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 16px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Mono font helper ───────────────────────────── */
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Utilities ──────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Grid background ────────────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Animated gradient orbs ─────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite;
}

@keyframes orbFloat {

  0%,
  100% {
    transform: translateY(0px) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

/* ── Loading screen animations ──────────────────── */
@keyframes loadPulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes loadBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ── Stars background ──────────────────────────────── */
.stars {
  background-image:
    radial-gradient(2px 2px at 20px 30px, #eee, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: twinkle 5s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }

  100% {
    opacity: 0.2;
  }
}