:root {
  --grad-start: #6D28D9; /* purple */
  --grad-mid: #EC4899;   /* pink */
  --grad-end: #F97316;   /* orange */
  --accent: #6D28D9;
  --bg-light: #F3E8FF;   /* light lavender */
  --bg-lighter: #FFF1F9;  /* soft purple */
  --bg-white: #FFFFFF;  /* pure white */
  --bg-grey: #FAFAFA;    /* light greyish */
}

body {
  background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-lighter) 100%);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  min-height: 100vh;
}

.glass {
  background: rgba(139, 69, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 69, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glossy {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(139, 69, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glossy::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.glossy:hover::before {
  left: 100%;
}

.glossy:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
}

.glossy:active {
  transform: translateY(-1px);
}

.glossy-button {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(139, 69, 255, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

/* Reusable gradient button matching the screenshot style */
.btn-gradient {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.35);
}

/* Text gradient utility */
.text-gradient {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Global overrides: replace flat purple utilities with gradient theme */
.text-purple-600,
.text-purple-700,
.text-purple-500 {
  background: linear-gradient(90deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.hover\:text-purple-600:hover,
.hover\:text-purple-700:hover {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.bg-purple-600,
.bg-purple-700,
.hover\:bg-purple-700:hover {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end)) !important;
}

.border-purple-200,
.border-purple-300,
.border-purple-400,
.border-purple-500 {
  border-color: var(--grad-start) !important;
}

.focus\:border-purple-500:focus,
.focus\:border-purple-600:focus,
.focus\:ring-purple-200:focus {
  border-color: var(--grad-start) !important;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2) !important;
}

/* Neutralize pale purple backgrounds to neutral gray */
.bg-purple-50 {
  background: #f8fafc !important; /* slate-50 */
}

.text-purple-accent {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.glossy-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.35);
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
}

/* Module cards styling */
.module-card {
  background: rgba(139, 69, 255, 0.08);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(139, 69, 255, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.module-card:hover::before {
  transform: scaleX(1);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 69, 255, 0.2);
  border-color: rgba(139, 69, 255, 0.4);
}

/* Bonus cards styling */
.bonus-card {
  background: rgba(139, 69, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(139, 69, 255, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.bonus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 69, 255, 0.25);
  border-color: rgba(139, 69, 255, 0.5);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(139, 69, 255, 0.1);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8b45ff, #6b21a8);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #9d5bff, #7c3aed);
}

/* Form input focus effects */
input:focus {
  box-shadow: 0 0 0 3px rgba(139, 69, 255, 0.2);
  border-color: #8b45ff;
}

/* Glow effects for important elements */
.glow-text {
  text-shadow: 0 0 20px rgba(139, 69, 255, 0.5);
}

.glow-border {
  box-shadow: 0 0 20px rgba(139, 69, 255, 0.3);
}

/* Purple accent colors */
.text-purple-accent {
  color: var(--accent);
}

.bg-purple-accent {
  background: rgba(139, 69, 255, 0.1);
}

.border-purple-accent {
  border-color: var(--accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .text-3xl {
    font-size: 1.875rem;
  }
  
  .glass {
    margin: 0 1rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.interactive-element {
  transition: all 0.3s ease;
  cursor: pointer;
}

.interactive-element:hover {
  transform: scale(1.02);
}
