/* Design System - CSS Variables */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1a2943;
  --bg-tertiary: #243557;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --color-primary: #1a5a96;
  --color-primary-light: #2b7bb6;
  --color-accent: #b8ff00;
  --color-accent-dark: #9ae500;
  --border-color: #334155;
  --glass-bg: rgba(26, 90, 150, 0.1);
  --glass-border: rgba(184, 255, 0, 0.2);
  --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

/* Spacing Utilities */
.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-7 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.space-y-4 > * + * {
  margin-top: 1.5rem;
}

.min-vh {
  min-height: 100vh;
}

/* Navigation */
.glass-nav {
  background: rgba(26, 35, 67, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-nav {
  background-color: var(--color-accent) !important;
  color: var(--bg-primary) !important;
  border-radius: var(--radius);
  padding: 0.5rem 1rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background-color: var(--color-accent-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(184, 255, 0, 0.2);
}

/* Hero Section */
.hero {
  padding-top: 5rem;
}

.display-4 {
  font-size: 3rem;
  line-height: 1.2;
  font-weight: 700;
}

.display-5 {
  font-size: 2.5rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.125rem;
  font-weight: 400;
}

/* Button Styles */
.btn-primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(184, 255, 0, 0.3);
}

.btn-outline-primary {
  color: var(--color-accent);
  border-color: var(--color-accent);
  border-radius: var(--radius);
}

.btn-outline-primary:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--bg-primary);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* Glass-morphism Components */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 255, 0, 0.4);
  box-shadow: 0 16px 32px rgba(26, 90, 150, 0.2);
}

.card-icon {
  font-size: 2.5rem;
}

.text-lime {
  color: var(--color-accent);
}

/* Background Colors */
.bg-dark-primary {
  background-color: var(--bg-primary);
}

.bg-dark-secondary {
  background-color: var(--bg-secondary);
}

.border-secondary {
  border-color: var(--border-color) !important;
}

/* Form Inputs */
.glass-input {
  background: rgba(26, 90, 150, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.glass-input::placeholder {
  color: var(--text-muted);
}

.glass-input:focus {
  background: rgba(26, 90, 150, 0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 255, 0, 0.1);
  color: var(--text-primary);
}

.form-control {
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.25rem rgba(184, 255, 0, 0.15);
}

.form-label {
  color: var(--text-primary);
}

.form-select {
  color: var(--text-primary);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 0.25rem rgba(184, 255, 0, 0.15);
}

/* Accordion */
.glass-accordion {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.accordion-button {
  background-color: transparent;
  color: var(--text-primary);
  font-weight: 600;
  border: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--glass-bg);
  color: var(--color-accent);
  box-shadow: none;
}

.accordion-button::after {
  filter: invert(1) brightness(0.8);
}

.accordion-body {
  background: transparent;
  border: none;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
}

.timeline-item {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-start;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--bg-primary);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.timeline-content {
  width: calc(50% - 2rem);
  margin: 0 2rem;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }

  .timeline-marker {
    position: absolute;
    left: 0;
  }

  .timeline-content {
    width: calc(100% - 5rem);
    margin: 0;
    margin-left: 5rem;
    margin-top: 2rem;
  }
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.shadow-lg {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rounded-3 {
  border-radius: 1.5rem;
}

/* Text Colors */
.text-muted {
  color: var(--text-muted) !important;
}

.text-white {
  color: var(--text-primary) !important;
}

/* Utility Classes */
.fw-500 {
  font-weight: 500;
}

.fw-bold {
  font-weight: 700;
}

.prose {
  line-height: 1.8;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

/* Cookie Consent */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cookie-consent {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(420px, calc(100% - 2rem));
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  z-index: 1050;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-consent.active,
.cookie-backdrop.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cookie-consent h5 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cookie-consent p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cookie-button {
  flex: 1;
  min-width: 120px;
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cookie-button.accept {
  background: var(--color-accent);
  color: var(--bg-primary);
  box-shadow: 0 10px 25px rgba(184, 255, 0, 0.25);
}

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

.cookie-button.reject {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-button.reject:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cookie-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.cookie-link:hover {
  color: var(--color-accent-dark);
}

.cookie-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  z-index: 1030;
  display: none;
}

.cookie-trigger.visible {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2rem;
  }

  .display-5 {
    font-size: 1.75rem;
  }

  .py-6 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .hero {
    padding-top: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

  .cookie-consent {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
  }
}

/* Print Styles */
@media print {
  .navbar,
  footer {
    display: none;
  }
}
