

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body {
  max-width: 100%;
  font-family: "poppins", sans-serif;
}
.navbar-top {
  margin-top: 0.5rem;
  background: #003b4e;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  right: 0;
  left: 0;
  z-index: 9999;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background-color: #f5f5f5;
  border-bottom: 1px solid #54504c;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}
.navbar img {
  border-radius: 50%;
  width: 6rem;
  display: inline-block;
}

.navbar .navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0c0808;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: var(--primary);
}

.navbar .navbar-nav a {
  color: #0a0909;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: #002c3e;
}

.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid #002c3e;
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #110202;
  margin: 0 0.5rem;
}

.navbar .navbar-extra a:hover {
  color: var(--primary);
}

#hamburger-menu {
  display: none;
}

/* Navbar Search Form */
.navbar .search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #002c3e;
  width: 50rem;
  height: 5rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.5s;
}

.navbar .search-form.active {
  transform: scaleY(1);
}
.navbar .search-form input {
  height: 100%;
  width: 100%;
  font-size: 1.7rem;
  color: #002c3e;
  padding: 1rem;
}

.navbar .search-form label {
  cursor: pointer;
  font-size: 2rem;
  margin-right: 1.5rem;
  color: #00888b;
}
/* navbar end */

/* dropdown galery start */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 100px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 1px 10px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Perbaikan bagian ini supaya tidak mengubah background */
.dropdown:hover .dropbtn {
  /* Hapus background-color atau set jadi transparent agar background tidak berubah */
  background-color: transparent;
  color: #ffd700; /* Contoh warna tulisan menyala saat hover */
  transition: color 0.3s ease;
}

/* dropdown galery end */

/* vidio section  */
header {
  background-color: #005c99;
  color: white;
  padding: 20px;
  text-align: center;
}

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.video-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
  width: 100%;
  text-align: center;
}

video {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 10px;
}


/* Navbar Search Form */
.search-form {
  position: absolute;
  top: 100%;
  right: 7%;
  background-color: #030303;
  width: 50rem;
  height: 5rem;
  display: flex;
  align-items: center;
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.5s;
}

.cta {
  background-color: #00888b;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
}
/* navbar search-form end */

.hero {
  margin-top: 8rem;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  padding-bottom: 5rem;
  align-items: center;
  background-color: #0b4d54;
}
.hero::after {
  content: "";
  display: block;
  position: absolute;
  min-width: 100%;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(1deg, rgb(#0b4d54) 5%, rgba(#fff) 50%);
  bottom: 0;
}
.hero .content h1,
h2 {
  margin-left: 1.5rem;
  font-size: 2rem;
  line-height: 3rem;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 20px;
}

.hero .content p {
  margin-left: 1.5rem;
  line-height: 1rem;
  font-size: 1rem;
  color: #d0f3f1;
  margin-bottom: 30px;
}

.hero .content .cta {
  margin-bottom: 2rem;
  margin-left: 5rem;
  display: inline-block;
  margin-right: 15px;
  background-color: #00b5b7;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}
.hero .content .cta a {
  cursor: pointer;
  color: white;
}

.hero img {
  margin-right: 5rem;
  width: 480px;
  height: auto;
}

/* hero section end */

.galery h1{
  margin-top: 2rem;
  text-align: center;
  font-size: 2rem;
}

.gallery {
  padding-top: 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  background: white;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  display: block;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.caption {
  padding: 10px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

/* Footer Umum */
.reparo-footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 15px;
  color: #f5b400;
}

.footer-column p,
.footer-column li,
.footer-column a {
  text-align: left;
  padding-right: 3rem;
  font-size: 14px;
  color: #ccc;
  line-height: 1.8;
  text-decoration: none;
}


.footer-column a:hover {
  color: #fff;
}

.footer-contact li {
  list-style: none;
  margin-bottom: 8px;
}

.footer-contact i {
  margin-right: 8px;
}

/* Bottom Footer */
.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px; /* jarak antar icon */
  margin-top: 20px;
}

.footer-social a img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-bottom: 1rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.footer-social a img:hover {
  transform: scale(1.2);
}


.footer-social a {
  margin: 0 10px;
  color: #ccc;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #f5b400;
}

.brand {
  color: #f5b400;
}

/* Tablet (601px – 1024px) */
@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }
  .hero {
    padding-top: 10rem;
  }
  .navbar-top {
    margin-top: 1rem;
  }
  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #fff;
    width: 30rem;
    height: 100vh;
  }
  .navbar .navbar-nav.active {
    right: 0;
  }
  .navbar .navbar-nav a {
    color: var(--bg);
    display: block;
    margin: 1.5rem;
    padding: 0.5rem;
    font-size: 2rem;
  }

  .navbar img {
    width: 8rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero .content h1,
  .hero .content h2 {
    font-size: 2rem;
    padding-right: 5rem;
  }
  .hero .content p {
   padding-right: 5rem; 
  } 
  .hero .content .cta {
    margin-right: 10rem;
   
  }
  .galery h1{
  text-align: center;
  font-size: 2rem;
}
.dropdown-content {
  display: none;
  position: absolute;
   top: 0;
  left: 100%;
  background: white;
  min-width: 100px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

    .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero img {
    width: 80%;
    padding-left: 2rem;
  }
}

/* Mobile (≤ 600px) */
@media (max-width: 398px) {
  html {
    font-size: 55%;
  }

  .navbar,
  .navbar .navbar-nav,
  .navbar .navbar-extra {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar img {
    width: 6rem;
    margin: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 20rem;
  }

  .navbar-top {
    margin-top:6rem;
  }

  .hero .content h1,
  .hero .content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .hero img {
    width: 90%;
    margin: 2rem auto;
  }
}
