/* --------------------------------
   Variables and Base Styles
-------------------------------- */
:root {
  /* Primary Colors */
  --primary-color: #3D5A80;
  --primary-dark: #2C3E50;
  --primary-light: #5E8AB4;
  
  /* Secondary Colors */
  --secondary-color: #E76F51;
  --secondary-dark: #C5593F;
  --secondary-light: #F4A261;
  
  /* Neutral Colors */
  --neutral-100: #F8F9FA;
  --neutral-200: #E9ECEF;
  --neutral-300: #DEE2E6;
  --neutral-400: #CED4DA;
  --neutral-500: #ADB5BD;
  --neutral-600: #6C757D;
  --neutral-700: #495057;
  --neutral-800: #343A40;
  --neutral-900: #212529;
  
  /* Brutalism Border */
  --brutal-border: 3px solid var(--neutral-900);
  --brutal-shadow: 5px 5px 0px var(--neutral-900);
  --brutal-radius: 0px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Container Max Widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Typography */
body {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--neutral-600);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------
   Brutalist Elements
-------------------------------- */
.brutal-title {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--neutral-100);
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  transition: transform var(--transition-fast);
}

.brutal-title:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px var(--neutral-900);
}

.brutal-text {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.brutal-card {
  background: var(--neutral-100);
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  padding: 2rem;
  box-shadow: var(--brutal-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brutal-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--neutral-900);
}

.brutal-btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  background-color: var(--primary-color);
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--brutal-shadow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
  display: inline-block;
  margin: 0.5rem;
  cursor: pointer;
}

.brutal-btn:hover, .brutal-btn:focus {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0px var(--neutral-900);
  color: white;
}

.btn-outline-light.brutal-btn {
  background-color: transparent;
  color: white;
  border-color: white;
}

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

.brutal-btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.brutal-image-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
}

.brutal-image-container .image-container {
  border: var(--brutal-border);
  padding: 0.5rem;
  background-color: var(--neutral-100);
  box-shadow: var(--brutal-shadow);
  transform: rotate(-1deg);
  transition: transform var(--transition-normal);
}

.brutal-image-container:hover .image-container {
  transform: rotate(1deg) translate(-5px, -5px);
}

.brutal-image-container img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.brutal-content {
  padding: 2rem;
  background-color: var(--neutral-100);
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  box-shadow: var(--brutal-shadow);
  transition: transform var(--transition-normal);
  height: 100%;
}

.brutal-content:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--neutral-900);
}

.brutal-form input,
.brutal-form textarea,
.brutal-form select {
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  padding: 0.75rem 1rem;
  width: 100%;
  background-color: var(--neutral-100);
  margin-bottom: 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brutal-form input:focus,
.brutal-form textarea:focus,
.brutal-form select:focus {
  outline: none;
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0px var(--neutral-900);
}

.brutal-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--neutral-800);
}

.brutal-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.brutal-social a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: var(--brutal-border);
  background-color: var(--neutral-100);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 3px 3px 0px var(--neutral-900);
  display: inline-block;
}

.brutal-social a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--neutral-900);
  color: var(--primary-dark);
}

.brutal-timeline-content {
  background-color: var(--neutral-100);
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  padding: 2rem;
  box-shadow: var(--brutal-shadow);
  margin-bottom: 2rem;
  position: relative;
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brutal-timeline-content:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0px var(--neutral-900);
}

.brutal-modal {
  border: var(--brutal-border);
  border-radius: var(--brutal-radius);
  box-shadow: var(--brutal-shadow);
}

.brutal-modal .modal-header {
  border-bottom: var(--brutal-border);
  background-color: var(--primary-color);
  color: white;
}

.brutal-modal .modal-footer {
  border-top: var(--brutal-border);
}

