/* Custom CSS Variables */
:root {
  /* Primary Colors */
  --primary-color: #2c56dd;
  --primary-dark: #1a3da9;
  --primary-light: #4e73f5;
  
  /* Secondary Colors */
  --secondary-color: #1ecbe1;
  --secondary-dark: #14a3b5;
  --secondary-light: #5ee0f2;
  
  /* Accent Colors */
  --accent-color: #ff6b6b;
  --accent-dark: #e84a4a;
  --accent-light: #ff9797;
  
  /* Neutral Colors */
  --dark-color: #111827;
  --dark-medium: #2a2f45;
  --medium-color: #4b5563;
  --light-medium: #9ca3af;
  --light-color: #f3f4f6;
  --white-color: #ffffff;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-dark: linear-gradient(135deg, var(--dark-color), var(--primary-dark));
  --gradient-light: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  
  /* Overlay Colors */
  --overlay-dark: rgba(17, 24, 39, 0.7);
  --overlay-medium: rgba(17, 24, 39, 0.5);
  --overlay-light: rgba(17, 24, 39, 0.3);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Animation */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Section padding */
  --section-padding: 6rem 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--medium-color);
  background-color: var(--white-color);
  overflow-x: hidden;
  margin: 0;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark-color);
}

p {
  margin-bottom: var(--spacing-md);
}

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

section {
  position: relative;
  padding: var(--section-padding);
}

.section-padding {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-align: center;
  color: var(--dark-color);
  position: relative;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--radius-full);
}

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

/* Button Styles - Global */
.btn,
button:not(.navbar-toggler),
input[type="submit"] {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-md);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: -1;
}

.btn:hover::after {
  width: 300%;
  height: 300%;
}

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

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline-light:hover, .btn-outline-light:focus {
  background-color: var(--white-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Header & Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  transition: all var(--transition-medium);
  z-index: 1000;
}

.header.scrolled {
  background-color: var(--white-color);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-color);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--medium-color);
  padding: 0.5rem 1rem;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-medium), left var(--transition-medium);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link:focus {
  color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link:focus::after {
  width: 80%;
  left: 10%;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white-color);
  overflow: hidden;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: 0;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--white-color);
  animation: fadeInUp 1s var(--transition-bounce) both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 1s var(--transition-bounce) 0.2s both;
  color: var(--white-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  animation: fadeInUp 1s var(--transition-bounce) 0.4s both;
}

/* Vision Section */
.vision-section {
  background-color: var(--white-color);
}

.vision-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.vision-image-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium);
}

.vision-image-container:hover {
  transform: translateY(-10px);
}

.custom-progress {
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--light-color);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

.custom-progress .progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.progress-label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--medium-color);
  margin-bottom: var(--spacing-xs);
}

/* Process Section */
.process-section {
  background: var(--gradient-light);
  position: relative;
}

.bg-gradient {
  position: relative;
  overflow: hidden;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244, 247, 254, 0.9), rgba(255, 255, 255, 0.85));
  z-index: 0;
}

.process-section .container {
  position: relative;
  z-index: 1;
}

.process-card {
  background-color: var(--white-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.card-number {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--gradient-primary);
  color: var(--white-color);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.card-content {
  text-align: center;
}

.card-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.custom-slider {
  width: 100%;
  padding: var(--spacing-sm) 0;
  position: relative;
}

.slider-track {
  height: 10px;
  background-color: var(--light-color);
  border-radius: var(--radius-full);
  position: relative;
}

.slider-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 96%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-xs);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--medium-color);
}

.slider-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

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

.testimonial-card {
  background-color: var(--white-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

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

.testimonial-card .card-content {
  padding: var(--spacing-lg);
  text-align: center;
  flex: 1;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--spacing-lg);
  color: var(--medium-color);
}

.testimonial-author h4 {
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.testimonial-author p {
  font-size: 0.875rem;
  color: var(--medium-color);
  margin-bottom: 0;
}

.toggle-buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.toggle-btn {
  background-color: var(--light-color);
  color: var(--medium-color);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.toggle-btn.active, .toggle-btn:hover {
  background: var(--gradient-primary);
  color: var(--white-color);
}

/* Resources Section */
.resources-section {
  background-color: var(--light-color);
}

.resource-card {
  background-color: var(--white-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.resource-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

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

.resource-title a:hover {
  color: var(--primary-dark);
}

.resource-description {
  color: var(--medium-color);
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.resource-link {
  margin-top: auto;
}

/* Behind the Scenes Section */
.behind-scenes-section {
  position: relative;
  color: var(--white-color);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.behind-scenes-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6));
  z-index: 0;
}

.behind-scenes-section .container {
  position: relative;
  z-index: 1;
}

.behind-scenes-section .section-title {
  color: var(--white-color);
}

.behind-content h3 {
  color: var(--secondary-light);
}

.behind-content p {
  color: var(--light-color);
}

.behind-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform var(--transition-medium), background-color var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--white-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--light-medium);
}

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

.contact-info {
  padding: var(--spacing-lg);
  background-color: var(--light-color);
  border-radius: var(--radius-lg);
  height: 100%;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-lg);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.25rem;
  margin-right: var(--spacing-md);
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.info-content p {
  margin-bottom: 0;
  color: var(--medium-color);
}

.contact-form-container {
  background-color: var(--white-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  height: 100%;
}

.form-control, .form-select {
  border: 2px solid var(--light-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(44, 86, 221, 0.25);
}

.form-control::placeholder {
  color: var(--light-medium);
}

label {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--medium-color);
  margin-bottom: var(--spacing-xs);
}

/* Footer Section */
.footer-section {
  background: var(--gradient-dark);
  color: var(--light-color);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  position: relative;
}

.footer-title {
  color: var(--white-color);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-md);
}

.footer-desc {
  color: var(--light-color);
  margin-bottom: var(--spacing-lg);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.social-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-family: var(--font-heading);
  font-weight: 600;
}

.social-links a:hover {
  color: var(--primary-light);
}

.footer-subtitle {
  color: var(--white-color);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
}

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

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

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

.newsletter-form .input-group {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.newsletter-form .form-control {
  border: none;
  border-radius: 0;
  padding: 0.75rem;
}

.newsletter-form .btn {
  border-radius: 0;
  padding: 0.75rem 1.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.copyright {
  color: var(--light-medium);
  margin-bottom: 0;
}

.footer-credits {
  color: var(--light-medium);
  margin-bottom: 0;
}

.footer-credits span {
  color: var(--accent-color);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-medium);
  color: var(--light-color);
  padding: var(--spacing-md);
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.cookie-content p {
  margin-bottom: 0;
  flex: 1;
}

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

.success-container {
  max-width: 600px;
  width: 100%;
  text-align: center;
  background-color: var(--white-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 1s var(--transition-bounce);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  color: var(--white-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--spacing-lg);
}

.success-title {
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}

.success-message {
  margin-bottom: var(--spacing-lg);
  color: var(--medium-color);
}

/* About, Privacy, Terms Pages */
.page-header {
  position: relative;
  height: 300px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
}

.page-title {
  font-size: 3rem;
  margin-bottom: 0;
  color: var(--white-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xxl);
}

/* Parallax Effect */
.parallax-section {
  background-attachment: fixed;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Media Queries */
@media (max-width: 991.98px) {
  :root {
    --section-padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }
  
  .behind-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 3rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .page-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 575.98px) {
  :root {
    --section-padding: 2.5rem 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin: 0 0 var(--spacing-sm) 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}