/* CSS Variables - Retro Neo-Brutalism Split-Complementary Color Scheme */
:root {
  /* Split-Complementary Color Palette */
  --primary-color: #FF6B35; /* Orange */
  --primary-dark: #E85A2B;
  --secondary-color: #35FF6B; /* Green */
  --secondary-dark: #2BE85A;
  --accent-color: #6B35FF; /* Purple */
  --accent-dark: #5A2BE8;
  
  /* Neo-Brutalist Colors */
  --brutalist-black: #000000;
  --brutalist-white: #FFFFFF;
  --brutalist-yellow: #FFFF00;
  --brutalist-pink: #FF69B4;
  --brutalist-cyan: #00FFFF;
  
  /* Grayscale */
  --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;
  
  /* Background Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  --gradient-brutalist: linear-gradient(45deg, var(--brutalist-black) 0%, var(--gray-800) 50%, var(--brutalist-black) 100%);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  
  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Borders */
  --border-radius: 0; /* Neo-Brutalist sharp corners */
  --border-thick: 4px solid var(--brutalist-black);
  --border-thin: 2px solid var(--brutalist-black);
  
  /* Shadows */
  --shadow-brutalist: 8px 8px 0px var(--brutalist-black);
  --shadow-brutalist-hover: 12px 12px 0px var(--brutalist-black);
  --shadow-card: 6px 6px 0px var(--gray-800);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--brutalist-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--brutalist-black);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  font-weight: 400;
}

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

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

/* Global Button Styles */
.btn, button, input[type='submit'] {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--border-thick);
  border-radius: var(--border-radius);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  display: inline-block;
  text-align: center;
  background: var(--brutalist-white);
  color: var(--brutalist-black);
  box-shadow: var(--shadow-brutalist);
  transform: translate(0, 0);
}

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

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

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

.btn-secondary {
  background: var(--secondary-color);
  color: var(--brutalist-black);
  border-color: var(--brutalist-black);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  color: var(--brutalist-black);
}

.btn-outline-light {
  background: transparent;
  color: var(--brutalist-white);
  border-color: var(--brutalist-white);
}

.btn-outline-light:hover {
  background: var(--brutalist-white);
  color: var(--brutalist-black);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-xxl);
  font-size: 1.25rem;
}

/* Read More Links */
.read-more-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding: var(--spacing-xs) 0;
  transition: var(--transition-fast);
}

.read-more-btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
  transform: translateX(5px);
}

/* Header Navigation */
.header-section {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--brutalist-black);
  border-bottom: var(--border-thick);
  border-color: var(--primary-color);
}

.navbar {
  padding: var(--spacing-md) 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brutalist-white) !important;
  letter-spacing: 0.05em;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brutalist-white) !important;
  margin: 0 var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm) !important;
  border: 2px solid transparent;
  transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  color: var(--brutalist-white) !important;
  text-shadow: 4px 4px 0px var(--brutalist-black);
  margin-bottom: var(--spacing-lg);
  animation: slideInDown 1s ease;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--brutalist-white) !important;
  margin-bottom: var(--spacing-xl);
  text-shadow: 2px 2px 0px var(--brutalist-black);
  animation: slideInUp 1s ease 0.3s both;
}

.hero-buttons {
  animation: fadeIn 1s ease 0.6s both;
}

/* Section Styles */
section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  margin: var(--spacing-md) auto 0;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

/* Card Styles */
.card, .story-card, .insight-card, .testimonial-card, .resource-card, .case-study-card {
  border: var(--border-thick);
  border-radius: var(--border-radius);
  background: var(--brutalist-white);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover, .story-card:hover, .insight-card:hover, .testimonial-card:hover, .resource-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0px var(--gray-800);
}

