body{
background-image:url('IMG/batik.svg');
}
.nav-link::after{
  content:'';
  display:block;
  height:2px;
  width:0;
  background:white;
  transition:.3s;
}
.nav-link:hover::after,
.nav-link.active::after{
  width:100%;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  body {
    background-image: none; /* Hilangkan batik di mobile */
  }
  
  /* Hero section background image di mobile - gedein */
  .hero-section {
    background-image: url('IMG/hero.svg') !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-attachment: scroll !important;
  }
  
  /* Text styling di mobile */
  .hero-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8); /* Shadow for readability */
  }
  
  .hero-text h1 {
    font-size: 3rem; /* Lebih besar */
  }
  
  .hero-text p {
    font-size: 1.5rem;
  }

/* dari kiri */
.fade-left {
  animation: fadeLeft .8s ease forwards;
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* dari kanan */
.fade-right {
  animation: fadeRight .8s ease forwards;
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* dari atas */
.fade-top {
  animation: fadeTop .8s ease forwards;
}
@keyframes fadeTop {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* dari bawah */
.fade-bottom {
  animation: fadeBottom .8s ease forwards;
}
@keyframes fadeBottom {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* fade in */
.fade-in {
  animation: fadeIn .8s ease forwards;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Delay untuk animasi */
.fade-left.delay-1 { animation-delay: 0.2s; }
.fade-left.delay-2 { animation-delay: 0.4s; }
.fade-top.delay-1 { animation-delay: 0.6s; }
.fade-right.delay-1 { animation-delay: 0.8s; }

/* Animasi saat scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivitas untuk Mobile */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    height: 100vh !important;
    min-height: 100vh !important;
    position: relative;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    animation: borderTopBottom 1s ease forwards;
  }
  
  .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: white;
    transform: scaleY(0);
    transform-origin: top;
    animation: slideInVertical 1s ease forwards;
  }
  
  .hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: white;
    transform: scaleY(0);
    transform-origin: top;
    animation: slideInVertical 1s ease forwards;
  }
  
  @keyframes slideInVertical {
    to {
      transform: scaleY(1);
    }
  }
  
  @keyframes borderTopBottom {
    to {
      border-top-color: white;
      border-bottom-color: white;
    }
  }
  
  .display-3 {
    font-size: 2.5rem; /* Lebih kecil di mobile */
  }
  
  .fs-4 {
    font-size: 1.25rem; /* Sesuaikan ukuran */
  }
  
  /* Ikon di hero */
  .hero-icons {
    font-size: 0.875rem !important; /* fs-1 */
    gap: 0.5rem !important; /* gap-2 */
  }
  
  /* Navbar overlap fix */
  body {
    padding-top: 50px; /* Kurangi lagi */
  }
  
  /* Navbar kecil di mobile */
  .navbar {
    min-height: 40px;
    padding: 0.25rem 0.5rem;
  }
  
  .navbar-brand {
    font-size: 0.9rem;
  }
  
  .navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
  
  /* Cards di project */
  .card-header {
    font-size: 1rem;
  }
  

  /* Timeline */
  .col-2, .col-9 {
    width: 100%;
    text-align: center;
  }
  
  .col-1 {
    display: block;
    text-align: center;
  }
  .col-1 .h-100 {
    height: 50px !important;
  }
  .col-1 .border-start {
    border-color: black !important;   
    border-top: 2px solid black !important;
    height: 2px !important;
    width: 100% !important;
    position: static !important;
    top: auto !important;
  }
  .col-1 .rounded-circle {
    top: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  /* Mobile timeline horizontal */
  .row.position-relative {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
  }
  .col-2 {
    width: auto !important;
    text-align: left !important;
    flex: 0 0 auto;
  }
  .col-1 {
    width: 50px !important;
    flex: 0 0 50px;
    position: relative;
  }
  .col-9 {
    flex: 1;
    text-align: left !important;
    width: auto !important;
  }
  
  
  /* Form di kontak */
  .form-label {
    font-size: 0.9rem;
  }
  
  /* Footer */
  .row > div {
    margin-bottom: 1rem;
  }
  
  /* Hero section background image di mobile */
  .hero-section {
    background-image: url('IMG/hero.svg');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: right center;
    background-attachment: scroll;
  }
  
  /* Hide image div di mobile */
  @media (max-width: 768px) {
    .hero-image {
      display: none !important;
    }
  }
}

/* Responsivitas untuk Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .display-3 {
    font-size: 3rem;
  }
}

/* Responsivitas untuk Desktop */
@media (min-width: 1025px) {
  body {
    padding-top: 70px;
  }
  
  .hero-section {
    height: calc(100vh - 70px);
    min-height: calc(100vh - 70px);
    border-bottom: 2px solid white;
  }
  
  .hero-image {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .hero-image img {
    max-height: 60vh;
    object-fit: contain;
    width: auto;
    position: relative;
  }
  
  .hero-image img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
  }
}
}