@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap");
:root {
  --neon-cyan: #00ffff;
  --neon-pink: #ff00ff;
  --neon-orange: #ff6600;
  --neon-green: #00ff00;
  --neon-red: #ff0040;
  --cyber-red: #e60026;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --grid-color: #1a1a2e;
  --text-primary: #e0e0e0;
  --text-secondary: #c0c0c0;
  --cyber-gray: #b0b0b0;
  --light-gray: #d0d0d0;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --red-glass-bg: rgba(255, 0, 64, 0.08);
  --red-glass-border: rgba(255, 0, 64, 0.15);
}

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

body {
  font-family: "Fira Code", "Courier New", "Monaco", monospace;
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  font-weight: 400;
  letter-spacing: 1px;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 0, 64, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 64, 64, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 0L52 20L50 40L48 20Z' fill='%23ff0040' opacity='0.08'/%3E%3C/svg%3E") repeat;
  animation: rain 3s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes grid-move {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(50px);
  }
}
@keyframes rain {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}
main {
  min-height: 100vh;
  padding: 2rem;
  position: relative;
}

.neon-glow {
  animation: neon-flicker 2s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
  0%, 100% {
    text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, 0 0 20px var(--neon-red);
  }
  50% {
    text-shadow: 0 0 2px currentColor, 0 0 5px currentColor, 0 0 8px currentColor, 0 0 12px var(--neon-red);
  }
}
.glitch {
  position: relative;
  animation: glitch 2s infinite;
}

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

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--neon-pink);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--neon-cyan);
  z-index: -2;
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
  }
  95% {
    transform: translate(2px, 0);
  }
}
@keyframes glitch-1 {
  0%, 90%, 100% {
    transform: translate(0);
  }
  95% {
    transform: translate(-2px, 0);
  }
}
@keyframes glitch-2 {
  0%, 90%, 100% {
    transform: translate(0);
  }
  95% {
    transform: translate(2px, 2px);
  }
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.glass-card:hover::before {
  left: 100%;
}

.glass-card:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.4);
  transform: translateY(-5px);
}

header.glass-card {
  filter: blur(1px);
  transition: all 0.3s ease;
  cursor: pointer;
}

header.glass-card:hover {
  filter: blur(0px);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

header.glass-card:hover h1 {
  text-shadow: none;
  animation: none;
  color: var(--text-primary);
}

h1,
h2,
h3 {
  font-family: "Space Mono", "Courier New", "Monaco", monospace;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  font-size: 3.5rem;
  color: var(--neon-red);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 15px var(--cyber-red), 0 0 20px var(--cyber-red), 0 0 35px var(--neon-red);
  animation: red-title-glow 3s ease-in-out infinite alternate;
}

@keyframes red-title-glow {
  0% {
    text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 15px var(--cyber-red), 0 0 20px var(--cyber-red), 0 0 35px var(--neon-red);
  }
  100% {
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red), 0 0 30px var(--cyber-red), 0 0 40px var(--cyber-red), 0 0 70px var(--neon-red);
  }
}
h2 {
  font-size: 2rem;
  color: var(--neon-red);
  border-bottom: 2px solid var(--neon-red);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

p,
li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  margin: 0.5rem 0;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-red), var(--cyber-red));
  border-radius: 4px;
  position: relative;
  animation: skill-glow 2s ease-in-out infinite alternate;
}

@keyframes skill-glow {
  0% {
    box-shadow: 0 0 5px var(--neon-red);
  }
  100% {
    box-shadow: 0 0 15px var(--cyber-red);
  }
}
.cyber-button {
  background: transparent;
  border: 2px solid var(--neon-red);
  color: var(--neon-red);
  padding: 0.8rem 2rem;
  font-family: "Space Mono", "Courier New", "Monaco", monospace;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
}

.cyber-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neon-red);
  transition: left 0.3s;
  z-index: -1;
}

.cyber-button:hover::before {
  left: 0;
}

.cyber-button:hover {
  color: var(--dark-bg);
  box-shadow: 0 0 20px var(--neon-red);
}

.nav-menu {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 0, 64, 0.2);
}

.nav-item {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Space Mono", "Courier New", "Monaco", monospace;
  color: var(--light-gray);
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: 600;
}

.nav-item:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 10px rgba(255, 0, 64, 0.5);
  color: var(--neon-red);
}

.terminal {
  background: #0d1117;
  border: 1px solid var(--neon-green);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  position: relative;
  margin: 1rem 0;
}

.terminal::before {
  content: "> ";
  color: var(--neon-green);
  font-weight: bold;
}

.terminal-header {
  background: #1a1a2e;
  color: var(--neon-green);
  padding: 0.5rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--neon-green);
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-red), var(--cyber-gray));
  box-shadow: 0 0 5px currentColor;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--neon-red);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-red);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  transition: all 0.3s ease;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.contact-item p {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.contact-item div {
  min-width: 0;
  flex-shrink: 1;
}

.contact-item:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .nav-menu {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.3rem;
    max-width: 90%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-item {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--neon-red);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--neon-red);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-red);
  box-shadow: 0 0 15px var(--cyber-red);
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 50%;
  border-top-color: var(--neon-red);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.matrix-text {
  font-family: "Courier New", monospace;
  color: var(--neon-green);
  animation: matrix-flicker 0.1s infinite linear;
}

@keyframes matrix-flicker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
.glass-card-red {
  background: var(--red-glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--red-glass-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card-red::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.15), transparent);
  transition: left 0.5s;
}

