:root {
  --bg: #ffffff;
  --text: #111827;
  --border: #e5e7eb;
  --overlay: rgba(0, 0, 0, 0.4);
  --btn-outline: #111827;
  --header-bg: rgba(255, 255, 255, 0.92);
  --card-bg: #f8f9fa;
  --border-color: #e9ecef;
}

html.dark {
  --bg: #111827;
  --text: #f9fafb;
  --border: #374151;
  --overlay: rgba(0, 0, 0, 0.6);
  --btn-outline: #f9fafb;
  --header-bg: rgba(17, 24, 39, 0.9);
  --card-bg: #1f2937;
  --border-color: #374151;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  line-height: 1.6;
}

.fixed-header {
  background-color: var(--header-bg, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(4px);
  z-index: 1030;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
  background-color: transparent;
  position: absolute;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}
.navbar-brand img {
  height: 32px;
  filter: brightness(0) invert(1);
}
html.dark .navbar-brand img {
  filter: none;
}
.navbar-nav .nav-link {
  color: black;
  text-decoration: none;
}
.navbar-nav {
  align-items: center;
}
.navbar-toggler {
  border-color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero {
  height: 60vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  z-index: -1;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.section {
  padding: 4rem 0;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: transparent;
  border: none;
}
.card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.footer {
  background: var(--bg);
  color: var(--text);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer p {
  text-align: center;
  margin: 0.3rem 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

.hero-title,
.hero-subtitle {
  color: white;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0    0   8px rgba(0, 0, 0, 0.6);
}

.contact-card {
  background-color: var(--card-bg, #f8f9fa);
  border: 1px solid var(--border-color, #e9ecef);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}