:root {
  --primary: #7c4dff;
  --secondary: #ff4081;
  --text-dark: #333;
  --text-light: #fff;
  --background: #f5f5f5;
  --spacing: 1rem;
  --accent: #64b5f6;
  --gradient-bg: linear-gradient(135deg, #7c4dff 0%, #64b5f6 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
}

.header {
  background: var(--text-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-image {
  height: 40px;
  margin-right: 10px;
}

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

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

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

.nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  margin-top: 2px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--text-light);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  display: block;
  padding: 0.5rem 1rem;
}

.main-content {
  margin-top: 70px;
}

.hero {
  background-image: url('https://images.unsplash.com/photo-1518531933037-91b2f5f229cc?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 var(--spacing);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem var(--spacing);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
  font-weight: 600;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 1rem auto;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-bg);
  border-radius: 50%;
  color: white;
}

.feature-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.cta-section {
  background: var(--gradient-bg);
  color: var(--text-light);
  text-align: center;
  padding: 4rem var(--spacing);
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 80%, black);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--secondary) 80%, black);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--text-light);
  color: var(--text-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-large {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
}

#map {
  height: 500px;
  width: 100%;
  background: #e8e8e8;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.map-section {
  padding: 4rem var(--spacing);
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.provider-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.provider-image {
  height: 200px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

.provider-content {
  padding: 1.5rem;
}

.provider-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: var(--text-light);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

footer {
  background: #2e7d32;
  color: var(--text-light);
  padding: 3rem var(--spacing);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
}

.footer-logo-image {
  height: 30px;
  margin-right: 10px;
}

.footer-links h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
}

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
}

.language-selector-container {
  margin-left: 1rem;
  position: relative;
}

#language-selector {
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #ddd;
  background-color: white;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  padding-right: 1.5rem;
}

.language-selector-container::after {
  content: '▼';
  font-size: 0.7rem;
  color: var(--primary);
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.top-bar {
  background: #f8f8f8;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0 var(--spacing);
}

.footer-language-selector {
  margin-top: 1rem;
}

.footer-language-selector select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: #2e7d32;
  color: white;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}

@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a.active::after {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    display: none;
    padding-left: 1rem;
    padding-top: 0.5rem;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .language-selector-container {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .top-bar-container {
    justify-content: center;
  }
}