:root {
  --primary: #b19901;
  --bg: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #000;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 7%;
  background: #00000078;
  border-bottom: 1px solid #513c2821;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.navbar .navbar-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  font-style: normal;
}


.navbar .navbar-nav a {
  color: #fff;
  display: inline-block;
  font-size: 1.3rem;
  margin: 0 1rem;
}

.navbar .navbar-nav a:hover {
  color: #ffe11c;
}

#hamburger-menu {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url("anak3.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}


.hero::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 5%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8%, rgba(255, 255, 255, 0) 50%);
}

.hero .content {
  padding: 1rem 7%;
  /* max-width: 60rem; */
  width: 90%;
  text-align: left;
  position: fixed;
  top: 130px;
}


.hero .content h1 {
  font-size: 3.5rem;
  width: 90%;
  display: flex;
  justify-content: left;
  justify-items: left;
  color: #ffffff;
  text-shadow: 1px 1px 1px rgb(134, 134, 134);
  line-height: 1;
}


.hero .content p,
.contact p {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.5rem;
  font-weight: 300;
  text-shadow: 1px 1px 1px rgb(1, 1, 3);
  mix-blend-mode: difference;
  text-align: left;
  color: #ffffff;
}

.hero .content p span {
  font-weight: 500;
}

.hero .content .cta {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  font-weight: 510;
  color: #fff;
  background-color: rgba(49, 125, 206, 0.849);
  border-radius: 0.5rem;
  cursor: pointer;
}


.hero .content .cta2 {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  font-weight: 510;
  color: #ffffff;
  border-radius: 0.5rem;
  border: 1px solid #ffffff71;
  cursor: pointer;
}

.hero .content .cta3 {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #ffffff;
  background-color: rgb(62, 155, 255);
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 510;
}

.hero .content .cta-hero a:hover {
  background-color: rgb(62, 155, 255);
}

.hero .content .cta-hero {
  display: flex;
  gap: 1rem;
  padding-left: 1rem;
}

/* Hero expand */

*, *::before, *::after {
  box-sizing: border-box;
}


.card {
  background: none;
  padding: 1rem;
  border-radius: .25em;
}


.cut-off {
  --max-lines: 6;
  --line-height: 1.4;

  max-height: calc(var(--max-lines) * 1em * var(--line-height));
  line-height: 1.4;
  overflow: hidden;
  position: relative;
}

.cut-off:has(+ .expand-btn:not(:checked))::before {
content: "";
position: absolute;
/*height: calc(2em * var(--line-height));*/
width: 100%;
bottom: 0;
pointer-events: none;
background: linear-gradient(to bottom, transparent);
}

.expand-btn {
  display: inline;
  justify-content: left;
  appearance: none;
  color: #ffffff;
  font-size: 1.4rem;
  width: 17rem;
  cursor: pointer;
}

.expand-btn::before {
  content: "See more...";
}


.expand-btn:checked::before {
  content: "see less?";
}

.cut-off:has(+ .expand-btn:checked) {
  max-height: none;
}


/* Hero Section */
.hero2 {
  min-height: 100vh;
  display: flex;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-color: #6e5f365b;
  position: relative;
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
  mask-image: linear-gradient(rgba(0, 0, 0, 1) 85%, rgba(0, 0, 0, 0));
}


/*.hero2::after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(0deg, rgba(1, 1, 3, 1) 8%, rgba(255, 255, 255, 0) 50%);
} */

.hero2 .content {
  padding: 1rem 7%;
  /* max-width: 60rem; */
  width: 100%;
  text-align: center;
  padding-top: 12rem;
}


.hero2 .content h1 {
  font-size: 4rem;
  color: white;
  text-shadow: 1px 1px 1px rgb(134, 134, 134);
  line-height: 1;
}

.hero2 .content h1 span {
  color: #cfb402;
}

.hero2 .content p,
.contact p {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  line-height: 1.5rem;
  font-weight: 300;
  /*text-shadow: 1px 1px 1px rgb(1, 1, 3);*/
  mix-blend-mode: difference;
  text-align: center;
  color: #505050;
}