/* --------------------------------
   Header & Navigation
-------------------------------- */
.header-brutal {
  padding: 1rem 0;
  background-color: var(--neutral-100);
  border-bottom: var(--brutal-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.logo-text {
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
  display: inline-block;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover .logo-text {
  transform: rotate(-2deg) translate(-2px, -2px);
}

.navbar-light .navbar-nav .nav-link {
  color: var(--neutral-800);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.navbar-toggler {
  border: var(--brutal-border);
  padding: 0.5rem;
  border-radius: var(--brutal-radius);
  background-color: var(--neutral-100);
  transition: transform var(--transition-fast);
}

.navbar-toggler:hover {
  transform: rotate(3deg);
}

/* --------------------------------
   Hero Section
-------------------------------- */
.hero-section {
  position: relative;
  padding: 8rem 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  z-index: 1;
}

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

.hero-section h1, 
.hero-section .lead {
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Animated shapes for hero */
.animated-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

.shape {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 20%;
  left: 10%;
  animation: float 8s infinite ease-in-out;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 10%;
  animation: float 12s infinite ease-in-out reverse;
}

.shape-3 {
  width: 70px;
  height: 70px;
  bottom: 20%;
  left: 30%;
  animation: float 10s infinite ease-in-out 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* --------------------------------
   About Section
-------------------------------- */
.about-section {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.stat-widget {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'Poppins', sans-serif;
}

.stat-label {
  font-size: 1rem;
  color: var(--neutral-600);
  font-weight: 500;
}

/* --------------------------------
   Services Section
-------------------------------- */
.services-section {
  padding: 5rem 0;
  background-color: var(--neutral-200);
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  padding: 0 1rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.card-content p {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* --------------------------------
   Innovation Section
-------------------------------- */
.innovation-section {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--neutral-900);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
  z-index: -1;
}

.timeline-item {
  padding: 1rem 0;
  position: relative;
  width: 50%;
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 3px solid var(--neutral-900);
  top: 45px;
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  padding: 1.5rem;
  position: relative;
  margin-right: 2rem;
  text-align: center;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-right: 0;
  margin-left: 2rem;
}

.timeline-content img {
  max-width: 100%;
  height: auto;
  margin-top: 1.5rem;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
}

/* --------------------------------
   Behind the Scenes Section
-------------------------------- */
.behind-scenes-section {
  padding: 5rem 0;
  background-color: var(--neutral-200);
}

/* --------------------------------
   Resources Section
-------------------------------- */
.resources-section {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.resource-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.resource-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.resource-card p {
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* --------------------------------
   Pricing Section
-------------------------------- */
.pricing-section {
  padding: 5rem 0;
  background-color: var(--neutral-200);
}

.pricing-card {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.pricing-value {
  display: inline-flex;
  align-items: baseline;
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: var(--brutal-border);
  box-shadow: var(--brutal-shadow);
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  margin-right: 0.25rem;
}

.pricing-amount {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-period {
  font-size: 1rem;
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-features {
  margin-bottom: 2rem;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  text-align: left;
}

.pricing-features li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
}

.feature-check {
  color: var(--secondary-color);
  margin-right: 0.75rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-footer {
  margin-top: 2rem;
}

.donation-container {
  margin-top: 4rem;
  padding: 2rem;
  text-align: center;
}

/* --------------------------------
   Contact Section
-------------------------------- */
.contact-section {
  padding: 5rem 0;
  background-color: var(--neutral-100);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-list, .schedule-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact-list li, .schedule-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
}

.contact-list strong, .schedule-list strong {
  margin-right: 0.5rem;
  color: var(--neutral-700);
}

/* --------------------------------
   Footer
-------------------------------- */
.footer-brutal {
  padding: 5rem 0 2rem;
  background-color: var(--neutral-800);
  color: var(--neutral-300);
  border-top: var(--brutal-border);
}

.footer-title {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

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

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

.footer-links a {
  color: var(--neutral-300);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.newsletter-form {
  margin-top: 1.5rem;
}

.newsletter-form .input-group {
  display: flex;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 70%;
  min-width: 0;
  margin-right: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter-form button {
  flex: 1 1 auto;
}

.copyright {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--neutral-500);
}

/* --------------------------------
   Success Page
-------------------------------- */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

/* --------------------------------
   Privacy & Terms Pages
-------------------------------- */
.privacy-content,
.terms-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

/* --------------------------------
   Media Queries
-------------------------------- */
@media (max-width: 991.98px) {
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-dot {
    left: 20px !important;
    right: auto !important;
  }
  
  .timeline-content {
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
  
  .brutal-btn-container {
    flex-direction: column;
    align-items: center;
  }
  
  .brutal-btn-container .brutal-btn {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .brutal-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    padding: 5rem 0;
  }
  
  .stat-widget {
    width: 100%;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .brutal-image-container {
    margin-bottom: 1.5rem;
  }
  
  .brutal-content {
    padding: 1.5rem;
  }
  
  .pricing-value {
    padding: 0.75rem 1.5rem;
  }
  
  .pricing-amount {
    font-size: 2.5rem;
  }
  
  .social-links {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .social-links a {
    margin-bottom: 0.5rem;
  }
}

/* --------------------------------
   Animation Utilities
-------------------------------- */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}

.slide-up {
  animation: slideUp 0.8s ease-in-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-in-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-in-out;
}

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

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

@keyframes slideInLeft {
  from { 
    transform: translateX(-50px);
    opacity: 0;
  }
  to { 
    transform: translateX(0);
    opacity: 1;
  }
}

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

/* Hand-drawn effect for borders */
.brutal-hand-drawn {
  position: relative;
  z-index: 1;
}

.brutal-hand-drawn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--neutral-900);
  border-radius: var(--brutal-radius);
  z-index: -1;
  animation: handDrawn 0.8s linear infinite alternate;
}

@keyframes handDrawn {
  from {
    transform: translate(-2px, -2px);
    border-width: 3px 3px 3px 3px;
  }
  to {
    transform: translate(2px, 2px);
    border-width: 3px 2px 2px 3px;
  }
}