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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0c0c0c;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0a0a0a 100%);
  background-attachment: fixed;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Matrix rain background animation */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Binary rain elements */
.binary-rain {
  position: absolute;
  color: #00ff88;
  font-family: 'Courier New', monospace;
  animation: fall linear infinite;
  opacity: 0.15;
}

/* Small binary - slow speed */
.binary-rain.small {
  font-size: 12px;
  animation-duration: 20s;
  opacity: 0.1;
}

/* Medium binary - medium speed */
.binary-rain.medium {
  font-size: 18px;
  animation-duration: 15s;
  opacity: 0.15;
}

/* Large binary - fast speed */
.binary-rain.large {
  font-size: 24px;
  animation-duration: 10s;
  opacity: 0.2;
}

/* Extra large binary - fastest speed */
.binary-rain.xlarge {
  font-size: 32px;
  animation-duration: 7s;
  opacity: 0.25;
  font-weight: bold;
}

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

/* Grid overlay for additional depth */
.bg-layer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(90deg, transparent 95%, rgba(0, 255, 136, 0.02) 100%),
    linear-gradient(0deg, transparent 95%, rgba(0, 255, 136, 0.02) 100%);
  background-size: 50px 50px;
  animation: grid-flow 20s linear infinite;
}

@keyframes grid-flow {
  0% { background-position: 0 0; }
  100% { background-position: 50px 50px; }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  width: 100%;
}

section {
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  padding: 30px;
  margin: 0 auto 30px auto;
  width: 90%;
  max-width: 600px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(0, 255, 136, 0.1), 
    transparent, 
    rgba(0, 136, 255, 0.1), 
    transparent);
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

section:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(0, 255, 136, 0.5);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(0, 255, 136, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

section:hover::before {
  opacity: 1;
}

h1, h2 {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  margin-bottom: 15px;
  font-weight: 300;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #00ff88, #0088ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: security-scan 3s ease-in-out infinite;
}

h2 {
  font-size: 1.2rem;
  color: #888;
  text-shadow: none;
  text-align: center;
  margin-bottom: 25px;
}

label {
  color: #ccc;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
  letter-spacing: 0.5px;
}

input, select, button {
  width: 100%;
  padding: 15px;
  margin: 10px 0 20px 0;
  background: rgba(30, 30, 30, 0.8);
  border: 2px solid rgba(0, 255, 136, 0.2);
  border-radius: 12px;
  color: #e0e0e0;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

input:focus, select:focus {
  border-color: #00ff88;
  box-shadow: 
    0 0 0 3px rgba(0, 255, 136, 0.1),
    0 0 20px rgba(0, 255, 136, 0.2);
  background: rgba(40, 40, 40, 0.9);
  transform: scale(1.02);
}

button {
  background: linear-gradient(135deg, #00ff88, #0088ff);
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

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

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

button:hover::before {
  width: 100%;
  height: 100%;
}

button:active {
  transform: translateY(0);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.copyButton {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 136, 255, 0.2)) !important;
  color: #00ff88 !important;
  border: 2px solid rgba(0, 255, 136, 0.3) !important;
  margin-top: 15px;
}

.copyButton:hover {
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 136, 255, 0.3)) !important;
  border-color: #00ff88 !important;
  color: #fff !important;
}

.result {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #00ff88;
  word-break: break-all;
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.result::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  animation: scan 2s linear infinite;
  opacity: 0;
}

.result:not(:empty)::before {
  opacity: 1;
}

@keyframes scan {
  0% { left: -100%; }
  100% { left: 100%; }
}

p {
  color: #aaa;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Subtle security scan effect for title */
@keyframes security-scan {
  0%, 100% { 
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  }
  50% { 
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
}

/* Remove typewriter effect - keep h2 simple */

/* Hover effects for inputs */
input:hover, select:hover {
  border-color: rgba(0, 255, 136, 0.4);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.1);
}

/* Smooth transitions */
* {
  transition: all 0.2s ease;
}

section {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states */
button:focus {
  outline: 2px solid rgba(0, 255, 136, 0.5);
  outline-offset: 2px;
}

input:focus, select:focus {
  box-shadow: 
    0 0 0 3px rgba(0, 255, 136, 0.1),
    0 0 20px rgba(0, 255, 136, 0.2),
    inset 0 0 10px rgba(0, 255, 136, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    background-color: #0c0c0c !important;
    background: #0c0c0c !important;
  }
  
  .container {
    padding: 10px;
  }
  
  section {
    width: 95%;
    padding: 20px;
    background: rgba(20, 20, 20, 0.95) !important;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  input, select, button {
    padding: 12px;
  }
}

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

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00ff88, #0088ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0088ff, #00ff88);
}