:root {
  --bg-gradient-1: #949fe9;
  --bg-gradient-2: #424988;
  --bg-gradient-3: #0f0f3d;
  --bg-gradient-4: #1a0f3f;

  --primary: #38bdf8;
  --primary-2: #0ea5e9;
  --primary-3: #06b6d4;
  --accent: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --text: #e5e7eb;
  --text-muted: rgba(229, 231, 235, 0.75);
  --border: rgba(56, 189, 248, 0.2);
  --surface: rgba(15, 23, 42, 0.4);
  --surface-strong: rgba(15, 23, 42, 0.65);

  --font: 'Segoe UI', system-ui, Arial, sans-serif;
  --radius: 14px;
  --shadow: 0 15px 40px rgba(56, 189, 248, 0.2);
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(
    135deg,
    var(--bg-gradient-1) 0%,
    var(--bg-gradient-2) 30%,
    var(--bg-gradient-3) 60%,
    var(--bg-gradient-4) 100%
  );
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form controls */
.form-control,
input[type='text'],
input[type='url'],
textarea,
select {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-family: var(--font);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  color: var(--text);
  outline: none;
}

/* Card styles */
.card-blur,
.card,
.team-card-blur,
.result-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-blur:hover,
.team-card-blur:hover,
.result-card:hover,
.card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.15);
}

.card-blur::before,
.team-card-blur::before,
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  transition: all 0.4s ease;
}

.card-blur:hover::before,
.team-card-blur:hover::before,
.card:hover::before {
  top: 0;
  right: 0;
}

.card-blur h4,
.team-card-blur h4,
.card h4 {
  color: var(--text);
}

/* Utility */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  background: linear-gradient(
    90deg,
    rgba(73, 78, 112, 1) 0%,
    rgba(26, 31, 75, 0.95) 100%
  );
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(5, 150, 213, 0.05);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  padding: 40px 0;
  margin-top: 80px;
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--primary);
}

/* Smooth transitions */
* {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