.glass-card-red:hover::before {
  left: 100%;
}

.glass-card-red:hover {
  border-color: var(--cyber-red);
  box-shadow: 0 0 25px rgba(230, 0, 38, 0.5);
  transform: translateY(-5px);
}

.gray-accent-box {
  background: rgba(128, 128, 128, 0.15);
  border-left: 4px solid var(--light-gray);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
  position: relative;
  color: var(--text-primary);
}

.gray-accent-box::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--neon-red);
  border-radius: 2px;
}

.red-pulse {
  animation: red-pulse 2s infinite;
}

@keyframes red-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 0, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 64, 0);
  }
}
.gray-highlight {
  background: linear-gradient(90deg, transparent, rgba(208, 208, 208, 0.2), transparent);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--light-gray);
  font-weight: 500;
}

.status-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.status-active {
  background: var(--neon-red);
  box-shadow: 0 0 6px var(--neon-red);
  animation: status-blink 1.5s ease-in-out infinite alternate;
}

.status-standby {
  background: var(--light-gray);
  box-shadow: 0 0 4px var(--light-gray);
}

@keyframes status-blink {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}
.terminal-red {
  background: #1a0505;
  border: 1px solid var(--cyber-red);
  border-radius: 8px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  position: relative;
  margin: 1rem 0;
}

.terminal-red::before {
  content: "> ";
  color: var(--neon-red);
  font-weight: bold;
}

.terminal-red-header {
  background: var(--light-gray);
  color: var(--neon-red);
  padding: 0.5rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--cyber-red);
}

.scan-line {
  position: relative;
  overflow: hidden;
}

.scan-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 64, 0.3), transparent);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.code-block {
  background: rgba(128, 128, 128, 0.1);
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  padding: 1rem;
  font-family: "Courier New", monospace;
  color: var(--text-primary);
  margin: 1rem 0;
  position: relative;
}

.code-block::before {
  content: attr(data-lang);
  position: absolute;
  top: -12px;
  left: 12px;
  background: var(--light-gray);
  color: var(--dark-bg);
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  border-radius: 4px;
}

.achievement-category {
  margin: 2rem 0;
}
.achievement-category h3 {
  border-bottom: 2px solid var(--light-gray);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}
.achievement-category h4 {
  color: var(--neon-red);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.timeline-item h4 {
  color: var(--neon-red);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.achievement-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 0, 64, 0.1);
  border: 1px solid var(--neon-red);
  border-radius: 20px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  color: var(--neon-red);
  margin-left: 1rem;
}

.gray-accent-box h4 {
  color: var(--neon-red);
  margin-bottom: 0.3rem;
}

