/* CSS Variables for theming */
:root {
  --primary-color: #0EA5E9;
  --primary-dark: #0284C7;
  --secondary-color: #F59E0B;
  --text-color: #0F172A;
  --text-muted: #64748B;
  --bg-color: #F8FAFC;
  --card-bg: #FFFFFF;
  --border-color: #E2E8F0;
  --shadow: rgba(15, 23, 42, 0.1);
  --gradient-start: #0EA5E9;
  --gradient-end: #3B82F6;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --nav-shadow: rgba(0, 0, 0, 0.1);
  
  /* Additional variables for consistency */
  --accent: #0EA5E9;
  --text: #0F172A;
  --border: #E2E8F0;
}

/* Dark theme variables - Truly black theme */
[data-theme="dark"] {
  --primary-color: #60A5FA;
  --primary-dark: #3B82F6;
  --secondary-color: #FBBF24;
  --text-color: #FFFFFF;
  --text-muted: #B0B0B0;
  --bg-color: #000000;
  --card-bg: #000000;
  --border-color: #333333;
  --shadow: rgba(0, 0, 0, 1);
  --gradient-start: #000000;
  --gradient-end: #000000;
  --nav-bg: rgba(0, 0, 0, 1);
  --nav-shadow: rgba(0, 0, 0, 1);
  
  /* Additional variables for dark theme */
  --accent: #60A5FA;
  --text: #FFFFFF;
  --border: #333333;
}

/* AGGRESSIVE dark theme override - Force black background everywhere */
[data-theme="dark"],
[data-theme="dark"] *,
[data-theme="dark"] html,
[data-theme="dark"] body,
[data-theme="dark"] main,
[data-theme="dark"] section,
[data-theme="dark"] div:not(.theme-switcher):not(.mobile-menu-btn),
[data-theme="dark"] .container {
  background-color: #000000 !important;
}

