.navbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px;
  z-index: 9999;
  background: transparent;
  margin: 0 !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* HOME */
.nav-home img {
  width: 100px; 
  cursor: pointer;
  transition: transform 0.2s ease;
}
.nav-home img:hover {
  transform: translateY(-3px);
}

.nav-center {
  display: flex;
  gap: 50px; 
  justify-content: center;
  flex: 1;
}

.nav-center .nav-btn img {
  width: 205px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-center .nav-btn img:hover {
  transform: translateY(-3px);
}

/* LANDING PAGE */
#landingpage {
  position: relative;
  height: 100vh;
  background: url("asset/background/landing_page.png") center/cover no-repeat;
  overflow: hidden;
}

/* DISCOVER MY WORKS */
.discover-works {
  position: absolute;
  left: 50%;
  bottom: 50px;
  transform: translateX(-50%);
  z-index: 10;
}

.discover-works img {
  width: 384px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.discover-works img:hover {
  transform: translateY(-5px);
}

/* CONTENT FOLDERS */
#content {
  position: relative;
  height: 540px;
  background: url("asset/background/content.png") center/cover no-repeat;
}

.content-folders {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); 
  width: 1200px; 
  height: 450px;
}

.content-btn {
  width: 220px; 
  cursor: pointer;
  transition: 0.25s ease;
}

.content-btn:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.f1 {
  position: absolute;
  top: 0px;
  left: 0px;
}

.f2 {
  position: absolute;
  top: 210px;
  left: 260px;
}

.f3 {
  position: absolute;
  top: 0px;
  left: 520px;
}

.f4 {
  position: absolute;
  top: 210px;
  left: 780px;
}

.f5 {
  position: absolute;
  top: 0px;
  left: 1040px;
}

/* FLOATING PIXELS */
.pixel {
  position: absolute;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.pix1 {
  width: 120px;
  bottom: 40px;
  left: 80px;
}

.pix2 {
  width: 80px;
  right: 90px;
  bottom: 50px;
}

.pix3 {
  width: 30px;
  left: 300px;
  top: 40%;
}

.pix4 {
  width: 40px;
  right: 260px;
  top: 42%;
}

.pix5 {
  width: 50px;
  right: 310px;
  top: 45%;
}

.pix6 {
  width: 80px;
  right: 40px;
  top: 30px;
}

.pix7 {
  width: 80px;
  left: 50px;
  top: 100px;
}

.pix1 { animation-delay: 0s; }
.pix2 { animation-delay: 0.3s; }
.pix3 { animation-delay: 0.6s; }
.pix4 { animation-delay: 0.9s; }
.pix5 { animation-delay: 1.2s; }
.pix6 { animation-delay: 1.5s; }
.pix7 { animation-delay: 1.7s;}

/* PROFILE */
#profile {
  height: 100vh;
  background: url("asset/background/profile.png") center/cover no-repeat;
}

/* GRAPHIC DESIGN */
#graphicdesign {
  position: relative;
  height: 100vh;
  background: url("asset/background/graphic_design.png") center/cover no-repeat;
}

.gd-buttons {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 50px;
}

.gd-btn {
  width: 290px; 
  cursor: pointer;
  transition: 0.25s ease;
}

.gd-btn:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

/* SOCIAL MEDIA */
#socialmedia {
  position: relative;
  height: 2160px;
  background: url("asset/background/social_media.png") center/cover no-repeat;
  width: 100%;
  overflow: hidden;
  padding: 150px 0; 
}

.mockup {
  position: relative;
  z-index: 10;
}

.mockup-container img:nth-child(1) {
  margin-top: -170px;
}

.mockup-container img:nth-child(2) {
  margin-top: -800px;
}

.loop-text {
  width: 120%;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  left: -10%; 
  transform: rotate(-15deg); 
}

.loop-text.top {
  top: 5.5%; 
}

.loop-text.bottom {
  bottom: 48%; 
}

.loop-inner {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 64px;
  color: white;
  animation: loop 15s linear infinite;
}

@keyframes loop {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* BRANDING LOGO */
#brandinglogo {
  position: relative;
  height: 540px;
  background: url("asset/background/branding_logo.png") center/cover no-repeat;
}

.back-to-gd {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.back-to-gd-img {
  width: 437px; 
  cursor: pointer;
  transition: 0.25s ease;
}

.back-to-gd-img:hover {
  transform: scale(1.05);
}

/* LOGO SECTION */
#logo {
  position: relative;
  height: 1661.5px;
  background: url("asset/background/logo.png") center/cover no-repeat;
  width: 100%;
  overflow: hidden;
  padding: 150px 0; 
}

.loop-text-logo {
  width: 120%;
  overflow: hidden;
  white-space: nowrap;
  position: absolute;
  left: -10%; 
}

.loop-text-logo{
  top: 47.5%; 
}

/* PACKAGING DESIGN */
#packagingdesign {
  position: relative;
  height: 540px;
  background: url("asset/background/packaging_design.png") center/cover no-repeat;
}

/* MIYOU */
#miyou {
  position: relative;
  height: 1661.5px;
  background: url("asset/background/miyou.png") center/cover no-repeat;
  overflow: hidden;
}

.miyou {
  position: absolute;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
  z-index: 2;
}