.hero2 .content p span {
  font-weight: 500;
}

.hero2 .content .cta {
  margin-top: 1.5rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: rgb(62, 155, 255);
  border-radius: 0.5rem;
  /*box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);*/
}

.hero2 .content .cta2 {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  color: #616161;
  background-color: rgba(62, 155, 255, 0);
  border-radius: 0.5rem;
  border: 1px solid #ffffffb4;
  cursor: pointer;
}

.hero2 .content .cta3 {
  margin-top: 1rem;
  display: inline-block;
  padding: 1rem 3rem;
  font-size: 1.4rem;
  font-weight: 510;
  color: #ffffff;
  background-color: rgb(62, 155, 255);
  border-radius: 0.5rem;
  cursor: pointer;
}

/*hero ends*/





/* About Section */
.about,
.progress,
.products,
.products2,
.hero2,
.contact {
  padding: 8rem 7% 1.4rem;
}

.about h2,
.donation,
.progress h2,
.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
  font-weight: 500;
}

.about h2 span,
.progress h2 span,
.products h2 span,
.contact h2 span {
  color: #b19901;
}

.about .row {
  display: flex;
}

.about .row .about-img {
  flex: 1 1 45rem;
}

.about .row .about-img img {
  width: 100%;
  -webkit-mask-size: 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.about .row .content {
  flex: 1 1 35rem;
  padding: 0 1rem;
}

.about .row .content h2 {
  font-size: 1.8rem;
  margin-bottom: 3rem;
  margin-top: 10rem;
}

.about .row .content h3 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.about .row .content p {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.6;
  color: #666;
}



/* progress Section */
.menu h2,
.contact h2 {
  margin-bottom: 1rem;
}

.progress {
  margin-top: 1rem;
  min-height: 100vh;
}


.progress p {
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.6;
  color: #666;
}

.progress p span {
  color: green;
  font-weight: 800;
}

.progress p .span2 {
  color: red;
  font-weight: 800;
}

.progress .progress-img {
  flex: 1 1 45rem;
}

.progress .progress-img {
  width: 100%;
  -webkit-mask-size: 50%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.products p {
  text-align: left;
  max-width: 30rem;
  margin: auto;
  font-weight: 400;
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
}

.menu .row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5rem;
  justify-content: center;
}

.menu .row .menu-card {
  text-align: center;
  padding-bottom: 4rem;
}

.menu .row .menu-card img {
  border-radius: 50%;
  width: 80%;
}

.menu .row .menu-card .menu-card-title {
  margin: 1rem auto 0.5rem;
}

/* Products Section */
.products .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.products .product-card {
  text-align: center;
  border: 1px solid #6666662d;
  border-radius: 0.5rem;
  padding: 2rem;
  background-color: #fde33825;
}

.products .product-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.products .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #fff;
  margin: 0.3rem;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.products .product-image {
  padding: 1rem 0;
  background-color: #eee;
}

.products .product-image img {
  height: 25rem;
}

.products .product-content h3 {
  font-size: 2rem;
}


/* Products2 Section */
.products2 .row {
  border: 1px solid #b8b8b8;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem; 
  border-radius: 0.5rem;
}

.products2 .product-card {
  text-align: center;
  /*border: 1px solid #6666662d;*/
  padding: 2rem;
}


.products2 .product-icons a {
  width: 4rem;
  height: 4rem;
  color: #fff;
  margin: 0.3rem;
  border: 1px solid #666;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}


.products2 .product-image {
  padding: 1rem 0;
  background-color: #eee;
}

.products2 .product-image img {
  height: 25rem;
}

.products2 .product-content h3 {
  font-size: 2rem;
}

.products2 p,
.products2 h3 {
  color: #666;
}

.products2 p {
  font-size: 1.4rem;
}

.products2 h2 {
  font-size: 25rem;
}


.products2 .product-price span {
  text-decoration: line-through;
  font-weight: lighter;
  font-size: 1rem;
}



/* Contact Section */
.contact .row {
  display: flex;
  margin-top: 2rem;
  background-color: #fff;
}

.contact .row .map {
  flex: 1 1 45rem;
  width: 100%;
  object-fit: cover;
}

/* Footer */
footer {
  background-color: #1d1d1d;
  text-align: center;
  padding: 1rem 0 3rem;
  margin-top: 3rem;
}

footer .socials {
  padding: 1rem 0;
}

footer .socials a {
  color: #fff;
  margin: 1rem;
}

footer .socials a:hover,
footer .links a:hover {
  color: #fff;
}

footer .links {
  margin-bottom: 1.4rem;
}

footer .links a {
  color: #fff;
  padding: 0.7rem 1rem;
}

footer .credit {
  font-size: 0.8rem;
}

footer .credit a {
  color: #fff;
  font-weight: 700;
}

footer p {
  color: #fefefe;
}

/* Modal Box */
/* Item Detail */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-container {
  position: relative;
  background-color: #fefefe;
  color: #fff;
  margin: 15% auto;
  padding: 1.2rem;
  border: 1px solid #666;
  width: 80%;
  animation: animateModal 0.5s;
}




/* Modal Animation */
@keyframes animateModal {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 0;
    opacity: 1;
  }
}

.modal-container .close-icon {
  position: absolute;
  right: 1rem;
  color: #b19901;
}

.modal-content {
  flex-wrap: wrap;
  margin-top: 2rem;
}


.modal-content p {
  display: flex;
  justify-content: center;
  justify-items: center;
  font-size: 1.4rem;
  color: #666;
  line-height: 1.7rem;
  padding-bottom: 1rem;
}

.modal-content a {
  display: flex;
  justify-content: center;
  gap: 1rem;
  width: 20rem;
  background-color: rgb(62, 155, 255);
  border-radius: 0.5rem;
  color: #ffffff;
  margin-top: 1.5rem;
  padding: 3rem 1.6rem;
}

.modal .modal-container .modal-content .product-content .cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  justify-items: center;
  padding: 1rem;
  font-size: 1.4rem;
  color: #fff;
  background-color: rgb(62, 155, 255);
  border-radius: 0.5rem;
  /*box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);*/
}




