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

:root {
  --bg-primary: #000000;
  --bg-secondary: #05050a;
  --bg-card: #0d0d14;
  --bg-card-hover: #151520;

  --color-red: #ff0040;
  --color-red-glow: rgba(255, 0, 64, 0.7);
  --color-blue: #00d4ff;
  --color-blue-glow: rgba(0, 212, 255, 0.7);
  --color-green: #00ff88;
  --color-green-glow: rgba(0, 255, 136, 0.7);
  --color-cyan: #00ffff;
  --color-purple: #bf00ff;

  --text-primary: #f5f5f5;
  --text-secondary: #c0c8d0;
  --text-muted: #9098a0;

  --border-default: #202030;
  --border-glow-red: 0 0 20px var(--color-red-glow), inset 0 0 8px rgba(255, 0, 64, 0.25);
  --border-glow-blue: 0 0 20px var(--color-blue-glow), inset 0 0 8px rgba(0, 212, 255, 0.25);
  --border-glow-green: 0 0 20px var(--color-green-glow), inset 0 0 8px rgba(0, 255, 136, 0.25);

  --spacing-xs: 4px;
  --spacing-sm: 10px;
  --spacing-md: 16px;
  --spacing-lg: 22px;
  --spacing-xl: 35px;

  --container-max: 1100px;
  --border-radius: 5px;
  --border-radius-lg: 8px;

  --transition-fast: 0.12s;
  --transition-normal: 0.2s;
  --transition-slow: 0.35s;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(0, 212, 255, 0.06) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(0, 212, 255, 0.06) 50%, transparent 50.3%),
    linear-gradient(90deg, transparent 49.7%, rgba(0, 255, 136, 0.03) 50%, transparent 50.3%),
    linear-gradient(0deg, transparent 49.7%, rgba(0, 255, 136, 0.03) 50%, transparent 50.3%);
  background-size: 30px 30px, 30px 30px, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: 0;
  animation: gridMove 15s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 212, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 0, 64, 0.08), transparent),
    radial-gradient(ellipse 40% 30% at 10% 50%, rgba(0, 255, 136, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 6s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 212, 255, 0.3) 20%, 
    rgba(0, 212, 255, 0.8) 50%, 
    rgba(0, 212, 255, 0.3) 80%, 
    transparent 100%);
  box-shadow: 
    0 0 10px var(--color-blue),
    0 0 20px rgba(0, 212, 255, 0.5),
    0 0 40px rgba(0, 212, 255, 0.3);
  opacity: 0;
  animation: scanlineMove 6s linear infinite;
  pointer-events: none;
  z-index: 100;
}

@keyframes scanlineMove {
  0% { top: -10px; opacity: 0; }
  8% { opacity: 0; }
  92% { opacity: 0; }
  100% { top: 100vh; opacity: 0; }
}

.data-stream {
  position: fixed;
  right: 20px;
  top: 100px;
  width: 2px;
  height: 200px;
  background: linear-gradient(180deg, 
    transparent 0%, 
    rgba(0, 255, 136, 0.3) 20%, 
    rgba(0, 255, 136, 0.8) 50%, 
    rgba(0, 255, 136, 0.3) 80%, 
    transparent 100%);
  animation: dataStream 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 50;
}

@keyframes dataStream {
  0%, 100% { opacity: 0.3; height: 150px; }
  50% { opacity: 0.8; height: 250px; }
}

.data-stream::before,
.data-stream::after {
  content: '';
  position: absolute;
  right: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-green);
  animation: dataParticle 1s ease-in-out infinite;
}

