@import url("https://fonts.googleapis.com/css2?family=Lora:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #2f2f2f;
  --text-dark: #18181b;
  --text-light: #71717a;
  --white: #ffffff;
  --max-width: 1200px;
  --header-font: "Lora", serif;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.section__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 5rem 1rem;
}

.section__header {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--header-font);
  color: var(--text-dark);
}

.section__subheader {
  color: var(--text-light);
}

.btn {
  padding: 0.75rem 1rem;
  max-width: 100px;
  font-size: 1rem;
  color: var(--white);
  background-color: var(--primary-color);
  border-radius: 13px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: var(--text-dark);
}

.btn__about {
  margin-top: 30px;
}

img {
  display: flex;
  width: 100%;
}

a {
  text-decoration: none;
}

html,
body {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
}

/* HEADER */

header {
  position: relative;
  overflow: hidden;
}

header video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5);
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    rgba(0, 0, 0, 0.2)
  );
  z-index: -1;
}

nav.scrolled {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  color: var(--text-dark);
}

.nav__container {
  max-width: var(--max-width);
  margin: auto;
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

}

.nav__logo {
  flex: 1;
}

.nav__logo a {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--white);
}

.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.link a {
  position: relative;
  padding: 10px 0;
  color: var(--white);
  transition: 0.3s;
  font-size: 14px;
}

.link a::after {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 2px;
  width: 0;
  background-color: var(--white);
  transition: 0.3s;
}

.link a:hover::after {
  width: 100%;
}

.nav__menu__btn {
  display: none;
  font-size: 1.5rem;
  color: var(--white);
}

.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
}

.nav__actions span {
  font-size: 1.2rem;
  color: var(--white);
  cursor: pointer;
}

.language-dropdown {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 5px;
}

.lang-btn img {
  width: 20px;
  height: 20px;
  object-fit: cover;
}

.lang-btn span {
  font-size: 14px;
}

.lang-btn i {
  font-size: 16px;
  transition: transform 0.3s;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  list-style: none;
  padding: 5px 0;
  margin: 0;
  display: none;
  min-width: 150px;
  z-index: 100;
}

.lang-menu.open {
  display: block;
}

.language {
  padding: 8px 15px;
  cursor: pointer;
}

.language a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
  pointer-events: auto; /* Memastikan event klik berfungsi */
  width: 100%;
  height: 100%;
}

.language:hover a {
  color: var(--white);
  background: var(--primary-color);
  border-radius: 5px;
  padding: 5px 10px;
}

.language img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  object-fit: cover;
}

.language span {
  font-size: 14px;
}

.lang-menu.open ~ .lang-btn i {
  transform: rotate(180deg);
}

.header__container {
  text-align: center;
  color: var(--white);
}

.header__container h1 {
  margin-bottom: 1rem;
  font-size: 3.5rem;
  font-weight: 600;
  font-family: var(--header-font);
}

.header__container p {
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 4rem;
  font-size: 1rem;
}

.header__container a {
  display: inline-block;
  padding: 0 8px;
  font-size: 1.5rem;
  color: var(--white);
  backdrop-filter: blur(10px);
  border: 1px solid var(--white);
  border-radius: 100%;
}

.header__container a:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateX(10px) translateY(-10px);
}

/* ABOUT */
.about__container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
}
  
.about__container .about__bg {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-3rem);
  max-width: 300px;
  opacity: 0.4;
  z-index: -1;
}
  
.about__grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1rem;
}
  
.about__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 5px 10px;
  font-size: 1.25rem;
  background-color: #cad8d8;
  border-radius: 100%;
}
  
.about__card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-dark);
}
  
.about__card p {
  color: var(--text-light);
}
  
.about__image img {
  max-width: 500px;
  margin: auto;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
}



/* FOOTER */

.footer {
    background: var(--primary-color);
    padding: 50px 0 20px;
    position: relative;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer__col {
    padding: 0 15px;
}

.footer__logo {
  width: 140px;
  height: 50px;
}

.footer__col p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.6;
  margin: 20px 0 20px;
}

.social__links {
    display: flex;
    gap: 1rem;
}

.social__links a {
    display: inline-block;
    font-size: 22px;
    color: var(--white);
    transition: all .45s ease;
}

.social__links a:hover {
    transform: translateY(-3px);
    color: var(--main-color);
}

.footer__col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--white);
    padding-bottom: 10px;
}

.footer__col ul li {
    margin-bottom: 1rem;
    list-style: none;
}

.footer__col ul li a {
    color: var(--white);
    font-size: 14px;
    transition: all .45s ease;
    display: block;
}

.footer__col ul li a:hover {
    transform: translateX(5px);
    color: var(--main-color);
}

