/* NeuroPath Website Styles */

/* Import friendly fonts from Google. Inter and DM Sans provide soft, rounded letterforms that appeal to Gen‑Z users */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

/* Root variables define the soft pastel palette and glassmorphism settings.  
   Pastel tones and muted colors are recommended for glassmorphism to maintain contrast and readability【237272016903549†L139-L149】. */
:root {
  --color-primary: #b8c3ff; /* soft periwinkle */
  --color-secondary: #ffdce8; /* blush pink */
  --color-accent: #c9e9f6; /* pale sky blue */
  --color-yellow: #fff5c2; /* light butter yellow */
  --color-green: #d9f8d3; /* mint green */
  --color-dark: #2f2e41; /* deep grey for text */
  --color-light: #ffffff; /* white */
  --glass-bg: rgba(255, 255, 255, 0.45); /* translucent white for glass cards */
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: 15px;
}

/* Global reset to ensure consistent spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'DM Sans', sans-serif;
  color: var(--color-dark);
  background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
header {
  width: 100%;
  background: transparent;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-dark);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

nav li a {
  font-weight: 500;
  transition: color 0.2s ease;
}

nav li a:hover {
  color: #5855ff;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-dark);
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn.secondary {
  background: var(--color-yellow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Hero section */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: url('hero.png') center/cover no-repeat;
  position: relative;
  color: var(--color-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.85));
}

.hero-content {
  position: relative;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero .btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Sections */
section {
  padding: 4rem 2rem;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

/* Glass card layout for content boxes */
.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Tint SVG icons inside cards to match the pastel palette.  The filter inverts and shifts hue to a soft indigo tone. */
.card img {
  display: block;
  margin: 0 auto 1rem;
  filter: invert(51%) sepia(10%) saturate(400%) hue-rotate(210deg) brightness(95%) contrast(95%);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* Testimonials */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.testimonial span {
  font-weight: 600;
}

/* Footer */
footer {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  font-size: 0.9rem;
  color: var(--color-dark);
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.4rem;
  }
}

/* Quiz page styles */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.quiz-step {
  display: none;
  margin-bottom: 2rem;
}

.quiz-step.active {
  display: block;
}

.quiz-question {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.option:hover, .option.selected {
  background: var(--color-primary);
}

.progress-bar {
  height: 8px;
  background: var(--glass-bg);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.progress {
  width: 0;
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.result-container {
  display: none;
  text-align: center;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.result-container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.result-container p {
  margin-bottom: 1rem;
}

/* Lesson demo page */
.lesson-container {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.style-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab {
  padding: 0.8rem 1.2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease;
}

.tab.active {
  background: var(--color-primary);
}

.lesson-content {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 1rem;
  padding: 2rem;
}

.lesson-content.active {
  display: block;
}

.lesson-content img {
  max-width: 100%;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

/* Dashboard preview */
.dashboard-preview {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.dash-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.dash-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.progress-wrapper {
  background: var(--glass-bg);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar-inner {
  height: 100%;
  background: var(--color-primary);
  width: 0;
  transition: width 0.5s ease;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass-bg);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

form label {
  font-weight: 600;
}

form input,
form select,
form textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-primary);
  background: rgba(255,255,255,0.9);
  font-family: inherit;
  resize: vertical;
}

form button {
  align-self: flex-start;
}

.thank-you {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
}