:root {
  --primary: #500280;
  --primary-2: #8c07de;
  --secondary: #92d34d;
  --accent: #fcdfb8;
  --orange: #faac41;
  --ink: #24162b;
  --soft: #fffaf3;
  --primary-gradient: linear-gradient(to left, #500280, #8c07de);
  --accent-gradient: linear-gradient(to left, #fcdfb8, #fff);
  --cta-gradient: linear-gradient(to left, #500280, #faac41);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Sofia Sans", sans-serif;
  color: var(--ink);
  background: #fffdf9;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

.primary-gradient {
  background: var(--primary-gradient);
}

.accent-gradient {
  background: var(--accent-gradient);
}

.cta-gradient {
  background: var(--cta-gradient);
}

.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-text-gradient {
  background: var(--cta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-1 {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(80, 2, 128, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 2, 128, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 92%);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.55;
  pointer-events: none;
}

.theme-toggle {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.header-dark-scrolled {
  background: rgba(20, 13, 29, 0.85);
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.modal-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: translateY(28px) scale(.98);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.modal-backdrop.open .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

html.dark-mode body {
  color: #f4ecff;
  background:
    radial-gradient(circle at top, rgba(140, 7, 222, 0.16), transparent 34%),
    linear-gradient(180deg, #110717 0%, #1a0d24 100%);
}

html.dark-mode .hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

html.dark-mode .theme-toggle,
html.dark-mode #menuButton {
  background: rgba(28, 17, 39, 0.94) !important;
  color: #f6eeff !important;
  border-color: rgba(196, 160, 255, 0.2) !important;
}

html.dark-mode .theme-toggle i,
html.dark-mode #menuButton i {
  color: #f6eeff !important;
}

html.dark-mode .bg-purple-50 {
  background: rgba(80, 2, 128, 0.20) !important;
}

html.dark-mode .text-green-800 {
  color: #dff8c3 !important;
}

html.dark-mode .text-orange-700 {
  color: #ffdca8 !important;
}

html.dark-mode .about-card-purple {
  background: rgba(80, 2, 128, 0.22) !important;
  border: 1px solid rgba(205, 161, 255, 0.24);
}

html.dark-mode .about-card-lime {
  background: rgba(146, 211, 77, 0.18) !important;
  border: 1px solid rgba(210, 246, 164, 0.24);
}

html.dark-mode .about-card-orange {
  background: rgba(250, 172, 65, 0.18) !important;
  border: 1px solid rgba(255, 214, 150, 0.24);
}

html.dark-mode .about-card-purple p:first-child {
  color: #dcb8ff !important;
}

html.dark-mode .about-card-lime p:first-child {
  color: #e3f8c7 !important;
}

html.dark-mode .about-card-orange p:first-child {
  color: #ffdca8 !important;
}

html.dark-mode .team-card {
  background: rgba(26, 17, 36, 0.92) !important;
  border: 1px solid rgba(196, 160, 255, 0.16);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
