/* CSS Variables for Split-Complementary Color Scheme */
:root {
  /* Primary Colors (Split-Complementary) */
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --primary-light: #66b3ff;
  
  /* Split-Complementary Colors */
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e55529;
  --accent-orange-light: #ff8659;
  
  --accent-pink: #ff3585;
  --accent-pink-dark: #e52969;
  --accent-pink-light: #ff59a1;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --black: #000000;
  
  /* Text Colors */
  --text-primary: #222222;
  --text-secondary: #333333;
  --text-muted: #6c757d;
  --text-light: #ffffff;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #212529;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-pink) 100%);
  --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  --gradient-hero: linear-gradient(135deg, rgba(0,123,255,0.9) 0%, rgba(255,107,53,0.8) 50%, rgba(255,53,133,0.9) 100%);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
  --shadow-xl: 0 16px 32px rgba(0,0,0,0.25);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Nunito', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

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

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

p {
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Button Styles - Global */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::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);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

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

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

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline-light:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-success {
  background: transparent;
  color: #28a745;
  border: 2px solid #28a745;
}

.btn-outline-success:hover {
  background: #28a745;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-warning {
  background: transparent;
  color: #ffc107;
  border: 2px solid #ffc107;
}

.btn-outline-warning:hover {
  background: #ffc107;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Hover Lift Effect */
.hover-lift {
  transition: all var(--transition-normal);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Header Styles */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

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

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

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

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: 1;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--white) !important;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--white) !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  opacity: 0.95;
}

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

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.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 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Research Cards */
.research-card {
  background: var(--white);
  border-left: 4px solid var(--primary-color);
}

.research-card:hover {
  border-left-color: var(--accent-orange);
}

/* Statistics Section */
.stat-widget {
  text-align: center;
  padding: 2rem;
}

.stat-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: all var(--transition-normal);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

.animated-icon:hover {
  transform: scale(1.1);
  color: var(--accent-orange);
}

/* Workshop Items */
.workshop-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.workshop-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.workshop-image {
  flex-shrink: 0;
}

.workshop-image img {
  border-radius: var(--radius-md);
}

.workshop-content {
  flex-grow: 1;
}

.workshop-toggle {
  margin-top: 1rem;
}

.workshop-toggle .form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Insights Section */
.insights-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.insights-sidebar {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.insight-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.insight-item:last-child {
  border-bottom: none;
}

/* External Resources */
.resource-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.resource-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Community Section */
.community-section {
  background: var(--bg-secondary);
}

/* Awards Section */
.award-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

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

.award-card img {
  margin: 0 auto;
  display: block;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* Methodology Steps */
.methodology-steps {
  position: relative;
}

.methodology-steps::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  z-index: 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex-grow: 1;
  padding-top: 0.5rem;
}

/* History Section */
.history-section img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* FAQ Section */
.accordion {
  --bs-accordion-border-radius: var(--radius-lg);
  --bs-accordion-border-color: rgba(0,0,0,0.125);
}

.accordion-item {
  border: 1px solid var(--bs-accordion-border-color);
  border-radius: var(--radius-md) !important;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--white);
  border-radius: var(--radius-md) !important;
}

.accordion-button:not(.collapsed) {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: none;
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-secondary);
}

/* Testimonials */
.testimonial-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

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

.testimonial-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-card .card-image {
  height: auto;
  margin-bottom: 1rem;
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin: 0 auto;
}

.rating i {
  font-size: 1.2rem;
  margin: 0 2px;
}

.blockquote {
  margin: 1rem 0;
  font-style: italic;
}

/* Contact Section */
.contact-form-card {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modern-input {
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: all var(--transition-fast);
  background: var(--white);
}

.modern-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  background: var(--white);
}

.contact-info {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: fit-content;
}

.contact-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 1rem;
}

.contact-item:last-child {
  border-bottom: none;
}

.office {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--bg-dark) !important;
  color: var(--text-light);
  padding: 3rem 0 2rem;
}

footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

footer a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--white);
}

/* Social Media Links */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
}

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

/* Cookie Popup */
.cookie-popup {
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--primary-color);
}

/* Counter Animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter {
  animation: countUp 0.8s ease-out;
}

/* Loading Animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading {
  animation: pulse 2s infinite;
}

/* Form Validation */
.form-control.is-valid {
  border-color: #28a745;
}

.form-control.is-invalid {
  border-color: #dc3545;
}

.valid-feedback {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.invalid-feedback {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

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

.success-content {
  max-width: 600px;
  padding: 2rem;
}

.success-icon {
  font-size: 5rem;
  color: #28a745;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

/* Privacy and Terms Pages */
.legal-page {
  padding-top: 120px;
  padding-bottom: 3rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.legal-content h2 {
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .methodology-steps::before {
    display: none;
  }
  
  .step-item {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-bottom: 1rem;
    margin-right: 0;
  }
  
  .workshop-item {
    flex-direction: column;
  }
  
  .workshop-image {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .navbar-brand img {
    width: 40px;
    height: 40px;
  }
  
  .stat-icon {
    font-size: 2.5rem;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .card-image {
    height: 200px;
  }
  
  .contact-form-card .card-body {
    padding: 2rem 1.5rem;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .cookie-popup,
  .scroll-to-top,
  footer {
    display: none !important;
  }
  
  .hero-section {
    background: none !important;
    color: var(--text-primary) !important;
  }
  
  .hero-title,
  .hero-subtitle {
    color: var(--text-primary) !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .section-title {
    font-size: 18pt;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #0056b3;
    --text-primary: #000000;
    --text-secondary: #333333;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
  }
  
  .card {
    background: #2d2d2d;
    color: var(--text-primary);
  }
  
  .navbar {
    background: rgba(26, 26, 26, 0.95);
  }
  
  .modern-input {
    background: #2d2d2d;
    color: var(--text-primary);
    border-color: #4a4a4a;
  }
  
  .modern-input:focus {
    background: #2d2d2d;
  }
}