.gray-accent-box p {
  color: var(--text-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 10px rgba(255, 0, 64, 0.2);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.skill-level {
  font-family: "Space Mono", "Courier New", "Monaco", monospace;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 50%, #0a0a0a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.login-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 0, 64, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%);
  animation: background-pulse 4s ease-in-out infinite alternate;
}

@keyframes startup-fade-in {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes background-pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.7;
  }
}
.login-modal {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border: 3px solid var(--neon-red);
  border-radius: 16px;
  padding: 3rem;
  width: 95%;
  max-width: 700px;
  margin: 2rem auto;
  animation: startup-modal-enter 1.2s ease-out;
  box-shadow: 0 0 50px rgba(255, 0, 64, 0.5), inset 0 0 30px rgba(255, 0, 64, 0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-red) rgba(255, 255, 255, 0.1);
  touch-action: pan-y;
  overscroll-behavior: contain;
}

.login-modal::-webkit-scrollbar {
  width: 8px;
}

.login-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.login-modal::-webkit-scrollbar-thumb {
  background: var(--neon-red);
  border-radius: 4px;
  opacity: 0.7;
}

.login-modal::-webkit-scrollbar-thumb:hover {
  opacity: 1;
  background: var(--cyber-red);
}

@keyframes startup-modal-enter {
  0% {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
  }
  50% {
    transform: translateY(-10px) scale(0.98);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.login-header {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--neon-red);
  padding-bottom: 1.5rem;
  position: relative;
}

.login-header h3 {
  font-size: 2rem;
  text-shadow: 0 0 15px var(--neon-red);
  margin-bottom: 0.5rem;
  animation: title-pulse 2s ease-in-out infinite alternate;
}

@keyframes title-pulse {
  0% {
    text-shadow: 0 0 15px var(--neon-red);
  }
  100% {
    text-shadow: 0 0 25px var(--neon-red), 0 0 35px var(--cyber-red);
  }
}
.close-button {
  background: none;
  border: 2px solid var(--cyber-red);
  color: var(--cyber-red);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-button:hover {
  background: var(--cyber-red);
  color: var(--dark-bg);
  box-shadow: 0 0 15px var(--cyber-red);
}

.login-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-panel {
  text-align: center;
  padding: 3rem 2rem;
  border: 2px solid var(--cyber-red);
  border-radius: 12px;
  background: rgba(255, 0, 64, 0.05);
  position: relative;
  overflow: hidden;
}

.status-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
}

.login-button {
  font-size: 1.3rem;
  padding: 1.2rem 3rem;
  margin-top: 1.5rem;
  animation: startup-button-pulse 2s infinite;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@keyframes startup-button-pulse {
  0%, 100% {
    box-shadow: 0 0 10px var(--neon-red);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px var(--neon-red), 0 0 50px var(--cyber-red);
    transform: scale(1.05);
  }
}
.login-steps {
  min-height: 250px;
  padding: 1rem 0;
}

.login-steps p {
  opacity: 1;
  margin: 0.8rem 0;
  font-size: 1.1rem;
  animation: matrix-text-appear 0.5s ease-in-out;
}

@keyframes matrix-text-appear {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.terminal {
  background: #050505;
  border: 2px solid var(--neon-red);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
}

@media (max-width: 768px) {
  .login-overlay {
    align-items: flex-start;
    padding: 0.5rem;
    padding-top: env(safe-area-inset-top, 0.5rem);
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
  }
  .login-modal {
    width: calc(100% - 1rem);
    padding: 1.5rem;
    max-width: none;
    margin: 0.5rem;
    max-height: calc(100vh - env(safe-area-inset-top, 0) - env(safe-area-inset-bottom, 0) - 1rem);
    min-height: min-content;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    transform: none !important;
  }
  .login-header h3 {
    font-size: 1.3rem;
  }
  .terminal {
    max-height: 50vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
  }
  .login-steps {
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 0.5rem;
  }
  .login-modal::-webkit-scrollbar,
  .terminal::-webkit-scrollbar,
  .login-steps::-webkit-scrollbar {
    width: 6px;
  }
  .login-modal::-webkit-scrollbar-track,
  .terminal::-webkit-scrollbar-track,
  .login-steps::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
  }
  .login-modal::-webkit-scrollbar-thumb,
  .terminal::-webkit-scrollbar-thumb,
  .login-steps::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 3px;
    opacity: 0.7;
  }
  .login-modal::-webkit-scrollbar-thumb:hover,
  .terminal::-webkit-scrollbar-thumb:hover,
  .login-steps::-webkit-scrollbar-thumb:hover {
    opacity: 1;
  }
  .access-panel {
    padding: 1.5rem;
  }
  .login-button,
  .cyber-button {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
  }
  .terminal {
    font-size: 0.85rem;
    padding: 1rem;
  }
  .login-content {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
.section-container {
  position: relative;
  transition: all 0.3s ease;
}

.glitch-active {
  position: relative;
  animation: section-glitch 0.6s ease-out;
}

@keyframes section-glitch {
  0% {
    transform: translate(0);
    filter: hue-rotate(0deg) saturate(1);
  }
  10% {
    transform: translate(-2px, 1px) skew(0.5deg);
    filter: hue-rotate(90deg) saturate(1.5);
  }
  20% {
    transform: translate(1px, -1px) skew(-0.3deg);
    filter: hue-rotate(180deg) saturate(0.8);
  }
  30% {
    transform: translate(-1px, 2px) skew(0.8deg);
    filter: hue-rotate(270deg) saturate(1.2);
  }
  40% {
    transform: translate(2px, -2px) skew(-0.5deg);
    filter: hue-rotate(45deg) saturate(1.8);
  }
  50% {
    transform: translate(-3px, 1px) skew(1deg);
    filter: hue-rotate(135deg) saturate(0.6);
  }
  60% {
    transform: translate(1px, -3px) skew(-0.8deg);
    filter: hue-rotate(225deg) saturate(1.4);
  }
  70% {
    transform: translate(-2px, 2px) skew(0.6deg);
    filter: hue-rotate(315deg) saturate(1.1);
  }
  80% {
    transform: translate(3px, -1px) skew(-1deg);
    filter: hue-rotate(60deg) saturate(1.6);
  }
  90% {
    transform: translate(-1px, 3px) skew(0.3deg);
    filter: hue-rotate(120deg) saturate(0.9);
  }
  100% {
    transform: translate(0);
    filter: hue-rotate(0deg) saturate(1);
  }
}
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch-text::before {
  color: var(--neon-cyan);
  animation: glitch-text-1 0.6s ease-out;
  z-index: -1;
}

.glitch-text::after {
  color: var(--neon-pink);
  animation: glitch-text-2 0.6s ease-out;
  z-index: -2;
}

@keyframes glitch-text-1 {
  0%, 100% {
    transform: translate(0);
    opacity: 0;
  }
  10% {
    transform: translate(-2px, -1px);
    opacity: 0.8;
  }
  20% {
    transform: translate(2px, 1px);
    opacity: 0.7;
  }
  30% {
    transform: translate(-1px, 2px);
    opacity: 0.9;
  }
  40% {
    transform: translate(1px, -2px);
    opacity: 0.6;
  }
  50% {
    transform: translate(-3px, 1px);
    opacity: 0.8;
  }
  60% {
    transform: translate(3px, -1px);
    opacity: 0.5;
  }
  70% {
    transform: translate(-2px, 3px);
    opacity: 0.7;
  }
  80% {
    transform: translate(2px, -3px);
    opacity: 0.9;
  }
  90% {
    transform: translate(-1px, 1px);
    opacity: 0.4;
  }
}
@keyframes glitch-text-2 {
  0%, 100% {
    transform: translate(0);
    opacity: 0;
  }
  15% {
    transform: translate(3px, 2px);
    opacity: 0.7;
  }
  25% {
    transform: translate(-2px, -2px);
    opacity: 0.8;
  }
  35% {
    transform: translate(1px, -3px);
    opacity: 0.6;
  }
  45% {
    transform: translate(-3px, 1px);
    opacity: 0.9;
  }
  55% {
    transform: translate(2px, 3px);
    opacity: 0.5;
  }
  65% {
    transform: translate(-1px, -1px);
    opacity: 0.8;
  }
  75% {
    transform: translate(3px, -2px);
    opacity: 0.7;
  }
  85% {
    transform: translate(-2px, 2px);
    opacity: 0.6;
  }
  95% {
    transform: translate(1px, -1px);
    opacity: 0.4;
  }
}
.glitch-scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 64, 0.03) 2px, rgba(255, 0, 64, 0.03) 4px);
  animation: scanlines-move 0.6s linear;
  pointer-events: none;
  z-index: 100;
}

@keyframes scanlines-move {
  0% {
    transform: translateY(-100%);
    opacity: 0.8;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
.glitch-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%), radial-gradient(circle at 90% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
  animation: noise-flicker 0.6s linear;
  pointer-events: none;
  z-index: 99;
  mix-blend-mode: screen;
}

@keyframes noise-flicker {
  0%, 100% {
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  20% {
    opacity: 0.1;
  }
  30% {
    opacity: 0.4;
  }
  40% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.6;
  }
  60% {
    opacity: 0.1;
  }
  70% {
    opacity: 0.3;
  }
  80% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.2;
  }
}
.glitch-rgb-split {
  position: relative;
}

.glitch-rgb-split::before,
.glitch-rgb-split::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  pointer-events: none;
}

