:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --dark: #0f172a;
  --darkest: #020617;
  --light: #f8fafc;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--darkest);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: float 15s infinite;
  opacity: 0.3;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 25s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 20s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 24s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 19s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 21s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 23s; }

@keyframes float {
  0%, 100% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

.container {
  text-align: center;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.ip-display {
  position: relative;
  display: inline-block;
}

.label {
  font-size: 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
  }
  to {
    text-shadow: 0 0 30px rgba(6, 182, 212, 0.8), 0 0 40px rgba(6, 182, 212, 0.6);
  }
}

.ip-wrapper {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 40px 60px;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 
    0 0 60px rgba(99, 102, 241, 0.3),
    0 0 100px rgba(139, 92, 246, 0.2),
    inset 0 0 60px rgba(6, 182, 212, 0.1);
  animation: pulse-border 3s ease-in-out infinite;
  overflow: hidden;
}

.ip-wrapper::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    var(--primary), 
    var(--secondary), 
    var(--accent), 
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  border-radius: 22px;
  z-index: -1;
  background-size: 400% 400%;
  animation: gradient-move 4s ease infinite;
}

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

@keyframes pulse-border {
  0%, 100% {
    box-shadow: 
      0 0 60px rgba(99, 102, 241, 0.3),
      0 0 100px rgba(139, 92, 246, 0.2),
      inset 0 0 60px rgba(6, 182, 212, 0.1);
  }
  50% {
    box-shadow: 
      0 0 80px rgba(99, 102, 241, 0.4),
      0 0 120px rgba(139, 92, 246, 0.3),
      inset 0 0 80px rgba(6, 182, 212, 0.15);
  }
}

.ip-address {
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
  animation: text-shimmer 3s ease-in-out infinite alternate;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
  position: relative;
}

@keyframes text-shimmer {
  0% {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
  }
  100% {
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 0.5));
  }
}

.ip-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  animation: bounce 2s ease-in-out infinite;
}

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

.ip-icon svg {
  width: 60px;
  height: 60px;
  fill: var(--accent);
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.5));
}

.info {
  margin-top: 30px;
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan 3s linear infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
  .ip-address {
    font-size: 2.5rem;
  }
  
  .ip-wrapper {
    padding: 30px 40px;
  }
  
  .label {
    font-size: 1rem;
  }
}
