/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Poppins", sans-serif;
  background: #fff;
  color: #333;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.2rem;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  will-change: transform;
  transform: translateZ(0);
}

.navbar .brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar .logo img {
  height: 40px;
}

.navbar .logo span {
  font-weight: 600;
  font-size: 1.2rem;
  color: #00bfa6;
}

.navbar .nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar .nav-links li a {
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  color: #fff;
}

.navbar .nav-links li a:hover {
  color: #00bfa6;
}

.navbar .nav-links li a.active {
  position: relative;
  color: #00bfa6;
}

.navbar .nav-links li a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00bfa6;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Hamburger */
.navbar .hamburger {
  display: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  background: #00bfa6;
}

.navbar .hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  margin: 4px 0;
  transition: 0.3s;
}

.navbar .hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar .hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar .hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Navbar scrolled state */
.navbar.scrolled,
.navbar.menu-open {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-links li a,
.navbar.menu-open .nav-links li a {
  color: #333;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("/assets/images/hero.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 0;
  padding: 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(20, 30, 48, 0.85), rgba(36, 59, 85, 0.85));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 800px;
  padding: 2rem;
}

.hero-content img {
  height: 90px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 6px;
  background: #00bfa6;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.cta:hover {
  background: #009e89;
  transform: translateY(-3px);
}

/* Section Defaults */
section {
  padding: 5rem 2rem;
  margin-top: 3rem;
}

/* About */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  background: #f9fdfc;
  border-radius: 8px;
}

.about img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

/* Services */
.services {
  background: #fff;
  text-align: center;
  border-radius: 8px;
}

.services .grid {
  margin-top: 2rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  transform-origin: center;
}

.card:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.18);
  border-color: #00bfa6;
}

.card:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.card-body {
  padding: 1rem;
  font-weight: 500;
}

/* Why Us */
.why {
  background: #eafff9;
  text-align: center;
  border-radius: 8px;
}

.reasons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.reason {
  flex: 1;
  min-width: 220px;
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.reason:hover {
  transform: scale(1.05);
}

/* Testimonials */
.testimonials {
  background: #f0fdfa;
  text-align: center;
  border-radius: 8px;
}

.testimonial-carousel {
  position: relative;
  height: 150px;
  overflow: hidden;
}

.testimonial {
  opacity: 0;
  position: absolute;
  width: 100%;
  transition: 0.8s;
}

.testimonial.active {
  opacity: 1;
  animation: fadeInUp 1s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact */
.contact {
  background: #f9fdfc;
  text-align: center;
  border-radius: 8px;
}

.phone-list {
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #00695c;
}

.map {
  margin-top: 2rem;
  max-width: 600px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #004d40;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: none;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 0.8s;
}

.reveal-left.active {
  opacity: 1;
  transform: none;
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 0.8s;
}

.reveal-right.active {
  opacity: 1;
  transform: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .navbar .hamburger {
    display: block;
  }

  .navbar .brand {
    width: 100%;
    justify-content: space-between;
  }

  .navbar .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    z-index: 1500;
  }

  .navbar .nav-links.open {
    max-height: 450px;
    opacity: 1;
    visibility: visible;
  }

  .navbar .nav-links li {
    width: 100%;
    text-align: center;
  }

  .navbar .nav-links li a {
    display: block;
    width: 100%;
    padding: 1.2rem 0;
    color: #333 !important;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }
}
