:root {
  --color-primary: #2ECC71;
  --color-secondary: #3498DB;
  --color-accent: #27AE60;
  --color-text-dark: #2C3E50;
  --color-text-light: #ECF0F1; /* Adjusted for contrast */
  --color-background: #ECF0F1;
  --color-footer-bg: #2C3E50;

  --section-bg-1: #FFFFFF;
  --section-bg-2: #F8FBF8;
  --section-bg-3: #EEFDF2;
  --section-bg-4: #E8F4F0;
  --section-bg-5: #F0F9F5;
  --section-bg-6: #EDF5EE;

  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Montserrat', sans-serif;
  --font-size-base: 17px;

  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1);   /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2);   /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 3);   /* 24px */
  --spacing-lg: calc(var(--spacing-unit) * 4);   /* 32px */
  --spacing-xl: calc(var(--spacing-unit) * 6);   /* 48px */
  --spacing-xxl: calc(var(--spacing-unit) * 8);  /* 64px */

  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --border-radius-pill: 9999px;

  --shadow-sm: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-glass: 0 4px 30px rgba(0, 0, 0, 0.1);

  --transition-speed-fast: 0.2s;
  --transition-speed-normal: 0.3s;
  --transition-speed-slow: 0.4s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

h1 { font-size: 3.2rem; margin-top: var(--spacing-xl); }
h2 { font-size: 2.5rem; margin-top: var(--spacing-lg); }
h3 { font-size: 2rem; margin-top: var(--spacing-md); }
h4 { font-size: 1.6rem; margin-top: var(--spacing-md); }
h5 { font-size: 1.3rem; margin-top: var(--spacing-sm); }
h6 { font-size: 1.1rem; margin-top: var(--spacing-sm); }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed-fast) var(--transition-easing);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  margin-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Glassmorphism Card Style */
.card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: transform var(--transition-speed-normal) var(--transition-easing), box-shadow var(--transition-speed-normal) var(--transition-easing);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.6;
  pointer-events: none;
}

/* Buttons with subtle 3D and gradient */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-pill);
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: var(--font-size-base);
  text-align: center;
  border: none;
  cursor: pointer;
  background-color: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
  transition: all var(--transition-speed-normal) var(--transition-easing);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(39, 174, 96, 0.4);
  background-color: #2ECC71; /* Slightly lighter */
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(39, 174, 96, 0.2);
}

.btn-secondary {
  background-color: var(--color-secondary);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary:hover {
  background-color: #5DADE2; /* Slightly lighter */
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: var(--color-text-dark);
  background-color: rgba(255, 255, 255, 0.8);
  transition: border-color var(--transition-speed-fast) var(--transition-easing), box-shadow var(--transition-speed-fast) var(--transition-easing);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Navigation - basic structure, Tailwind will handle layout */
nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

nav a {
  color: var(--color-text-dark);
  font-weight: 500;
  padding: calc(var(--spacing-xs) / 2) var(--spacing-xs);
  border-radius: var(--border-radius-sm);
}

nav a:hover {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--color-primary);
  text-decoration: none;
}

/* Footer */
footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: var(--spacing-xl) 0;
  text-align: center;
}

footer a {
  color: var(--color-secondary);
}

footer a:hover {
  color: var(--color-primary);
}

/* Section Backgrounds with text color override */
.section-bg-1 {
  background-color: var(--section-bg-1);
  color: #2C3E50 !important;
}
.section-bg-1 h1, .section-bg-1 h2, .section-bg-1 h3, .section-bg-1 h4, .section-bg-1 h5, .section-bg-1 h6, .section-bg-1 p, .section-bg-1 span, .section-bg-1 div, .section-bg-1 a {
  color: #2C3E50 !important;
}

.section-bg-2 {
  background-color: var(--section-bg-2);
  color: #2C3E50 !important;
}
.section-bg-2 h1, .section-bg-2 h2, .section-bg-2 h3, .section-bg-2 h4, .section-bg-2 h5, .section-bg-2 h6, .section-bg-2 p, .section-bg-2 span, .section-bg-2 div, .section-bg-2 a {
  color: #2C3E50 !important;
}

.section-bg-3 {
  background-color: var(--section-bg-3);
  color: #2C3E50 !important;
}
.section-bg-3 h1, .section-bg-3 h2, .section-bg-3 h3, .section-bg-3 h4, .section-bg-3 h5, .section-bg-3 h6, .section-bg-3 p, .section-bg-3 span, .section-bg-3 div, .section-bg-3 a {
  color: #2C3E50 !important;
}

.section-bg-4 {
  background-color: var(--section-bg-4);
  color: #2C3E50 !important;
}
.section-bg-4 h1, .section-bg-4 h2, .section-bg-4 h3, .section-bg-4 h4, .section-bg-4 h5, .section-bg-4 h6, .section-bg-4 p, .section-bg-4 span, .section-bg-4 div, .section-bg-4 a {
  color: #2C3E50 !important;
}

.section-bg-5 {
  background-color: var(--section-bg-5);
  color: #2C3E50 !important;
}
.section-bg-5 h1, .section-bg-5 h2, .section-bg-5 h3, .section-bg-5 h4, .section-bg-5 h5, .section-bg-5 h6, .section-bg-5 p, .section-bg-5 span, .section-bg-5 div, .section-bg-5 a {
  color: #2C3E50 !important;
}

.section-bg-6 {
  background-color: var(--section-bg-6);
  color: #2C3E50 !important;
}
.section-bg-6 h1, .section-bg-6 h2, .section-bg-6 h3, .section-bg-6 h4, .section-bg-6 h5, .section-bg-6 h6, .section-bg-6 p, .section-bg-6 span, .section-bg-6 div, .section-bg-6 a {
  color: #2C3E50 !important;
}

/* Alpine.js Transitions */
[x-cloak] {
  display: none !important;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity var(--transition-speed-normal) var(--transition-easing);
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
  transition: transform var(--transition-speed-normal) var(--transition-easing), opacity var(--transition-speed-normal) var(--transition-easing);
}
.slide-up-enter, .slide-up-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.7rem; }
  body { font-size: 16px; }

  .container {
    padding: 0 var(--spacing-sm);
  }

  nav.hidden {
    display: none !important;
  }
}

@media (min-width: 768px) {
  nav.hidden {
    display: flex !important; /* Ensure nav is visible on larger screens if using a mobile toggle */
  }
}

/* Subtle 3D element inspiration for specific use cases (e.g., hero images, complex buttons) */
.element-3d {
  transform: translateZ(0); /* Force hardware acceleration */
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Example of a more complex interactive element */
.interactive-item {
  position: relative;
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.interactive-item:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Custom background gradient for hero sections or specific areas */
.hero-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-light) !important;
}

.hero-gradient h1, .hero-gradient h2, .hero-gradient p, .hero-gradient a {
  color: var(--color-text-light) !important;
}

/* Utility to ensure text contrast on dark backgrounds */
.text-on-dark {
  color: #FFFFFF !important;
}

/* Utility to ensure text contrast on light backgrounds */
.text-on-light {
  color: #2C3E50 !important;
}

/* Custom scrollbar for a polished look */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-background);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 5px;
  transition: background var(--transition-speed-fast) var(--transition-easing);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}