:root {
  /* Primary Colors - Analog color scheme */
  --primary-color: #2e7d32;
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --secondary-color: #00796b;
  --secondary-light: #009688;
  --secondary-dark: #004d40;
  --accent-color: #ffc107;
  --accent-light: #ffeb3b;
  --accent-dark: #ff8f00;
  
  /* Neutral Colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark: #212529;
  --border-color: #e0e0e0;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-overlay: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
  
  /* 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);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--background-light);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

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

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;
}

.section-padding {
  padding: var(--spacing-lg) 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.section-description {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto var(--spacing-md);
  color: var(--text-dark);
  opacity: 0.8;
}

.separator {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto var(--spacing-md);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--background-light);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  padding: var(--spacing-xs) 0;
}

.header.scrolled {
  padding: 5px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

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

.navbar-brand span {
  color: var(--accent-color);
}

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

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

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

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

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s;
  z-index: -1;
}

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

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

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

.btn-primary:active,
.btn-primary:focus {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(0);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

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

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

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

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin-top: 0;
  padding-top: 80px;
}

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

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-md);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  margin-top: var(--spacing-md);
}

/* Contact Form Top */
.contact-form-top {
  padding-top: 120px;
  background-color: var(--background-light);
}

.contact-card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

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

.contact-card .card-body {
  padding: var(--spacing-md);
}

.form-control, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

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

/* Mission Section */
.mission {
  background-color: white;
}

.mission-content {
  padding: var(--spacing-md);
}

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

.mission-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.mission-image:hover {
  transform: scale(1.02);
}

/* Features Section */
.features {
  background-color: var(--background-light);
}

.feature-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.feature-card .card-image {
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.feature-card .card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

/* Innovation Section */
.innovation {
  background-color: white;
}

.innovation-content {
  padding: var(--spacing-md);
}

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

.innovation-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-normal);
}

.innovation-image:hover {
  transform: scale(1.02);
}

.accordion {
  margin-top: var(--spacing-md);
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-xs);
  overflow: hidden;
}

.accordion-button {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
  background-color: white;
  padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-color);
  background-color: rgba(76, 175, 80, 0.1);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary-light);
}

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

.resource-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.resource-card .card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.resource-card .card-title {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.resource-card .card-text {
  flex: 1;
  margin-bottom: var(--spacing-md);
}

.resource-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* History Section */
.history {
  background-color: white;
}

.history-content {
  padding: var(--spacing-md);
}

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

.timeline-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: var(--spacing-md);
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.timeline-content {
  border-left: 2px solid var(--primary-light);
  padding-left: var(--spacing-sm);
}

.timeline-content h4 {
  color: var(--primary-dark);
  margin-bottom: 5px;
}

/* News Section */
.news {
  background-color: var(--background-light);
}

.news-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

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

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

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

.news-card .news-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.news-card .card-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.news-card .read-more {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding-right: 20px;
  align-self: flex-start;
}

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

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

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

/* Gallery Section */
.gallery {
  background-color: white;
}

.gallery-container {
  margin-top: var(--spacing-md);
}

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

.gallery-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
}

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-overlay);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal);
}

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

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

.gallery-info {
  text-align: center;
  padding: var(--spacing-md);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-info h4 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  color: white;
}

.gallery-info p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Events Calendar Section */
.events {
  background-color: var(--background-light);
}

.event-card {
  height: 100%;
  border: none;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  margin-bottom: var(--spacing-md);
}

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

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-md);
  min-width: 100px;
  text-align: center;
}

.event-date .day {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.event-date .year {
  font-size: 1rem;
}

.event-card .card-body {
  padding: var(--spacing-md);
  flex: 1;
}

.event-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.event-details {
  display: flex;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  opacity: 0.7;
}

.event-time, .event-location {
  margin-right: var(--spacing-md);
  display: flex;
  align-items: center;
}

.event-time i, .event-location i {
  margin-right: 5px;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-info {
  padding: var(--spacing-md);
}

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

.contact-item h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
}

.contact-item h3 i {
  margin-right: 10px;
  color: var(--primary-color);
}

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

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

.footer-about h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-sm);
}

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

.footer-about p {
  margin-bottom: var(--spacing-md);
  color: rgba(255, 255, 255, 0.8);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.social-links a {
  color: white;
  text-decoration: none;
  transition: color var(--transition-fast);
  margin-right: var(--spacing-sm);
  font-weight: bold;
}

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

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

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

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

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

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

.footer-newsletter h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.footer-newsletter p {
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.8);
}

.footer-newsletter form {
  display: flex;
}

.footer-newsletter input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  outline: none;
}

.footer-newsletter button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.footer-newsletter button:hover {
  background-color: var(--primary-dark);
}

.copyright {
  text-align: center;
  padding-top: var(--spacing-md);
  margin-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.success-content {
  background-color: white;
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
}

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

.success-content h1 {
  color: var(--primary-dark);
  margin-bottom: var(--spacing-sm);
}

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

/* Privacy & Terms Pages */
.page-content {
  padding-top: 120px;
  padding-bottom: var(--spacing-lg);
}

.page-content h1 {
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

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

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

/* Cookie Consent */
#cookieConsent {
  padding: var(--spacing-md);
  background-color: rgba(33, 37, 41, 0.9);
  backdrop-filter: blur(10px);
}

#acceptCookies {
  transition: all var(--transition-normal);
}

#acceptCookies:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

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

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.bg-accent {
  background-color: var(--accent-color) !important;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .event-card {
    flex-direction: column;
  }
  
  .event-date {
    width: 100%;
    padding: var(--spacing-sm);
    flex-direction: row;
    justify-content: center;
  }
  
  .event-date .day,
  .event-date .month,
  .event-date .year {
    margin: 0 5px;
  }
  
  .footer-links ul {
    columns: 1;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: var(--spacing-md) 0;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .feature-card .card-image,
  .news-card .card-image {
    height: 180px;
  }
  
  .gallery-image {
    height: 250px;
  }
  
  .footer-newsletter form {
    flex-direction: column;
  }
  
  .footer-newsletter input,
  .footer-newsletter button {
    width: 100%;
    border-radius: var(--border-radius-md);
  }
  
  .footer-newsletter button {
    margin-top: var(--spacing-xs);
  }
}

@media (max-width: 575.98px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .feature-card .card-image,
  .news-card .card-image {
    height: 160px;
  }
  
  .gallery-image {
    height: 200px;
  }
}

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

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

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

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

/* Keyframes */
@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;
  }
}

/* Card with images - ensure proper centering */
.card, .item, .testimonial, .team-member, .product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card .card-image, .item .item-image, .testimonial .testimonial-image, 
.team-member .team-image, .product-card .product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.card .card-image img, .item .item-image img, .testimonial .testimonial-image img,
.team-member .team-image img, .product-card .product-image img {
  margin: 0 auto;
  object-fit: cover;
}