/* ====== RESET DAN WARNA UTAMA ====== */

:root {
  --brand-color: #512810;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Poppins", sans-serif;
  color: #512810;
  overflow-x: hidden;
}

/* ====== HALAMAN TEMPLATE ====== */

.template-page {
  min-height: 100vh;
  background: linear-gradient(90deg, #fef5d7 0%, #f0dabc 100%);
}

/* ====== HEADER / NAVIGASI ATAS ====== */

.login-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(81, 40, 16, 0.1);
  position: relative;
  z-index: 100;
}

/* Logo kiri */

.logo-container {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.header-logo {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigasi tengah */

.nav-menu {
  display: flex;
  gap: 80px;
  align-items: center;
  flex: 1;
  justify-content: center;
  transform: translateX(350px);
}

.nav-link {
  color: #512810;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #a86a2d;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100% !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #784019;
  transition: width 0.3s ease;
}

.nav-link.active {
  font-weight: 700;
}

.nav-link.active::after {
  width: 100%;
  background: #512810;
}

/* Login kanan */

.nav-login-link {
  color: #512810;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-login-link:hover,
.nav-login-link:focus-visible {
  color: #a86a2d;
  border-bottom-color: #512810;
}

.nav-login-link.active {
  font-weight: 700;
  border-bottom-color: #512810;
}

/* Hamburger */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #512810;
  font-size: 32px;
  font-weight: 700;
  cursor: pointer;
}

/* ====== BACKGROUND KOSONG ====== */

.template-content {
  width: 100%;
  min-height: calc(100vh - 162px);
}

/* ====== TABLET / LAPTOP KECIL ====== */

@media (max-width: 1350px) {
  .login-header {
    height: 86px;
    padding: 0 32px;
  }

  .logo-container {
    width: 80px;
  }

  .nav-menu {
    display: none;
    transform: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: 24px;
  }

  .nav-login-link {
    font-size: 18px;
  }

  .nav-menu.is-open {
    display: flex;
    position: absolute;
    top: 86px;
    right: 32px;
    flex-direction: column;
    gap: 16px;
    background: #ffffff;
    padding: 18px 26px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(81, 40, 16, 0.18);
    z-index: 999;
  }

  .nav-menu.is-open .nav-link {
    font-size: 16px;
    white-space: nowrap;
  }

  .template-content {
    min-height: calc(100vh - 86px);
  }
}

/* ====== HP ====== */

@media (max-width: 480px) {
  .login-header {
    padding: 0 22px;
  }

  .logo-container {
    width: 70px;
  }

  .menu-toggle {
    font-size: 28px;
    margin-right: 18px;
  }

  .nav-login-link {
    font-size: 15px;
  }

  .nav-menu.is-open {
    right: 20px;
  }
}

/* ====== HALAMAN ABOUT US ====== */
.about-section {
  width: 100%;
  min-height: calc(100vh - 127px);
  padding: 45px 90px 70px;
}

.about-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== JUDUL ABOUT US ====== */
.about-title {
  margin-bottom: 35px;

  color: var(--brand-color);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

/* ====== CARD ABOUT US ====== */
.about-card {
  width: 100%;
  padding: 50px 65px 55px;

  background: #ffffff;
  border-radius: 50px;

  box-shadow: 0 12px 30px rgba(81, 40, 16, 0.08);
}

/* ====== SELAMAT DATANG ====== */
.about-welcome {
  margin-bottom: 30px;

  color: var(--brand-color);
  font-family: "Ibarra Real Nova", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

/* ====== TEKS ABOUT US ====== */
.about-text {
  color: var(--brand-color);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
}

.about-text p {
  margin-bottom: 25px;
}

.about-text p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  text-align: center;
}


/* ====== RESPONSIVE ABOUT US LAPTOP ====== */
@media (max-width: 1350px) {
  .about-section {
    min-height: calc(100vh - 95px);
    padding: 40px 55px 65px;
  }

  .about-card {
    padding: 45px 55px 50px;
  }

  .about-title {
    font-size: 34px;
  }

  .about-welcome {
    font-size: 34px;
  }

  .about-text {
    font-size: 18px;
  }
}


/* ====== RESPONSIVE ABOUT US TABLET ====== */
@media (max-width: 900px) {
  .about-section {
    min-height: calc(100vh - 92px);
    padding: 38px 24px 60px;
  }

  .about-title {
    margin-bottom: 30px;
    font-size: 30px;
  }

  .about-card {
    padding: 40px 38px 45px;
    border-radius: 40px;
  }

  .about-welcome {
    margin-bottom: 25px;
    font-size: 31px;
  }

  .about-text {
    font-size: 17px;
    line-height: 1.7;
  }
}


/* ====== RESPONSIVE ABOUT US MOBILE ====== */
@media (max-width: 520px) {
  .about-section {
    min-height: calc(100vh - 82px);
    padding: 30px 15px 50px;
  }

  .about-title {
    margin-bottom: 25px;
    font-size: 27px;
  }

  .about-card {
    padding: 32px 24px 36px;
    border-radius: 32px;
  }

  .about-welcome {
    margin-bottom: 22px;
    font-size: 28px;
  }

  .about-text {
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
  }

  .about-text p {
    margin-bottom: 20px;
  }

  .about-text p:last-child {
    text-align: left;
  }
}

/* ==================================================
   EFEK PREMIUM ABOUT US
   Elegant Story Reveal
================================================== */

/* Background cahaya lembut */
.about-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(15px);
  opacity: 0.45;
}

.about-section::before {
  top: -140px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0)
  );

  animation: aboutGlowLeft 7s ease-in-out infinite alternate;
}

