.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
}

/* --- Gallery --- */
#insta-gallery {
  column-count: 6;
  column-gap: 8px;
  padding: 8px 0; /* sesuai permintaanmu */
}
#insta-gallery a {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
}
#insta-gallery img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#insta-gallery a:hover img {
  transform: scale(1.05);
  opacity: 0.85;
} /* Caption overlay saat hover */
#insta-gallery .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  opacity: 0;
  transition: opacity 0.3s;
  max-height: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}
#insta-gallery a:hover .caption {
  opacity: 1;
} /* --- Gallery --- */
.ig-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.ig-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.ig-wrapper:hover img {
  transform: scale(1.05);
}
.ig-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 14px;
  padding: 8px 10px;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease;
}
.ig-wrapper:hover .ig-overlay {
  opacity: 1;
  transform: translateY(0);
} 

#insta-gallery #loading-message-wrapper {
    column-span: all; 
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 50px 0; 
}

/* Style untuk Spinner */
#insta-gallery #loading-message-wrapper p i {
    color: #94cf43; /* Gunakan warna primary (atau putih) untuk spinner */
    margin-bottom: 10px; /* Jarak antara spinner dan teks di bawahnya */
}

/* Style untuk Teks Loading */
#insta-gallery #loading-message-wrapper p .loading-text {
    display: block; /* Memastikan teks berada di baris baru */
    font-size: 14px;
    font-weight: 500;
}

/* --- Lightbox Overlay --- */
#ig-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(3px);
}
#ig-lightbox.active {
  display: flex;
}
#ig-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  cursor: grab;
  transition: transform 0.3s ease;
}
#ig-lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
#ig-lightbox button:hover {
  opacity: 0.8;
}
#ig-prev {
  left: 40px;
}
#ig-next {
  right: 40px;
}
#ig-close {
  top: 30px;
  right: 30px;
  font-size: 2.5rem;
}
#ig-link {
  top: 30px;
  left: 30px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}
#ig-link img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
} /* Zoom state */
#ig-lightbox img.zoomed {
  cursor: move;
  transform: scale(1.5);
} /* Responsive */
@media (max-width: 1100px) {
  #insta-gallery {
    column-count: 4;
    padding: 8px 80px;
  }
}
@media (max-width: 768px) {
  #insta-gallery {
    column-count: 3;
    padding: 8px 40px;
  }
}
@media (max-width: 480px) {
  #insta-gallery {
    column-count: 3;
    padding: 8px 20px;
  }
}



/* --- Blog Preview --- */
.blog-preview-area {
    background-color: #f9f9ff; /* Warna latar belakang ringan */
}

.single-blog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.single-blog:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.single-blog img {
    width: 100%;
    height: 250px; /* Tinggi gambar yang konsisten */
    object-fit: cover; /* Pastikan gambar menutupi area */
}

.single-blog .details {
    padding: 25px;
}

.single-blog h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.single-blog a h4:hover {
    color: #f6214b; /* Contoh warna primer Anda */
}

.single-blog p {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.single-blog .text-uppercase {
    font-size: 13px;
    font-weight: 500;
    color: #f6214b; /* Warna tautan */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.single-blog .text-uppercase .lnr {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.single-blog .text-uppercase:hover .lnr {
    margin-left: 10px;
}

/* --- Gallery Section Header Styling --- */
/* Menambahkan styling untuk bagian gallery agar seragam dengan blog */
.gallery-area {
    padding-top: 100px;
}

/* --- Tombol Load More Styling --- */
#load-more-btn {
    /* Tetap gunakan Flexbox */
    display: inline-flex; 
    align-items: center;  

    font-size: 14px; 
    font-weight: 600; 
    text-transform: uppercase;
}

#load-more-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}


#load-more-btn .fa-spinner {
    margin-left: 8px;
    font-size: 14px;
    
    /* SOLUSI UTAMA: Paksa ikon untuk sejajar di tengah */
    vertical-align: middle; 

    color: white;
    
    /* Solusi Tambahan: Gunakan posisi relatif untuk menaikkan sedikit */
    position: relative;

    /* Animasi (pastikan ini tetap ada) */
    animation: spin 1s linear infinite; 
    display: inline-block;
}

/* DEKLARASI ANIMASI PUTAR */
@keyframes spin {
    0% { 
        transform: rotate(0deg); 
    }
    100% { 
        transform: rotate(360deg); 
    }
}


