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

:root {
  --primary: #0066d4;
  --primary-bright: #00aaff;
  --primary-dark: #004fa3;
  --accent: #00aaff;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --bg-dark: #000000;
  --bg-darker: #0a0a0a;
  --surface: #111111;
  --surface-light: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --border-color: rgba(0, 102, 212, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(0, 102, 212, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at top, rgba(0, 102, 212, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0, 102, 212, 0.05) 0%, transparent 50%),
    linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #000308 50%, #0a0a0a 75%, #000000 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
  color: var(--text-primary);
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 102, 212, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(0, 102, 212, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 60% 40%, rgba(0, 102, 212, 0.06) 0%, transparent 25%);
  z-index: -2;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: moveUp linear infinite;
}

@keyframes moveUp {
  0% { transform: translateY(100vh) translateX(0px); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100px) translateX(var(--drift, 0px)); opacity: 0; }
}

header, .header, .tool-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: var(--shadow-glow);
}

.header-left, .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  font-size: 2.4rem;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent);
}

nav a, .header-nav a {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  transition: all 0.3s ease;
}

nav a:hover, .header-nav a:hover,
nav a.active, .header-nav a.active {
  background: rgba(0, 102, 212, 0.2);
  color: var(--text-primary);
}

main, .main-container, .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 5rem 9%;
  margin-top: 5rem;
  position: relative;
}

h1 {
  font-size: 4.2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 102, 212, 0.5);
  margin-bottom: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

p {
  font-size: 1.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-primary);
}

span.highlight {
  color: var(--primary);
  background: linear-gradient(45deg, var(--primary), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card, .tool-card {
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 3.5rem;
  background: linear-gradient(45deg, rgba(0, 102, 212, 0.1), rgba(0, 102, 212, 0.2));
  border-radius: 50px;
  font-size: 1.6rem;
  color: var(--primary);
  letter-spacing: 0.1rem;
  font-weight: 600;
  border: 2px solid var(--primary);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 212, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: scale(1.05);
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 0 40px rgba(0, 102, 212, 0.8);
  border-color: var(--accent);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: var(--bg-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(0, 102, 212, 0.1);
  border-color: var(--primary);
  color: var(--text-primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--text-primary);
}

.btn-large {
  padding: 2rem 4rem;
  font-size: 1.8rem;
}

.btn-small {
  padding: 1rem 2rem;
  font-size: 1.4rem;
}

input, textarea, select {
  width: 100%;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1.6rem;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 102, 212, 0.1);
  box-shadow: 0 0 20px rgba(0, 102, 212, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

select {
  cursor: pointer;
}

select option {
  background: var(--surface);
  color: var(--text-primary);
}

.input-group {
  margin-bottom: 2rem;
}

.input-group label {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.form-help {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 1.2rem 2.5rem;
  background: rgba(0, 102, 212, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.4rem;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.tab-btn:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 102, 212, 0.4);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: 0 5px 20px rgba(0, 102, 212, 0.4);
}

.tab-content {
  display: none;
  background: var(--surface);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

.modal-backdrop, .modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.show, .modal-backdrop.show {
  display: flex;
}

.modal-content {
  width: 90%;
  max-width: 600px;
  background: var(--surface);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid var(--border-color);
  text-align: center;
}

.modal h3 {
  font-size: 2.4rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.modal p {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.modal .actions, .modal-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(0, 102, 212, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  min-width: 150px;
  border: 1px solid var(--border-color);
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.log-container {
  height: 250px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 2rem;
  border-radius: 12px;
  font-family: 'Courier New', monospace;
  font-size: 1.3rem;
  border: 1px solid var(--border-color);
}

.log-entry {
  margin-bottom: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.log-entry:hover {
  background: rgba(0, 102, 212, 0.1);
}

.log-entry.error { color: var(--error); }
.log-entry.success { color: var(--success); }
.log-entry.warning { color: var(--warning); }

.warning-box {
  background: rgba(255, 71, 87, 0.1);
  border-left: 4px solid var(--error);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.warning-icon {
  color: var(--error);
  font-size: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

.badge.success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge.error {
  background: rgba(239, 68, 68, 0.2);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge.warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.badge.info {
  background: rgba(0, 102, 212, 0.2);
  color: var(--primary);
  border: 1px solid var(--border-color);
}

footer, .footer {
  margin-top: 5rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 3rem 5%;
  text-align: center;
}

footer p, .footer p {
  font-size: 1.4rem;
  margin: 0;
}

footer a, .footer a {
  color: var(--accent);
  margin: 0 1rem;
}

footer a:hover, .footer a:hover {
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2rem 3rem;
  background: var(--surface);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow), var(--shadow-glow);
  z-index: 3000;
  border: 1px solid var(--border-color);
  display: none;
}

.notification.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@media (max-width: 1200px) {
  html { font-size: 58%; }
  main, .main-container, .container { padding: 8rem 2rem 4rem; }
}

@media (max-width: 1000px) {
  html { font-size: 56%; }
  h1 { font-size: 3.6rem; }
  h2 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
  html { font-size: 52%; }
  main, .main-container, .container { padding: 7rem 1.5rem 3rem; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.4rem; }
  .btn { padding: 1.2rem 2.5rem; font-size: 1.4rem; }
  .grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
}

@media (max-width: 600px) {
  html { font-size: 50%; }
  header, .header, .tool-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 3%;
  }
  h1 { font-size: 2.6rem; }
  .card { padding: 2rem; }
  .modal-content { padding: 2rem; }
}

@media (max-width: 480px) {
  html { font-size: 48%; }
  h1 { font-size: 2.2rem; }
  .btn { padding: 1rem 2rem; font-size: 1.3rem; }
}