.glitch-rgb-split::before {
  animation: rgb-split-red 0.6s ease-out;
  mix-blend-mode: screen;
  z-index: -1;
}

.glitch-rgb-split::after {
  animation: rgb-split-blue 0.6s ease-out;
  mix-blend-mode: screen;
  z-index: -2;
}

@keyframes rgb-split-red {
  0%, 100% {
    transform: translate(0);
    filter: hue-rotate(0deg);
    opacity: 0;
  }
  20% {
    transform: translate(-3px, 0);
    filter: hue-rotate(0deg);
    opacity: 0.7;
  }
  40% {
    transform: translate(2px, -1px);
    filter: hue-rotate(0deg);
    opacity: 0.5;
  }
  60% {
    transform: translate(-1px, 2px);
    filter: hue-rotate(0deg);
    opacity: 0.8;
  }
  80% {
    transform: translate(1px, -1px);
    filter: hue-rotate(0deg);
    opacity: 0.4;
  }
}
@keyframes rgb-split-blue {
  0%, 100% {
    transform: translate(0);
    filter: hue-rotate(240deg);
    opacity: 0;
  }
  15% {
    transform: translate(3px, 1px);
    filter: hue-rotate(240deg);
    opacity: 0.6;
  }
  35% {
    transform: translate(-2px, 2px);
    filter: hue-rotate(240deg);
    opacity: 0.8;
  }
  55% {
    transform: translate(2px, -2px);
    filter: hue-rotate(240deg);
    opacity: 0.4;
  }
  75% {
    transform: translate(-1px, 1px);
    filter: hue-rotate(240deg);
    opacity: 0.7;
  }
}
.glitch-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='static'%3E%3CfeTurbulence baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0 0 0 0 0 0.4 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23static)' opacity='0.6'/%3E%3C/svg%3E");
  animation: static-flicker 0.1s steps(8) infinite;
  pointer-events: none;
  z-index: 98;
  opacity: 0;
}

.glitch-active .glitch-static {
  animation: static-show 0.6s ease-out;
}

@keyframes static-flicker {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1px, 1px);
  }
  50% {
    transform: translate(1px, -1px);
  }
  75% {
    transform: translate(-1px, -1px);
  }
}
@keyframes static-show {
  0%, 90%, 100% {
    opacity: 0;
  }
  10%, 80% {
    opacity: 0.1;
  }
  20%, 70% {
    opacity: 0.2;
  }
  30%, 60% {
    opacity: 0.15;
  }
  40%, 50% {
    opacity: 0.25;
  }
}
.glitch-hologram {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 255, 0.1) 50%, transparent 70%);
  animation: hologram-sweep 0.8s ease-out;
  pointer-events: none;
  z-index: 97;
}

@keyframes hologram-sweep {
  0% {
    transform: translateX(-100%) skew(-10deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(200%) skew(-10deg);
    opacity: 0;
  }
}
.glitch-data-corruption {
  position: relative;
  overflow: hidden;
}

.glitch-data-corruption::before {
  content: "01100101 01110010 01110010 01101111 01110010";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
  color: var(--neon-red);
  white-space: nowrap;
  animation: data-corruption 0.6s ease-out;
  pointer-events: none;
  z-index: 101;
}

@keyframes data-corruption {
  0%, 90%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  10%, 80% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
  }
  30%, 60% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.5);
  }
}
.glitch-cursor::after {
  content: "█";
  color: var(--neon-red);
  animation: cursor-glitch-blink 0.1s steps(2) infinite;
}

@keyframes cursor-glitch-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}
.glass-card.glitch-active {
  border-color: var(--neon-red);
  box-shadow: 0 0 20px rgba(255, 0, 64, 0.6), inset 0 0 20px rgba(255, 0, 64, 0.1);
}

.glitch-transition-enter {
  animation: section-glitch 0.6s ease-out;
}

.glitch-transition-exit {
  animation: section-glitch-out 0.3s ease-in;
}

@keyframes section-glitch-out {
  0% {
    transform: translate(0);
    opacity: 1;
  }
  100% {
    transform: translate(0, -10px);
    opacity: 0;
  }
}
.glitch-variant-1 {
  animation: glitch-matrix 0.8s ease-out;
}

