@font-face {
  font-family: "FontAwesome";
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0")
    format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --primary-dark: #444342;
  --primary-accent: #2c5f7c;
  --primary-accent-hover: #1e4a5f;
  --secondary-accent: #6b7a8f;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --text-dark: #2c2c2c;
  --text-light: #f8f8f8;
  --text-white: #ffffff;
  --navbar-bg: #2c2c2c;
}

html {
  scroll-behavior: smooth;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.topnav {
  background-color: var(--navbar-bg);
  overflow: hidden;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
}

.topnav a {
  float: none;
  display: block;
  color: var(--text-light);
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  transition: background-color 0.3s ease;
}

.topnav a:hover {
  background-color: var(--primary-accent);
  color: var(--text-white);
}

.topnav a.active {
  background-color: var(--primary-accent);
  color: var(--text-white);
}

.topnav .icon {
  display: none;
}

.topnav .logo-link {
  display: flex;
  align-items: center;
  padding: 8.5px 16px;
}

.topnav .logo-link img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
}

.topnav .logo-link:hover {
  background-color: var(--primary-accent);
}

.topnav .logo-link:hover img {
  filter: brightness(0) invert(1);
}

.topnav .logo-link.active {
  background-color: var(--primary-accent);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../img/hero.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  text-align: center;
}

.hero-text {
  max-width: 800px;
  padding: 20px;
}

.hero-text h1 {
  font-size: 48px;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

.hero-text p {
  max-width: 80%;
  margin: 0 auto 30px;
  font-size: 22px;
  line-height: 1.8;
}

.hero-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-accent);
  color: var(--text-white);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-button:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 95, 124, 0.4);
}

/* Section Headings */
.section-heading {
  font-size: 36px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 15px;
}

.section-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-accent);
}

/* Services Section */
.services-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: 25px;
}

.service-content h3 {
  font-size: 22px;
  color: var(--primary-accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.service-content p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

/* About Us Section */
.about-section {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 28px;
  color: var(--primary-accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.about-text p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.contact-item {
  text-align: center;
  padding: 30px;
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.contact-item i {
  font-size: 40px;
  color: var(--primary-accent);
  margin-bottom: 20px;
}

.contact-info h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Footer Section */
.footer {
  background-color: var(--navbar-bg);
  color: var(--text-light);
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-text p {
  font-size: 14px;
  color: var(--text-light);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 50px;
  height: 50px;
  background-color: var(--primary-accent);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(44, 95, 124, 0.4);
}

.back-to-top i {
  font-size: 20px;
}

/* Contact Map */
.contact-map {
  width: 100%;
  height: 450px;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-map .leaflet-container {
  height: 100%;
  width: 100%;
  border-radius: 10px;
}

.leaflet-control-attribution {
  display: none !important;
}

/* Responsive */

@media screen and (max-width: 968px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
    max-width: 90%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    flex-direction: column;
  }
}

@media screen and (max-width: 600px) {
  .topnav {
    display: block;
    justify-content: flex-start;
    gap: 0;
  }

  .topnav a {
    float: left;
  }

  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }

  .topnav .logo-link {
    position: static;
    padding: 12px 16px;
  }

  .topnav .logo-link img {
    height: 32px;
  }

  .topnav.responsive {
    position: sticky;
  }
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }

  .section-heading {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-text {
    text-align: center;
  }

  .services-section,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }

  .contact-map {
    height: 350px;
    margin-top: 30px;
  }

  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }

  .back-to-top i {
    font-size: 18px;
  }
}
