:root {
  --bg-color: #0d0e12;
  --surface-color: #1a1b23;
  --surface-glass: rgba(26, 27, 35, 0.95);
  --accent-color: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.4);
  --secondary-color: #ff9d00;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --border-color: rgba(255, 255, 255, 0.1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-speed: 0.3s;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  margin: 0;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 210, 255, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.glass-panel:hover {
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(0, 210, 255, 0.1);
}

/* Navbar Modernization */
.navbar-modern {
  background: rgba(13, 14, 18, 0.9) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
}

.navbar-brand b {
  letter-spacing: 2px;
  color: var(--accent-color) !important;
  text-shadow: 0 0 10px var(--accent-glow);
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color var(--transition-speed);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-color) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s, left 0.3s;
}

.nav-link:hover::after {
  width: 80%;
  left: 10%;
}

/* Redesigned Components */
.btn-modern {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.btn-modern:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Card Improvements */
.tech-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card:hover::before {
  opacity: 1;
}

/* Typography Enhancements */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

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

/* Footer Modernization */
footer {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Map Popups */
#popup {
  background: var(--surface-glass) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--accent-color) !important;
  border-radius: 8px;
  padding: 15px;
  min-width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.ol-popup {
  background: var(--surface-glass) !important;
  color: var(--text-primary) !important;
}

.ol-popup-closer {
  color: var(--accent-color) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Glassmorphic Dropdown */
.dropdown-menu-glass {
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-menu-glass .dropdown-item {
  color: var(--text-primary);
  border-radius: 4px;
  margin-bottom: 2px;
  transition: all var(--transition-speed);
}

.dropdown-menu-glass .dropdown-item:hover,
.dropdown-menu-glass .dropdown-item:focus {
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-color);
}

.dropdown-menu-glass .dropdown-item.active {
  background: var(--accent-color);
  color: var(--bg-color);
}