/* ================================== */
/*          SETUP & LAYOUT UTAMA      */
/* ================================== */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  background: #fff;
  color: #111;
  user-select: none;
}
.page-container {
  display: flex;
  width: 400%;
  height: 100%;
  will-change: transform;
}
.page {
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  position: relative;
}

/* ================================== */
/*   STYLE HALAMAN 1 (HERO)           */
/* ================================== */
.hero-page {
  padding: 0 60px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 65px 0px;
  font-size: 18px;
  position: relative;
}
.navbar nav a {
  text-decoration: none;
  color: #000;
  margin: 0 65px;
}
.navbar nav a:first-child {
  margin-left: 0;
}
.navbar nav a:hover {
  text-decoration: underline;
}
.email {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: #000;
  font-style: italic;
}
.vertical-wrapper {
  position: absolute;
  top: -40px;
  left: 65%;
  transform: translateX(-50%);
}
.vertical-text {
  writing-mode: vertical-rl;
  font-size: 80px;
  font-weight: 550;
  color: #000;
  letter-spacing: 1.4px;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 60px;
  min-height: 80vh;
  position: relative;
}
.hero-left,
.hero-right {
  flex: 1;
}
.hero-left .welcome {
  font-family: "Montserrat", sans-serif;
  font-size: 50px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}
.hero-left .adna {
  font-family: "Poppins", sans-serif;
  font-size: 50px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}
.hero-left .highlight {
  background: #e2886d;
  color: #fff;
  display: inline-block;
  padding: 2px 12px;
}
.hero-right .text-mask {
  position: relative;
  left: -220px;
  top: 250px;
}
.tagline {
  font-size: 35px;
  letter-spacing: 1px;
  font-weight: 500;
  text-align: right;
}
.brand-block {
  position: absolute;
  top: 50px;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.brand {
  font-weight: bold;
  color: #e2886d;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.brand-tagline {
  writing-mode: vertical-rl;
  text-align: justify;
  font-size: 10px;
  color: #000;
  letter-spacing: 1px;
  line-height: 1.5;
  font-family: "Poppins", sans-serif;
}
.text-mask {
  overflow: hidden;
}
.navbar,
.vertical-wrapper,
.brand-block,
.hero-left .text-mask > *,
.hero-right .text-mask > * {
  opacity: 0;
  transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.navbar {
  transform: translateY(-30px);
}
.vertical-wrapper {
  transform: translateY(-30px) translateX(-50%);
}
.brand-block {
  transform: translateX(30px);
}
.hero-left .text-mask > *,
.hero-right .text-mask > * {
  transform: translateY(110%);
}
body.is-visible .navbar,
body.is-visible .vertical-wrapper,
body.is-visible .brand-block,
body.is-visible .hero-left .text-mask > *,
body.is-visible .hero-right .text-mask > * {
  opacity: 1;
  transform: none;
}
body.is-visible .navbar {
  transition-delay: 0.1s;
}
body.is-visible .vertical-wrapper {
  transition-delay: 0.2s;
}
body.is-visible .hero-left .text-mask:nth-child(1) > * {
  transition-delay: 0.4s;
}
body.is-visible .hero-left .text-mask:nth-child(2) > * {
  transition-delay: 0.5s;
}
body.is-visible .hero-left .text-mask:nth-child(3) > * {
  transition-delay: 0.6s;
}
body.is-visible .hero-right .text-mask > * {
  transition-delay: 0.8s;
}
body.is-visible .brand-block {
  transition-delay: 0.9s;
}

/* ================================== */
/*   STYLE HALAMAN 2 (ABOUT)          */
/* ================================== */
#about-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 100px;
  perspective: 1000px;
}
.background-text {
  position: absolute;
  font-size: 18rem;
  font-weight: 600;
  color: #f2f2f2;
  z-index: -1;
  transition: transform 0.2s ease-out;
}
.profile-content {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
}
.profile-left {
  flex-basis: 55%;
}
.profile-title {
  font-family: "Poppins", sans-serif;
  font-size: 5rem;
  font-weight: 600;
  margin: 0 0 30px 0;
  line-height: 1.1;
  overflow: hidden;
}
.profile-title .line {
  display: block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.profile-bio {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.profile-right {
  flex-basis: 45%;
}
.image-wrapper {
  position: relative;
  width: 350px;
  height: 450px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}
.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease-out;
}
.page.active .profile-title .line {
  transform: translateY(0);
}
.page.active .profile-title .line:nth-child(2) {
  transition-delay: 0.1s;
}
.page.active .profile-bio {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}
.page .logo {
  position: absolute;
  top: 65px;
  left: 105px;
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.5s ease, color 0.3s ease;
  transition-delay: 0.5s;
  pointer-events: auto;
}
.page .logo:hover {
  color: #e2886d;
}
.portfolio-page .logo {
  opacity: 1;
}

/* ================================== */
/*   STYLE HALAMAN 3 (BRIDGE)         */
/* ================================== */
#bridge-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}
.teaser-text {
  font-size: 18px;
  color: #000;
  margin: 0;
  font-family: "Montserrat", sans-serif;
}
.cta-link {
  position: absolute;
  bottom: 60px;
  right: 60px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111;
  text-decoration: none;
  transition: transform 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-weight: 100;
}
.cta-link svg {
  transition: transform 0.3s ease;
}
.cta-link:hover {
  transform: translateY(2px);
}
.cta-link:hover svg {
  transform: translateY(5px);
}
.teaser-text span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.7, 0, 0.3, 1), 
              transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
.teaser-text span.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#bridge-page .cta-link {
  opacity: 0;
  transition: opacity 0.8s ease;
}
#bridge-page.active .cta-link {
  opacity: 1;
  transition-delay: 1s;
}