/* Media Queries */
/* Laptop */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

/* Tablet */
@media (max-width: 758px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
    margin: auto;
    color: #fff;
  }

  .navbar .navbar-logo {
    margin: auto;
  }

  .navbar {
    display: flex;
    justify-content: center;
  }


  .navbar .navbar-nav {
    position: absolute;
    border-radius: 0 0 0 0;
    top: 100%;
    right: -100%;
    background-color: #1d1d1d;
    width: 20rem;
    height: 35vh;
    transition: 0.3s;
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    color: #fff;
    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);
  }
  
  
    .hero .content {
    padding: 1rem 7%;
    width: 90%;
    text-align: left;
    position: fixed;
    top: 70px;
  }


  .about .row {
    flex-wrap: wrap;
  }

  .about .row .about-img img {
    height: 24rem;
    object-fit: cover;
    object-position: center;
  }

  .about .row .content {
    padding: 0;
  }

  .about .row .content h3 {
    margin-top: 1rem;
    font-size: 2rem;
  }

  .about .row .content p {
    font-size: 1.6rem;
  }

  .menu p {
    font-size: 1.2rem;
  }

  .contact .row {
    flex-wrap: wrap;
  }

  .contact .row .map {
    height: 30rem;
  }

  .contact .row form {
    padding-top: 0;
  }

  .modal-content {
    flex-wrap: wrap;
  }

  .hero .content p {
    width: 115%;
  }
  
  .products2 .content h2 {
  text-align: center;
  }
  
  .products2 .row {
  border-bottom: 1px solid #b8b8b8;
  border-radius: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

}

/* Mobile Phone */
@media (max-width: 450px) {
  html {
    font-size: 55%;
  }

  .modal .modal-content a {
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
  }

}