html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: #222;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
  z-index: 1000;
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px; /* equal to your navbar height */
}
nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

nav .logo img {
  height: 45px;
  width: auto;
  display: block;
}

nav .logo span {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ff9800;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
  font-weight: bold;
}

nav ul li a:hover {
  color: #ff9800;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background: #222;
    flex-direction: column;
    width: 220px;
    display: none;
    padding: 20px;
    gap: 15px;
  }
  nav ul.active {
    display: flex;
  }
  .menu-toggle {
    display: flex;
  }
}

/* Hero Section */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 10% 60px;
  gap: 40px;
  flex-wrap: wrap;
}
#hero img {
  width: 100%;
  border-radius: 10px;
}
#hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
#hero h1 span {
  color: #007bff;
}
#hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
#hero p span {
  color: #ff9800;
  font-weight: bold;
}
#hero a {
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 10px;
}
#hero a:nth-child(2) {
  background: transparent;
  border: 1px solid #007bff;
  color: #007bff;
}

/* Services Section */
#services {
  padding: 60px 10%;
  text-align: center;
}
#services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}
.service-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.service {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1;
  min-width: 220px;
}
.service img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.service h3 {
  margin-bottom: 10px;
}

/* Why Choose Us Section */
#why-choose-us {
  padding: 60px 10%;
  background: #111;
  color: #fff;
}
#why-choose-us h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
#why-choose-us p {
  max-width: 700px;
  margin-bottom: 40px;
}
.why-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.why {
  background: #222;
  border-radius: 10px;
  padding: 20px;
  flex: 1;
  min-width: 220px;
}
.why img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Contact Section */
#contact {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
}
#contact form {
  max-width: 400px;
  margin: 20px auto;
  text-align: left;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#contact input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
#contact button {
  background: #007bff;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
}
footer a {
  color: #ff9800;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Fade-in Animation */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
.service, .why {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.service.visible, .why.visible {
  opacity: 1;
  transform: translateY(0);
}
#contact form input,
#contact form button {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}
#contact form input.visible,
#contact form button.visible {
  opacity: 1;
  transform: translateY(0);
}