.data-stream::before { top: 30%; animation-delay: 0s; }
.data-stream::after { top: 70%; animation-delay: 0.5s; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 212, 255, 0.25);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue), var(--color-green));
  animation: borderGlow 2.5s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 2px solid var(--color-blue);
  box-shadow: var(--border-glow-blue);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), transparent);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 12px var(--color-blue-glow); }
  50% { box-shadow: 0 0 30px var(--color-blue-glow), 0 0 50px rgba(0, 212, 255, 0.35); }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 50%, var(--color-blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 2.5s linear infinite;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes textShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.nav {
  display: flex;
  gap: var(--spacing-sm);
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: var(--border-radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.25), transparent);
  transition: left var(--transition-normal);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--color-blue);
  border-color: var(--color-blue);
  box-shadow: var(--border-glow-blue);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--color-blue);
  border-color: var(--color-blue);
  background: rgba(0, 212, 255, 0.15);
  box-shadow: var(--border-glow-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--color-blue);
  box-shadow: 0 0 15px var(--color-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: 8px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  border-color: var(--color-blue);
  box-shadow: var(--border-glow-blue);
}

.mobile-menu-btn svg {
  width: 20px;
  height: 20px;
}

.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding: var(--spacing-lg) 0;
}

.page-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.page-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.page-title::before,
.page-title::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-red), transparent);
}

.page-title::before {
  right: calc(100% + 15px);
  background: linear-gradient(90deg, transparent, var(--color-red));
}

.page-title::after {
  left: calc(100% + 15px);
}

.page-title .highlight {
  background: linear-gradient(135deg, var(--color-red), var(--color-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  font-family: var(--font-body);
}

.btn {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform var(--transition-normal);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: transparent;
  color: var(--color-blue);
  border-color: var(--color-blue);
}

.btn-primary:hover {
  background: var(--color-blue);
  color: var(--bg-primary);
  box-shadow: var(--border-glow-blue);
}

.btn-secondary {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-secondary:hover {
  background: var(--color-green);
  color: var(--bg-primary);
  box-shadow: var(--border-glow-green);
}

.btn-danger {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}

.btn-danger:hover {
  background: var(--color-red);
  color: var(--bg-primary);
  box-shadow: var(--border-glow-red);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.75rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  border-color: var(--color-blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.15);
}

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

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 8px var(--color-blue), 0 0 15px var(--color-blue);
  }
  50% {
    box-shadow: 0 0 20px var(--color-blue), 0 0 40px rgba(0, 212, 255, 0.4);
  }
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.8; }
  94% { opacity: 1; }
  95% { opacity: 0.9; }
  96% { opacity: 1; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.neon-text {
  text-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 20px currentColor;
}

.neon-border {
  box-shadow:
    0 0 8px var(--color-blue),
    inset 0 0 8px rgba(0, 212, 255, 0.1);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: var(--spacing-xl) 0;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red), var(--color-blue));
  animation: dividerGlow 2s ease-in-out infinite;
}

@keyframes dividerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-default);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: var(--color-blue);
  text-shadow: 0 0 10px var(--color-blue);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--border-radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-card);
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-blue);
  letter-spacing: 1px;
}

.modal-close {
  background: none;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  border-color: var(--color-red);
  color: var(--color-red);
  box-shadow: var(--border-glow-red);
}

.modal-body {
  padding: var(--spacing-md);
  max-height: 65vh;
  overflow-y: auto;
}

.modal-footer {
  padding: var(--spacing-md);
  border-top: 1px solid var(--border-default);
  display: flex;
  justify-content: flex-end;
  gap: var(--spacing-sm);
}

.empty-state {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.3;
}

.cyber-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  animation: cursorPulse 2s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.4; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page-title { font-size: 2.2rem; letter-spacing: 3px; }
}

@media (max-width: 768px) {
  :root {
    --spacing-md: 15px;
    --spacing-lg: 25px;
    --spacing-xl: 35px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border-default);
    flex-direction: column;
    padding: var(--spacing-md);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.8rem;
    letter-spacing: 2px;
  }

  .page-title::before,
  .page-title::after {
    display: none;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .header {
    height: 65px;
  }

  .main-content {
    margin-top: 65px;
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--border-default);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-blue);
  box-shadow: 0 0 10px var(--color-blue);
}

::selection {
  background: rgba(0, 212, 255, 0.3);
  color: var(--text-primary);
}
