:root {
  /* Premium Dark Theme */
  --bg-primary: #0a0a1f;
  --bg-secondary: #13132b;

  /* Glassmorphism Colors */
  --glass-bg: rgba(30, 30, 60, 0.4);
  --glass-border: rgba(130, 100, 220, 0.3);
  --glass-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);

  /* Gradient Colors */
  --primary-gradient: linear-gradient(135deg, #8B7FE8 0%, #6B5FD8 50%, #9B8FF8 100%);
  --secondary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #c5c5d8;
  --text-muted: #8888a8;

  /* Accent Colors */
  --accent-purple: #8B7FE8;
  --accent-blue: #6B8FE8;
  --warning: #f59e0b;
  --success: #10b981;
  --error: #ef4444;
}

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

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  line-height: 1.6;
}

/* Animated Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139, 127, 232, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(107, 95, 216, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(107, 143, 232, 0.1) 0%, transparent 60%);
  animation: gradientMove 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes gradientMove {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-purple);
  border-radius: 50%;
  opacity: 0.4;
  animation: float 25s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-120px) translateX(60px);
  }

  50% {
    transform: translateY(-200px) translateX(-40px);
  }

  75% {
    transform: translateY(-120px) translateX(80px);
  }
}

/* Main Wrapper */
.main-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100vh;
}

.container {
  max-width: 650px;
  width: 100%;
}

/* Logo */
.logo-container {
  text-align: center;
  margin-bottom: 30px;
  animation: logoFloat 3s ease-in-out infinite;
}

.logo {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(139, 127, 232, 0.4));
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Main Card */
.main-card {
  background: var(--glass-bg);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 40px 35px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  animation: cardFadeIn 0.8s ease;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 127, 232, 0.08) 0%, transparent 70%);
  animation: cardGlow 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardGlow {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(180deg);
  }
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 25px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--warning);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Title */
.main-title {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Services Compact Grid */
.services-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.service-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 127, 232, 0.2);
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-item:hover {
  background: rgba(139, 127, 232, 0.1);
  border-color: var(--accent-purple);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(139, 127, 232, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(139, 127, 232, 0.3));
}

.service-item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Compact Form */
.compact-form {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group.half {
  margin-bottom: 0;
}

.compact-form input,
.compact-form textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 127, 232, 0.25);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

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

.compact-form input:focus,
.compact-form textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px rgba(139, 127, 232, 0.1);
}

.compact-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* reCAPTCHA */
.g-recaptcha {
  margin: 15px 0;
  display: flex;
  justify-content: center;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px 30px;
  background: var(--primary-gradient);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

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

.btn-submit:hover::before {
  width: 300px;
  height: 300px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(139, 127, 232, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

/* Loading Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Messages */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Card Footer */
.card-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 127, 232, 0.15);
  text-align: center;
  font-size: 0.85rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-purple);
}

.separator {
  margin: 0 10px;
  color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-card {
    padding: 30px 25px;
    border-radius: 25px;
  }

  .services-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-item {
    padding: 18px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .logo {
    max-width: 140px;
  }

  .main-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 15px;
  }

  .main-card {
    padding: 25px 20px;
  }

  .status-badge {
    font-size: 0.75rem;
    padding: 6px 15px;
  }
}

/* Utility Classes */
.hidden {
  display: none !important;
}