@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  background-color: black;
  color: white;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 3rem;
  color: #b74b4b;
  font-weight: 800;
  cursor: pointer;
  transition: 0.5s ease;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 1.8rem;
  color: white;
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover,
nav a.active {
  color: #b74b4b;
}

.icon {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: white;
}

section {
  min-height: 100vh;
  padding: 8rem 5% 4rem;
}

.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6rem;
}

.home .home-content h1 {
  font-size: 6rem;
  line-height: 1.3;
}

span {
  color: #b74b4b;
}

.home-content h3 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.home-content p {
  font-size: 1.6rem;
  max-width: 600px;
}

.home-img img {
  width: 30vw;
  border-radius: 50%;
  box-shadow: 0 0 25px #b74b4b;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;   /* Biar semua teks ketengah */
  padding: 5rem 10%;
}

.about-content {
  max-width: 900px; /* Biar teks tidak terlalu melebar */
}

.about-content .heading {
  font-size: 4rem;   /* Perbesar judul */
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.8rem;  /* Perbesar paragraf */
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.service {
  min-height: 100vh;
  padding: 6rem 5%;
  text-align: center;
}

.service .heading {
  font-size: 4rem;
  margin-bottom: 4rem;
}

.service-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.service-container a {
  text-decoration: none;
  color: inherit;
}


.service-box {
  background: rgba(128, 128, 128, 0.2); /* abu-abu blur */
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 3rem 4rem;
  width: 250px;
  height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #b74b4b;
}

.service-box i {
  font-size: 6rem;
  color: #b74b4b;
  margin-bottom: 1rem;
}

.service-box p {
  font-size: 2rem;
  font-weight: 500;
}

.contact {
  min-height: 80vh;
  padding: 6rem 5%;
  text-align: center;
}

.contact .heading {
  font-size: 4rem;
  margin-bottom: 4rem;
}

.contact-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-box {
  background: rgba(128, 128, 128, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 1.5rem;
  padding: 3rem 4rem;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s ease;
}

.contact-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px #b74b4b;
}

.contact-box h3 {
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: #b74b4b;
}

.contact-box p {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-box i {
  font-size: 2rem;
  color: #b74b4b;
}

footer {
  background: #0d0d0d;
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  margin: 0 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: white;
  transition: 0.3s ease;
}

.footer-links a:hover {
  color: #b74b4b;
  text-shadow: 0 0 8px #b74b4b;
}

footer p {
  font-size: 1.4rem;
  color: #aaa;
  letter-spacing: 0.5px;
}

.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: black;
}

.login-container {
  background: rgba(22, 22, 22, 0.9);
  backdrop-filter: blur(10px);
  padding: 3rem 4rem;
  border-radius: 1.5rem;
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.6);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.login-container h2 {
  font-size: 2.5rem;
  color: #b74b4b;
  margin-bottom: 2rem;
}

.input-box {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: #b74b4b;
}

.input-box input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 0.8rem;
  border: 1px solid #b74b4b;
  background: transparent;
  color: white;
  font-size: 1.6rem;
}

.input-box input::placeholder {
  color: #aaa;
}

.login-container .btn {
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  font-size: 1.6rem;
  font-weight: bold;
  background: #b74b4b;
  color: black;
  border: none;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-container .btn:hover {
  background: black;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  box-shadow: 0 0 15px #b74b4b;
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #aaa;
  transition: 0.3s;
}

.back-home:hover {
  color: #b74b4b;
}

.error-message {
  margin-top: 1rem;
  font-size: 1.4rem;
  color: #ff4d4d;
  font-weight: 500;
}

/* ===== INVENTARIS SECTION ===== */
.inventaris {
  padding: 8rem 5% 5rem;
  background: black;
  text-align: center;
}

.inventaris .heading {
  font-size: 3rem;
  margin-bottom: 3rem;
  color: white;
}

.filter-buttons {
  margin-bottom: 3rem;
}

.filter-buttons .filter-btn {
  padding: 1rem 2rem;
  margin: 0.5rem;
  border-radius: 2rem;
  border: 2px solid #b74b4b;
  background: transparent;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-buttons .filter-btn:hover,
.filter-buttons .filter-btn.active {
  background: #b74b4b;
  color: black;
  box-shadow: 0 0 15px #b74b4b;
}

.inventaris-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.item-box {
  background: #161616;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid #b74b4b;
  box-shadow: 0 0 15px rgba(183, 75, 75, 0.3);
  transition: 0.3s ease;
}

.item-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(183, 75, 75, 0.6);
}

.item-box img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.item-box h3 {
  color: #b74b4b;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.item-box p {
  font-size: 1.4rem;
  color: #ddd;
}



.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.8rem;
  background-color: black;
  border-radius: 4rem;
  font-size: 1.6rem;
  color: #b74b4b;
  border: 2px solid #b74b4b;
  transition: 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: #b74b4b;
  color: black;
  box-shadow: 0 0 25px #b74b4b;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #161616;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  nav.active {
    display: flex;
  }

  .icon {
    display: block;
  }

  .home {
    flex-direction: column;
    gap: 2rem;
    margin-top: 5rem;
  }

  .home-img img {
    width: 70vw;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }
}