.loop-text-packaging {
  position: absolute;
  width: 120%;
  top: 32.5%;
  overflow: hidden;
  white-space: nowrap;
  left: -10%;
  z-index: 1; 
}

.blue {
  width: 400px;
  left: 10px;
  top: 100px;
}

.mango {
  width: 200px;
  right: 80px;
  top: 400px;
}

.straw {
  width: 400px;
  right: 20px;
  top: 10px;
}

/* TOKPED */
#tokped {
  position: relative; 
  height: 1300px; 
  background: url("asset/background/tokped.png") center/cover no-repeat;
  overflow: hidden;
}

.loop-text-packaging-tokped {
  position: absolute;
  width: 120%;
  top: 0%;
  overflow: hidden;
  white-space: nowrap;
  left: -10%;
  z-index: 1; 
}

/* POSTERS PRINT */
#postersprint {
  position: relative;
  height: 540px;
  background: url("asset/background/posters_print.png") center/cover no-repeat;
}

/* POSTER */
#poster {
  height: 100vh;
  position: relative;
  background: url("asset/background/poster.png") center/cover no-repeat;
  overflow: hidden;
}

#poster-loop {
  position: absolute;
  top: 52%;
  left: 0;
  display: flex;
  width: max-content;
  transform: translateY(-50%);
  animation: poster-loop 20s linear infinite; 
  z-index: 2;
}

.poster {
  flex-shrink: 0;
  width: 500px;
  margin-right: 150px; 
}

@keyframes poster-loop {
  0% { transform: translateX(0) translateY(-50%); }
  100% { transform: translateX(-50%) translateY(-50%); } 
}

/* PRINT */
#print {
  height: 100vh;
  background: url("asset/background/print.png") center/cover no-repeat;
}

/* PHOTOGRAPHY */
#photography {
  height: 100vh;
  background: url("asset/background/photography.png") center/cover no-repeat;
}

/* KAYU KAYU */
#kayukayu {
  height: 100vh;
  width: 100%;
  background: url("asset/background/kayu_kayu.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

#kayukayu .foto {
  width: 100%;
  height: auto;
  max-width: 1200px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, 
              transform 1s ease-out;
}

#kayukayu .foto.show {
  opacity: 1;
  transform: translateY(0);
}

/* VIDEO EDITING */
#videoediting {
  height: 400px;
  background: url("asset/background/video_editing.png") center/cover no-repeat;
  display: flex;
  justify-content: center; 
  align-items: center;      
  padding: 40px 0;          
}

#videoediting .video-container iframe {
  width: 1920px;   
  height: 1000px;  
  max-width: 100%; 
}

/* MOTION GRAPHIC */
#motiongraphic {
  height: 1400px;
  background: url("asset/background/motion_graphic.png") center/cover no-repeat;
  display: flex;
  justify-content: center;   
  align-items: center;        
  padding: 40px 0;
}

#motiongraphic .video-container iframe {
  width: 1920px;     
  height: 1000px;    
  max-width: 100%;  
}

/* 3D ANIMATION */
#threedanimation {
  height: 1400px;
  background: url("asset/background/3d_animation.png") center/cover no-repeat;
}

/* REELS */
#reels {
  height: 1240px;
  background: url("asset/background/reels.png") center/cover no-repeat;
  display: flex;
  justify-content: center; 
  gap: 20px;               
}

#reels iframe {
  border: none;
}

/* ILLUSTRATION */
#illustration {
  height: 1300px;
  background: url("asset/background/illustration.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stopmotion-carousel {
  position: relative;
  width: 100%; 
  aspect-ratio: 16/9;
}

.stopmotion-carousel .frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0s;
}

.stopmotion-carousel .frame.active {
  opacity: 1;
}

/* GAME DESIGN */
#gamedesign {
  height: 100vh;
  background: url("asset/background/game_design.png") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.game-play-btn {
  width: 500px;
  cursor: pointer;
  transition: scale 0.2s ease;
  margin-top: 400px;  
}

.game-play-btn:hover {
  scale: 1.05;
}

/* TOKKI */
#tokki {
  height: 2100px;
  background: url("asset/background/tokki.png") center/cover no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mac-video-wrapper {
  position: absolute;
  top: 120px;   
  width: 700px;
  height: 390px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mac-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* CAROUSEL */
#tokkiCarousel {
  width: 100%;
  max-width: 1100px;
  margin-top: 900px;
  margin-bottom: 150px;
}

#tokkiCarousel img {
  width: 100%;
  border-radius: 10px;
}

/* TOMBOL PREV/NEXT */
#tokkiCarousel .carousel-control-prev,
#tokkiCarousel .carousel-control-next {
  filter: invert(1);
}

/* CONTACT */
#contact {
  height: 100vh;
  background: url("asset/background/contact.png") center/cover no-repeat;
}

/* BACK TO TOP BUTTON */
#contact {
  position: relative; /* tambahkan ini */
  height: 100vh;
  background: url("asset/background/contact.png") center/cover no-repeat;
}

.back_to_top {
  position: absolute; /* tetap absolute */
  bottom: 20px;
  right: 150px;
  width: 200px;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.back_to_top:hover {
  transform: translateY(-5px);
}