/* Ensure body background is truly dark */
[data-theme="dark"] body {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

/* Force dark background for all major containers */
[data-theme="dark"] html {
  background-color: #000000 !important;
}

[data-theme="dark"] .container {
  background-color: #000000 !important;
}

/* Dark theme for hero and page sections */
/* Dark theme for hero and page sections */
[data-theme="dark"] .hero-section,
[data-theme="dark"] .main-header {
  background: #000000;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-top: 80px; /* Space for fixed header */
}

/* ===== MAIN HEADER STYLES ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 20px var(--nav-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Brand/Logo */
.brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Header Controls */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher in Header */
.header-controls .language-switcher {
  margin: 0;
}

.header-controls .language-spinner {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  color: var(--text-color);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
}

.header-controls .language-spinner:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

/* Theme Switcher in Header */
.header-controls .theme-switcher {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.6rem;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-controls .theme-switcher:hover {
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 35px;
  height: 35px;
  justify-content: space-around;
  position: relative;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation */
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  margin-top: -80px;
  padding-top: 8rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
    height: 60px;
  }
  
  .brand .logo {
    font-size: 1.3rem;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--nav-shadow);
    z-index: 999;
  }
  
  .main-nav.show {
    display: block;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }
  
  .nav-links li a {
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-start;
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .header-controls {
    gap: 0.5rem;
  }
  
  .header-controls .language-spinner {
    min-width: 120px;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
  
  .header-controls .theme-switcher {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  body {
    padding-top: 60px;
  }
  
  .hero-section {
    padding: 3rem 1rem;
    padding-top: 6rem;
  }
}

/* Page Section Styles */
.page-section {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Force light theme by default */
body:not([data-theme="dark"]) {
  background: #F8FAFC;
  color: #0F172A;
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Navigation bar */
.navigation-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 10px var(--nav-shadow);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

/* Desktop navigation */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Mobile hamburger menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  background: var(--border-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
}

.hamburger-menu:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.hamburger-menu:hover .hamburger-line {
  background: white;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--primary-color);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.hamburger-menu.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.hamburger-menu.active .hamburger-line {
  background: white;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: var(--card-bg);
  z-index: 1001;
  padding: 2rem 1rem;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px var(--shadow);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

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

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.mobile-menu-close:hover {
  background: var(--border-color);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.mobile-controls {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.mobile-theme-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mobile-language-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-language-switcher a {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  background: var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.mobile-language-switcher a:hover {
  background: var(--primary-color);
  color: white;
}

.mobile-language-switcher a.active {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
}

.nav-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Language selector styling */
.language-switcher select,
.language-spinner {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  color: #1E40AF;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
  font-family: inherit;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E40AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  margin-right: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.language-switcher select:hover,
.language-spinner:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
  transform: translateY(-1px);
}

.language-switcher select:focus,
.language-spinner:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Dark theme language spinner */
[data-theme="dark"] .language-switcher select,
[data-theme="dark"] .language-spinner {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.3);
  color: #F1F5F9;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

[data-theme="dark"] .language-switcher select:hover,
[data-theme="dark"] .language-spinner:hover {
  border-color: #60A5FA;
  box-shadow: 0 2px 8px rgba(96, 165, 250, 0.25);
}

[data-theme="dark"] .language-switcher select:focus,
[data-theme="dark"] .language-spinner:focus {
  border-color: #60A5FA;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

/* Language switcher in nav */
.nav-language-switcher {
  display: flex;
  gap: 0.5rem;
}

.nav-language-switcher a {
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.nav-language-switcher a:hover {
  background: rgba(14, 165, 233, 0.2);
  transform: translateY(-1px);
}

.nav-language-switcher a.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Adjust body padding for fixed nav */
body {
  padding-top: 80px;
}

.site-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark theme header enhancement */
[data-theme="dark"] .site-header {
  background: linear-gradient(135deg, #1E40AF, #3730A3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.site-header::before {
  content:'';
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
}

.site-header h1{
  margin:0;
  font-size:2.5rem;
  font-weight:700;
  position:relative;
  z-index:1;
}

.site-header .tagline{
  opacity:0.9;
  margin-top:8px;
  font-size:1.1rem;
  font-weight:400;
  position:relative;
  z-index:1;
}

/* Language switcher */
.language-switcher {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Theme switcher button - clean and visible */
.theme-switcher {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.75rem;
  color: #1E40AF;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.theme-switcher:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.theme-switcher:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

/* Dark theme styles for theme switcher */
[data-theme="dark"] .theme-switcher {
  background: rgba(0, 0, 0, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FBBF24;
}

[data-theme="dark"] .theme-switcher:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

.language-switcher a {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.language-switcher a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.language-switcher a.active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  font-weight: 600;
}

.container{
  max-width:1000px;
  margin:32px auto;
  padding:0 24px;
}

/* Dark theme container background enhancement */
[data-theme="dark"] .container {
  background: #000000;
}

[data-theme="dark"] .card {
  background: #000000 !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 1) !important;
}

/* Ensure all text is visible in dark theme */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6,
[data-theme="dark"] p,
[data-theme="dark"] span,
[data-theme="dark"] div,
[data-theme="dark"] .card,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card p,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .hero-description {
  color: #FFFFFF !important;
}

/* Navigation links in dark theme */
[data-theme="dark"] .nav-links a {
  color: #FFFFFF !important;
}

[data-theme="dark"] .nav-links a:hover {
  color: #60A5FA !important;
}

/* Active navigation link */
[data-theme="dark"] .nav-links a.active {
  color: #60A5FA !important;
}

/* Footer in dark theme */
[data-theme="dark"] footer {
  background: #000000 !important;
  color: #FFFFFF !important;
  border-top: 1px solid #333333 !important;
}

/* Language selector in dark theme */
[data-theme="dark"] .language-spinner {
  background: #000000 !important;
  color: #FFFFFF !important;
  border: 1px solid #333333 !important;
}

[data-theme="dark"] .language-spinner option {
  background: #000000 !important;
  color: #FFFFFF !important;
}

/* Theme switcher in dark theme */
[data-theme="dark"] .theme-switcher {
  background: #333333 !important;
  color: #FFFFFF !important;
  border: 1px solid #555555 !important;
}

/* Override ALL white backgrounds in dark theme */
[data-theme="dark"] * {
  border-color: #333333 !important;
}

[data-theme="dark"] .nav-card {
  background: #000000 !important;
  border: 1px solid #333333 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8) !important;
}

[data-theme="dark"] .nav-card:hover {
  background: #111111 !important;
  border-color: #60A5FA !important;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3) !important;
  transform: translateY(-2px);
}

/* Ensure all containers and sections are black */
[data-theme="dark"] main,
[data-theme="dark"] section,
[data-theme="dark"] div,
[data-theme="dark"] .container {
  background-color: #000000 !important;
}

/* Override any remaining white backgrounds */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background: #FFFFFF"],
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background-color: #fff"],
[data-theme="dark"] [style*="background-color: #FFFFFF"] {
  background: #000000 !important;
  background-color: #000000 !important;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

/* Ensure cards are visible in light mode */
body:not([data-theme="dark"]) .card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
}

/* Dark theme specific styles for cards - Override with black theme */
[data-theme="dark"] .card {
  background: #000000 !important;
  border: 1px solid #333333 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 1) !important;
  color: #FFFFFF !important;
}

[data-theme="dark"] .card:hover {
  background: #111111 !important;
  border-color: #60A5FA !important;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3) !important;
}

.card:hover {
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px);
}

h2 {
  color: var(--text-color);
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Ensure headings are visible in light mode */
body:not([data-theme="dark"]) h2 {
  color: #0F172A;
  font-weight: 700;
}

/* Dark theme headings */
[data-theme="dark"] h2 {
  color: #F1F5F9;
  font-weight: 700;
}

h3 {
  color: var(--text-color);
  margin: 20px 0 12px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

body:not([data-theme="dark"]) h3 {
  color: #0F172A;
  font-weight: 600;
}

[data-theme="dark"] h3 {
  color: #F1F5F9;
  font-weight: 600;
}

p {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 16px;
}

body:not([data-theme="dark"]) p {
  color: #0F172A;
  font-weight: 400;
  line-height: 1.7;
}

[data-theme="dark"] p {
  color: #F1F5F9;
  font-weight: 400;
  line-height: 1.7;
}

ul {
  line-height: 1.7;
  margin: 0;
  padding-left: 20px;
  color: var(--text-color);
}

body:not([data-theme="dark"]) ul {
  color: #0F172A;
}

[data-theme="dark"] ul {
  color: #F1F5F9;
}

li {
  margin-bottom: 8px;
  color: var(--text-color);
}

body:not([data-theme="dark"]) li {
  color: #0F172A;
}

[data-theme="dark"] li {
  color: #F1F5F9;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Dark theme links */
[data-theme="dark"] a {
  color: #60A5FA;
}

[data-theme="dark"] a:hover {
  color: #93C5FD;
}

.nav-links {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
  margin:24px 0;
}

.nav-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-color);
  display: block;
}

/* Ensure nav-cards are visible in light mode */
body:not([data-theme="dark"]) .nav-card {
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  color: #0F172A;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06);
}

body:not([data-theme="dark"]) .nav-card:hover {
  border-color: #0EA5E9;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* Dark theme specific styles for nav-cards */
[data-theme="dark"] .nav-card {
  background: #1E293B;
  border: 2px solid #475569;
  color: #F1F5F9;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nav-card:hover {
  background: #334155;
  border-color: #60A5FA;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--shadow);
  text-decoration: none;
  color: var(--text-color);
  border-color: var(--primary-color);
}

.nav-card h3 {
  margin: 0 0 8px 0;
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
}

body:not([data-theme="dark"]) .nav-card h3 {
  color: #0EA5E9;
}

[data-theme="dark"] .nav-card h3 {
  color: #60A5FA;
}

.nav-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

body:not([data-theme="dark"]) .nav-card p {
  color: #64748B;
}

[data-theme="dark"] .nav-card p {
  color: #94A3B8;
}

.screens{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:20px;
  margin-top:20px;
}

.screens img{
  width:100%;
  height:auto;
  border-radius:12px;
  box-shadow:0 8px 25px rgba(15,23,42,0.15);
  transition:transform 0.2s ease;
}

.screens img:hover {
  transform:scale(1.02);
}

/* Dark theme screenshots */
[data-theme="dark"] .screens img {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid #475569;
}

[data-theme="dark"] .screens img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

pre{
  background:#0f172a;
  color:#e2e8f0;
  padding:16px;
  border-radius:8px;
  overflow:auto;
  font-family:'SF Mono',Monaco,Consolas,monospace;
  font-size:0.9rem;
  line-height:1.5;
}

.button {
  display:inline-block;
  background:var(--accent);
  color:white;
  padding:12px 24px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
  transition:all 0.2s ease;
}

.button:hover {
  background:var(--accent-hover);
  transform:translateY(-1px);
  color:white;
  text-decoration:none;
}

footer {
  max-width: 1000px;
  margin: 60px auto 48px;
  padding: 0 24px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

/* Dark theme footer */
[data-theme="dark"] footer {
  color: #94A3B8;
  border-top-color: #475569;
}

@media (prefers-color-scheme:dark){
  :root{
    --bg:#000000;
    --text:#FFFFFF;
    --muted:#94A3B8;
    --accent:#60A5FA;
    --accent-hover:#3B82F6;
    --card:#1E293B;
    --card-bg:rgba(30,41,59,0.6);
    --shadow:rgba(0,0,0,0.3);
    --border:rgba(255,255,255,0.1);
  }
  
  .site-header{
    background:linear-gradient(135deg,#1E293B 0%,#0F172A 100%);
  }
  
  pre{
    background:#0b1220;
    border:1px solid var(--border);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-links,
  .nav-controls {
    display: none !important;
  }
  
  .hamburger-menu {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }
  
  .nav-content {
    justify-content: space-between;
  }
  
  .hero {
    padding: 8rem 2rem 4rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .download-btn {
    justify-content: center;
  }
  
  .site-header h1 { font-size:2rem; }
  .container { padding:0 16px; }
  .card { padding:20px; margin-bottom:20px; }
}

@media (min-width: 769px) {
  .hamburger-menu {
    display: none !important;
  }
  
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
  
  /* Asegurar que la navegación desktop sea visible */
  .nav-links,
  .nav-controls {
    display: flex !important;
  }
}

/* Mobile navigation adjustments */
@media (max-width: 480px) {
  .navigation-bar { padding: 0.5rem; }
  .nav-logo { font-size: 1.3rem; }
  body { padding-top: 60px; }
  .site-header { padding: 30px 16px; }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
  
  .feature h3 {
    font-size: 1.25rem;
  }
}

/* Smooth animations */
.card, .nav-card, .feature-card {
  transition: all 0.3s ease;
}

.card:hover, .nav-card:hover, .feature-card:hover {
  transform: translateY(-2px);
}

/* Active navigation link styling */
.nav-links a.active {
  color: var(--primary-color);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

/* Hide existing language switcher when navigation is present */
.language-switcher {
  display: none;
}

/* Focus states for accessibility */
.theme-switcher:focus,
.nav-language-switcher a:focus,
.nav-links a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Modern Theme Toggle Switch */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border-color);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
  left: 3px;
}

.theme-toggle .theme-icon {
  position: absolute;
  font-size: 14px;
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-toggle .sun-icon {
  left: 6px;
  opacity: 0;
}

.theme-toggle .moon-icon {
  right: 6px;
  opacity: 1;
}

[data-theme="dark"] .theme-toggle {
  background: var(--primary-color);
}

[data-theme="dark"] .theme-toggle::before {
  transform: translateX(30px);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  opacity: 0;
}
