/* Define custom variables for colors, typography and other common properties */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #f8f9fa;
  --accent-color: #6c63ff;
  --text-color: #333;
  --text-color-light: #6c757d;
  --background-light: #f8f9fa;
  --background-white: #ffffff;
  --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --box-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --transition-standard: all 0.3s ease;
  --section-padding: clamp(30px, 5vw, 60px);
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-light);
}

/* Typography enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  margin-bottom: 0.5em;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Custom navbar styles */
.navbar1 {
  padding: clamp(10px, 2vw, 20px) 0;
  background-color: var(--background-white);
  box-shadow: var(--box-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-standard);
}

.navbar1:hover {
  box-shadow: var(--box-shadow-md);
}

.navbar-brand1 {
  display: flex;
  align-items: center;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition-standard);
}

.navbar-brand1:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* Main content area */
.main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* About Us Section */
.about-us {
  padding: var(--section-padding) 0;
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  margin: 20px;
}

.about-us h1 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  padding-bottom: 10px;
}

.about-us h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

.about-us p {
  margin-bottom: 15px;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-color-light);
  line-height: 1.8;
}

/* Enhanced Title styles */
.title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin: 30px 0;
  padding: 15px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Geolocation and Map Section */
#geolocation {
  padding: 30px;
  background-color: var(--background-white);
  margin: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-standard);
}

#geolocation:hover {
  box-shadow: var(--box-shadow-md);
}

#map {
  height: clamp(250px, 40vw, 400px);
  width: 100%;
  background-color: #e0e0e0;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 2px solid var(--primary-color);
}

#userLocation {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: bold;
  margin-top: 20px;
  padding: 10px;
  background-color: var(--background-light);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

/* Container improvements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Button styles */
.btn {
  padding: 10px 20px;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition-standard);
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
}

.btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
}

/* Card styles for content */
.card {
  background-color: var(--background-white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
  transition: var(--transition-standard);
}

.card:hover {
  box-shadow: var(--box-shadow-md);
  transform: translateY(-5px);
}

/* Footer enhancements */
.footer {
  background-color: var(--text-color);
  color: var(--background-white);
  padding: 30px 0;
  text-align: center;
  margin-top: auto;
}

/* Responsive media queries */
@media only screen and (max-width: 768px) {
  .container {
    padding: 0 10px;
  }

  #geolocation {
    padding: 20px;
  }
}

@media only screen and (max-width: 576px) {
  .about-us {
    margin: 10px;
  }

  #geolocation {
    padding: 15px;
    margin: 10px;
  }
}