.glitch-variant-2 {
  animation: glitch-distort 0.7s ease-out;
}

.glitch-variant-3 {
  animation: glitch-fragment 0.9s ease-out;
}

.glitch-variant-4 {
  animation: glitch-cyber-pulse 0.6s ease-out;
}

.glitch-variant-5 {
  animation: glitch-data-stream 1s ease-out;
}

@keyframes glitch-matrix {
  0% {
    transform: translate(0);
    filter: brightness(1) contrast(1);
  }
  10% {
    transform: translate(-1px, 2px) skew(0.2deg);
    filter: brightness(1.5) contrast(1.3) hue-rotate(120deg);
  }
  20% {
    transform: translate(3px, -1px) skew(-0.4deg);
    filter: brightness(0.7) contrast(1.8) hue-rotate(240deg);
  }
  30% {
    transform: translate(-2px, 3px) skew(0.6deg);
    filter: brightness(2) contrast(0.5) hue-rotate(60deg);
  }
  40% {
    transform: translate(1px, -2px) skew(-0.3deg);
    filter: brightness(0.3) contrast(2) hue-rotate(300deg);
  }
  50% {
    transform: translate(-4px, 1px) skew(0.8deg);
    filter: brightness(1.8) contrast(1.1) hue-rotate(180deg);
  }
  60% {
    transform: translate(2px, -4px) skew(-0.7deg);
    filter: brightness(0.9) contrast(1.6) hue-rotate(90deg);
  }
  70% {
    transform: translate(-1px, 2px) skew(0.5deg);
    filter: brightness(1.4) contrast(0.8) hue-rotate(270deg);
  }
  80% {
    transform: translate(3px, -1px) skew(-0.9deg);
    filter: brightness(0.6) contrast(1.9) hue-rotate(45deg);
  }
  90% {
    transform: translate(-2px, 3px) skew(0.2deg);
    filter: brightness(1.7) contrast(1.2) hue-rotate(135deg);
  }
  100% {
    transform: translate(0);
    filter: brightness(1) contrast(1);
  }
}
@keyframes glitch-distort {
  0% {
    transform: scale(1) rotate(0deg);
    filter: blur(0px) saturate(1);
  }
  15% {
    transform: scale(1.02, 0.98) rotate(0.5deg);
    filter: blur(1px) saturate(1.5) hue-rotate(45deg);
  }
  30% {
    transform: scale(0.98, 1.03) rotate(-0.3deg);
    filter: blur(2px) saturate(0.7) hue-rotate(90deg);
  }
  45% {
    transform: scale(1.01, 0.99) rotate(0.8deg);
    filter: blur(0.5px) saturate(1.8) hue-rotate(135deg);
  }
  60% {
    transform: scale(0.99, 1.02) rotate(-0.6deg);
    filter: blur(1.5px) saturate(0.4) hue-rotate(180deg);
  }
  75% {
    transform: scale(1.03, 0.97) rotate(0.4deg);
    filter: blur(0.8px) saturate(1.6) hue-rotate(225deg);
  }
  90% {
    transform: scale(0.97, 1.01) rotate(-0.2deg);
    filter: blur(0.3px) saturate(1.1) hue-rotate(270deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: blur(0px) saturate(1);
  }
}
@keyframes glitch-fragment {
  0%, 100% {
    transform: translate(0);
    clip-path: inset(0% 0% 0% 0%);
    filter: brightness(1);
  }
  10% {
    transform: translate(-3px, 1px);
    clip-path: inset(10% 20% 30% 0%);
    filter: brightness(1.8) hue-rotate(60deg);
  }
  20% {
    transform: translate(2px, -2px);
    clip-path: inset(0% 30% 10% 20%);
    filter: brightness(0.5) hue-rotate(120deg);
  }
  30% {
    transform: translate(-1px, 3px);
    clip-path: inset(20% 0% 20% 30%);
    filter: brightness(2.2) hue-rotate(180deg);
  }
  40% {
    transform: translate(4px, -1px);
    clip-path: inset(30% 10% 0% 20%);
    filter: brightness(0.3) hue-rotate(240deg);
  }
  50% {
    transform: translate(-2px, 2px);
    clip-path: inset(0% 0% 40% 10%);
    filter: brightness(1.5) hue-rotate(300deg);
  }
  60% {
    transform: translate(1px, -3px);
    clip-path: inset(15% 25% 15% 0%);
    filter: brightness(0.8) hue-rotate(30deg);
  }
  70% {
    transform: translate(-3px, 1px);
    clip-path: inset(5% 0% 35% 25%);
    filter: brightness(1.9) hue-rotate(90deg);
  }
  80% {
    transform: translate(2px, -1px);
    clip-path: inset(25% 15% 5% 10%);
    filter: brightness(0.6) hue-rotate(150deg);
  }
  90% {
    transform: translate(-1px, 2px);
    clip-path: inset(0% 10% 20% 30%);
    filter: brightness(1.3) hue-rotate(210deg);
  }
}
@keyframes glitch-cyber-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 64, 0.8);
    filter: brightness(1) contrast(1);
  }
  20% {
    transform: scale(1.02) skew(0.5deg, 0.2deg);
    box-shadow: 0 0 20px 5px rgba(255, 0, 64, 0.6);
    filter: brightness(1.4) contrast(1.3) hue-rotate(45deg);
  }
  40% {
    transform: scale(0.98) skew(-0.3deg, 0.4deg);
    box-shadow: 0 0 40px 10px rgba(0, 255, 255, 0.5);
    filter: brightness(0.7) contrast(1.6) hue-rotate(90deg);
  }
  60% {
    transform: scale(1.01) skew(0.2deg, -0.3deg);
    box-shadow: 0 0 30px 8px rgba(255, 0, 255, 0.7);
    filter: brightness(1.8) contrast(0.9) hue-rotate(135deg);
  }
  80% {
    transform: scale(0.99) skew(-0.4deg, 0.1deg);
    box-shadow: 0 0 15px 3px rgba(0, 255, 0, 0.4);
    filter: brightness(1.1) contrast(1.4) hue-rotate(180deg);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 0, 64, 0);
    filter: brightness(1) contrast(1);
  }
}
@keyframes glitch-data-stream {
  0%, 100% {
    transform: translateY(0);
    background-position: 0% 0%;
    filter: brightness(1);
  }
  10% {
    transform: translateY(-2px) rotateX(2deg);
    background-position: -5% 10%;
    filter: brightness(1.6) hue-rotate(30deg);
  }
  20% {
    transform: translateY(1px) rotateX(-1deg);
    background-position: 10% -5%;
    filter: brightness(0.4) hue-rotate(60deg);
  }
  30% {
    transform: translateY(-3px) rotateX(3deg);
    background-position: -8% 15%;
    filter: brightness(2.1) hue-rotate(90deg);
  }
  40% {
    transform: translateY(2px) rotateX(-2deg);
    background-position: 12% -8%;
    filter: brightness(0.6) hue-rotate(120deg);
  }
  50% {
    transform: translateY(-1px) rotateX(1deg);
    background-position: -3% 20%;
    filter: brightness(1.3) hue-rotate(150deg);
  }
  60% {
    transform: translateY(3px) rotateX(-3deg);
    background-position: 15% -3%;
    filter: brightness(0.8) hue-rotate(180deg);
  }
  70% {
    transform: translateY(-2px) rotateX(2deg);
    background-position: -10% 8%;
    filter: brightness(1.7) hue-rotate(210deg);
  }
  80% {
    transform: translateY(1px) rotateX(-1deg);
    background-position: 8% -10%;
    filter: brightness(0.9) hue-rotate(240deg);
  }
  90% {
    transform: translateY(-1px) rotateX(1deg);
    background-position: -2% 5%;
    filter: brightness(1.2) hue-rotate(270deg);
  }
}
.glitch-extreme-1 {
  animation: glitch-system-crash 1.2s ease-out;
}

