:root {
  --primary-color: #6C20A2;
  --secondary-color: #FFE81F;
  --background-color: #F0F0FF;
  --footer-bg-color: #1A1A2E;
  --button-color: #8A2BE2;
  --text-color: #333333;
  --light-text-color: #f0f0ff;
  --heading-font: 'Montserrat', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --transition-speed: 0.3s ease-in-out;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.2);
  --section-bg-1: #F8F8FF;
  --section-bg-2: #FFFFFF;
  --section-bg-3: #EEEdFF;
  --section-bg-4: #F3F2FF;
  --section-bg-5: #E6E6FA;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  line-height: 1.2;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

h1 {
  font-size: 3.2em;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5em;
  font-weight: 600;
}

h3 {
  font-size: 1.8em;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius-md);
}

section:nth-of-type(odd) {
  background-color: var(--section-bg-1);
}

section:nth-of-type(even) {
  background-color: var(--section-bg-2);
}

section:nth-of-type(3n) {
  background-color: var(--section-bg-3);
}

section:nth-of-type(4n) {
  background-color: var(--section-bg-4);
}

section:nth-of-type(5n) {
  background-color: var(--section-bg-5);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Glassmorphism effect */
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
}

.header .logo {
  font-family: var(--heading-font);
  font-size: 1.8em;
  font-weight: 700;
  color: var(--primary-color);
}

.header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

.header nav a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color var(--transition-speed);
}

.header nav a:hover {
  color: var(--primary-color);
}

.header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-speed);
}

.header nav a:hover::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: var(--border-radius-lg);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow-sm);
  background-image: linear-gradient(to right, var(--button-color), #D8BFD8);
  color: var(--light-text-color);
}

.btn:hover {
  background-image: linear-gradient(to right, #D8BFD8, var(--secondary-color));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background-image: linear-gradient(to right, var(--secondary-color), #FFD700);
  color: var(--text-color);
}

.btn-secondary:hover {
  background-image: linear-gradient(to right, #FFD700, var(--button-color));
  color: var(--light-text-color);
}

/* Cards */
.card {
  background-color: var(--section-bg-2);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed);
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15), 0 0 0 5px rgba(var(--primary-color), 0.1);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius-sm);
  font-family: var(--body-font);
  font-size: 1em;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--light-text-color);
  padding: 3rem 2rem;
  font-size: 0.9em;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer h4 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 0.7rem;
}

.footer ul li a {
  color: var(--light-text-color);
  transition: color var(--transition-speed);
}

.footer ul li a:hover {
  color: var(--secondary-color);
}

.footer-socials a {
  display: inline-block;
  margin-right: 1rem;
  font-size: 1.5em;
  color: var(--light-text-color);
  transition: transform var(--transition-speed);
}

.footer-socials a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Utilities (for Alpine.js transitions) */
[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.5s ease-out;
}

.slide-up-enter-from,
.slide-up-leave-to {
  opacity: 0;
  transform: translateY(20px);
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .header nav ul {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 2em;
  }

  section {
    padding: 3rem 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-socials {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.6em;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 1em;
  }
}


/* 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;
    }
}