.about-section::after {
  right: -130px;
  bottom: -150px;
  background: radial-gradient(
    circle,
    rgba(168, 106, 45, 0.2),
    rgba(168, 106, 45, 0)
  );

  animation: aboutGlowRight 8s ease-in-out infinite alternate;
}

/* Judul muncul lembut */
.about-title {
  position: relative;
  opacity: 0;

  animation: aboutTitleReveal 0.8s ease forwards;
}

.about-title::after {
  content: "";
  display: block;

  width: 0;
  height: 3px;
  margin: 12px auto 0;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  border-radius: 100px;

  animation: aboutTitleLine 0.8s ease 0.5s forwards;
}

/* Card naik perlahan */
.about-card {
  position: relative;
  overflow: hidden;
  opacity: 0;

  border: 1px solid rgba(81, 40, 16, 0.07);

  box-shadow:
    0 18px 45px rgba(81, 40, 16, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);

  translate: 0 34px;

  animation: aboutCardReveal 0.9s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.2s forwards;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

/* Garis cahaya atas card */
.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;

  width: 76%;
  height: 4px;

  background: linear-gradient(
    90deg,
    transparent,
    #a86a2d,
    transparent
  );

  border-radius: 100px;
  opacity: 0.65;
}

/* Hover card */
.about-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 25px 55px rgba(81, 40, 16, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Tulisan selamat datang */
.about-welcome {
  opacity: 0;
  translate: 0 20px;

  animation: aboutTextReveal 0.7s ease
    0.65s forwards;
}

/* Paragraf muncul satu per satu */
.about-text p {
  opacity: 0;
  translate: 0 18px;

  animation: aboutTextReveal 0.7s ease forwards;
}

.about-text p:nth-child(1) {
  animation-delay: 0.85s;
}

.about-text p:nth-child(2) {
  animation-delay: 1.05s;
}

.about-text p:nth-child(3) {
  animation-delay: 1.25s;
}

/* Animasi */
@keyframes aboutTitleReveal {
  from {
    opacity: 0;
    transform: translateY(-18px);
    letter-spacing: 7px;
  }

  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: normal;
  }
}

@keyframes aboutTitleLine {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 110px;
    opacity: 1;
  }
}

@keyframes aboutCardReveal {
  from {
    opacity: 0;
    translate: 0 34px;
    scale: 0.98;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes aboutTextReveal {
  from {
    opacity: 0;
    translate: 0 18px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes aboutGlowLeft {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(50px, 35px);
  }
}

@keyframes aboutGlowRight {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(-45px, -30px);
  }
}

/* Mengurangi animasi bila pengguna memilihnya */
@media (prefers-reduced-motion: reduce) {
  .about-section::before,
  .about-section::after,
  .about-title,
  .about-title::after,
  .about-card,
  .about-welcome,
  .about-text p {
    animation: none;
    opacity: 1;
    translate: none;
    scale: 1;
  }
}