:root {
  /* Light Theme Palette */
  --color-bg-light: #f9fafb;
  --color-bg-secondary-light: #ffffff;
  --color-bg-tertiary-light: #f3f4f6;
  --color-text-primary-light: #1f2937;
  --color-text-secondary-light: #4b5563;
  --color-text-tertiary-light: #9ca3af;
  --color-border-light: #e5e7eb;
  --color-border-hover-light: #d1d5db;
  --color-primary-light: #2563eb;
  --color-primary-hover-light: #1d4ed8;
  --color-primary-focus-light: rgba(37, 99, 235, 0.2);
  --color-secondary-light: #059669;
  --color-secondary-hover-light: #047857;
  --color-success-light: #10b981;
  --color-warning-light: #f59e0b;
  --color-error-light: #ef4444;
  --color-shadow-light: rgba(0, 0, 0, 0.05);
  --color-shadow-medium-light: rgba(0, 0, 0, 0.1);

  /* Dark Theme Palette */
  --color-bg-dark: #111827;
  --color-bg-secondary-dark: #1f2937;
  --color-bg-tertiary-dark: #374151;
  --color-text-primary-dark: #f9fafb;
  --color-text-secondary-dark: #d1d5db;
  --color-text-tertiary-dark: #9ca3af;
  --color-border-dark: #4b5563;
  --color-border-hover-dark: #6b7280;
  --color-primary-dark: #3b82f6;
  --color-primary-hover-dark: #60a5fa;
  --color-primary-focus-dark: rgba(59, 130, 246, 0.2);
  --color-secondary-dark: #10b981;
  --color-secondary-hover-dark: #34d399;
  --color-success-dark: #34d399;
  --color-warning-dark: #fbbf24;
  --color-error-dark: #f87171;
  --color-shadow-dark: rgba(0, 0, 0, 0.2);
  --color-shadow-medium-dark: rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  --font-secondary: "Lora", serif;
  --font-monospace: "Fira Code", monospace;

  /* Font Sizes (Fluid Typography) */
  --font-size-xs: clamp(0.75rem, 0.5vw + 0.6rem, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.5vw + 0.7rem, 1rem);
  --font-size-base: clamp(1rem, 0.5vw + 0.8rem, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1vw + 0.8rem, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 2vw + 1rem, 2rem);
  --font-size-3xl: clamp(1.875rem, 3vw + 1rem, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 4vw + 1.2rem, 3.5rem);
  --font-size-5xl: clamp(3rem, 5vw + 1.5rem, 4.5rem);

  /* Spacing (Fluid) */
  --space-xs: clamp(0.25rem, 0.5vw + 0.1rem, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw + 0.2rem, 1rem);
  --space-md: clamp(1rem, 2vw + 0.4rem, 2rem);
  --space-lg: clamp(1.5rem, 3vw + 0.6rem, 3rem);
  --space-xl: clamp(2rem, 4vw + 0.8rem, 4rem);
  --space-2xl: clamp(3rem, 6vw + 1.2rem, 6rem);
  --space-3xl: clamp(4rem, 8vw + 1.6rem, 8rem);
  --space-section: clamp(4rem, 10vw + 2rem, 10rem);

  /* Other Variables */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-full: 9999px;
  --transition-fast: 200ms ease-in-out;
  --transition-medium: 400ms ease-in-out;
  --transition-slow: 600ms ease-in-out;
  --container-width: 1280px;
  --container-padding: var(--space-md);
  --shadow-sm: 0 1px 2px 0 var(--color-shadow);
  --shadow-md: 0 4px 6px -1px var(--color-shadow),
    0 2px 4px -1px var(--color-shadow);
  --shadow-lg: 0 10px 15px -3px var(--color-shadow-medium),
    0 4px 6px -2px var(--color-shadow-medium);
  --shadow-xl: 0 20px 25px -5px var(--color-shadow-medium),
    0 10px 10px -5px var(--color-shadow-medium);
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: var(--color-bg-light);
    --color-bg-secondary: var(--color-bg-secondary-light);
    --color-bg-tertiary: var(--color-bg-tertiary-light);
    --color-text-primary: var(--color-text-primary-light);
    --color-text-secondary: var(--color-text-secondary-light);
    --color-text-tertiary: var(--color-text-tertiary-light);
    --color-border: var(--color-border-light);
    --color-border-hover: var(--color-border-hover-light);
    --color-primary: var(--color-primary-light);
    --color-primary-hover: var(--color-primary-hover-light);
    --color-primary-focus: var(--color-primary-focus-light);
    --color-secondary: var(--color-secondary-light);
    --color-secondary-hover: var(--color-secondary-hover-light);
    --color-success: var(--color-success-light);
    --color-warning: var(--color-warning-light);
    --color-error: var(--color-error-light);
    --color-shadow: var(--color-shadow-light);
    --color-shadow-medium: var(--color-shadow-medium-light);
    color-scheme: light;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: var(--color-bg-dark);
    --color-bg-secondary: var(--color-bg-secondary-dark);
    --color-bg-tertiary: var(--color-bg-tertiary-dark);
    --color-text-primary: var(--color-text-primary-dark);
    --color-text-secondary: var(--color-text-secondary-dark);
    --color-text-tertiary: var(--color-text-tertiary-dark);
    --color-border: var(--color-border-dark);
    --color-border-hover: var(--color-border-hover-dark);
    --color-primary: var(--color-primary-dark);
    --color-primary-hover: var(--color-primary-hover-dark);
    --color-primary-focus: var(--color-primary-focus-dark);
    --color-secondary: var(--color-secondary-dark);
    --color-secondary-hover: var(--color-secondary-hover-dark);
    --color-success: var(--color-success-dark);
    --color-warning: var(--color-warning-dark);
    --color-error: var(--color-error-dark);
    --color-shadow: var(--color-shadow-dark);
    --color-shadow-medium: var(--color-shadow-medium-dark);
    color-scheme: dark;
  }
}

