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

:root {
  --bg-primary: #08080a;
  --bg-secondary: #0c0c0e;
  --bg-card: #111113;
  --purple: #a855f7;
  --purple-dim: #8b3fdb;
  --purple-glow: rgba(168, 85, 247, 0.15);
  --purple-light: #c084fc;
  --white: #f0f0f2;
  --white-dim: #c8c8d0;
  --text-primary: #f0f0f2;
  --text-secondary: #9999a8;
  --text-dim: #555560;
  --border-color: rgba(168, 85, 247, 0.12);
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-dim) var(--bg-primary);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: crosshair;
  min-height: 100vh;
}

::selection {
  background: var(--purple);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--purple-dim);
  border-radius: 3px;
}

/* CRT overlay removed — clean look */
.crt-overlay {
  display: none;
}

/* ═══════════════════════════════════════════════
   NOISE / DITHER TEXTURE
   ═══════════════════════════════════════════════ */
.noise-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  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)'/%3E%3C/svg%3E");
  animation: noise-shift 0.5s steps(10) infinite;
}

@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(3%, -8%); }
  30% { transform: translate(-8%, 2%); }
  40% { transform: translate(5%, 5%); }
  50% { transform: translate(-3%, 8%); }
  60% { transform: translate(8%, -2%); }
  70% { transform: translate(-5%, 3%); }
  80% { transform: translate(2%, -5%); }
  90% { transform: translate(-2%, 7%); }
  100% { transform: translate(0, 0); }
}

/* ═══════════════════════════════════════════════
   PARTICLE CANVAS
   ═══════════════════════════════════════════════ */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   DITHER CANVAS
   ═══════════════════════════════════════════════ */
#dither-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--purple);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
}

.nav-logo::before {
  content: '>';
  margin-right: 6px;
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  50% { opacity: 0; }
}

.nav-logo:hover {
  text-shadow: 0 0 20px var(--purple), 0 0 40px var(--purple-glow);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--purple);
  transition: width 0.3s ease;
  box-shadow: 0 0 6px var(--purple);
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--purple);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.nav-status .status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  margin-right: 6px;
  box-shadow: 0 0 6px var(--purple);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--purple);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-left: 1px solid var(--border-color);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-status {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   PAGE WRAPPER
   ═══════════════════════════════════════════════ */
.page-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* ═══════════════════════════════════════════════
   HERO SECTION (INDEX)
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero-ascii {
  font-family: var(--font-mono);
  font-size: clamp(0.35rem, 0.8vw, 0.7rem);
  line-height: 1.15;
  color: var(--purple);
  white-space: pre;
  text-shadow: 0 0 10px var(--purple-glow), 0 0 30px rgba(168, 85, 247, 0.08);
  opacity: 0;
  animation: ascii-reveal 1.5s ease-out 0.5s forwards;
  margin-bottom: 2rem;
  user-select: none;
}

@keyframes ascii-reveal {
  0% {
    opacity: 0;
    filter: blur(4px);
    transform: scale(0.95);
  }
  60% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 12px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: name-glitch 0.8s ease-out 1.8s forwards;
  position: relative;
}

@keyframes name-glitch {
  0% { opacity: 0; transform: translateY(20px); }
  50% { opacity: 0.5; transform: translateY(20px); }
  70% { transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: var(--text-secondary);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fade-up 0.8s ease-out 2.4s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fade-up 0.8s ease-out 2.8s forwards;
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn-primary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-primary);
  background: var(--purple);
  border: none;
  padding: 1rem 2.5rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  box-shadow: 0 0 30px var(--purple-glow), 0 0 60px rgba(168, 85, 247, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--purple);
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(168, 85, 247, 0.05);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.05);
}

.btn-huge {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg-primary);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  border: none;
  padding: 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.btn-huge::after {
  content: '→';
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

.btn-huge:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px var(--purple-glow), 0 0 80px rgba(168, 85, 247, 0.1);
}

.btn-huge:hover::after {
  transform: translateX(6px);
}

/* ═══════════════════════════════════════════════
   SCROLL INDICATOR
   ═══════════════════════════════════════════════ */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fade-up 0.8s ease-out 3.2s forwards;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--purple-dim), transparent);
  position: relative;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--purple-dim);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '//';
  color: var(--text-dim);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--purple);
  margin-top: 1.5rem;
  box-shadow: 0 0 10px var(--purple-glow);
}

/* ═══════════════════════════════════════════════
   NODE GRID (PROJECTS)
   ═══════════════════════════════════════════════ */
.node-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.node-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.node-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 30px solid var(--purple);
  border-left: 30px solid transparent;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.node-card:hover {
  border-color: var(--purple-dim);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--purple-glow);
}

.node-card:hover::before {
  opacity: 1;
}

.node-card:hover::after {
  opacity: 0.6;
}

.node-card:hover .node-icon {
  color: var(--purple);
  text-shadow: 0 0 10px var(--purple-glow);
}

