:root {
  /* Triadic color scheme */
  --primary-color: #3a55b4; /* Rich blue */
  --primary-dark: #2a3f8c;
  --primary-light: #5b73d2;
  
  --secondary-color: #b43a55; /* Red accent */
  --secondary-dark: #8c2a3f;
  --secondary-light: #d25b73;
  
  --tertiary-color: #55b43a; /* Green accent */
  --tertiary-dark: #3f8c2a;
  --tertiary-light: #73d25b;
  
  /* Neutral colors */
  --dark: #333333;
  --medium-dark: #555555;
  --medium: #777777;
  --light-medium: #999999;
  --light: #eeeeee;
  --white: #ffffff;
  
  /* Font families */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Source Sans Pro', sans-serif;
  
  /* Sizes */
  --heading-large: 3.5rem;
  --heading-medium: 2.5rem;
  --heading-small: 1.75rem;
  --paragraph: 1.125rem;
  --small-text: 0.875rem;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

h1 {
  font-size: var(--heading-large);
}

h2 {
  font-size: var(--heading-medium);
}

h3 {
  font-size: var(--heading-small);
}

p {
  margin-bottom: var(--space-sm);
  font-size: var(--paragraph);
}

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

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

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

/* Container Adjustments */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.mb-5 {
  margin-bottom: var(--space-xl);
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mt-5 {
  margin-top: var(--space-xl);
}

/* Button Styles */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  border: none;
}

.btn-primary,
.btn-primary:focus {
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

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

.btn-secondary,
.btn-secondary:focus {
  background-color: var(--secondary-color);
  color: var(--white);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

/* Navigation */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-medium);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
  color: var(--primary-color);
}

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

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

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

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10rem 0 6rem;
  display: flex;
  align-items: center;
  min-height: 100vh;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

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

.hero h2 {
  margin-bottom: var(--space-md);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero p {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Services Section */
.services-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.section-title {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: var(--space-xs);
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
}

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

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

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

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

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

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

.card-content {
  padding: var(--space-md);
  text-align: center;
}

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

.card-content p {
  color: var(--medium-dark);
}

/* Team Section */
.team-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

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

.team-card:hover {
  transform: translateY(-5px);
}

.team-card .card-image {
  height: 350px;
  width: 100%;
}

.team-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Resources Section */
.resources-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.resource-card {
  height: 100%;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  transform: translateY(-5px);
}

.resource-card .card-content {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.resource-card p {
  margin-bottom: var(--space-md);
}

.resource-card .btn {
  margin-top: auto;
}

/* Workshops Section */
.workshops-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

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

.workshop-card .card-image {
  height: 300px;
  width: 100%;
}

.workshop-date {
  color: var(--tertiary-color);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* Community Section */
.community-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.community-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.community-card .card-image {
  height: 300px;
  width: 100%;
}

/* Innovation Section */
.innovation-section {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
  color: var(--white);
}

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

.innovation-section .section-title::after {
  background-color: var(--white);
}

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

.innovation-card:hover {
  transform: translateY(-5px);
}

.innovation-card .card-image {
  height: 300px;
  width: 100%;
}

.innovation-card .card-content {
  color: var(--dark);
}

.innovation-card h3 {
  color: var(--primary-color);
}

/* Behind Scenes Section */
.behind-scenes-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.behind-scenes-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.behind-scenes-card .card-image {
  height: 300px;
  width: 100%;
}

/* Gallery Section */
.gallery-section {
  padding: var(--space-xl) 0;
  background-color: var(--white);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--white);
}

.gallery-controls {
  margin-top: var(--space-md);
}

.gallery-controls button {
  margin: 0 var(--space-xs);
}

/* Contact Section */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--light);
}

.contact-info {
  background-color: var(--white);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  height: 100%;
}

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

.contact-info p {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: var(--space-xs);
  color: var(--primary-color);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 300px;
}

.map-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.contact-form-container h3 {
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.form-control {
  border: 1px solid var(--light-medium);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: var(--space-sm);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(58, 85, 180, 0.1);
}

/* Footer */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  background-color: var(--dark);
  color: var(--light);
}

.footer h3 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.footer p {
  color: var(--light-medium);
}

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

.footer-links li,
.social-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.social-links a {
  color: var(--light-medium);
  transition: color var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--white);
  text-decoration: none;
  transform: translateX(5px);
}

.footer hr {
  margin: var(--space-md) 0;
  border-color: var(--medium-dark);
}

/* Success Page */
.success-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl) 0;
}

.success-icon {
  color: var(--tertiary-color);
  font-size: 5rem;
  margin-bottom: var(--space-md);
}

.success-message {
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Privacy and Terms Pages */
.privacy-page,
.terms-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.privacy-page h1,
.terms-page h1 {
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

.privacy-page h2,
.terms-page h2 {
  color: var(--primary-color);
  margin: var(--space-lg) 0 var(--space-md);
}

.privacy-page p,
.terms-page p {
  margin-bottom: var(--space-md);
}

/* About Page */
.about-page {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

/* Read More Links */
.read-more {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  position: relative;
  padding-right: 1.2rem;
}

.read-more::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translate(5px, -50%);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  :root {
    --heading-large: 3rem;
    --heading-medium: 2.2rem;
    --heading-small: 1.5rem;
  }
  
  .hero {
    padding: 8rem 0 4rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-buttons .btn {
    margin-bottom: var(--space-sm);
    width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --heading-large: 2.5rem;
    --heading-medium: 2rem;
    --heading-small: 1.3rem;
    --paragraph: 1rem;
  }
  
  .section-title {
    margin-bottom: var(--space-md);
  }
  
  .section-subtitle {
    margin-bottom: var(--space-md);
  }
  
  .card-image {
    height: 200px;
  }
  
  .team-card .card-image {
    height: 300px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .hero {
    padding: 7rem 0 3rem;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .card-image {
    height: 180px;
  }
  
  .team-card .card-image {
    height: 250px;
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

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

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.scale-in {
  animation: scaleIn 0.8s ease forwards;
}

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

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