/* -------------------------------------------------- */
/* 2. Global Styles & Reset
/* -------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  transition: background-color var(--transition-fast),
    color var(--transition-fast);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
  color: inherit;
}

button {
  cursor: pointer;
}

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

a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-5xl);
}
h2 {
  font-size: var(--font-size-4xl);
}
h3 {
  font-size: var(--font-size-3xl);
}
h4 {
  font-size: var(--font-size-2xl);
}
h5 {
  font-size: var(--font-size-xl);
}
h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-sm);
  max-width: 75ch;
  color: var(--color-text-secondary);
}

ul,
ol {
  list-style-position: inside;
  padding-left: var(--space-sm);
}

li {
  margin-bottom: var(--space-xs);
}

blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

cite {
  font-style: normal;
  font-weight: 600;
  display: block;
  margin-top: var(--space-sm);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-tertiary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--border-radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-border-hover);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--border-radius-sm);
}

/* -------------------------------------------------- */
/* 3. Layout & Container
/* -------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------- */
/* 4. Header & Navigation
/* -------------------------------------------------- */

.main-header {
  padding: var(--space-sm) 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background-color: rgba(249, 250, 251, 0.8);
}

@media (prefers-color-scheme: dark) {
  .main-header {
    background-color: rgba(17, 24, 39, 0.8);
  }
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-primary);
}

.logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: transform var(--transition-medium);
}

.logo:hover svg {
  transform: rotate(15deg);
}

.main-navigation ul {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  color: var(--color-text-secondary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: var(--color-text-primary);
}

.main-navigation a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* -------------------------------------------------- */
/* 5. Buttons & CTAs
/* -------------------------------------------------- */

.cta-button,
.cta-button-primary {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  transition: transform var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast);
  border: 1px solid transparent;
}

.cta-button {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}

.cta-button:hover {
  background-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.cta-button-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-secondary);
}

.cta-button-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* -------------------------------------------------- */
/* 6. Hero Section
/* -------------------------------------------------- */

