/* fonts and variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Color Palette */
  --color-primary: #0060DE;
  --color-primary-dark: #004fb6;
  --color-secondary: #D91A7A;
  --color-accent: #E3772C;
  --color-background: #ffffff;
  --color-surface: #F9FAFB;
  --color-surface-hover: #F3F4F6;
  --color-text-main: #111827;
  --color-text-off: #4B5563;
  --color-border: #E5E7EB;
  
  /* Rainbow Accents */
  --color-yellow: #FCE536;
  --color-pink: #D91A7A;
  --color-orange: #E3772C;
  --color-red: #D53227;
  --color-blue: #066BD1;
  --color-green: #86C032;
  
  --color-gradient-brand: linear-gradient(135deg, #0060DE 0%, #066BD1 100%);
  --color-gradient-cool: linear-gradient(135deg, #066BD1 0%, #86C032 100%);
  --color-gradient-rainbow: linear-gradient(to right, #D53227, #E3772C, #FCE536, #86C032, #066BD1, #D91A7A);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 15px rgba(0, 96, 222, 0.3);
  
  /* Radii for systematic components */
  --radius-btn: 10px;
  --radius-card: 16px;
  --radius-input: 8px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Light colors for problem cards */
  --color-light-orange: #FFF4E6;
  --color-light-blue: #E6F2FF;
  --color-light-green: #E6F9E6;
  --color-light-pink: #FFE6F0;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { 
  -webkit-text-size-adjust: 100%; 
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-off);
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Globals & Utils */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.text-gradient-strong {
  background: linear-gradient(135deg, #0060DE 0%, #066BD1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.2em;
}

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

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

.text-gradient-flow {
  background: linear-gradient(to right, #D53227, #E3772C, #Fce536, #86C032, #066BD1, #8e44ad, #D91A7A, #D53227, #E3772C);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textRainbowFlow 6s linear infinite;
}

@keyframes textRainbowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

/* 1. Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-transform: capitalize;
  font-size: 1rem;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-glow);
  color: white;
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* 6. Form System */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
  font-family: var(--font-heading);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--color-border);
  background: white;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 96, 222, 0.1);
}

.form-control::placeholder {
  color: #9CA3AF;
}

/* Other global utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-card);
}

/* =========================================================================
   BRAND SYMBOLS & MOTIFS
   ========================================================================= */

/* 1. Brain Connection / Neuron Pattern */
.bg-neuron-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40h5M40 40v5M40 40l-15-15M25 25l10-20M25 25l-20 10M35 5l20 10M55 15l20-5M55 15l15 20M70 35l-10 20M60 55l15 15M60 55l-25 15M45 70l-20-10M25 60l-15 10M25 60l10-20' stroke='%230060DE' stroke-width='0.5' fill='none' stroke-opacity='0.14'/%3E%3Ccircle cx='40' cy='40' r='2' fill='%23E3772C' fill-opacity='0.18'/%3E%3Ccircle cx='25' cy='25' r='1.5' fill='%23D91A7A' fill-opacity='0.18'/%3E%3Ccircle cx='35' cy='5' r='2' fill='%230060DE' fill-opacity='0.18'/%3E%3Ccircle cx='55' cy='15' r='1.5' fill='%23E9A518' fill-opacity='0.18'/%3E%3Ccircle cx='70' cy='35' r='2' fill='%23199B33' fill-opacity='0.18'/%3E%3Ccircle cx='60' cy='55' r='1.5' fill='%230060DE' fill-opacity='0.18'/%3E%3Ccircle cx='45' cy='70' r='2' fill='%23D91A7A' fill-opacity='0.18'/%3E%3Ccircle cx='25' cy='60' r='1.5' fill='%23E9A518' fill-opacity='0.18'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* 2. Rainbow Arc */
.rainbow-arc {
  position: absolute;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  border: 15px solid transparent;
  border-top-color: var(--color-pink);
  border-right-color: var(--color-yellow);
  border-bottom-color: var(--color-blue);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  animation: arc-rotate 40s linear infinite;
}

.rainbow-arc.top-right {
  top: -15%;
  right: -10%;
}

.rainbow-arc.bottom-left {
  bottom: -20%;
  left: -10%;
}

@keyframes arc-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 3. Brain Glow Effect */
.brain-glow-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.brain-glow-wrapper::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 140%; height: 140%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--color-yellow) 0%, transparent 60%);
  opacity: 0.3;
  z-index: -1;
  border-radius: 50%;
  animation: pulse-glow-strong 3s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes pulse-glow-strong {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.2; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

/* 4. Knowledge Sparkles */
.sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-yellow);
  box-shadow: 0 0 8px var(--color-yellow);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
}

.sparkle-1 { top: -10%; left: 10%; background-color: var(--color-pink); box-shadow: 0 0 8px var(--color-pink); }
.sparkle-2 { top: 90%; left: 20%; background-color: var(--color-green); box-shadow: 0 0 8px var(--color-green); }
.sparkle-3 { top: 20%; right: -10%; background-color: var(--color-yellow); }
.sparkle-4 { bottom: -10%; right: 10%; background-color: var(--color-blue); box-shadow: 0 0 8px var(--color-blue); }

/* Play animations on hover */
.btn:hover .sparkle,
.btn-secondary:hover .sparkle,
.problem-card:hover .sparkle,
[class*="card-accent-"]:hover .sparkle {
  animation: sparkle-float 1.5s forwards;
}

.btn:hover .sparkle-1 { animation-delay: 0s; }
.btn:hover .sparkle-2 { animation-delay: 0.2s; }
.btn:hover .sparkle-3 { animation-delay: 0.4s; }
.btn:hover .sparkle-4 { animation-delay: 0.1s; }

[class*="card-accent-"]:hover .sparkle-1 { animation-delay: 0.1s; }
[class*="card-accent-"]:hover .sparkle-2 { animation-delay: 0.3s; }
[class*="card-accent-"]:hover .sparkle-3 { animation-delay: 0.2s; }
[class*="card-accent-"]:hover .sparkle-4 { animation-delay: 0.4s; }

@keyframes sparkle-float {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-30px) scale(0.5); opacity: 0; }
}

