
* {
  font-family: cursive;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-padding-top: 4rem;
  scroll-behavior: smooth;
  list-style: none;
  text-decoration: none;
}

:root {
  --main-color: grey;
  --secondary-color: black;
  --text-color: black;
  --bg-color: white;
  --btn-color: red;
  --box-shadow: 2px 2px 10px 14px rgba(14, 55, 54, 0.15);
}

html, body {
  width: 100%;
}

body {
  color: var(--text-color);
  overflow-x: hidden;
  cursor: url('img/icons8-tools-26.png'), auto;
}

section {
  padding: 50px 100px;
}

img {
  width: 100%;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid black;
  padding: 18px 100px;
  background-color: var(--secondary-color);
  transition: 0.5s linear;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.logo img {
  width: 120px;
}

.navbar {
  display: flex;
}

.navbar a {
  padding: 8px 17px;
  color: var(--bg-color);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 2px 2px 0 black, 1px 1px 0 black;
  text-transform: uppercase;
  font-weight: 500;
}

.navbar a:hover {
  background-color: var(--main-color);
  border-radius: 0.2rem;
  transition: 0.5s all linear;
}

.header-icon {
  font-size: 22px;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  column-gap: 0.8rem;
}

.header-icon .bx {
  color: var(--bg-color);
}

#menu-icon {
  color: var(--bg-color);
  font-size: 24px;
  z-index: 10001;
  cursor: pointer;
  display: none;
}

.home {
  width: 100%;
  min-height: 100vh;
  background: url(img/Detailing\ 1.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 120px;
  text-align: center;
}

.home-text h1 {
  font-size: 3.4rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--bg-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 3px 3px 0 black, 1px 1px 0 black;
}

.home-text p {
  font-size: 2rem;
  font-family: 'Open Sans', sans-serif;
  color: var(--bg-color);
  margin: 0.5rem 0 1.4rem;
  text-shadow: 3px 3px 0 black, 1px 1px 0 black;
}

.home-img img {
  border-radius: 0.5rem;
  width: 100%;
  max-width: 400px;
  height: auto;
}

.btn {
  padding: 10px 40px;
  border-radius: 0.3rem;
  background: var(--btn-color);
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1rem;
  animation: flash 1s infinite;
}

@keyframes flash {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.btn:hover {
  background: darkred;
}

.about, .services-detail, .services-assemble, .contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  background-color: grey;
  align-items: center;
}

.about-img img, .services-detail-img img, .services-assemble-img img {
  border-radius: 1.8rem;
  max-width: 100%;
  height: auto;
}

.about-text h2, .services-detail-text h2, .services-assemble-text h2, .contact h2 {
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-top: 50px;
  text-shadow: 2px 2px 0 white, 1px 1px 0 white;
}

.about-text p, .services-detail-text p, .services-assemble-text p{
  font-size: 1.5rem;
  margin: 0.5rem 0 1.1rem;
  text-align: justify;
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  width: 100%;
}

footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 24px;
}

footer a:hover {
  color: #00aced;
}

.form-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.inquiry-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inquiry-form input, .inquiry-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
}

.inquiry-form button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.inquiry-form button:hover {
  background-color: #0056b3;
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
  animation: whatsapp-icon 1.5s infinite;
}

@keyframes whatsapp-icon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

#popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4BB543;
  color: white;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.animate-on-scroll {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 768px) {
  section {
    padding: 20px 15px;
  }

  header {
    padding: 12px 4%;
  }

  #menu-icon {
    display: initial;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--text-color);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  .navbar.active {
    max-height: 500px;
    padding: 10px 0;
  }

  .home-text h1 {
    font-size: 2.4rem;
  }

  .home-text p {
    font-size: 1.2rem;
  }

  .about, .services-detail, .services-assemble, .contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-img img, .services-detail-img img, .services-assemble-img img {
    max-width: 350px;
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px 30px;
  }
}

@media (max-width: 400px) {
  .home-text h1 {
    font-size: 2rem;
  }

  .home-text p {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 8px 25px;
  }
}