.contact__info li {
  display: flex;
  align-items: center;
  max-height: 20px;
  gap: 10px;
}

.contact__info li span {
    color: var(--white);
    font-size: 18px;
}

.contact__info li p, 
.contact__info li p a {
    color: var(--white);
    font-size: 14px;
}

.contact__info li p a:hover {
    color: var(--main-color);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
}

.footer__bottom p {
    color: var(--white);
    font-size: 14px;
}

/* TUJUAN */
.tujuan__container {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/ss.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tujuan__content {
    text-align: center;
    width: 100%;
}

.tujuan__grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 80%;
    margin: 0 auto;
}

.tujuan__card {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tujuan__card h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: var(--header-font);
}

.tujuan__card p {
    color: var(--white);
    line-height: 1.8;
    font-size: 1rem;
}

/* VISI MISI */
.visi-misi__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    /* margin-bottom: 50px; */
}

.visi-misi__image {
    position: relative;
}

.visi-misi__img {
    width: 100%;
    border-radius: 20px;
}

.visi-misi__content {
    padding: 2rem;
}

.visi-misi__grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

.visi-misi__card {
    background-color: var(--white);
    padding: 2rem;
    transition: all 0.3s ease;
}

.visi-misi__card h2 {
    color: var(--text-dark);
    font-size: 25px;
    margin-bottom: 1rem;
    font-family: var(--header-font);
}

.visi-misi__card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
}

/* SASARAN */
.sasaran__content {
  text-align: center;
}

.sasaran__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.sasaran__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  height: auto;
}

.sasaran__card span {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 5px 10px;
  font-size: 1.25rem;
  background-color: #cad8d8;
  border-radius: 100%;
}
  
.sasaran__card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--header-font);
  color: var(--text-dark);
}
  
.sasaran__card p {
  color: var(--text-light);
}

/* LOKASI */
.lokasi__container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.lokasi__content {
    text-align: center;
}

.lokasi__map {
    width: 100%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.lokasi__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* RESPONSIVE */
@media (width < 1200px) {
    .vision__grid {
        gap: 1.5rem;
    }
}

@media (width < 900px) {
    nav {
        position: fixed;
        width: 100%;
        padding: 0 14px;
        background-color: #000000;
        z-index: 99;
    }
      
    .nav__links {
        position: absolute;
        left: 0;
        top: 68px;
        padding: 2rem;
        width: 100%;
        flex-direction: column;
        transform: scaleY(0);
        transform-origin: top;
        transition: 0.5s;
        background-color: rgba(0, 0, 0, 0.9);
    }
    
    .nav__links .link a {
        opacity: 0;
    }
    
    .nav__links.open .link a {
        opacity: 1;
    }
    
    .nav__links.open {
        transform: scaleY(1);
    }
    
    .nav__menu__btn {
        display: block;
    }
    
    .nav__actions {
        display: none;
    }

    .section__header {
      font-size: 2rem;
      font-weight: 600;
    }
  
    .about__container {
        grid-template-columns: repeat(1, 1fr);
    }
  
    .about__container .about__bg {
        left: 0;
        transform: translateX(0);
    }
  
    .about__image {
        grid-area: 1/1/2/2;
    }

    .visi-misi__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .visi-misi__content {
        padding: 0;
    }

    .tujuan__container {
        padding: 4rem 1.5rem;
        margin: 0 1rem 0 1rem;
    }

    .tujuan__card {
        padding: 2rem;
    }

    .lokasi__container {
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .lokasi__map {
        height: 350px;
    }
}

@media (width < 600px) {
    .section__header {
        font-size: 30px;
        font-weight: 600;
    }

    .section__subheader {
        font-size: 14px;
    }

    .header__container h1 {
        margin-top: 4rem;
        font-size: 2rem;
    }

    .visi-misi__container {
        padding: 0 1rem;
        gap: 2rem;
    }

    .visi-misi__card {
        padding: 1.5rem;
    }

    .visi-misi__card h2 {
        font-size: 1.5rem;
    }

    .visi-misi__card p {
        font-size: 0.9rem;
    }

    .card__icon {
        font-size: 2rem;
    }

    .tujuan__container {
        padding: 3rem 1rem;
        margin: 0 0.5rem 0 0.5rem;
    }

    .tujuan__card {
        padding: 1.5rem;
    }

    .tujuan__card h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .tujuan__card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .sasaran__card p {
      text-align: center;
      font-size: 12px;
    }

    .lokasi__container {
        padding: 0 1rem;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .lokasi__map {
        height: 300px;
    }

    .lokasi__content .section__subheader {
        font-size: 13px;
    }
}