/* =================================
   ANIMATION ON SCROLL STYLES
   ================================= */

/* 1. Kelas Dasar: Sembunyikan elemen sebelum dilihat */
.scroll-animate {
    opacity: 0;
    transition: 
        opacity 1.2s ease-out, 
        transform 1.0s ease-out; /* Tambahkan transisi transform untuk efek geser */
    transform: translateY(20px); /* Geser elemen ke bawah sedikit */
}

/* 2. Kelas Aktif: Elemen terlihat */
.scroll-animate.animate-fade-in {
    opacity: 1;
    transform: translateY(0); /* Kembalikan ke posisi normal */
}

/* Opsional: Efek animasi yang berbeda (contoh: fade-in dari kiri) */
.scroll-animate.animate-from-left {
    transform: translateX(-50px);
}

.scroll-animate.animate-from-left.animate-fade-in {
    transform: translateX(0);
}

.scroll-animate.animate-from-right {
    transform: translateX(50px);
}

.scroll-animate.animate-from-right.animate-fade-in {
    transform: translateX(0);
}

.scroll-animate.animate-from-top {
    transform: translateY(-50px);
}

.scroll-animate.animate-from-top.animate-fade-in {
    transform: translateX(0);
}

/* =================================
   CONTACT PARALLAX STYLES (Finalisasi)
   ================================= */

.contact-area {
    position: relative;
    padding: 100px 0; 
}

/* 1. ELEMEN RELLAX (GABUNGAN GAMBAR + OVERLAY) */
.parallax-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; 
    
    /* BACKGROUND IMAGE */
    background-image: url('../img/contact-pages.png');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    
    /* OVERLAY WARNA: Gunakan gradient linear untuk efek overlay */
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/contact-pages.png');
}

/* 2. KONTAINER KONTEN */
.contact-area .container {
    position: relative; 
    z-index: 2; /* HARUS di atas Rellax */
}

/* Style untuk ikon sosial agar tetap terlihat menonjol */
.contact-area .social-icons a i {
    color: white; /* Ikon sosial tetap putih */
    transition: all 0.3s ease;
    font-size: x-large;
}

.contact-area .social-icons a:hover i {
    color: #f6214b; /* Contoh warna primer saat hover */
    background: white;
}


/* =================================
   SERVICE CARD STYLES (Modern & Interaktif)
   ================================= */
.services-area {
    background-color: #1a1a1a; /* Background gelap untuk menonjolkan kartu */
    padding-bottom: 70px; /* Sesuaikan padding */
}

/* Kontainer Card Utama */
.service-card {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
    
}

/* Gambar Background Card (Parallax/Tilt Target) */
.card-bg {
    position: absolute;
    top: -20px; /* Offset awal untuk efek parallax */
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-size: cover;
    background-position: center center;
    filter: brightness(0.7);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transisi halus */
    
    /* Mencegah gambar berinteraksi dengan mouse saat tilt */
    pointer-events: none; 
}

/* Konten Teks */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    color: white;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); /* Gradient overlay */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Efek Hover 3D (CSS Fallback) */
.service-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.service-card:hover .card-bg {
    filter: brightness(0.9);
}

/* =================================
   ANIMASI SCROLL (Slide-In)
   ================================= */

/* 1. Kondisi Awal (Tersembunyi) */
.animate-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* Transisi yang smooth */
    /* Mengaktifkan 3D transform untuk kinerja lebih baik */
    transform: translate3d(0, 0, 0); 
}

/* 1.1 Posisi Awal: SLIDE DARI KIRI */
.animate-item[data-animation="slide-left"] {
    transform: translate3d(-50px, 0, 0);
    display:hidden;
}

/* 1.2 Posisi Awal: SLIDE DARI ATAS */
.animate-item[data-animation="slide-down"] {
    transform: translate3d(0, -50px, 0); /* Catatan: Kita geser dari bawah ke atas */
    display:hidden;
}

/* 1.3 Posisi Awal: SLIDE DARI KANAN */
.animate-item[data-animation="slide-right"] {
    transform: translate3d(50px, 0, 0);
    display:hidden;
}


/* 2. Kondisi Akhir (Aktif/Terlihat) */
.animated {
    opacity: 1;
    /* Posisikan ke posisi normal (0,0,0) */
    display: visible;
    transform: translate3d(0, 0, 0) !important; 
}