:root {
  /* Primary colors */
  --color-primary: #FF6B35;
  --color-primary-dark: #E05A2B;
  --color-primary-light: #FF8A5F;
  
  /* Secondary colors */
  --color-secondary: #4ECDC4;
  --color-secondary-dark: #3BBBAF;
  --color-secondary-light: #6ED9D2;
  
  /* Accent colors */
  --color-accent: #FFD166;
  --color-accent-dark: #FFBA1F;
  --color-accent-light: #FFDC8A;
  
  /* Neutral colors */
  --color-dark: #292F36;
  --color-dark-medium: #3D4552;
  --color-medium: #6C757D;
  --color-light-medium: #ADB5BD;
  --color-light: #F7FFF7;
  
  /* Text colors */
  --text-dark: #333333;
  --text-medium: #555555;
  --text-light: #FFFFFF;
  
  /* Border radius */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* 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 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

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

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

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

/* Header & Navigation */
header {
  transition: all var(--transition-medium);
}

header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

nav a {
  position: relative;
  font-weight: 500;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transition: width var(--transition-medium);
}

nav a:hover::after {
  width: 100%;
}

#mobile-menu-button {
  transition: transform var(--transition-fast);
}

#mobile-menu-button:hover {
  transform: scale(1.1);
}

#mobile-menu {
  transition: all var(--transition-medium);
}

/* Hero Section */
#home {
  position: relative;
  overflow: hidden;
}

#home .absolute {
  transition: transform 0.8s ease-out;
}

#home:hover .absolute {
  transform: scale(1.05);
}

#home h1, #home p {
  color: var(--text-light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.reveal-text {
  opacity: 0;
}

.reveal-button {
  opacity: 0;
}

/* Button Styles - Global */
.bg-primary, button[type="submit"], input[type="submit"] {
  background-color: var(--color-primary);
  color: var(--text-light);
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: inline-block;
  color: #fff !important;
}

.bg-primary:hover, button[type="submit"]:hover, input[type="submit"]:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bg-transparent {
  background-color: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
  font-weight: 600;
  border-radius: var(--border-radius-md);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: inline-block;
}

.bg-transparent:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Section Headers */
section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 2.5rem;
}

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

/* Mission Section */
#mission {
  position: relative;
}

#mission .rounded-lg {
  overflow: hidden;
  transition: all var(--transition-medium);
}

#mission .rounded-lg:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

#mission img {
  transition: transform var(--transition-slow);
}

#mission .rounded-lg:hover img {
  transform: scale(1.05);
}

/* History Section */
#history {
  position: relative;
  background-color: var(--color-light);
}

#history .rounded-lg {
  overflow: hidden;
  transition: all var(--transition-medium);
}

#history .rounded-lg:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

#history img {
  transition: transform var(--transition-slow);
}

#history .rounded-lg:hover img {
  transform: scale(1.05);
}

/* Success Stories Section */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all var(--transition-medium);
  overflow: hidden;
}

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

.card-image {
  overflow: hidden;
  width: 100%;
  height: 14rem;
  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.1);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background-color: white;
}

/* Insights Section */
#insights {
  position: relative;
  background-color: var(--color-light);
}

#insights h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

#insights h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 2px;
  background-color: var(--color-primary);
}

/* Resources Section */
.card span {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-medium);
}

.card:hover span {
  transform: translateX(5px);
}

.card:hover span svg {
  transform: translateX(3px);
}

.card span svg {
  transition: transform var(--transition-medium);
}

/* Sustainability Section */
#sustainability {
  position: relative;
  background: linear-gradient(to right, rgba(78, 205, 196, 0.1), rgba(78, 205, 196, 0.2));
}

#sustainability .rounded-lg {
  overflow: hidden;
  transition: all var(--transition-medium);
}

#sustainability .rounded-lg:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

#sustainability img {
  transition: transform var(--transition-slow);
}

#sustainability .rounded-lg:hover img {
  transform: scale(1.05);
}

/* Toggle switch styling */
.peer:checked + .peer-checked\:bg-secondary {
  background-color: var(--color-secondary);
}

.peer:checked + .peer-checked\:after\:translate-x-full:after {
  transform: translateX(100%);
}

/* Contact Section */
#contact {
  position: relative;
}

#contact .bg-gray-50 {
  transition: all var(--transition-medium);
}

#contact .bg-gray-50:hover {
  box-shadow: var(--shadow-lg);
}

/* Form elements */
input, textarea, select {
  transition: all var(--transition-fast);
  border: 1px solid #e2e8f0;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
  outline: none;
}

/* Footer */
footer {
  background-color: var(--color-dark);
  color: var(--text-light);
}

footer h3 {
  color: var(--text-light);
}

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

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

footer input {
  background-color: var(--color-dark-medium);
  border: 1px solid var(--color-medium);
  color: var(--text-light);
}

footer input::placeholder {
  color: var(--color-light-medium);
}

footer button {
  width: 100%;
}

/* Social Media Links in Footer */
footer .flex.space-x-4 a {
  position: relative;
  display: inline-block;
  color: var(--text-light);
  transition: all var(--transition-medium);
}

footer .flex.space-x-4 a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* Cookie Consent */
#cookie-consent {
  background-color: rgba(41, 47, 54, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-medium);
}

#accept-cookies {
  transition: all var(--transition-medium);
}

#accept-cookies:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Animation Classes */
.reveal-left, .reveal-right {
  opacity: 0;
}

.reveal-card {
  opacity: 0;
  transform: translateY(30px);
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Additional Pages Styles */
.about-page, .privacy-page, .terms-page, .contacts-page {
  padding-top: 100px;
}

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

.success-page h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.success-page p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.success-page .btn {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* Background Images */
[style*="background-image"] {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

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

/* Media Queries */
@media (max-width: 768px) {
  section h2 {
    font-size: 2rem;
  }
  
  .card-image {
    height: 12rem;
  }
  
  #cookie-consent .container {
    flex-direction: column;
  }
  
  #cookie-consent p {
    text-align: center;
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  section {
    padding: 3rem 0;
  }
  
  section h2 {
    font-size: 1.75rem;
  }
  
  .card-image {
    height: 10rem;
  }
}

/* Read More links */
.read-more, [class*="font-bold flex items-center"] {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  transition: all var(--transition-medium);
}

.read-more:hover, [class*="font-bold flex items-center"]:hover {
  color: var(--color-primary-dark);
  transform: translateX(5px);
}

.read-more svg, [class*="font-bold flex items-center"] svg {
  margin-left: 0.5rem;
  transition: transform var(--transition-medium);
}

.read-more:hover svg, [class*="font-bold flex items-center"]:hover svg {
  transform: translateX(3px);
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes slideUp {
  0% { 
    opacity: 0;
    transform: translateY(30px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  0% { 
    opacity: 0;
    transform: translateX(30px);
  }
  100% { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  0% { 
    opacity: 0;
    transform: translateX(-30px);
  }
  100% { 
    opacity: 1;
    transform: translateX(0);
  }
}

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

.animate-slideUp {
  animation: slideUp 0.8s ease forwards;
}

.animate-slideLeft {
  animation: slideLeft 0.8s ease forwards;
}

.animate-slideRight {
  animation: slideRight 0.8s ease forwards;
}

/* Delayed animations */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

@media (max-width:768px){
    .col-grid {
      grid-template-columns: 1fr !important;
    }

    .col-grid + .flex {
      display: none;
    }
}