:root {
  --void: #030303;
  --neon-cyan: #00f3ff;
  --neon-purple: #bc13fe;
  --terminal-green: #00ff41;
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: 'Share Tech Mono', monospace;
  background-color: var(--void);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Matrix Canvas - CRITICAL */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  display: block;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scanlines */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.4;
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  gap: 2.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

/* Hero Name */
.hero-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
}

.glow-cyan {
  text-shadow: 
    0 0 10px rgba(0, 243, 255, 0.5), 
    0 0 20px rgba(0, 243, 255, 0.3), 
    0 0 40px rgba(0, 243, 255, 0.2);
}

/* Glitch Effect */
.glitch-wrapper {
  position: relative;
}

.glitch-text {
  position: relative;
}

.glitch-wrapper:hover .glitch-text::before,
.glitch-wrapper:hover .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.glitch-wrapper:hover .glitch-text::before {
  color: var(--neon-cyan);
  animation: glitch-1 0.3s infinite linear;
  z-index: -1;
}

.glitch-wrapper:hover .glitch-text::after {
  color: var(--neon-purple);
  animation: glitch-2 0.3s infinite linear;
  z-index: -1;
}

@keyframes glitch-1 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
  40% { clip-path: inset(50% 0 30% 0); transform: translate(3px, -2px); }
  60% { clip-path: inset(70% 0 10% 0); transform: translate(-2px, 1px); }
  80% { clip-path: inset(10% 0 80% 0); transform: translate(2px, -1px); }
}

@keyframes glitch-2 {
  0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  20% { clip-path: inset(60% 0 20% 0); transform: translate(3px, -2px); }
  40% { clip-path: inset(30% 0 50% 0); transform: translate(-3px, 2px); }
  60% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -1px); }
  80% { clip-path: inset(80% 0 10% 0); transform: translate(-2px, 1px); }
}

/* Float Animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-animation {
  animation: float 4s ease-in-out infinite;
}

/* Terminal Link */
.terminal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 65, 0.1);
  text-decoration: none;
  transition: all 0.3s ease-out;
  border-radius: 2px;
  text-align: center;
}

.terminal-link:hover {
  border-color: rgba(0, 255, 65, 0.4);
  background: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.terminal-text {
  color: var(--terminal-green);
  font-size: clamp(0.7rem, 2.5vw, 0.9rem);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Companies Grid */
.companies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Company Card */
.company-card {
  position: relative;
  height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  text-decoration: none;
  transition: all 0.3s ease-out;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.company-card:hover {
  transform: scale(1.02);
  box-shadow: 
    inset 0 0 0 1px rgba(0, 243, 255, 0.4),
    0 0 30px rgba(0, 243, 255, 0.15),
    0 0 60px rgba(0, 243, 255, 0.1);
}

.card-content {
  text-align: center;
}

.company-name {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s ease-out;
}

.cyan-hover:hover,
.company-card:hover .cyan-hover {
  color: var(--neon-cyan);
}

.purple-hover:hover,
.company-card:hover .purple-hover {
  color: var(--neon-purple);
}

.company-domain {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
}

.card-index {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.2);
}

/* Tech Brackets */
.tech-brackets::before,
.tech-brackets::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  transition: all 0.3s ease-out;
}

.tech-brackets::before {
  top: 0;
  left: 0;
  border-top: 2px solid rgba(0, 243, 255, 0.3);
  border-left: 2px solid rgba(0, 243, 255, 0.3);
}

.tech-brackets::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid rgba(0, 243, 255, 0.3);
  border-right: 2px solid rgba(0, 243, 255, 0.3);
}

.tech-brackets:hover::before,
.tech-brackets:hover::after {
  width: 30px;
  height: 30px;
  border-color: var(--neon-cyan);
}

/* Social Nodes */
.social-nodes {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4rem;
}

.social-node {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-node:hover {
  transform: scale(1.2);
}

.node-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: rgba(0, 255, 65, 0.4);
  transition: all 0.3s ease;
}

.social-node:hover .node-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 10px var(--neon-cyan));
}

/* Selection */
::selection {
  background-color: rgba(0, 243, 255, 0.3);
  color: #ffffff;
}