:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  padding-top: 80px; /* Account for fixed navbar */
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Playfair Display', serif;
}

/* Common styles */
html {
  scroll-behavior: smooth;
}

#app {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vanilla:hover {
  filter: drop-shadow(0 0 2em #f7df1eaa);
}

/* Navigation */
.navbar {
  background: white !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.navbar-brand {
  font-weight: 700 !important;
  font-size: 1.8rem !important;
}

.nav-link {
  position: relative;
  font-weight: 500 !important;
  color: #333 !important;
  margin: 0 0.5rem !important;
}

.nav-link:hover {
  color: #dc3545 !important;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #dc3545;
  left: 0;
  bottom: -2px;
  transition: width 0.3s;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active {
  color: #dc3545 !important;
}

.nav-link.active:after {
  width: 100%;
}

/* Hero sections */
.hero-section {
  background-position: center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.home-hero {
  background: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1600&q=80');
  min-height: calc(100vh - 80px);
  margin-top: -80px;
  padding-top: 80px;
}

.about-hero {
  background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&q=80');
  height: 60vh;
}

.contact-hero {
  background: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80');
  height: 60vh;
}

/* Cards and features */
.card {
  padding: 2em;
  transition: transform 0.3s;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 0.75rem;
}

/* Contact specific */
.contact-form {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 0 2rem rgba(0,0,0,0.1);
  padding: 2rem;
  height: 100%;
}

.contact-form .form-control {
  border: 2px solid #e9ecef;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form .form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.contact-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-info-card {
  transition: transform 0.3s;
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.contact-info-card .card-body {
  padding: 1.5rem;
}

.contact-info-card h3 {
  color: #333;
  font-weight: 600;
}

.contact-info-card p {
  color: #666;
  line-height: 1.6;
}

.contact-info-card a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info-card a:hover {
  color: #dc3545;
}

.contact-info-card i {
  color: #dc3545;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Alert styling */
.alert {
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

/* Map iframe styling */
iframe {
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Utility classes */
.hover-effect {
  transition: all 0.3s ease;
}

.hover-effect:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.read-the-docs {
  color: #888;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-info-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}
