:root {
  /* Color Palette from JSON preferences */
  --primary-color: #1e40af;
  --secondary-color: #64748b;
  --background-color: #ffffff;
  --footer-bg-color: #1f2937;
  --button-color: #1e40af;
  --section-bg-1: #ffffff;
  --section-bg-2: #f8fafc;
  --section-bg-3: #f1f5f9;
  
  /* Additional Neo-Brutalism accents */
  --brutalist-black: #000000;
  --brutalist-white: #ffffff;
  --brutalist-accent: #f59e0b;
  
  /* Typography */
  --font-primary: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing & Layout */
  --border-thick: 2px;
  --border-radius-sharp: 0px;
  --border-radius-soft: 4px;
  --shadow-brutalist: 4px 4px 0px #000000;
  --spacing-unit: 1rem;
}

/* Base Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: #1f2937;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-unit);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 3rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.25rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.875rem;
  line-height: 1.3;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.4;
}

h5 {
  font-size: 1.25rem;
  line-height: 1.4;
}

h6 {
  font-size: 1.125rem;
  line-height: 1.4;
}

p {
  margin-bottom: var(--spacing-unit);
  font-weight: 400;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
}

.section {
  padding: calc(var(--spacing-unit) * 4) 0;
  position: relative;
}

.section-light {
  background-color: var(--section-bg-1);
}

.section-medium {
  background-color: var(--section-bg-2);
}

.section-dark {
  background-color: var(--section-bg-3);
}

/* Navigation */
.navbar {
  background-color: var(--background-color);
  border-bottom: var(--border-thick) solid var(--brutalist-black);
  padding: var(--spacing-unit) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-brutalist);
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  padding: var(--spacing-unit);
  border: var(--border-thick) solid var(--brutalist-black);
  border-radius: var(--border-radius-soft);
  background-color: var(--brutalist-white);
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: calc(var(--spacing-unit) * 1.5);
}

.nav-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  padding: var(--spacing-unit);
  border: var(--border-thick) solid transparent;
  border-radius: var(--border-radius-soft);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary-color);
  background-color: var(--section-bg-2);
  border-color: var(--brutalist-black);
}

/* Cards */
.card {
  background-color: var(--brutalist-white);
  border: var(--border-thick) solid var(--brutalist-black);
  border-radius: var(--border-radius-soft);
  box-shadow: var(--shadow-brutalist);
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: var(--spacing-unit);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.card-header {
  background-color: var(--section-bg-2);
  border-bottom: var(--border-thick) solid var(--brutalist-black);
  padding: var(--spacing-unit);
  margin: calc(var(--spacing-unit) * -1) calc(var(--spacing-unit) * -1) var(--spacing-unit) calc(var(--spacing-unit) * -1);
  font-weight: 600;
  color: var(--primary-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--spacing-unit);
  color: var(--primary-color);
}

.card-text {
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Buttons - Neo-Brutalism Style */
.btn {
  display: inline-block;
  padding: var(--spacing-unit) calc(var(--spacing-unit) * 2);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: var(--border-thick) solid var(--brutalist-black);
  border-radius: var(--border-radius-soft);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-brutalist);
  position: relative;
}

.btn-primary {
  background-color: var(--button-color);
  color: var(--brutalist-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1d4ed8;
  color: var(--brutalist-white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--brutalist-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #475569;
  color: var(--brutalist-white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.btn-outline {
  background-color: var(--brutalist-white);
  color: var(--primary-color);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--section-bg-2);
  color: var(--primary-color);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.btn-accent {
  background-color: var(--brutalist-accent);
  color: var(--brutalist-black);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: #d97706;
  color: var(--brutalist-black);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

/* Forms */
.form-group {
  margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.form-control {
  width: 100%;
  padding: var(--spacing-unit);
  border: var(--border-thick) solid var(--brutalist-black);
  border-radius: var(--border-radius-soft);
  font-family: var(--font-primary);
  font-size: 1rem;
  background-color: var(--brutalist-white);
  color: var(--secondary-color);
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control:hover {
  border-color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--section-bg-2) 0%, var(--section-bg-3) 100%);
  border-bottom: var(--border-thick) solid var(--brutalist-black);
  padding: calc(var(--spacing-unit) * 8) 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--spacing-unit);
  background: var(--primary-color);
  border-bottom: var(--border-thick) solid var(--brutalist-black);
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: calc(var(--spacing-unit) * 1.5);
  text-shadow: 2px 2px 0px var(--brutalist-accent);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary-color);
  max-width: 600px;
  margin: 0 auto calc(var(--spacing-unit) * 2) auto;
}

/* Grid System */
.grid {
  display: grid;
  gap: calc(var(--spacing-unit) * 2);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Features Section */
.features {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border: var(--border-thick) solid var(--brutalist-black);
  border-radius: var(--border-radius-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-unit);
  box-shadow: var(--shadow-brutalist);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--brutalist-white);
}

/* Footer */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--brutalist-white);
  padding: calc(var(--spacing-unit) * 4) 0;
  border-top: var(--border-thick) solid var(--brutalist-black);
}

.footer-title {
  color: var(--brutalist-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-unit);
}

.footer-link {
  color: #d1d5db;
  text-decoration: none;
  display: block;
  padding: calc(var(--spacing-unit) * 0.5) 0;
  border-bottom: 1px solid #374151;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--brutalist-white);
  padding-left: var(--spacing-unit);
}

.footer-copyright {
  text-align: center;
  padding-top: calc(var(--spacing-unit) * 2);
  border-top: var(--border-thick) solid #374151;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Utilities */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 { margin-bottom: calc(var(--spacing-unit) * 0.25); }
.mb-2 { margin-bottom: calc(var(--spacing-unit) * 0.5); }
.mb-3 { margin-bottom: var(--spacing-unit); }
.mb-4 { margin-bottom: calc(var(--spacing-unit) * 1.5); }
.mb-5 { margin-bottom: calc(var(--spacing-unit) * 2); }

.mt-1 { margin-top: calc(var(--spacing-unit) * 0.25); }
.mt-2 { margin-top: calc(var(--spacing-unit) * 0.5); }
.mt-3 { margin-top: var(--spacing-unit); }
.mt-4 { margin-top: calc(var(--spacing-unit) * 1.5); }
.mt-5 { margin-top: calc(var(--spacing-unit) * 2); }

.p-1 { padding: calc(var(--spacing-unit) * 0.25); }
.p-2 { padding: calc(var(--spacing-unit) * 0.5); }
.p-3 { padding: var(--spacing-unit); }
.p-4 { padding: calc(var(--spacing-unit) * 1.5); }
.p-5 { padding: calc(var(--spacing-unit) * 2); }

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-unit);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .navbar-nav {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 0.5);
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: calc(var(--spacing-unit) * 3) 0;
  }
  
  .card {
    padding: var(--spacing-unit);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: calc(var(--spacing-unit) * 0.75) var(--spacing-unit);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #1e40af;
    --secondary-color: #1f2937;
    --brutalist-black: #000000;
  }
  
  .btn {
    border-width: 3px;
  }
  
  .card {
    border-width: 3px;
  }
  
  .navbar {
    border-bottom-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }
  
  .card {
    border: 2px solid #000;
    box-shadow: none;
  }
  
  body {
    background: white;
    color: black;
  }
}


/* 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;
    }
}