/* ========================================================
   ABOUT US - IMAGE REFERENCE DESIGN
======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  /* Colors */
  --ref-bg-white: #ffffff;
  --ref-bg-light: #f7f9f9;
  --ref-accent: #a4b697;
  --ref-text-dark: #333333;
  --ref-text-light: #777777;
  --ref-divider: #e0e0e0;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Animations */
  --ease-ag: cubic-bezier(0.19, 1, 0.22, 1);
}

body {
  background-color: var(--ref-bg-white);
  color: var(--ref-text-dark);
  font-family: var(--font-sans);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Base Utilities */
.ref-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.mt-xl {
  margin-top: 60px;
}

/* =========================================
   1. HERO SECTION - FULL BACKGROUND
========================================= */
.ref-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  /* Tarik ke atas untuk menutupi top-bar + navbar penuh */
  margin-top: -120px;
  padding-top: 120px;
  display: flex;
  align-items: center;
}

/* Background image container */
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Dark gradient overlay */
.hero-overlay-white {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right,
      rgba(250, 252, 251, 1) 0%,
      rgba(250, 252, 251, 0.95) 25%,
      rgba(250, 252, 251, 0) 65%);
}

/* ---- HERO CONTENT ---- */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  /* Teks di bagian kiri hero */
  padding: 0px 2rem 0 2rem;
  display: flex;
  align-items: center;
}

.profile-title-container {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
  padding: 20px 0;
}

.profile-title-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-yellow-bar {
  position: absolute;
  left: -50vw;
  /* extend off-screen left */
  right: -20px;
  /* extend slightly past text */
  top: 55%;
  transform: translateY(-50%);
  height: 50px;
  background-color: #a4b697;
  /* match the yellow in the photo */
  z-index: 0;
}

.profile-our {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(40px, 6vw, 80px);
  color: #5c5c5c;
  position: absolute;
  top: clamp(-30px, -4vw, -55px);
  left: 20px;
  z-index: 2;
  line-height: 1;
}

.profile-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(45px, 8vw, 100px);
  font-weight: 700;
  color: #5c5c5c;
  margin: 0;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 4px;
  /* Text outline using text-shadow */
  text-shadow:
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    0px 8px 15px rgba(0, 0, 0, 0.15);
  /* drop shadow */
  position: relative;
  z-index: 1;
}

/* ---- SCROLL INDICATOR ---- */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 6%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.8s ease;
  transition-delay: 0.8s;
}

.hero-scroll-indicator.visible {
  opacity: 1;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  animation: scrollLineDown 1.5s ease infinite;
  animation-delay: 1.5s;
}

@keyframes scrollLineDown {
  0% {
    top: -100%;
  }

  100% {
    top: 100%;
  }
}

.hero-scroll-indicator span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  margin-top: 8px;
}


/* =========================================
   2. CONTENT SECTION (Tall Image & Text)
========================================= */
.ref-content-section {
  background-color: var(--ref-bg-white);
  padding: 80px 0 120px 0;
}

.ref-content-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 60px;
}

.ref-content-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
}

.ref-content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Text Blocks */
.ref-content-text {
  padding-top: 40px;
}

.ref-text-block {
  margin-bottom: 20px;
}

.ref-block-title {
  font-size: 24px;
  font-weight: 400;
  color: #504a4a;
  /* Tidak hitam pekat */
  margin: 0 0 20px 0;
  white-space: nowrap;
  /* Memaksa ke kanan */
}

/* The Animated Divider */
.ref-divider {
  width: 0%;
  height: 2px;
  background-color: var(--ref-divider);
  margin-bottom: 30px;
  transition: width 1.5s var(--ease-ag);
}

.ref-divider.is-visible {
  width: 100%;
}

.ref-block-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ref-text-light);
  font-weight: 300;
  margin: 0 0 16px 0;
}

/* Lists */
.ref-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ref-item-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ref-accent);
  margin: 0 0 10px 0;
  display: inline-block;
}

.ref-item-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ref-text-light);
  font-weight: 300;
  margin: 0;
}

/* =========================================
   ANIMATIONS (Awwwards/Antigravity Style)
========================================= */

/* Mask Curtain Reveal */
.ag-mask-image,
.ag-mask-image-right {
  position: relative;
  overflow: visible;
  /* UBAH ke visible biar ga kepotong */
}

.ag-image-curtain,
.ag-image-curtain-right {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--ref-bg-white);
  z-index: 2;
  transition: transform 2s var(--ease-ag);
}

/* GAMBAR LEBAR DAN GA KEPOTONG */
.ag-mask-image-right {
  overflow: visible !important;
  /* biar ga motong */
}

.ag-mask-image-right img {
  width: 160%;
  /* lebih lebar */
  height: auto;
  /* auto biar proporsional */
  max-width: none;
  /* ga dibatasi */
  display: block;
  margin-left: -35%;
  /* tengahin */
  object-fit: contain;
  /* biar ga kepotong */
}

.ag-image-curtain {
  transform-origin: top;
}

.ag-image-curtain-right {
  transform-origin: right;
}

.ag-image-curtain.is-visible {
  transform: scaleY(0);
}

.ag-image-curtain-right.is-visible {
  transform: scaleX(0);
}

/* Text Splitting Reveal */
.text-split .line {
  overflow: hidden;
  display: inline-block;
  /* MENGHINDARI KATA TURUN KE BAWAH */
}

.text-split .word {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 1.2s var(--ease-ag), opacity 1.2s var(--ease-ag);
}

.text-split.is-visible .word {
  transform: translateY(0);
  opacity: 1;
}

/* Stagger Fade Up */
.stagger-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-ag), transform 1.2s var(--ease-ag);
}

.stagger-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic Hover */
.magnetic {
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Delays */
.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 1024px) {

  .ref-hero {
    margin-top: -100px;
    padding-top: 100px;
  }

  .hero-content {
    padding: 40px 1.5rem 0 1.5rem;
  }

  .hero-main-title {
    font-size: clamp(26px, 5vw, 44px);
    white-space: normal;
  }

  .ref-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ref-content-image {
    order: 2;
    min-height: 400px;
  }

  .ref-content-text {
    order: 1;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .ref-hero {
    margin-top: -80px;
    padding-top: 80px;
  }

  .hero-content {
    padding: 30px 5% 0 5%;
  }

  .hero-main-title {
    font-size: clamp(28px, 9vw, 44px);
  }

  .hero-scroll-indicator {
    display: none;
  }
}