/* ================================== */
/*   STYLE HALAMAN 4 (CONTACT)        */
/* ================================== */
.contact-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
  text-align: center;
  background: linear-gradient(180deg, #fef4f1 0%, #f9f9f9 100%);
  position: relative;
  perspective: 1500px;
}
.contact-center-content {
  max-width: 600px;
  font-size: 20px;
  line-height: 1.7;
  color: #333;
}
.contact-center-content p strong {
  font-weight: 600;
}
.contact-center-content p span {
  display: block;
  margin-top: 1em;
  font-size: 16px;
  color: #666;
}
.contact-main-link {
  display: inline-block;
  margin-top: 40px;
  background-color: #e2886d;
  color: #fff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.contact-main-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(226, 136, 109, 0.3);
}
.socials-container {
  position: absolute;
  bottom: 60px;
  right: 80px;
  text-align: right;
  font-size: 14px;
  color: #888;
}
.socials-container p {
  margin: 0 0 12px 0;
}
.social-icons {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.social-icons a {
  color: #555;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  color: #e2886d;
  transform: translateY(-2px);
}
.social-icons i {
  font-size: 20px;
}

.contact-center-content p,
.contact-main-link,
.socials-container p,
.social-icons a {
  opacity: 0;
  transform: translateY(40px) scale(0.95) rotateX(-20deg);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-page.active .contact-center-content p,
.contact-page.active .contact-main-link,
.contact-page.active .socials-container p,
.contact-page.active .social-icons a {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
}

.contact-page.active .contact-center-content p {
  transition-delay: 0.2s;
}
.contact-page.active .contact-main-link {
  transition-delay: 0.4s;
}
.contact-page.active .socials-container p {
  transition-delay: 0.7s;
}
.contact-page.active .social-icons a:nth-child(1) {
  transition-delay: 0.9s;
}
.contact-page.active .social-icons a:nth-child(2) {
  transition-delay: 1.0s;
}
.contact-page.active .social-icons a:nth-child(3) {
  transition-delay: 1.1s;
}

/* ================================== */
/*     SLIDER UI                      */
/* ================================== */
.slider-container {
  position: fixed;
  bottom: 50px;
  left: 80px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
body.on-page-0 .slider-container,
body.on-page-1 .slider-container,
body.on-page-2 .slider-container,
body.on-page-3 .slider-container {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.slider-label {
  font-size: 10px;
  color: #aaa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.slider {
  position: relative;
  width: 200px;
  height: 10px;
  display: flex;
  align-items: center;
}
.slider-track {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #ddd;
}
.slider-handle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 40px;
  height: 2px;
  background-color: #000;
  transform: translateY(-50%);
}

/* ==================================================================== */
/* ===== LOADING SCREEN (THE UNFOLDING LINE) ===== */
/* ==================================================================== */
#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  transition: opacity 0.8s ease;
}
.unfolding-line {
  width: 1px;
  height: 100%;
  background-color: #fff;
  transition: width 1.2s cubic-bezier(0.83, 0, 0.17, 1);
  display: flex;
  justify-content: center;
  align-items: center;
}
.unfolding-line.is-unfolded {
  width: 100%;
}
.loader-text {
  display: flex;
  font-family: "Playfair Display", serif;
  font-size: 10rem;
  font-weight: 500;
  color: #111;
}
.loader-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.loader-text .char.is-visible {
  opacity: 1;
  transform: translateY(0);
}
#loader-wrapper.is-exiting {
  opacity: 0;
}
#loader-wrapper.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* ===== KODE BARU: ANIMASI UNTUK HALAMAN ABOUT DI MOBILE ===== */
#about-page .profile-title,
#about-page .profile-bio,
#about-page .image-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#about-page.active .profile-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}
#about-page.active .profile-bio {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}
#about-page.active .image-wrapper {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ==================================================================== */
/* ===================      MEDIA QUERIES (RESPONSIVE)    =============== */
/* ==================================================================== */

@media (max-width: 1024px) {
  .hero-page { padding: 0 40px; }
  .navbar { padding: 40px 0; font-size: 16px; }
  .navbar nav a { margin: 0 30px; }
  .vertical-text { font-size: 60px; }
  .hero-left .welcome, .hero-left .adna { font-size: 40px; }
  .tagline { font-size: 28px; }
  .hero-right .text-mask { left: -150px; top: 200px; }
  #about-page { padding: 0 60px; }
  .background-text { font-size: 12rem; }
  .profile-title { font-size: 4rem; }
  .profile-content { gap: 40px; }
  .image-wrapper { width: 300px; height: 400px; }
  .contact-page { padding: 40px 60px; }
  .socials-container { right: 60px; bottom: 40px; }
  .slider-container { left: 60px; bottom: 40px; }
}

@media (max-width: 768px) {
  .loader-text { font-size: 5rem; }
  html, body { overflow-x: hidden; }
  .page { padding: 0 25px; }
  .hero-page { padding: 0 25px; }
  
  .navbar {
    display: none; /* SEMBUNYIKAN NAVBAR DI MOBILE */
  }
  
  .vertical-wrapper { display: none; }
  .hero { flex-direction: column; align-items: flex-start; text-align: left; min-height: auto; gap: 80px; padding-top: 60px; }
  .hero-left .welcome, .hero-left .adna { font-size: 44px; }
  
  .hero-left .highlight {
    padding: 4px 14px; /* TAMBAH PADDING HIGHLIGHT */
  }

  .hero-right { width: 100%; display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: flex-end; margin-top: 50px; }
  .hero-right .text-mask { position: static; margin-top: 0; }
  
  .tagline {
    text-align: right;
    font-size: 22px;
    position: relative;
    bottom: 10px;
  }
  .brand-block {
    margin-top: 0;
    align-items: flex-start;
    position: relative;
    top: 150px;
  }
  .brand-tagline {
    writing-mode: horizontal-tb;
    text-align: left;
  }
  
  #about-page { padding: 80px 25px 40px; justify-content: flex-start; }
  .background-text { font-size: 5rem; top: 100px; }
  .profile-content { flex-direction: column; text-align: center; align-items: center; gap: 30px; }
  .profile-title { font-size: 2.8rem; margin-bottom: 15px; }
  
  .profile-bio {
    max-width: 100%;
    font-size: 16px; /* PERBESAR FONT BIO */
  }
  
  .image-wrapper { width: 240px; height: 300px; }
  .page .logo { left: 25px; top: 40px; }
  #bridge-page { padding: 25px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .teaser-text { font-size: 16px; }
  .cta-link { position: static; margin-top: 40px; }
  .contact-page { padding: 80px 25px 40px; }
  .contact-center-content { font-size: 16px; }
  .contact-center-content p span { font-size: 14px; }
  .socials-container { position: static; margin-top: 50px; text-align: center; }
  .social-icons { justify-content: center; }
  .slider-container { display: none; }
}

.animated-swipe-hint {
  display: none;
}
@media (max-width: 768px) {
  .animated-swipe-hint {
    display: flex;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    align-items: center;
    gap: 15px;
    color: #bbb;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out 2s infinite; 
  }
  .animated-swipe-hint i {
    animation: pulse-arrow 2s infinite ease-in-out;
  }
  .animated-swipe-hint .fa-chevron-right {
    animation-delay: 0.1s;
  }
}
@keyframes fadeInOut {
  0%, 100% { 
    opacity: 0; 
  }
  20%, 80% { 
    opacity: 1; 
  }
}
@keyframes pulse-arrow {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.3); 
  }
}