:root {
  --primary-color: #7b26c7;
  --secondary-color: #1d92a0;
  --accent-color: #405DE6;
  --background-color: #F0F3F4;
  --footer-bg-color: #1A1A2E;
  --text-color: #333333;
  --light-text-color: #f8f8f8;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);

  --section-bg-1: #FFFFFF;
  --section-bg-2: #F8F9FA;
  --section-bg-3: #ECEFF1;
  --section-bg-4: #E1F5FE;
  --section-bg-5: #D0DAE9;
  --section-bg-6: #F0F4F7;

  --border-radius-base: 12px;
  --shadow-small: 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 12px 24px rgba(0, 0, 0, 0.15);

  --font-family-base: 'Inter', sans-serif;
  --font-size-base: 1.125rem; /* 18px */
  --line-height-base: 1.6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);
  background-color: var(--background-color);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-base);
  color: var(--primary-color);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem; /* 56px */
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--primary-color);
}

h2 {
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--secondary-color);
}

h3 {
  font-size: 1.875rem; /* 30px */
  font-weight: 600;
  color: var(--text-color);
}

p {
  margin-bottom: 1em;
  color: var(--text-color);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

/* Layout & Spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.section:nth-of-type(even) {
  background-color: var(--section-bg-2);
}

.section:nth-of-type(odd) {
  background-color: var(--section-bg-1);
}

/* Specific section backgrounds */
.section-1 { background-color: var(--section-bg-1); }
.section-2 { background-color: var(--section-bg-2); }
.section-3 { background-color: var(--section-bg-3); }
.section-4 { background-color: var(--section-bg-4); }
.section-5 { background-color: var(--section-bg-5); }
.section-6 { background-color: var(--section-bg-6); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 1.8em;
  border-radius: var(--border-radius-base);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--accent-color);
  color: white;
  box-shadow: 0 6px 12px rgba(64, 93, 230, 0.3);
}

.btn-primary:hover {
  background-color: #354FCB;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(64, 93, 230, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  box-shadow: 0 6px 12px rgba(29, 146, 160, 0.3);
}

.btn-secondary:hover {
  background-color: #1a7a85;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(29, 146, 160, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(64, 93, 230, 0.2);
}

/* Cards & Elements */
.card {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-base);
  padding: 2rem;
  box-shadow: var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-large);
}

/* Glassmorphism Effect */
.glass {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-base);
  box-shadow: var(--glass-shadow) 0 8px 32px;
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.8em 1em;
  border: 1px solid #ccc;
  border-radius: var(--border-radius-base);
  font-family: var(--font-family-base);
  font-size: 1rem;
  color: var(--text-color);
  background-color: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(64, 93, 230, 0.2);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Navigation */
.header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-small);
}

.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--accent-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-color);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover::after {
  width: 100%;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--light-text-color);
  padding: 3rem 0;
  text-align: center;
}

.footer a {
  color: var(--secondary-color);
}

.footer a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.footer p {
  color: var(--light-text-color);
  margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Alpine.js specific styles */
[x-cloak] {
  display: none !important;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity 0.5s ease;
}
.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active, .slide-up-leave-active {
  transition: all 0.4s ease-out;
}
.slide-up-enter-from, .slide-up-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  body {
    font-size: 1rem;
  }
  .section {
    padding: 3rem 0;
  }
  .header-nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-menu {
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    display: none; /* Hidden by default, Alpine.js will toggle */
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-item {
    margin: 0.5rem 0;
    width: 100%;
    text-align: center;
  }
  .nav-link {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--accent-color);
  }
  .footer {
    padding: 2rem 0;
  }
}

/* Hamburger menu for small screens */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  position: relative;
  z-index: 1001; /* Ensure it's above other elements */
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: flex;
    margin-left: auto;
  }
  .nav-menu {
    display: none;
  }
  .nav-menu[x-show="open"] {
    display: flex;
    position: absolute;
    top: 100%; /* Position below header */
    left: 0;
    width: 100%;
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--shadow-small);
    flex-direction: column;
    padding: 1rem 0;
  }
  .hamburger-menu.open span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }
  .hamburger-menu.open span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.open span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px; /* Adjust as needed for specific elements */
}

/* Keyframes for subtle background animation or elements */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.95; }
  100% { transform: scale(1); opacity: 1; }
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.05;
  z-index: -2;
  animation: bg-pan 20s infinite alternate linear;
}

@keyframes bg-pan {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Hero section specific styling */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  animation: rotate-light 30s infinite linear;
  z-index: 1;
  pointer-events: none;
}

@keyframes rotate-light {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-section h1 {
  color: white;
  font-size: 4.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.hero-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 2;
}

.hero-buttons .btn {
  border: 2px solid white;
}

.hero-buttons .btn-primary {
  background-color: white;
  color: var(--accent-color);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-outline {
  color: white;
  border-color: white;
}

.hero-buttons .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .hero-section {
    padding: 6rem 0;
  }
  .hero-section h1 {
    font-size: 3rem;
  }
  .hero-section p {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .hero-buttons .btn {
    width: 80%;
    margin: 0 auto;
  }
}


/* 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;
    }
}