/* Base Variables and Reset */
:root {
  /* Neo-Brutalism Pastel Color Scheme */
  --primary: #FF9A8B;
  --primary-dark: #FF7B6B;
  --secondary: #93CBFF;
  --secondary-dark: #72B4FF;
  --accent: #FFDB58;
  --accent-dark: #FFCC00;
  
  --background: #FFFFFF;
  --background-alt: #F8F9FA;
  --foreground: #333333;
  
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  
  /* Neo-Brutalism Effects */
  --shadow-sm: 3px 3px 0 rgba(0, 0, 0, 0.8);
  --shadow-md: 5px 5px 0 rgba(0, 0, 0, 0.8);
  --shadow-lg: 8px 8px 0 rgba(0, 0, 0, 0.8);
  --border-thick: 3px solid var(--gray-900);
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 2rem;
  --section-spacing: 5rem;
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  --base-font-size: 16px;
  --line-height: 1.6;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--line-height);
  color: var(--foreground);
  background-color: var(--background);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

section {
  padding: 3rem 0;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

/* Button Styles */
.btn, button, input[type='submit'] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  text-align: center;
  text-decoration: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.btn:hover, button:hover, input[type='submit']:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn:active, button:active, input[type='submit']:active {
  transform: translate(0, 0);
  box-shadow: none;
}

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

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

.btn-tertiary {
  background-color: white;
  color: var(--gray-800);
  border-color: var(--gray-300);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 700;
}

.section-header h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 800px;
  margin: 0 auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--primary);
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li {
  margin-left: 2rem;
}

.main-nav ul li a {
  font-weight: 600;
  color: var(--foreground);
  transition: color var(--transition-fast);
}

.main-nav ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger-menu span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--foreground);
  margin: 3px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 8rem 0 6rem;
  margin-top: 80px; /* Account for fixed header */
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Intro Section */
.intro {
  background-color: var(--background-alt);
}

.intro-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.intro-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.intro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background-color: white;
  padding: 2rem;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all var(--transition-medium);
}

.stat-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-md);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Services/Courses Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 2rem;
  flex: 1;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.card-content p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

/* Workshops Section */
.workshops {
  background-color: var(--background);
}

.workshops-content {
  margin-top: 2rem;
}

.workshops-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.workshop-item {
  background-color: var(--background-alt);
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workshop-item:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-md);
}

.workshop-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.workshop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.workshop-item:hover .workshop-image img {
  transform: scale(1.05);
}

.workshop-content {
  padding: 1.5rem;
  flex: 1;
}

.workshop-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.workshop-date {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--primary);
}

/* Switch Toggle */
.workshop-toggle, .event-toggle, .form-toggle {
  display: flex;
  align-items: center;
  margin-top: 1rem;
}

.workshop-toggle span, .event-toggle span, .form-toggle span {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--gray-400);
  transition: var(--transition-medium);
  border: 2px solid var(--gray-800);
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: var(--transition-medium);
  border: 1px solid var(--gray-800);
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* External Resources Section */
.external-resources {
  background-color: var(--background-alt);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: all var(--transition-medium);
}

.resource-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-md);
}

.resource-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.resource-links {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.resource-links li {
  margin-bottom: 0.5rem;
}

.resource-links a {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.resource-links a:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* Success Stories Section */
.success-stories {
  background-color: var(--background);
}

.stories-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.stories-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accordion-item {
  border: var(--border-thick);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
}

.accordion-item:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-md);
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: 1.5rem;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.story-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.story-image {
  flex: 0 0 300px;
  height: 200px;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-text p {
  color: var(--gray-700);
  margin-bottom: 1rem;
}

/* Events Calendar Section */
.events-calendar {
  background-color: var(--background-alt);
}

.events-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.event-card {
  display: flex;
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-medium);
}

.event-card:hover {
  transform: translate(-5px, -5px);
  box-shadow: var(--shadow-md);
}

.event-date {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  padding: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.event-date .day {
  font-size: 2rem;
  line-height: 1;
}

.event-date .month {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

.event-details {
  flex: 1;
  padding: 1.5rem;
}

.event-details h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.event-location {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Contact Section */
.contact {
  background-color: var(--background);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-card {
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.info-card h3 {
  margin-bottom: 1.5rem;
}

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

.map-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-form {
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  background-color: var(--gray-100);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Footer */
.footer {
  background-color: var(--gray-900);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-links-column h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-links-column h3:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary);
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-column ul li {
  margin-bottom: 0.75rem;
}

.footer-links-column ul li a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-links-column ul li a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Success Page */
.success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  background-color: var(--background);
}

.success-content {
  max-width: 600px;
  padding: 3rem;
  background-color: white;
  border: var(--border-thick);
  box-shadow: var(--shadow-md);
}

.success-content h1 {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.success-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.page-content h1 {
  margin-bottom: 2rem;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Scroll Animations (will be activated via JavaScript) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 14px;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
  }
  
  .intro-stats {
    margin-top: 2rem;
  }
  
  .story-content {
    flex-direction: column;
  }
  
  .story-image {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .events-grid {
    grid-template-columns: 1fr;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    flex: 0 0 auto;
    flex-direction: row;
    padding: 1rem;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 576px) {
  .services-grid, 
  .workshops-grid, 
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .hero-buttons .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .event-date {
    width: 100%;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
}

/* JavaScript-triggered classes */
.menu-open {
  overflow: hidden;
}

.menu-open .main-nav {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  padding-top: 6rem;
  z-index: 999;
}

.menu-open .main-nav ul {
  flex-direction: column;
  align-items: center;
}

.menu-open .main-nav ul li {
  margin: 1rem 0;
}

.menu-open .main-nav ul li a {
  font-size: 1.5rem;
}

.menu-open .hamburger-menu {
  position: relative;
  z-index: 1000;
}

.menu-open .hamburger-menu span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .hamburger-menu span:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger-menu span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}