/* ===== CSS VARIABLES & ROOT STYLES ===== */
:root {
  /* Core Color Palette */
  --color-primary: #FFFFFF;
  --color-secondary: #F8F9FA;
  --color-background: #FFFFFF;
  --color-footer-bg: #343A40;
  --color-button: #2563EB;
  --color-accent: #1E40AF;
  --color-success: #059669;
  --color-error: #DC2626;
  
  /* Neo-Brutalism Elements */
  --border-thick: 3px solid #000000;
  --border-medium: 2px solid #000000;
  --border-light: 1px solid #000000;
  --shadow-offset: 6px 6px 0 #000000;
  --shadow-light: 4px 4px 0 #000000;
  --shadow-heavy: 8px 8px 0 #000000;
  
  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  
  /* Border Radius */
  --radius-sharp: 0;
  --radius-soft: 4px;
  --radius-medium: 8px;
  --radius-round: 50%;
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --footer-height: auto;
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  color: #000000;
  background-color: var(--color-background);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.03) 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(30, 64, 175, 0.03) 0%, transparent 25%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
  color: #000000;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-4xl);
  border-bottom: var(--border-thick);
  padding-bottom: var(--space-sm);
  background: linear-gradient(135deg, #000000 0%, var(--color-button) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 4px 4px 0 rgba(37, 99, 235, 0.2);
}

h2 {
  font-size: var(--font-size-3xl);
  color: var(--color-accent);
  border-left: var(--border-thick);
  padding-left: var(--space-sm);
}

h3 {
  font-size: var(--font-size-2xl);
  color: var(--color-button);
}

p {
  margin: 0 0 var(--space-md) 0;
  line-height: 1.7;
}

a {
  color: var(--color-button);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

a:hover {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: translateY(-1px);
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  width: 100%;
}

.section {
  padding: var(--space-2xl) 0;
  border-bottom: var(--border-medium);
  position: relative;
}

.section:nth-child(odd) {
  background-color: var(--color-secondary);
}

.section:nth-child(even) {
  background-color: var(--color-primary);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-button) 0%, var(--color-accent) 100%);
}

/* ===== HEADER STYLES ===== */
.header {
  background-color: var(--color-primary);
  border-bottom: var(--border-thick);
  box-shadow: var(--shadow-offset);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  background: linear-gradient(135deg, #000000 0%, var(--color-button) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  border: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-lg);
}

.nav-link {
  color: #000000;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border: var(--border-medium);
  background-color: var(--color-secondary);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--color-button);
  color: white;
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-light);
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-base);
  text-align: center;
  text-decoration: none;
  border: var(--border-medium);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-button);
  color: white;
  box-shadow: var(--shadow-offset);
}

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 #000000;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #000000;
  box-shadow: var(--shadow-offset);
}

.btn-secondary:hover {
  background-color: #000000;
  color: var(--color-secondary);
  transform: translate(3px, 3px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-button);
  border: var(--border-thick);
}

.btn-outline:hover {
  background-color: var(--color-button);
  color: white;
}

/* ===== CARD COMPONENTS ===== */
.card {
  background-color: var(--color-primary);
  border: var(--border-thick);
  box-shadow: var(--shadow-offset);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translate(4px, 4px);
  box-shadow: var(--shadow-light);
}

.card-header {
  border-bottom: var(--border-medium);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  margin: 0;
}

.card-content {
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.card-footer {
  border-top: var(--border-medium);
  padding-top: var(--space-sm);
  margin-top: var(--space-md);
  font-size: var(--font-size-sm);
  color: #666;
}

/* ===== GRID COMPONENTS ===== */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===== FORM COMPONENTS ===== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: #000000;
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: var(--border-medium);
  background-color: var(--color-primary);
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-button);
  box-shadow: 4px 4px 0 rgba(37, 99, 235, 0.2);
  transform: translate(2px, 2px);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-bottom: var(--border-thick);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 30%, rgba(37, 99, 235, 0.05) 70%, transparent 70%),
    linear-gradient(-45deg, transparent 30%, rgba(30, 64, 175, 0.05) 30%, rgba(30, 64, 175, 0.05) 70%, transparent 70%);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-xl);
  font-weight: 600;
}

/* ===== FEATURE COMPONENTS ===== */
.feature {
  padding: var(--space-lg);
  background-color: var(--color-primary);
  border: var(--border-medium);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #000000;
  background-color: var(--color-secondary);
}

.feature-icon {
  font-size: var(--font-size-3xl);
  color: var(--color-button);
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-size: var(--font-size-lg);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* ===== FOOTER COMPONENTS ===== */
.footer {
  background-color: var(--color-footer-bg);
  color: white;
  padding: var(--space-2xl) 0 var(--space-lg) 0;
  border-top: var(--border-thick);
  margin-top: var(--space-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  color: var(--color-button);
  margin-bottom: var(--space-md);
  border-left: var(--border-medium);
  padding-left: var(--space-sm);
}

.footer-section p,
.footer-section a {
  color: #E5E7EB;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.footer-section a:hover {
  color: white;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 2px solid #4B5563;
  padding-top: var(--space-md);
  text-align: center;
  font-size: var(--font-size-sm);
  color: #9CA3AF;
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-button); color: white; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: #666; }

.border-bold { border: var(--border-thick); }
.border-medium { border: var(--border-medium); }
.border-light { border: var(--border-light); }

.shadow-offset { box-shadow: var(--shadow-offset); }
.shadow-light { box-shadow: var(--shadow-light); }
.shadow-heavy { box-shadow: var(--shadow-heavy); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
    --font-size-2xl: 1.25rem;
  }
  
  .header-content {
    flex-direction: column;
    height: auto;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }
  
  .nav-list {
    flex-direction: column;
    gap: var(--space-xs);
    width: 100%;
  }
  
  .nav-link {
    text-align: center;
    width: 100%;
  }
  
  .hero {
    padding: var(--space-lg) 0;
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.5rem;
    --font-size-3xl: 1.25rem;
    --font-size-2xl: 1.125rem;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .btn {
    width: 100%;
    margin-bottom: var(--space-sm);
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-thick: 4px solid #000000;
    --border-medium: 3px solid #000000;
  }
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 3px solid var(--color-button);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .footer,
  .btn,
  .nav-list {
    display: none;
  }
  
  .section {
    border: none;
    padding: var(--space-sm) 0;
  }
  
  .card {
    border: 2px solid #000;
    box-shadow: none;
  }
}


/* 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;
    }
}