/* Futuristic CSS for TRON MEGATEAM */

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
  background: #0A0A0A;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}



/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes colorFlash {
  0% { 
    background: linear-gradient(45deg, #FF060A, #FF4444, #CC0408);
    box-shadow: 0 0 20px #FF060A;
  }
  14% { 
    background: linear-gradient(45deg, #00FFFF, #0099FF, #0066CC);
    box-shadow: 0 0 20px #00FFFF;
  }
  28% { 
    background: linear-gradient(45deg, #FF00FF, #CC00CC, #990099);
    box-shadow: 0 0 20px #FF00FF;
  }
  42% { 
    background: linear-gradient(45deg, #00FF00, #00CC00, #009900);
    box-shadow: 0 0 20px #00FF00;
  }
  57% { 
    background: linear-gradient(45deg, #FFFF00, #CCCC00, #999900);
    box-shadow: 0 0 20px #FFFF00;
  }
  71% { 
    background: linear-gradient(45deg, #FF8800, #CC6600, #994400);
    box-shadow: 0 0 20px #FF8800;
  }
  85% { 
    background: linear-gradient(45deg, #8800FF, #6600CC, #440099);
    box-shadow: 0 0 20px #8800FF;
  }
  100% { 
    background: linear-gradient(45deg, #FF060A, #FF4444, #CC0408);
    box-shadow: 0 0 20px #FF060A;
  }
}

.color-flash-hover:hover {
  animation: colorFlash 0.6s ease-in-out infinite;
}

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

@keyframes glowPulse {
  0%, 100% {
    text-shadow: 0 0 2px currentColor, 0 0 4px currentColor, 0 0 6px currentColor;
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 3px currentColor, 0 0 6px currentColor, 0 0 8px currentColor;
    filter: brightness(1.05);
  }
}

@keyframes tronGlow {
  0%, 100% {
    text-shadow: 0 0 2px rgba(255, 6, 10, 0.3), 0 0 4px rgba(255, 6, 10, 0.3), 0 0 6px rgba(255, 6, 10, 0.3);
    filter: brightness(1);
  }
  50% {
    text-shadow: 0 0 3px rgba(255, 6, 10, 0.3), 0 0 6px rgba(255, 6, 10, 0.3), 0 0 8px rgba(255, 6, 10, 0.3);
    filter: brightness(1.03);
  }
}

@keyframes matrixRain {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

@keyframes hologram {
  0%, 100% {
    opacity: 0.8;
    filter: hue-rotate(0deg) brightness(1);
  }
  25% {
    opacity: 0.6;
    filter: hue-rotate(15deg) brightness(1.1);
  }
  50% {
    opacity: 0.9;
    filter: hue-rotate(-10deg) brightness(1.2);
  }
  75% {
    opacity: 0.7;
    filter: hue-rotate(10deg) brightness(1.1);
  }
}

@keyframes glitch {
  0%, 100% {
    transform: translateX(0);
    filter: hue-rotate(0deg);
  }
  10% {
    transform: translateX(-2px) skew(-5deg);
    filter: hue-rotate(90deg);
  }
  20% {
    transform: translateX(2px) skew(5deg);
    filter: hue-rotate(180deg);
  }
  30% {
    transform: translateX(-1px) skew(-2deg);
    filter: hue-rotate(270deg);
  }
  40% {
    transform: translateX(1px) skew(2deg);
    filter: hue-rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes rotate3d {
  0% {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  33% {
    transform: rotateX(120deg) rotateY(120deg) rotateZ(120deg);
  }
  66% {
    transform: rotateX(240deg) rotateY(240deg) rotateZ(240deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

@keyframes cyberScan {
  0% {
    top: 0;
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

@keyframes dataStream {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 10px));
    opacity: 0;
  }
}

/* TRON glow effects - Reduced intensity */
.glow-text {
  text-shadow: 0 0 2px currentColor, 0 0 4px currentColor, 0 0 6px currentColor;
}

.text-shadow-glow {
  text-shadow: 0 0 4px rgba(255, 6, 10, 0.18), 0 0 8px rgba(255, 6, 10, 0.12), 0 0 12px rgba(255, 6, 10, 0.06);
}

/* TRON Holographic effects */
.holographic-card {
  background: linear-gradient(45deg, 
    rgba(255, 6, 10, 0.1) 0%, 
    rgba(255, 68, 68, 0.1) 25%, 
    rgba(255, 6, 10, 0.1) 50%, 
    rgba(204, 4, 8, 0.1) 75%, 
    rgba(255, 6, 10, 0.1) 100%);
  background-size: 200% 200%;
  animation: hologram 3s ease-in-out infinite;
  border: 1px solid rgba(255, 6, 10, 0.3);
  backdrop-filter: blur(10px);
}

/* TRON grid pattern */
.tron-grid {
  background-image: 
    linear-gradient(rgba(255, 6, 10, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 6, 10, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* TRON Futuristic cards */
.cyber-card {
  background: linear-gradient(135deg, 
    rgba(0, 0, 0, 0.9) 0%, 
    rgba(17, 17, 17, 0.8) 50%, 
    rgba(0, 0, 0, 0.9) 100%);
  border: 1px solid rgba(255, 6, 10, 0.2);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

.cyber-card:hover {
  border-color: rgba(255, 6, 10, 0.15);
  box-shadow: 
    0 0 20px rgba(255, 6, 10, 0.06),
    inset 0 0 20px rgba(255, 6, 10, 0.03);
  transform: translateY(-5px);
}

/* Glitch text effect */
.glitch-text {
  position: relative;
  color: #00ffff;
  font-weight: bold;
}

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

.glitch-text::before {
  color: #ff0080;
  z-index: -1;
  animation: glitch 0.3s ease-in-out infinite alternate;
}

.glitch-text::after {
  color: #39ff14;
  z-index: -2;
  animation: glitch 0.3s ease-in-out infinite alternate-reverse;
}

/* Matrix rain effect */
.matrix-char {
  position: absolute;
  color: #39ff14;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  animation: matrixRain linear infinite;
  opacity: 0.7;
}

/* Neon borders */
.neon-border {
  border: 2px solid transparent;
  background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
              linear-gradient(45deg, #ff060a, #00d4ff, #9d4edd, #39ff14) border-box;
  border-radius: 12px;
  position: relative;
}

.neon-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(45deg, #ff060a, #00d4ff, #9d4edd, #39ff14);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: subtract;
  filter: blur(1px);
  opacity: 0.8;
}

/* Futuristic buttons */
.cyber-button {
  position: relative;
  background: linear-gradient(45deg, 
    rgba(255, 6, 10, 0.8) 0%, 
    rgba(255, 0, 128, 0.8) 50%, 
    rgba(138, 43, 226, 0.8) 100%);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.cyber-button:hover {
  box-shadow: 
    0 0 20px rgba(0, 255, 255, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.8);
}

/* TRON Stats counter glow - Reduced intensity */
.stat-glow {
  color: #FF060A;
  text-shadow: 
    0 0 2px rgba(255, 6, 10, 0.3),
    0 0 4px rgba(255, 6, 10, 0.3),
    0 0 8px rgba(255, 6, 10, 0.3),
    0 0 12px rgba(255, 6, 10, 0.3);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

/* Animated background elements */
.floating-element {
  position: absolute;
  border: 2px solid;
  border-radius: 4px;
  animation: float 6s ease-in-out infinite;
  opacity: 0.3;
}

/* Holographic text */
.holographic-text {
  background: linear-gradient(45deg, #ff0080, #00ffff, #ff0080, #00ffff);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hologram 3s ease-in-out infinite;
}

/* Cyber scan line */
.cyber-scan-line {
  position: relative;
}

.cyber-scan-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #00ffff 50%, 
    transparent 100%);
  animation: cyberScan 2s linear infinite;
}

/* Data stream particles */
.data-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #39ff14;
  border-radius: 50%;
  animation: dataStream 3s linear infinite;
  box-shadow: 0 0 6px #39ff14;
}

/* Responsive typography */
@media (max-width: 768px) {
  .text-8xl {
    font-size: 3rem;
  }
  
  .text-6xl {
    font-size: 2.5rem;
  }
  
  .text-4xl {
    font-size: 1.875rem;
  }
}

/* Focus states for accessibility */
button:focus,
a:focus {
  outline: 2px solid #00ffff;
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

/* Mobile enhanced scrollbar */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: #0a0a0a;
    border: 1px solid rgba(255, 6, 10, 0.2);
    box-shadow: 
      inset 0 0 5px rgba(255, 6, 10, 0.1),
      inset 0 0 10px rgba(0, 212, 255, 0.1);
  }
  
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
      rgba(255, 6, 10, 0.9) 0%, 
      rgba(255, 68, 68, 0.8) 25%,
      rgba(0, 212, 255, 0.8) 75%, 
      rgba(0, 212, 255, 0.9) 100%);
    border-radius: 6px;
    box-shadow: 
      0 0 8px rgba(255, 6, 10, 0.6),
      0 0 15px rgba(0, 212, 255, 0.4),
      inset 0 0 3px rgba(255, 255, 255, 0.2);
    animation: scrollGlow 2s ease-in-out infinite alternate;
  }
  
  ::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
      rgba(0, 212, 255, 0.9) 0%, 
      rgba(255, 6, 10, 0.9) 100%);
    box-shadow: 
      0 0 12px rgba(255, 6, 10, 0.8),
      0 0 20px rgba(0, 212, 255, 0.6),
      inset 0 0 5px rgba(255, 255, 255, 0.3);
  }
}

/* Desktop scrollbar */
@media (min-width: 769px) {
  ::-webkit-scrollbar-track {
    background: #0a0a0a;
    border: 1px solid rgba(0, 255, 255, 0.1);
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff060a, #00d4ff);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00d4ff, #ff060a);
  }
}

/* Scrollbar glow animation for mobile */
@keyframes scrollGlow {
  0% {
    box-shadow: 
      0 0 5px rgba(255, 6, 10, 0.4),
      0 0 10px rgba(0, 212, 255, 0.2),
      inset 0 0 3px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow: 
      0 0 12px rgba(255, 6, 10, 0.8),
      0 0 20px rgba(0, 212, 255, 0.6),
      inset 0 0 5px rgba(255, 255, 255, 0.3);
  }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid #00ffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive "And Beyond" glow effect */
.beyond-glow {
  /* Desktop glow effect - more intense */
  text-shadow: 
    0 0 2px #FF4444,
    0 0 4px #FF4444,
    0 0 6px #FF4444,
    0 1px 0 #FF4444;
}

/* Mobile-specific styling - enhanced visibility over video */
@media (max-width: 768px) {
  .beyond-glow {
    color: #FFFFFF !important;
    text-shadow: 
      0 0 3px #FF4444,
      0 0 6px rgba(255, 68, 68, 0.8),
      0 3px 6px rgba(0, 0, 0, 0.9),
      0 0 20px rgba(0, 0, 0, 0.7);
  }
  
  /* Mobile hero text - maximum visibility over video */
  .mobile-hero-text {
    text-shadow: 
      0 3px 6px rgba(0, 0, 0, 0.9),
      0 0 20px rgba(0, 0, 0, 0.8),
      0 0 40px rgba(0, 0, 0, 0.5);
  }
  
  .mobile-text-white {
    color: #FFFFFF !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FFFFFF !important;
  }
  
  .mobile-text-tron-red {
    color: #FF4444 !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #FF4444 !important;
  }
  
  /* Enhanced mobile notifications */
  .bg-yellow-600\/30 {
    background-color: rgba(217, 119, 6, 0.4) !important;
    border-color: rgba(245, 158, 11, 0.8) !important;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none;
  }
}