.node-index {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.node-icon {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  line-height: 1;
}

.node-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.node-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.node-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.2rem;
}

.node-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple-dim);
  border: 1px solid rgba(168, 85, 247, 0.15);
  padding: 3px 8px;
  background: rgba(168, 85, 247, 0.03);
}

/* ═══════════════════════════════════════════════
   DITHER PLAYGROUND (LAB)
   ═══════════════════════════════════════════════ */
.lab-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .lab-container {
    grid-template-columns: 1fr;
  }
}

.lab-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  position: relative;
}

.lab-panel-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-dim);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

#ascii-output {
  font-family: var(--font-mono);
  font-size: 4px;
  line-height: 5px;
  letter-spacing: 1px;
  color: var(--purple);
  white-space: pre;
  overflow: hidden;
  min-height: 300px;
  text-shadow: 0 0 4px var(--purple-glow);
  user-select: none;
}

#dither-output {
  width: 100%;
  image-rendering: pixelated;
  display: block;
}

.lab-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
  min-width: 80px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--border-color);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--purple);
  cursor: pointer;
  box-shadow: 0 0 8px var(--purple-glow);
}

/* ═══════════════════════════════════════════════
   TERMINAL (CONTACT)
   ═══════════════════════════════════════════════ */
.terminal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  max-width: 700px;
  margin: 3rem auto 0;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #555560; }
.terminal-dot.yellow { background: #9999a8; }
.terminal-dot.green { background: #a855f7; }

.terminal-title-bar {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-left: 1rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-secondary);
  min-height: 300px;
}

.terminal-line {
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: term-type 0.3s ease forwards;
}

.terminal-line .prompt {
  color: var(--purple);
}

.terminal-line .cmd {
  color: var(--text-primary);
}

.terminal-line .result {
  color: var(--purple-light);
}

.terminal-line .link {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.terminal-line .link:hover {
  color: var(--purple-light);
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.terminal-input-line .prompt {
  color: var(--purple);
  margin-right: 8px;
  white-space: nowrap;
}

#terminal-input {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  caret-color: var(--purple);
}

@keyframes term-type {
  from { opacity: 0; transform: translateX(-5px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-ascii {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
  white-space: pre;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-ascii-portrait {
  font-family: var(--font-mono);
  font-size: 5px;
  line-height: 6px;
  color: var(--purple);
  white-space: pre;
  text-shadow: 0 0 4px var(--purple-glow);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 2rem;
  overflow: hidden;
  user-select: none;
}

.about-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  border-color: var(--purple-dim);
  box-shadow: 0 0 20px var(--purple-glow);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════
   BREMIERE PORTAL LINK
   ═══════════════════════════════════════════════ */
.bremiere-portal {
  display: block;
  max-width: 800px;
  margin: 4rem auto;
  padding: 3rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.03), rgba(192, 132, 252, 0.03));
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.bremiere-portal::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(168, 85, 247, 0.05), transparent, rgba(192, 132, 252, 0.05), transparent);
  animation: portal-spin 8s linear infinite;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.bremiere-portal:hover::before {
  opacity: 1;
}

.bremiere-portal:hover {
  border-color: var(--purple);
  box-shadow: 0 0 40px var(--purple-glow), inset 0 0 40px var(--purple-glow);
  transform: scale(1.01);
}

@keyframes portal-spin {
  to { transform: rotate(360deg); }
}

.portal-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.portal-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.8rem;
  text-shadow: 0 0 20px var(--purple-glow);
}

.portal-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.portal-arrow {
  font-size: 1.5rem;
  color: var(--purple);
  margin-top: 1.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.bremiere-portal:hover .portal-arrow {
  transform: translateX(10px);
}

/* ═══════════════════════════════════════════════
   INTERACTIVE MOUSE TRAILER
   ═══════════════════════════════════════════════ */
.mouse-trail {
  position: fixed;
  width: 8px;
  height: 8px;
  border: 1px solid var(--purple);
  pointer-events: none;
  z-index: 9997;
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  mix-blend-mode: difference;
}

.mouse-trail.expanded {
  width: 40px;
  height: 40px;
  border-color: var(--purple-light);
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   COORDINATE DISPLAY
   ═══════════════════════════════════════════════ */
.coord-display {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  z-index: 100;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   PAGE TRANSITION
   ═══════════════════════════════════════════════ */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: page-fade-out 0.6s ease 0.2s forwards;
}

.page-transition .loading-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--purple);
  text-transform: uppercase;
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ═══════════════════════════════════════════════
   UTILITY & ANIMATIONS
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.text-purple { color: var(--purple); }
.text-cyan { color: var(--purple-light); }
.text-magenta { color: var(--purple); }
.text-amber { color: var(--purple-light); }

.glow-text {
  text-shadow: 0 0 10px var(--purple-glow), 0 0 20px rgba(168, 85, 247, 0.05);
}
