:root {
  --primary: #1c221c;
  --bg: #f4f6f4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);

  height: 2000px;
}
/* Navbar */
.navbar {
  font-family: "Inter", sans-serif;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.2rem 7%;
  background-color: #708871;
  border-bottom: 1px #f6b7b7;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  z-index: 9999;
}
.navbar img {
  width: 5rem;
}
.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
}
.navbar .navbar-nav a:hover {
  color: var(--primary);
}
.navbar .navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-nav a:hover::after {
  transform: scaleX(0.5);
}

.navbar .navbar-extra a {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
}
.navbar .navbar-extra a:hover {
  color: var(--primary);
}
.navbar .navbar-extra a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar .navbar-extra a:hover::after {
  transform: scaleX(0.5);
}
#menu {
  color: #fff;
  display: inline-block;
  font-size: 1.4rem;
  margin: 0 1rem;
  display: none;
}

.navbar #menu:hover {
  color: var(--primary);
}
.navbar #menu::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid var(--primary);
  transform: scaleX(0);
  transition: 0.2s linear;
}
.navbar #menu:hover::after {
  transform: scaleX(0.5);
}

/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg);
}
.hero button {
  margin-top: 2rem;
  background-color: #fff;
  color: #283128; /* hijau senada navbar */
  padding: 0.6rem 1.2rem;
  border: 2px solid #708871;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero button:hover {
  background-color: #333b33;
  color: #fff;
}

.hero .content {
  padding: 1.4rem 7%;
  max-width: 60rem;
}

/* About sections */
.about {
  padding: 10rem 7% 1.4rem;
}

/* media queries */
/* laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
  #menu {
    display: inline-block;
  }
  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #708871;
    width: 30rem;
    height: 100vh;
    transition: 0.3s;
  }
  .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 .navbar-nav a::after {
    transform-origin: 0 0;
  }
  .navbar .navbar-nav a:hover::after {
    transform: scaleX(0.2);
  }
}

/* tablet */
@media (max-width: 768px) {
  html {
    font-size: 62.8%;
  }
}
/* mobile */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }
}

/* hero */

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}