.card-image, .insight-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.card-content, .insight-content {
  padding: var(--spacing-lg);
  flex-grow: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

/* Testimonials Section */
.testimonials-section {
  background: var(--gradient-primary);
  color: var(--brutalist-white);
}

.testimonials-section .section-title,
.testimonials-section .section-subtitle {
  color: var(--brutalist-white);
}

.testimonial-card {
  background: var(--brutalist-white);
  color: var(--brutalist-black);
  border: var(--border-thick);
  padding: var(--spacing-xl);
  text-align: center;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.testimonial-author strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Insights Section */
.insights-section {
  background: var(--brutalist-white);
}

/* External Resources Section */
.external-resources-section {
  background: var(--secondary-color);
  color: var(--brutalist-black);
}

.resource-card {
  background: var(--brutalist-white);
  padding: var(--spacing-xl);
  text-align: center;
  border: var(--border-thick);
  height: 100%;
}

.resource-card h4 {
  color: var(--brutalist-black);
  margin-bottom: var(--spacing-md);
}

.resource-card p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

/* Case Studies Section */
.case-studies-section {
  background: var(--gray-100);
}

.case-study-card {
  background: var(--brutalist-white);
  border: var(--border-thick);
  box-shadow: var(--shadow-card);
  align-items: stretch;
}

.case-study-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.case-study-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-study-image {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Community Section */
.community-section {
  background: var(--gradient-secondary);
  color: var(--brutalist-black);
}

.community-stats {
  background: var(--brutalist-white);
  border: var(--border-thick);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.stat-widget {
  padding: var(--spacing-md);
}

.stat-widget .stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.stat-widget .stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

.community-cta {
  background: var(--brutalist-white);
  padding: var(--spacing-xxl);
  border: var(--border-thick);
  text-align: center;
}

/* FAQ Section */
.faq-section {
  background: var(--brutalist-white);
}

.faq-item {
  border: var(--border-thin);
  margin-bottom: var(--spacing-md);
}

.faq-question {
  background: var(--gray-100);
  padding: var(--spacing-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--primary-color);
  color: var(--brutalist-white);
}

.faq-question h4 {
  margin: 0;
  font-size: 1.1rem;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: var(--spacing-lg);
  display: none;
  background: var(--brutalist-white);
}

.faq-item.active .faq-answer {
  display: block;
}

/* Contact Section */
.contact-section {
  background: var(--gray-100);
}

.contact-form-container {
  background: var(--brutalist-white);
  border: var(--border-thick);
  padding: var(--spacing-xxl);
  box-shadow: var(--shadow-card);
}

.form-control, .form-select {
  border: var(--border-thin);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
  background: var(--brutalist-white);
}

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

.form-group {
  margin-bottom: var(--spacing-lg);
}

/* Footer */
.footer-section {
  background: var(--brutalist-black);
  color: var(--brutalist-white);
}

.footer-brand h3 {
  color: var(--brutalist-white);
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  color: var(--gray-400);
}

.footer-links h5 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: var(--spacing-xs);
}

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

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

.footer-divider {
  border-color: var(--gray-700);
  margin: var(--spacing-xl) 0;
}

.footer-copyright {
  color: var(--gray-500);
  margin: 0;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Scroll-dependent Animations */
[data-scroll-animation] {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

[data-scroll-animation].animate {
  opacity: 1;
  transform: translateY(0);
}

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

.privacy-page, .terms-page {
  padding-top: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2rem;
    --spacing-xl: 1.5rem;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .case-study-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .case-study-image {
    height: 300px;
  }
  
  section {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 576px) {
  .btn, button, input[type='submit'] {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1rem;
  }
  
  .contact-form-container {
    padding: var(--spacing-xl);
  }
}

/* Utility Classes */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-brutalist {
  background: var(--brutalist-black);
  color: var(--brutalist-white);
}

.border-brutalist {
  border: var(--border-thick);
}

.shadow-brutalist {
  box-shadow: var(--shadow-brutalist);
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #FF4500;
    --secondary-color: #00FF00;
    --accent-color: #8A2BE2;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}