* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #0f0f23;
  color: #e2e8f0;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 75, 145, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 32px;
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #ff4b91 50%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  letter-spacing: -0.5px;
}

h2 {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.skills-card {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.skills-card h2 {
  margin: 0 0 10px;
}

pre {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #8b5cf6;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.8);
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #d1d5db;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 4px 6px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 4px;
  color: #a78bfa;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.copy-btn:hover {
  background: rgba(139, 92, 246, 0.3);
  border-color: #8b5cf6;
  color: #c4b5fd;
  transform: translateY(-1px);
}

.copy-btn svg {
  display: block;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 16px;
}

.drop-zone {
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  background: rgba(31, 41, 55, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.drop-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.drop-zone:hover::before {
  left: 100%;
}

.drop-zone.drag-over {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.15);
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
}

.drop-zone svg {
  color: #8b5cf6;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

.drop-text {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.drop-or {
  margin: 8px 0;
  font-size: 0.85rem;
  color: #6b7280;
}

.file-label {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.file-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
}

.drop-zone input[type="file"] {
  display: none;
}

.file-name {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 600;
  min-height: 18px;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submit-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  color: #ffffff;
  padding: 14px 28px;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
  position: relative;
  overflow: hidden;
}

#submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

#submit-btn:hover::before {
  left: 100%;
}

#submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.7);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.result {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border-left: 3px solid #10b981;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #d1fae5;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 16px;
  }
  h1 {
    font-size: 1.5rem;
  }
  .drop-zone {
    padding: 20px 16px;
  }
}

