:root {
  /* Color Variables based on user preferences */
  --primary-color: #0ea5e9;
  --secondary-color: #34d399;
  --background-color: #ffffff;
  --footer-bg-color: #0f172a;
  --button-color: #0284c7;
  --section-bg-light: #f0f9ff;
  --section-bg-emerald: #f0fdf4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --border-black: #000000;
  
  /* Neo-Brutalism Variables */
  --border-thick: 2px;
  --shadow-offset: 4px;
  --shadow-color: #000000;
  --border-radius-sharp: 0px;
  --border-radius-slight: 4px;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 400;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

h5 {
  font-size: 1.25rem;
  font-weight: 600;
}

h6 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--button-color);
  text-decoration: underline;
}

/* Neo-Brutalism Button Styles */
.btn {
  display: inline-block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  background-color: var(--button-color);
  color: white;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow-color);
}

.btn:active {
  transform: translate(var(--shadow-offset), var(--shadow-offset));
  box-shadow: 0 0 0 var(--shadow-color);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--border-black);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--border-black);
  color: var(--text-primary);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-black);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: white;
}

/* Neo-Brutalism Card Styles */
.card {
  background-color: var(--background-color);
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
}

.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow-color);
}

.card-header {
  padding: 1.5rem;
  border-bottom: var(--border-thick) solid var(--border-black);
  background-color: var(--section-bg-light);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: var(--border-thick) solid var(--border-black);
  background-color: var(--section-bg-emerald);
}

/* Section Styles with Neo-Brutalism */
.section {
  padding: 4rem 0;
  position: relative;
}

.section-light {
  background-color: var(--section-bg-light);
}

.section-emerald {
  background-color: var(--section-bg-emerald);
}

.section-dark {
  background-color: var(--footer-bg-color);
  color: white;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6 {
  color: white;
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid System */
.grid {
  display: grid;
  gap: 2rem;
}

.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));
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem;
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
  font-family: var(--font-primary);
  font-size: 1rem;
  background-color: var(--background-color);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-secondary);
}

/* Navigation Styles */
.nav {
  background-color: var(--background-color);
  border-bottom: var(--border-thick) solid var(--border-black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: var(--border-thick) solid transparent;
  border-radius: var(--border-radius-slight);
  transition: all 0.2s ease;
}

.nav-link:hover {
  background-color: var(--section-bg-light);
  border-color: var(--border-black);
  text-decoration: none;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--section-bg-light) 0%, var(--section-bg-emerald) 100%);
  border-bottom: var(--border-thick) solid var(--border-black);
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
  background-color: var(--secondary-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
}

.badge-primary {
  background-color: var(--primary-color);
  color: white;
}

.badge-warning {
  background-color: #fbbf24;
  color: var(--text-primary);
}

.badge-danger {
  background-color: #ef4444;
  color: white;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
}

.alert-success {
  background-color: var(--section-bg-emerald);
  border-color: var(--border-black);
}

.alert-info {
  background-color: var(--section-bg-light);
  border-color: var(--border-black);
}

.alert-warning {
  background-color: #fef3c7;
  border-color: var(--border-black);
}

.alert-danger {
  background-color: #fee2e2;
  border-color: var(--border-black);
}

/* Footer Styles */
.footer {
  background-color: var(--footer-bg-color);
  color: white;
  padding: 3rem 0 1rem 0;
  border-top: var(--border-thick) solid var(--border-black);
}

.footer h4,
.footer h5,
.footer h6 {
  color: white;
  margin-bottom: 1rem;
}

.footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: var(--border-thick) solid var(--border-black);
  padding-top: 1rem;
  margin-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 4rem 0;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 1rem;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .btn {
    padding: 1rem;
    font-size: 1.125rem;
  }
}

/* Focus Styles for Accessibility */
button:focus,
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.nav-link:focus {
  outline: var(--border-thick) solid var(--primary-color);
  outline-offset: 2px;
}

/* Animation for Interactive Elements */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn:hover {
  animation: pulse 0.3s ease-in-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--section-bg-light);
  border: var(--border-thick) solid var(--border-black);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border: var(--border-thick) solid var(--border-black);
  border-radius: var(--border-radius-slight);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--button-color);
}

/* Print Styles */
@media print {
  .nav,
  .btn,
  .alert {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }
  
  .section {
    padding: 1rem 0;
  }
  
  .card {
    break-inside: avoid;
  }
}


/* 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;
    }
}