/* ===== CSS VARIABLES & THEME SETUP ===== */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #1a1a1a;
  --table-bg: #2d2d2d;
  --table-row-bg: #333333;
  --table-border: #404040;
  --text-color: #e0e0e0;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.9);
  --text-tertiary: rgba(255, 255, 255, 0.8);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(63, 196, 174, 0.3);
  --accent-color: #3fc4ae;
  --button-bg: #1a1a1a;
  --button-hover-bg: #2a2a2a;
  --card-bg: #000000;
  --shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  --navbar-hover-text: #3fc4ae;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --table-bg: #ffffff;
  --table-row-bg: #fafafa;
  --table-border: #dbdbdb;
  --text-color: #363636;
  --text-primary: #000000;
  --text-secondary: rgba(0, 0, 0, 0.9);
  --text-tertiary: rgba(0, 0, 0, 0.7);  
  --border-color: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(63, 196, 174, 0.5);
  --accent-color: #2a9d8f;
  --button-bg: #e9ecef;
  --button-hover-bg: #dee2e6;
  --card-bg: #ffffff;
  --shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
  --navbar-hover-text: #3fc4ae;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 999;
  padding: 1rem 0 0 0;
  transition: background-color 0.3s ease;
}

[data-theme="light"] .navigation {
  background-color: rgba(255, 255, 255, 0.95);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

/* Logo sizing  */
.logo-white,
.logo-black {
  height: 5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Default state (dark mode) - show white logo, hide black logo */
.logo-white {
  display: block;
}

.logo-black {
  display: none;
}

/* Light mode - show black logo, hide white logo */
[data-theme="light"] .logo-white {
  display: none;
}

[data-theme="light"] .logo-black {
  display: block;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-right: 90px; /* Space for theme toggle button (56px width + 2rem padding) */
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 300;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  /* opacity: 0.7; */
  color: var(--navbar-hover-text);
}

/* Hero Section */
.hero-section {
  height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0rem 0rem;
  position: relative;
  margin-bottom: -2rem;
  margin-top: -1rem;
}

/* Video Background Styling - Updated to be behind text */
.video-background {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: auto;
  max-width: 800px;
  max-height: 40vh;
  object-fit: cover;
  z-index: 0; /* Behind text but above background */
  opacity: 0.4; /* Slightly more visible */
}

/* Invert video colors in light mode */
[data-theme="light"] .video-background {
  filter: invert(1); /* Inverts all colors: black becomes white, white becomes black */
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 300;
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1; /* Ensure text appears above video */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Add subtle shadow for better readability */
}

/* Mission Section */
.mission-section {
  padding: 2rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color)
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.mission-content h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

/* REMOVED: The ::before pseudo-element that created the colored circle */
/* .mission-content h2::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
} */

.mission-content p {
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
  opacity: 0.9;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 4rem 2rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}

.footer-logo {
  width: 120px;
  margin-top: 1rem;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-logo-white {
  display: block;
}

.footer-logo-black {
  display: none;
}

[data-theme="light"] .footer-logo-white {
  display: none;
}

[data-theme="light"] .footer-logo-black {
  display: block;
}

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

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  font-weight: 300;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-top: 2px solid var(--accent-color);
  padding: 1.5rem 2rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cookie-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}

.cookie-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--accent-color), #2a9d8f);
  color: #ffffff;
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(63, 196, 174, 0.3);
}

.cookie-btn-reject {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-btn-reject:hover {
  background-color: var(--button-hover-bg);
  border-color: var(--border-hover);
}

.cookie-btn-customize {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}

.cookie-btn-customize:hover {
  background-color: rgba(63, 196, 174, 0.1);
}

/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  padding: 2rem;
  overflow-y: auto;
}

.cookie-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

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

.cookie-modal-header {
  padding: 2rem 2rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.cookie-modal-header h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cookie-modal-close:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
}

.cookie-modal-body {
  padding: 2rem;
}

.cookie-category {
  margin-bottom: 2rem;
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cookie-category h4 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cookie-category p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  transition: 0.4s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-tertiary);
  transition: 0.4s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-footer {
  padding: 1rem 2rem 2rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  border-top: 1px solid var(--border-color);
}