/* CSS Variables - Complementary Color Scheme */
:root {
  /* Primary Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  
  /* Complementary Colors */
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fbbf24;
  
  /* Accent Colors */
  --accent-color: #10b981;
  --accent-dark: #059669;
  --accent-light: #34d399;
  
  /* Neutral Colors */
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --bg-light: #f3f4f6;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.6));
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Typography */
  --font-heading: 'Roboto', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

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

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

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

/* Button Styles - Global */
.btn, button, input[type="submit"], .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.btn:before, button:before, input[type="submit"]:before, .button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover:before, button:hover:before, input[type="submit"]:hover:before, .button:hover:before {
  left: 100%;
}

.btn-primary, .button.is-primary {
  background: var(--gradient-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover, .button.is-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--text-white);
}

.btn-secondary, .button.is-light {
  background: var(--bg-primary);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover, .button.is-light:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  z-index: 1000;
}

.navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand .navbar-item {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.navbar-item {
  position: relative;
  transition: color var(--transition-fast);
}

.navbar-item:hover {
  color: var(--primary-color);
  background: transparent;
}

.navbar-item:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.navbar-item:hover:after {
  width: 80%;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

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

.hero-body {
  position: relative;
  z-index: 2;
  padding: var(--spacing-2xl) 0;
}

.hero .title {
  color: var(--text-white) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin-bottom: var(--spacing-md);
}

.hero .subtitle {
  color: var(--text-white) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  margin-bottom: var(--spacing-xl);
}

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

.section.has-background-light {
  background: var(--bg-secondary);
}

.section.has-background-dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

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

.section .title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
  border-radius: var(--radius-sm);
}

.section .subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  font-size: 1.1rem;
}

/* Card Styles */
.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

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

.image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

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

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

.card-content p {
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Progress Indicators */
.progress-container {
  margin-top: var(--spacing-md);
}

.progress {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-light);
  margin-bottom: var(--spacing-xs);
}

.progress::-webkit-progress-bar {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.progress::-webkit-progress-value {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  transition: width var(--transition-slow);
}

.progress.is-primary::-webkit-progress-value {
  background: var(--gradient-primary);
}

.progress.is-success::-webkit-progress-value {
  background: var(--accent-color);
}

.progress.is-info::-webkit-progress-value {
  background: var(--primary-light);
}

.progress.is-warning::-webkit-progress-value {
  background: var(--secondary-color);
}

/* Gallery Section */
#gallery .card {
  position: relative;
}

#gallery .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gradient-dark);
  color: var(--text-white);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

#gallery .card:hover .card-content {
  transform: translateY(0);
}

/* Testimonials Section */
#testimonials .card {
  position: relative;
  padding: var(--spacing-lg);
}

#testimonials .card:before {
  content: '"';
  position: absolute;
  top: -20px;
  left: var(--spacing-lg);
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: serif;
}

#testimonials blockquote {
  font-style: italic;
  margin: var(--spacing-md) 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

#testimonials footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 2px solid var(--bg-light);
}

/* Media Section */
.resource-list {
  list-style: none;
  padding: 0;
}

.resource-list li {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: var(--spacing-md);
}

.resource-list li:before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.resource-list a {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.resource-list a:hover {
  background: var(--bg-light);
  transform: translateX(5px);
}

/* Partners Section */
#partners .card {
  text-align: center;
  transition: all var(--transition-normal);
}

#partners .card:hover {
  background: var(--bg-light);
}

/* Contact Section */
.contact-form {
  background: var(--bg-primary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

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

.label {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.input, .textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--bg-light);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-info {
  background: var(--bg-secondary);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  height: fit-content;
}

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

.contact-info p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer .title {
  color: var(--text-white);
  margin-bottom: var(--spacing-md);
}

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

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

.footer-links a {
  color: var(--text-light);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-white);
}

.social-links a {
  color: var(--text-light);
  margin-right: var(--spacing-md);
  transition: all var(--transition-fast);
  position: relative;
}

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

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

.success-content {
  max-width: 600px;
  padding: var(--spacing-2xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

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

.success-content .subtitle {
  color: var(--text-white);
  opacity: 0.9;
  margin-bottom: var(--spacing-xl);
}

/* Privacy and Terms Pages */
.content-page {
  padding-top: 100px;
  min-height: 100vh;
}

.content-page .container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-lg);
}

.content-page .title {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.content-page .content {
  line-height: 1.8;
}

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

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

/* Cookie Consent */
.cookie-consent {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--primary-color);
}

.cookie-consent button {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-consent button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  .section {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-body {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-body {
    padding: var(--spacing-lg) 0;
  }
  
  .card-content {
    padding: var(--spacing-md);
  }
  
  .contact-form,
  .contact-info {
    padding: var(--spacing-lg);
  }
  
  .navbar-burger {
    color: var(--primary-color);
  }
  
  .navbar-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }
  
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .buttons .button {
    width: 100%;
    max-width: 300px;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .hero .title {
    font-size: 1.75rem;
  }
  
  .hero .subtitle {
    font-size: 1.1rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .cookie-consent {
    padding: var(--spacing-md);
  }
  
  .cookie-consent p {
    font-size: 13px;
    margin-bottom: var(--spacing-sm);
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
  }
  
  .card {
    border: 2px solid var(--text-secondary);
  }
  
  .btn, button, input[type="submit"], .button {
    border: 2px solid currentColor;
  }
}

/* Focus styles for accessibility */
.btn:focus, button:focus, input:focus, textarea:focus, .button:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Glassmorphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Parallax effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

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

.pulse-hover:hover {
  animation: pulse 0.6s ease-in-out;
}