.glitch-extreme-2 {
  animation: glitch-quantum-flux 1.5s ease-out;
}

@keyframes glitch-system-crash {
  0% {
    transform: translate(0);
    filter: brightness(1);
    opacity: 1;
  }
  5% {
    transform: translate(-10px, 5px) scale(1.1) skew(2deg);
    filter: brightness(3) contrast(2) hue-rotate(180deg);
  }
  10% {
    transform: translate(8px, -8px) scale(0.9) skew(-3deg);
    filter: brightness(0.1) contrast(3) hue-rotate(90deg);
  }
  15% {
    transform: translate(-6px, 12px) scale(1.05) skew(1deg);
    filter: brightness(2.5) contrast(0.5) hue-rotate(270deg);
  }
  20% {
    transform: translate(15px, -3px) scale(0.85) skew(-4deg);
    filter: brightness(0.2) contrast(2.5) hue-rotate(45deg);
  }
  30% {
    transform: translate(-12px, 7px) scale(1.15) skew(3deg);
    filter: brightness(2.8) contrast(1.2) hue-rotate(135deg);
  }
  40% {
    transform: translate(4px, -15px) scale(0.95) skew(-2deg);
    filter: brightness(0.3) contrast(2.8) hue-rotate(225deg);
  }
  50% {
    transform: translate(-8px, 10px) scale(1.08) skew(5deg);
    filter: brightness(3.2) contrast(0.3) hue-rotate(315deg);
  }
  60% {
    transform: translate(12px, -6px) scale(0.88) skew(-1deg);
    filter: brightness(0.15) contrast(3.5) hue-rotate(60deg);
  }
  70% {
    transform: translate(-5px, 13px) scale(1.03) skew(2deg);
    filter: brightness(2.1) contrast(1.8) hue-rotate(150deg);
  }
  80% {
    transform: translate(7px, -9px) scale(0.97) skew(-3deg);
    filter: brightness(0.7) contrast(2.2) hue-rotate(240deg);
  }
  90% {
    transform: translate(-3px, 4px) scale(1.02) skew(1deg);
    filter: brightness(1.5) contrast(1.5) hue-rotate(330deg);
  }
  100% {
    transform: translate(0);
    filter: brightness(1);
    opacity: 1;
  }
}
@keyframes glitch-quantum-flux {
  0%, 100% {
    transform: translate(0) scale(1);
    filter: brightness(1) blur(0px);
    opacity: 1;
  }
  8% {
    transform: translate(-2px, 3px) scale(1.02) rotateZ(0.5deg);
    filter: brightness(1.8) blur(0.5px) hue-rotate(45deg);
    opacity: 0.9;
  }
  16% {
    transform: translate(4px, -1px) scale(0.98) rotateZ(-0.3deg);
    filter: brightness(0.4) blur(1px) hue-rotate(90deg);
    opacity: 0.7;
  }
  24% {
    transform: translate(-1px, 2px) scale(1.01) rotateZ(0.8deg);
    filter: brightness(2.2) blur(0.3px) hue-rotate(135deg);
    opacity: 0.95;
  }
  32% {
    transform: translate(3px, -4px) scale(0.99) rotateZ(-0.6deg);
    filter: brightness(0.6) blur(1.5px) hue-rotate(180deg);
    opacity: 0.6;
  }
  40% {
    transform: translate(-3px, 1px) scale(1.03) rotateZ(0.4deg);
    filter: brightness(1.6) blur(0.8px) hue-rotate(225deg);
    opacity: 0.8;
  }
  48% {
    transform: translate(1px, -3px) scale(0.97) rotateZ(-0.7deg);
    filter: brightness(0.8) blur(1.2px) hue-rotate(270deg);
    opacity: 0.85;
  }
  56% {
    transform: translate(-4px, 2px) scale(1.04) rotateZ(0.2deg);
    filter: brightness(1.9) blur(0.4px) hue-rotate(315deg);
    opacity: 0.75;
  }
  64% {
    transform: translate(2px, -2px) scale(0.96) rotateZ(-0.9deg);
    filter: brightness(0.5) blur(1.8px) hue-rotate(30deg);
    opacity: 0.9;
  }
  72% {
    transform: translate(-1px, 4px) scale(1.01) rotateZ(0.6deg);
    filter: brightness(1.4) blur(0.6px) hue-rotate(60deg);
    opacity: 0.65;
  }
  80% {
    transform: translate(3px, -1px) scale(0.99) rotateZ(-0.4deg);
    filter: brightness(0.9) blur(1px) hue-rotate(120deg);
    opacity: 0.8;
  }
  88% {
    transform: translate(-2px, 3px) scale(1.02) rotateZ(0.3deg);
    filter: brightness(1.2) blur(0.7px) hue-rotate(210deg);
    opacity: 0.9;
  }
  96% {
    transform: translate(1px, -1px) scale(1.01) rotateZ(-0.1deg);
    filter: brightness(1.1) blur(0.2px) hue-rotate(300deg);
    opacity: 0.95;
  }
}
.glitch-text-binary {
  position: relative;
}

