/* Tokyo Night Enhanced - Professional Edition with WOW Effects */
/* Engineered by Antikythera Technologies */

/* Import base theme and glassmorphism */
@import url('tokyo-night-theme.css');
@import url('glassmorphism.css');

/* Enhanced Color System */
:root {
  /* Neon Glow Effects */
  --neon-blue: #00d9ff;
  --neon-purple: #ff00ff;
  --neon-pink: #ff8fa3;
  
  /* Enhanced Gradients */
  --gradient-neon: linear-gradient(135deg, #7aa2f7 0%, #bb9af7 33%, #ff8fa3 66%, #7dcfff 100%);
  --gradient-cyber: linear-gradient(135deg, #00d9ff 0%, #ff00ff 100%);
  --gradient-matrix: linear-gradient(135deg, #7aa2f7 0%, #73daca 50%, #9ece6a 100%);
  
  /* Animated Gradient Background */
  --animated-gradient: linear-gradient(-45deg, #1a1b26, #24283b, #7aa2f7, #bb9af7, #1a1b26);
}

/* Enhanced Body with Animated Background */
body {
  background: var(--tn-bg-primary);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--animated-gradient);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Particle Effect Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--tn-cyan);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 20s linear infinite;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px);
    opacity: 0;
  }
}

/* Enhanced Header with Glass Effect */
.header {
  background: rgba(26, 27, 38, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(122, 162, 247, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header.scrolled {
  background: rgba(26, 27, 38, 0.9);
  border-bottom-color: rgba(187, 154, 247, 0.3);
  box-shadow: 0 8px 32px rgba(122, 162, 247, 0.2);
}

/* Logo with Glow Effect */
.header__logo {
  position: relative;
}

.header__logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(122, 162, 247, 0.4) 0%, transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.header__logo:hover {
  color: var(--tn-cyan);
  text-shadow: 0 0 20px rgba(125, 207, 255, 0.5);
}

/* Enhanced Navigation Links */
.menu__link {
  position: relative;
  isolation: isolate;
}

.menu__link::before {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--tn-gradient-primary);
  border-radius: 12px;
  opacity: 0;
  filter: blur(10px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.menu__link:hover::before {
  opacity: 0.5;
}

.menu__link:hover {
  color: var(--tn-text-primary);
  transform: translateY(-2px);
  text-shadow: 0 0 20px rgba(122, 162, 247, 0.8);
}

/* Neon Buttons */
.button {
  background: linear-gradient(135deg, rgba(122, 162, 247, 0.9) 0%, rgba(187, 154, 247, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(122, 162, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button:hover::after {
  width: 300px;
  height: 300px;
}

.button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 15px 40px rgba(122, 162, 247, 0.4),
    0 0 60px rgba(122, 162, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Professional Glass Cards with Glow */
.glass-card-enhanced {
  background: rgba(36, 40, 59, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-card-enhanced::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(122, 162, 247, 0.1) 90deg,
    transparent 180deg
  );
  animation: rotate 10s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.glass-card-enhanced:hover::before {
  opacity: 1;
}

.glass-card-enhanced:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(122, 162, 247, 0.3);
  box-shadow: 
    0 20px 60px rgba(122, 162, 247, 0.3),
    0 0 100px rgba(122, 162, 247, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hero Section with Matrix Effect */
.hero-enhanced {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #1a1b26;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(122, 162, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(187, 154, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 40% 40%, rgba(125, 207, 255, 0.2) 0%, transparent 40%);
  animation: pulse-bg 8s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Text with Glow Animation */
.glow-text {
  text-shadow: 
    0 0 10px rgba(122, 162, 247, 0.8),
    0 0 20px rgba(122, 162, 247, 0.6),
    0 0 30px rgba(122, 162, 247, 0.4);
  animation: text-glow 2s ease-in-out infinite alternate;
}

@keyframes text-glow {
  from { text-shadow: 
    0 0 10px rgba(122, 162, 247, 0.8),
    0 0 20px rgba(122, 162, 247, 0.6),
    0 0 30px rgba(122, 162, 247, 0.4);
  }
  to { text-shadow: 
    0 0 20px rgba(187, 154, 247, 0.8),
    0 0 30px rgba(187, 154, 247, 0.6),
    0 0 40px rgba(187, 154, 247, 0.4);
  }
}

/* Holographic Effect */
.holographic {
  background: linear-gradient(
    135deg,
    #7aa2f7 0%,
    #bb9af7 25%,
    #ff8fa3 50%,
    #7dcfff 75%,
    #7aa2f7 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographic-shift 3s ease infinite;
  filter: brightness(1.2);
}

@keyframes holographic-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cyber Grid Background */
.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(122, 162, 247, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 247, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  pointer-events: none;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Floating Elements */
.float-element {
  animation: float-advanced 6s ease-in-out infinite;
}

@keyframes float-advanced {
  0%, 100% { 
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% { 
    transform: translateY(-20px) translateX(10px) rotate(2deg);
  }
  50% { 
    transform: translateY(-10px) translateX(-10px) rotate(-1deg);
  }
  75% { 
    transform: translateY(-15px) translateX(5px) rotate(1deg);
  }
}

/* Enhanced Service Cards */
.service-card-enhanced {
  background: rgba(36, 40, 59, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon Glow Effect */
.icon-glow {
  font-size: 3rem;
  text-shadow: 
    0 0 10px rgba(122, 162, 247, 0.8),
    0 0 20px rgba(122, 162, 247, 0.6),
    0 0 30px rgba(122, 162, 247, 0.4);
  display: inline-block;
  filter: brightness(1.2);
  transition: all 0.3s ease;
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(122, 162, 247, 0.1);
  border: 2px solid rgba(122, 162, 247, 0.3);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.icon-wrapper:hover {
  background: rgba(122, 162, 247, 0.2);
  border-color: rgba(122, 162, 247, 0.5);
  transform: scale(1.1);
}

.icon-wrapper:hover .icon-glow {
  text-shadow: 
    0 0 15px rgba(122, 162, 247, 1),
    0 0 25px rgba(122, 162, 247, 0.8),
    0 0 35px rgba(122, 162, 247, 0.6);
}

.service-card-enhanced::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-neon);
  border-radius: 20px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  filter: blur(10px);
}

.service-card-enhanced:hover::before {
  opacity: 0.7;
}

.service-card-enhanced:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: transparent;
  box-shadow: 
    0 20px 40px rgba(122, 162, 247, 0.4),
    0 0 80px rgba(122, 162, 247, 0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  body::before {
    animation-duration: 20s;
  }
  
  .glass-card-enhanced {
    padding: 1.5rem;
  }
  
  .button {
    padding: 1rem 2rem;
    font-size: 0.875rem;
  }
  
  .hero-enhanced {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  
  @keyframes particle-float {
    0% {
      transform: translateY(100vh) translateX(0);
      opacity: 0;
    }
    20% {
      opacity: 0.5;
    }
    80% {
      opacity: 0.5;
    }
    100% {
      transform: translateY(-100vh) translateX(50px);
      opacity: 0;
    }
  }
}