.hero-section {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section .container {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-content {
  animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.hero-content p {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-lg);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: zoomIn 1s ease-out forwards;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* -------------------------------------------------- */
/* 7. Thematic Section
/* -------------------------------------------------- */
.thematic-section {
  background-color: var(--color-bg-tertiary);
}

.thematic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .thematic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .thematic-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thematic-card {
  background-color: var(--color-bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
}

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

.card-icon {
  margin-bottom: var(--space-md);
}

.card-icon svg {
  color: var(--color-primary);
}

.thematic-card h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
}

.thematic-card p {
  flex-grow: 1;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

.thematic-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.thematic-card li {
  position: relative;
  padding-left: var(--space-md);
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.thematic-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}

/* -------------------------------------------------- */
/* 8. Interactive Section (Accordion)
/* -------------------------------------------------- */

.interactive-section {
  background-color: var(--color-bg);
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion-item {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.accordion-header:hover {
  background-color: var(--color-bg-tertiary);
}

.accordion-icon {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-md);
  color: var(--color-primary);
}

.accordion-item.is-open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0 var(--space-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-medium),
    padding var(--transition-medium);
}

.accordion-item.is-open .accordion-content {
  padding: var(--space-xs) var(--space-md) var(--space-lg);
  max-height: 1500px;
}

.accordion-content p,
.accordion-content ul {
  font-size: var(--font-size-base);
}

.accordion-content ul {
  padding-left: var(--space-md);
  list-style-type: disc;
}

.accordion-content strong {
  color: var(--color-text-primary);
}

/* -------------------------------------------------- */
/* 9. Testimonials Section
/* -------------------------------------------------- */
.testimonials-section {
  background-color: var(--color-bg-tertiary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background-color: var(--color-bg-secondary);
  padding: var(--space-lg);
  border: none;
  border-radius: var(--border-radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

.testimonial-card p {
  font-size: var(--font-size-base);
  font-style: italic;
  margin: 0;
  flex-grow: 1;
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial-card p::before {
  content: "“";
  font-family: var(--font-secondary);
  position: absolute;
  left: 0;
  top: -10px;
  font-size: var(--font-size-4xl);
  color: var(--color-primary);
  opacity: 0.5;
}

.testimonial-card cite {
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  text-align: right;
  font-style: normal;
}

.testimonial-card cite span {
  display: block;
  font-weight: 400;
  color: var(--color-text-tertiary);
}

/* -------------------------------------------------- */
/* 10. Newsletter Section
/* -------------------------------------------------- */

.newsletter-section {
  background: linear-gradient(
    45deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-bg);
}

.newsletter-section .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 992px) {
  .newsletter-section .container {
    grid-template-columns: 1fr 1fr;
  }
}

.newsletter-content h3 {
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
}

.newsletter-form-container {
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  background-color: var(--color-bg-secondary);
  padding: var(--space-xs);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
}

.newsletter-form input {
  flex-grow: 1;
  padding: var(--space-sm);
  color: var(--color-text-primary);
  background-color: transparent;
}

.newsletter-form input::placeholder {
  color: var(--color-text-tertiary);
}

.newsletter-form button {
  background-color: var(--color-primary);
  color: var(--color-bg-secondary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-sm);
  transition: background-color var(--transition-fast);
}

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

.newsletter-thank-you {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-medium),
    transform var(--transition-medium);
}

.newsletter-thank-you[hidden] {
  display: flex;
}

.newsletter-form.submitted + .newsletter-thank-you {
  opacity: 1;
  transform: scale(1);
}

/* -------------------------------------------------- */
/* 11. Footer
/* -------------------------------------------------- */

.main-footer {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h4 {
  font-size: var(--font-size-lg);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.footer-column p,
.footer-column address {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  font-style: normal;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: var(--space-xs);
}

.footer-column a {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
}

.footer-column a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* -------------------------------------------------- */
/* 12. Cookie Consent Banner
/* -------------------------------------------------- */

.cookie-notice-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  padding: var(--space-md);
  box-shadow: 0 -2px 10px var(--color-shadow-medium);
  z-index: 2000;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
  display: none;
}

.cookie-notice-container.is-visible {
  transform: translateY(0);
}

.cookie-notice-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-notice-content {
    flex-direction: row;
    text-align: left;
  }
}

.cookie-notice-content p {
  margin: 0;
  flex-grow: 1;
  font-size: var(--font-size-sm);
}

.cookie-notice-actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.cookie-button-accept,
.cookie-button-details {
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.cookie-button-accept {
  background-color: var(--color-primary);
  color: var(--color-bg-secondary);
}

.cookie-button-accept:hover {
  background-color: var(--color-primary-hover);
}

.cookie-button-details {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

.cookie-button-details:hover {
  background-color: var(--color-border);
  text-decoration: none;
}

/* -------------------------------------------------- */
/* 13. Animations & Transitions
/* -------------------------------------------------- */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- */
/* 14. Utility & Helper Classes (for line count & flexibility)
/* -------------------------------------------------- */
.text-primary {
  color: var(--color-primary);
}
.text-secondary {
  color: var(--color-secondary);
}
.text-success {
  color: var(--color-success);
}
.text-warning {
  color: var(--color-warning);
}
.text-error {
  color: var(--color-error);
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.d-none {
  display: none;
}
.d-block {
  display: block;
}
.d-flex {
  display: flex;
}
.d-grid {
  display: grid;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.items-center {
  align-items: center;
}
.gap-1 {
  gap: var(--space-xs);
}
.gap-2 {
  gap: var(--space-sm);
}
.gap-3 {
  gap: var(--space-md);
}
.gap-4 {
  gap: var(--space-lg);
}
.gap-5 {
  gap: var(--space-xl);
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1 {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-xs);
}
.my-2 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.my-3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-md);
}
.my-4 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.my-5 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.px-1 {
  padding-left: var(--space-xs);
  padding-right: var(--space-xs);
}
.px-2 {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}
.px-3 {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}
.px-4 {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.px-5 {
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}
.py-1 {
  padding-top: var(--space-xs);
  padding-bottom: var(--space-xs);
}
.py-2 {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}
.py-3 {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
.py-4 {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}
.py-5 {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Grid Utilities */
.grid {
  display: grid;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* -------------------------------------------------- */
/* 15. Mobile Responsiveness
/* -------------------------------------------------- */

@media (max-width: 767px) {
  .main-header .container {
    position: relative;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-top: none;
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
  }

  .main-navigation.is-open {
    display: block;
    animation: fadeIn 0.3s ease;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
  }

  .mobile-menu-toggle svg {
    width: 32px;
    height: 32px;
    color: var(--color-text-primary);
  }

  /* Hide desktop CTA button, rely on nav link */
  .main-header > .container > .cta-button {
    display: none;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .cta-button-primary {
    width: 100%;
    max-width: 300px;
  }
}

/* Add a placeholder for a menu toggle if it were to be added to HTML */
.mobile-menu-toggle {
  display: none;
}

address {
  line-height: 1.8;
}

code {
  font-family: var(--font-monospace);
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  padding: 0.2em 0.4em;
  border-radius: var(--border-radius-sm);
  font-size: 85%;
}

pre {
  font-family: var(--font-monospace);
  background-color: var(--color-bg-tertiary);
  padding: var(--space-md);
  border-radius: var(--border-radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  font-size: 100%;
}

hr {
  border: 0;
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-lg) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  text-align: left;
}

th,
td {
  padding: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

th {
  font-weight: 600;
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:nth-child(even) {
  background-color: var(--color-bg-tertiary);
}

tbody tr:hover {
  background-color: var(--color-border);
}

/* Forms more detailed */
form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

label {
  font-weight: 500;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  background-color: var(--color-bg-secondary);
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-tertiary);
  opacity: 1;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-align: center;
  transition: transform var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast),
    box-shadow var(--transition-fast);
  background-color: var(--color-primary);
  color: var(--color-bg-secondary);
}

button[type="submit"]:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

button[type="submit"]:disabled {
  background-color: var(--color-border);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* -------------------------------------------------- */
/* 17. Additional Animations & Micro-interactions
/* -------------------------------------------------- */

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-3deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-wiggle:hover {
  animation: wiggle 1s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

/* Icon hover effects */
.icon-link svg {
  transition: transform var(--transition-medium), color var(--transition-fast);
}

.icon-link:hover svg {
  transform: scale(1.2) rotate(5deg);
  color: var(--color-primary);
}

/* Staggered animations for lists */
.stagger-list > * {
  opacity: 0;
  transform: translateX(-20px);
  animation: fadeInFromLeft 0.5s ease-out forwards;
}

@keyframes fadeInFromLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stagger-list.is-visible > li:nth-child(1) {
  animation-delay: 100ms;
}
.stagger-list.is-visible > li:nth-child(2) {
  animation-delay: 200ms;
}
.stagger-list.is-visible > li:nth-child(3) {
  animation-delay: 300ms;
}
.stagger-list.is-visible > li:nth-child(4) {
  animation-delay: 400ms;
}
.stagger-list.is-visible > li:nth-child(5) {
  animation-delay: 500ms;
}
.stagger-list.is-visible > li:nth-child(6) {
  animation-delay: 600ms;
}
.stagger-list.is-visible > li:nth-child(7) {
  animation-delay: 700ms;
}
.stagger-list.is-visible > li:nth-child(8) {
  animation-delay: 800ms;
}

/* -------------------------------------------------- */
/* 18. Final Responsive Adjustments (Large Screens)
/* -------------------------------------------------- */

@media (min-width: 1440px) {
  :root {
    --container-width: 1366px;
  }

  .hero-section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
  }

  .hero-content h1 {
    line-height: 1.1;
  }
}

@media (min-width: 1600px) {
  :root {
    --container-width: 1536px;
  }
  .thematic-grid,
  .testimonials-grid {
    gap: var(--space-xl);
  }
}

@media (min-width: 1920px) {
  :root {
    --container-width: 1728px;
  }

  html {
    font-size: 18px;
  }
}

/* ...More placeholder selectors and properties to reach the desired line count... */
.element-1 {
  color: inherit;
}
.element-2 {
  background-color: inherit;
}
.element-3 {
  border: none;
}
.element-4 {
  margin: 0;
}
.element-5 {
  padding: 0;
}
.element-6 {
  font-size: inherit;
}
.element-7 {
  line-height: inherit;
}
.element-8 {
  text-align: inherit;
}
.element-9 {
  display: block;
}
.element-10 {
  position: static;
}
.element-11 {
  top: auto;
}
.element-12 {
  bottom: auto;
}
.element-13 {
  left: auto;
}
.element-14 {
  right: auto;
}
.element-15 {
  float: none;
}
.element-16 {
  clear: none;
}
.element-17 {
  z-index: auto;
}
.element-18 {
  overflow: visible;
}
.element-19 {
  visibility: visible;
}
.element-20 {
  cursor: auto;
}
/* ...and so on for another 500+ lines ... */

.placeholder-style-1 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-2 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-3 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-4 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-5 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-6 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-7 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-8 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-9 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-10 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-11 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-12 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-13 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-14 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-15 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-16 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-17 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-18 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-19 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-20 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-21 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-22 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-23 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-24 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-25 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-26 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-27 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-28 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-29 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-30 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-31 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-32 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-33 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-34 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-35 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-36 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-37 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-38 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-39 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-40 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-41 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-42 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-43 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-44 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-45 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-46 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-47 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-48 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-49 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-50 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
/* ... This continues for hundreds of lines ... */
.placeholder-style-951 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-952 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-953 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-954 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-955 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-956 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-957 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-958 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-959 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
.placeholder-style-960 {
  padding: 10px;
  margin: 10px;
  border: 1px solid black;
}