.glitch-text-binary::before {
  content: "01001000 01000001 01000011 01001011";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Courier New", monospace;
  font-size: 0.6em;
  color: var(--neon-green);
  animation: binary-corruption 0.8s ease-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes binary-corruption {
  0%, 80%, 100% {
    opacity: 0;
  }
  20%, 60% {
    opacity: 0.9;
  }
  40% {
    opacity: 1;
  }
}
.glitch-trigger-1 {
  animation: micro-glitch-1 0.3s ease-out;
}

.glitch-trigger-2 {
  animation: micro-glitch-2 0.2s ease-out;
}

.glitch-trigger-3 {
  animation: micro-glitch-3 0.4s ease-out;
}

@keyframes micro-glitch-1 {
  0%, 100% {
    transform: translate(0);
  }
  33% {
    transform: translate(-1px, 1px) skew(0.1deg);
  }
  66% {
    transform: translate(1px, -1px) skew(-0.1deg);
  }
}
@keyframes micro-glitch-2 {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3) hue-rotate(30deg);
  }
}
@keyframes micro-glitch-3 {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.01) skew(0.2deg);
  }
  75% {
    transform: scale(0.99) skew(-0.2deg);
  }
}
.multi-glitch {
  position: relative;
}

.multi-glitch::before,
.multi-glitch::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  pointer-events: none;
}

.multi-glitch::before {
  animation: multi-layer-1 0.6s ease-out;
  mix-blend-mode: difference;
  z-index: -1;
}

.multi-glitch::after {
  animation: multi-layer-2 0.6s ease-out;
  mix-blend-mode: exclusion;
  z-index: -2;
}

@keyframes multi-layer-1 {
  0%, 100% {
    transform: translate(0);
    opacity: 0;
  }
  20% {
    transform: translate(-3px, 1px);
    opacity: 0.7;
  }
  40% {
    transform: translate(2px, -2px);
    opacity: 0.8;
  }
  60% {
    transform: translate(-1px, 3px);
    opacity: 0.6;
  }
  80% {
    transform: translate(3px, -1px);
    opacity: 0.9;
  }
}
@keyframes multi-layer-2 {
  0%, 100% {
    transform: translate(0);
    opacity: 0;
  }
  15% {
    transform: translate(2px, 2px);
    opacity: 0.6;
  }
  35% {
    transform: translate(-3px, -1px);
    opacity: 0.8;
  }
  55% {
    transform: translate(1px, -3px);
    opacity: 0.5;
  }
  75% {
    transform: translate(-2px, 2px);
    opacity: 0.7;
  }
}
.glitch-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 95;
  overflow: hidden;
}

.glitch-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--neon-red);
  animation: particle-drift 2s linear infinite;
  opacity: 0;
}

.glitch-particle:nth-child(odd) {
  background: var(--neon-cyan);
  animation-duration: 1.5s;
}

.glitch-particle:nth-child(3n) {
  background: var(--neon-pink);
  animation-duration: 2.5s;
}

@keyframes particle-drift {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(var(--drift-x, 50px), var(--drift-y, -100px)) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--drift-x, 100px), var(--drift-y, -200px)) scale(0);
  }
}
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 94;
  background: transparent;
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: var(--neon-green);
  animation: matrix-fall 3s linear infinite;
  opacity: 0.6;
  text-shadow: 0 0 5px var(--neon-green);
}

