@charset "utf-8";
/* CSS Document */

/* Reset & Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

/* Body */
body {
  background: #ffffff;
  color: #000;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
  background: #5682B1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.navbar .logo {
  font-weight: 900;
  font-size: 28px;
  color: #FFD700;
}

.navbar ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #FFD700;
  transition: width 0.3s ease;
}

.navbar a:hover::after {
  width: 100%;
}

/* Admin link */
.admin-link {
  background: linear-gradient(45deg, #FFD700, #FF4500);
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: 600;
  color: #fff !important;
  transition: 0.3s ease;
}

.admin-link:hover {
  background: linear-gradient(45deg, #FF4500, #FFD700);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.admin-link i {
  margin-right: 6px;
}

/* Banner */

.banner {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 50vh;       /* separuh skrin */
  object-fit: cover;
  display: block;
}

/* TULISAN ATAS GAMBAR */
.banner-content {
  position: absolute;
  top: 50%;           /* tengah secara menegak */
  left: 50%;          /* tengah secara mendatar */
  transform: translate(-50%, -50%); /* betul-betul tengah */
  text-align: center;
  z-index: 2;
}

.banner h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.banner p {
  font-size: 1.4rem;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

/* Optional: tambah overlay gelap supaya tulisan lebih jelas */
.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* lapisan gelap */
  z-index: 1;
}

/* Intro Section */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 80px 10%;
  flex-wrap: wrap;
}

.intro-text {
  flex: 1 1 400px;
}

.intro-text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  background: linear-gradient(45deg, #FFD700, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro-text p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #000;
  line-height: 1.6;
}

/* Besarkan gambar & sekata */
.intro-img {
  flex: 1 1 500px;
  text-align: center;
}

.intro-img img {
  width: 100%;
  max-width: 520px;
  height: 330px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s ease-in-out;
}

.intro-img img:hover {
  transform: scale(1.05);
}

/* Tombol */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  background: linear-gradient(45deg, #FF4500, #FFD700);
  color: #fff;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn:hover {
  background: linear-gradient(45deg, #FFD700, #FF4500);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Responsive Design */
@media (max-width: 992px) {
  .intro {
    flex-direction: column;
    text-align: center;
    padding: 60px 8%;
  }

  .intro-text {
    order: 2;
  }

  .intro-img {
    order: 1;
  }

  .intro-img img {
    max-width: 100%;
    height: 280px;
  }
}

@media (max-width: 576px) {
  .navbar ul {
    flex-direction: column;
    background: #5682B1;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    display: none;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .logo {
    font-size: 24px;
  }

  .banner {
    padding: 60px 10px;
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .intro-img img {
    height: 240px;
  }
}

/* Button Go to Top */
#goTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 20px;
  border: none;
  outline: none;
  background: linear-gradient(45deg, #FF4500, #FFD700);
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: 0.3s;
}

#goTopBtn:hover {
  background: linear-gradient(45deg, #FFD700, #FF4500);
  transform: translateY(-3px);
}

/* Footer */
.footer {
  background: #5682B1;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  margin-top: 40px;
}
