/*
 * MindMelodyGlobal Cosmic‑Neon Theme
 * -----------------------------------------------------------
 * This stylesheet defines the visual system for the MindMelodyGlobal
 * website. It uses CSS custom properties to manage the colour palette
 * and typography defined in the project brief. Components such as
 * headers, footers, hero sections and cards are responsive and
 * accessible. Animations are kept light and respect users who prefer
 * reduced motion.
 */

/* Root variables for theme colours and spacing */
:root {
  --color-deep: #0B0E2C;
  --color-indigo: #5B5BFF;
  --color-cyan: #00F0FF;
  --color-magenta: #FF2DAE;
  --color-lime: #B6FF5A;
  --color-white: #EAE8FF;
  --max-width: 1200px;
  --transition: 0.3s ease;
  --font-heading: 'Exo 2', 'Orbitron', sans-serif;
  --font-body: 'Inter', 'Manrope', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-deep);
  color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
}

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

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

a:hover, a:focus {
  color: var(--color-lime);
}

/* Typography helpers */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  text-align: center;
}

.subtext {
  font-size: 1rem;
  max-width: 50ch;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-white);
  opacity: 0.85;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 14, 44, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--color-lime);
}

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

nav li {
  position: relative;
}

nav a {
  color: var(--color-white);
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background-color var(--transition), color var(--transition);
}

nav a:hover,
nav a:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-cyan);
}

/* CTA button styling */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: linear-gradient(45deg, var(--color-magenta), var(--color-indigo));
  color: var(--color-deep);
  box-shadow: 0 0 10px rgba(255, 45, 174, 0.5);
}
.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 0 15px rgba(255, 45, 174, 0.8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: rgba(255, 255, 255, 0.2);
}

/* Hero section */
.hero {
  min-height: 100vh;
  background: url('../assets/images/hero-bg.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(11,14,44,0) 0%, rgba(11,14,44,0.8) 75%);
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-magenta), var(--color-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  opacity: 0.85;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--color-white);
  text-transform: uppercase;
}

/* Section base styling */
section {
  padding: 4rem 1rem;
  position: relative;
}

section:nth-of-type(even) {
  background: linear-gradient(to bottom, rgba(11,14,44,0.95), rgba(11,14,44,0.85));
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Program Overview bullets */
.overview-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.overview-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--color-cyan), var(--color-magenta));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-deep);
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(0,240,255,0.5);
}

.overview-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.overview-item p {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Ritual Stack */
.ritual-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ritual-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.ritual-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.ritual-card-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
}

.ritual-card h4 {
  margin-bottom: 0.5rem;
}

.ritual-card p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* BPM Levels */
.bpm-section {
  margin-top: 4rem;
}

.bpm-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.bpm-card {
  flex: 0 0 300px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform var(--transition);
}

.bpm-card:hover {
  transform: scale(1.03);
}

.bpm-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.bpm-content {
  padding: 1rem;
}

.bpm-content h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--color-cyan);
}
.bpm-content p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Mission & Vision */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
}

.value-card h4 {
  margin-bottom: 0.5rem;
  color: var(--color-lime);
}
.value-card p {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Footer */
footer {
  background: rgba(11,14,44,0.9);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer nav {
  margin-bottom: 1rem;
}
footer nav a {
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

/* Accordions for FAQ */
.accordion {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item + .accordion-item {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.accordion-header {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-header h4 {
  font-size: 1rem;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 1rem;
}

.accordion-body p {
  padding: 1rem 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

.accordion-item.active .accordion-body {
  max-height: 200px;
}

/* Form */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--color-white);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(11,14,44,0.95);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
  }
  nav ul.show {
    display: flex;
  }
  .menu-toggle {
    display: block;
    cursor: pointer;
    order: 3;
  }
  .logo img {
    max-width: 100px;
    max-height: 90px;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
 
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}