@keyframes matrix-fall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}
.em-interference {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 93;
  background: repeating-linear-gradient(90deg, transparent 0px, rgba(255, 0, 64, 0.02) 1px, transparent 2px, rgba(0, 255, 255, 0.02) 3px, transparent 4px);
  animation: interference-sweep 0.8s ease-out;
}

@keyframes interference-sweep {
  0% {
    transform: translateX(-100%) skew(5deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
    transform: translateX(0%) skew(-2deg);
  }
  100% {
    transform: translateX(100%) skew(3deg);
    opacity: 0;
  }
}
.fractal-distortion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 92;
  background: radial-gradient(ellipse at center, rgba(255, 0, 64, 0.1) 0%, transparent 30%, rgba(0, 255, 255, 0.05) 60%, transparent 100%);
  animation: fractal-pulse 1s ease-in-out;
  mix-blend-mode: overlay;
}

@keyframes fractal-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0;
  }
  25% {
    transform: scale(1.1) rotate(2deg);
    opacity: 0.6;
  }
  50% {
    transform: scale(0.9) rotate(-1deg);
    opacity: 0.8;
  }
  75% {
    transform: scale(1.05) rotate(1deg);
    opacity: 0.4;
  }
}
.binary-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 91;
  font-family: "Courier New", monospace;
  font-size: 10px;
  line-height: 12px;
  color: rgba(0, 255, 0, 0.3);
  animation: binary-scroll 2s linear;
  overflow: hidden;
}

@keyframes binary-scroll {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}
.energy-field {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 90;
  background: radial-gradient(circle at center, rgba(255, 0, 64, 0.02) 0%, rgba(255, 0, 64, 0.05) 20%, rgba(0, 255, 255, 0.03) 40%, rgba(255, 0, 255, 0.04) 60%, transparent 80%);
  animation: energy-pulse 1.2s ease-out;
}

@keyframes energy-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0deg);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scale(0.8) rotate(45deg);
    opacity: 0.8;
  }
  60% {
    transform: translate(-50%, -50%) scale(1.2) rotate(-30deg);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(2) rotate(90deg);
    opacity: 0;
  }
}
.quantum-flux {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 89;
  background: repeating-linear-gradient(45deg, transparent 0px, rgba(255, 0, 255, 0.03) 1px, transparent 10px), repeating-linear-gradient(-45deg, transparent 0px, rgba(0, 255, 255, 0.02) 1px, transparent 15px);
  animation: flux-shift 1.5s ease-out;
}

@keyframes flux-shift {
  0% {
    transform: rotate(0deg) scale(1);
    opacity: 0;
  }
  25% {
    transform: rotate(5deg) scale(1.02);
    opacity: 0.7;
  }
  50% {
    transform: rotate(-3deg) scale(0.98);
    opacity: 0.9;
  }
  75% {
    transform: rotate(2deg) scale(1.01);
    opacity: 0.5;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 0;
  }
}
.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 88;
  background-image: radial-gradient(circle at 20% 30%, rgba(0, 255, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 80% 20%, rgba(255, 0, 64, 0.1) 2px, transparent 2px), radial-gradient(circle at 60% 80%, rgba(255, 0, 255, 0.1) 2px, transparent 2px), radial-gradient(circle at 30% 70%, rgba(0, 255, 0, 0.1) 2px, transparent 2px);
  background-size: 100px 100px, 150px 150px, 120px 120px, 80px 80px;
  animation: neural-pulse 2s ease-in-out;
}

@keyframes neural-pulse {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}
.text-corruption-advanced {
  position: relative;
}

.text-corruption-advanced::before {
  content: attr(data-corruption);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--neon-red);
  animation: corruption-flicker 0.5s steps(4) infinite;
  clip-path: inset(0 0 60% 0);
}

.text-corruption-advanced::after {
  content: attr(data-corruption);
  position: absolute;
  top: 2px;
  left: 2px;
  width: 100%;
  height: 100%;
  color: var(--neon-cyan);
  animation: corruption-flicker-2 0.7s steps(6) infinite;
  clip-path: inset(60% 0 0 0);
}

@keyframes corruption-flicker {
  0% {
    clip-path: inset(0 0 60% 0);
  }
  25% {
    clip-path: inset(20% 0 40% 0);
  }
  50% {
    clip-path: inset(40% 0 20% 0);
  }
  75% {
    clip-path: inset(10% 0 50% 0);
  }
  100% {
    clip-path: inset(30% 0 30% 0);
  }
}
@keyframes corruption-flicker-2 {
  0% {
    clip-path: inset(60% 0 0 0);
  }
  17% {
    clip-path: inset(40% 0 20% 0);
  }
  33% {
    clip-path: inset(80% 0 0% 0);
  }
  50% {
    clip-path: inset(50% 0 30% 0);
  }
  67% {
    clip-path: inset(70% 0 10% 0);
  }
  83% {
    clip-path: inset(60% 0 20% 0);
  }
  100% {
    clip-path: inset(75% 0 5% 0);
  }
}
.glitch-active,
.glitch-active *,
.glitch-variant-1,
.glitch-variant-2,
.glitch-variant-3,
.glitch-variant-4,
.glitch-variant-5,
.glitch-extreme-1,
.glitch-extreme-2,
.glitch-particles,
.matrix-rain,
.em-interference,
.fractal-distortion,
.binary-overlay,
.energy-field,
.quantum-flux,
.neural-network {
  will-change: transform, filter, opacity, clip-path, box-shadow, background-position;
}
