:root {
  --neon-red: #ff3333;
  --neon-orange: #ff8c00;
  --toxic-green: #39ff14;
  --oil-black: #0d0d0d;
  --rust: #8b4513;
  --steel: #4a4a4a;
  --bg-dark: #050505;
}

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

body {
  background-color: var(--bg-dark);
  color: #e0e0e0;
  font-family: 'Jura', sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#matrix {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.rust-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at center, transparent 0%, rgba(13, 13, 13, 0.9) 100%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.oil-drip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(20,20,5,0) 100%);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

/* Header */
.hero {
  text-align: center;
  padding: 10vmin 0;
  border-bottom: 2px dashed var(--rust);
  margin-bottom: 4rem;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-red), transparent);
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  0% { background-position: -1200px 0; }
  100% { background-position: 1200px 0; }
}

.glitch {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  text-transform: uppercase;
  color: #fff;
  position: relative;
  display: inline-block;
  text-shadow: 0px 0px 10px rgba(255, 51, 51, 0.8);
  margin-bottom: 1rem;
}

.glitch::before, .glitch::after {
  content: attr(data-title);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
}

.glitch::before {
  left: 3px;
  text-shadow: -2px 0 var(--neon-red);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -3px;
  text-shadow: -2px 0 var(--toxic-green);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(10px, 9999px, 83px, 0); }
  20% { clip: rect(69px, 9999px, 90px, 0); }
  40% { clip: rect(17px, 9999px, 60px, 0); }
  60% { clip: rect(87px, 9999px, 20px, 0); }
  80% { clip: rect(31px, 9999px, 50px, 0); }
  100% { clip: rect(4px, 9999px, 94px, 0); }
}

@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 100px, 0); }
  20% { clip: rect(15px, 9999px, 30px, 0); }
  40% { clip: rect(81px, 9999px, 43px, 0); }
  60% { clip: rect(3px, 9999px, 62px, 0); }
  80% { clip: rect(52px, 9999px, 12px, 0); }
  100% { clip: rect(21px, 9999px, 80px, 0); }
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 2rem);
  color: var(--neon-orange);
  letter-spacing: 5px;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-desc {
  font-size: 1.2rem;
  color: #888;
  font-style: italic;
}

/* Team Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.card {
  background: rgba(15, 15, 15, 0.8);
  border: 1px solid var(--steel);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 2;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 140, 0, 0.2);
}

.card:hover::before {
  border-color: var(--neon-orange);
}

.card-image {
  width: 100%;
  height: 380px;
  background-color: #111;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(80%) contrast(120%) brightness(80%);
  transition: all 0.5s ease;
}

.card:hover .card-image img {
  filter: grayscale(0%) contrast(110%) brightness(100%);
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(20,20,20,0.9) 100%);
  position: relative;
  z-index: 10;
}

.name {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  border-left: 4px solid var(--neon-red);
  padding-left: 10px;
}

.role {
  color: var(--neon-orange);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
  min-height: 2.4rem;
}

.bio {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.4;
  border-top: 1px dashed var(--steel);
  padding-top: 1rem;
}

/* Experiments */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  font-family: 'Rubik Mono One', sans-serif;
}

.experiment-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.experiment-item {
  background: rgba(20, 20, 20, 0.6);
  border-left: 4px solid var(--rust);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.experiment-item:hover {
  border-left-color: var(--toxic-green);
  background: rgba(30, 30, 30, 0.8);
}

.experiment-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0,0,0,0.1) 10px,
    rgba(0,0,0,0.1) 20px
  );
  pointer-events: none;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.exp-header h3 {
  font-size: 1.4rem;
  color: #fff;
}

.status {
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status.danger {
  background: rgba(255, 51, 51, 0.2);
  color: var(--neon-red);
  border: 1px solid var(--neon-red);
}

.status.dev {
  background: rgba(57, 255, 20, 0.1);
  color: var(--toxic-green);
  border: 1px solid var(--toxic-green);
}

.experiment-item p {
  color: #bbb;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(10, 10, 10, 0.95);
  border-top: 3px solid var(--neon-red);
  position: relative;
}

.footer-status {
  color: var(--neon-red);
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: 'Rubik Mono One', sans-serif;
  text-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.8; text-shadow: 0 0 10px var(--neon-red); }
  to { opacity: 1; text-shadow: 0 0 25px var(--neon-red), 0 0 10px var(--neon-red); }
}

.cyber-button {
  background: transparent;
  color: var(--toxic-green);
  font-family: 'Jura', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1rem 2rem;
  border: 2px solid var(--toxic-green);
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.2) inset;
}

.cyber-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,0.4), transparent);
  transition: all 0.5s;
}

.cyber-button:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5) inset, 0 0 20px rgba(57, 255, 20, 0.5);
}

.cyber-button:hover::before {
  left: 100%;
}

.cyber-button:active {
  transform: scale(0.95);
}

.cyber-button.small {
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  color: var(--neon-red);
  border-color: var(--neon-red);
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.2) inset;
}

.cyber-button.small::before {
  background: linear-gradient(90deg, transparent, rgba(255,51,51,0.4), transparent);
}

.cyber-button.small:hover {
  background: rgba(255, 51, 51, 0.1);
  box-shadow: 0 0 20px rgba(255, 51, 51, 0.5) inset, 0 0 20px rgba(255, 51, 51, 0.5);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

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

.modal-content {
  background: #111;
  border: 2px solid var(--neon-red);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(255, 51, 51, 0.3);
  transform: scale(1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .modal-content {
  transform: scale(0.8);
}

.modal-text {
  color: var(--neon-red);
  font-family: 'Rubik Mono One', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.modal-sub {
  color: #ccc;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .glitch { font-size: 2.2rem; }
  .subtitle { font-size: 1rem; }
  .section-title { font-size: 1.8rem; }
  .footer-status { font-size: 1.5rem; }
  .cyber-button { font-size: 1rem; padding: 0.8rem 1.5rem; }
}
