/* Import Font Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   BODY & ANIMASI UTAMA
   ========================================================================== */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    color: #1F2937;
    overflow-x: hidden;
    /* KEMBALIKAN KE WARNA SOLID YANG BERSIH */
    background-color: #F9FAFB; /* Abu-abu sangat terang */
}
/*
=========================================================================
   KOMPONEN UTAMA
   ========================================================================== */
.gradient-text {
    background: linear-gradient(to right, #FBBF24, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========================================================================
   GAYA KARTU BARU - EFEK "ILLUMINATED GLASS" (Gaya n8n)
   ======================================================================== */

/* Desain Kartu Final (Gaya Solid & Bersih) */
/* Desain Kartu Final (dengan Bayangan Berwarna) */
.card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    /* BAYANGAN BARU: Efek glow oranye yang lembut */
    box-shadow: 0 0 25px -5px rgba(249, 115, 22, 0.2);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.card:hover {
    transform: translateY(-5px);
    /* BAYANGAN HOVER BARU: Efek glow menjadi lebih kuat */
    box-shadow: 0 0 35px -5px rgba(249, 115, 22, 0.4);
}

/* ========================================================================
   SISTEM ANIMASI ON-SCROLL UNIVERSAL
   ======================================================================== */

/* Kondisi awal untuk semua elemen yang akan dianimasikan */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Kondisi akhir setelah elemen terlihat */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Memberi jeda animasi (staggered effect) KHUSUS untuk item 
   di dalam div yang memiliki kelas .stagger-container. 
   Ini kita pakai untuk timeline zig-zag.
*/
.stagger-container .animate-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.stagger-container .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.stagger-container .animate-on-scroll:nth-child(4) { transition-delay: 0.45s; }

/* 
/* ========================================================================
   GAYA TOMBOL (Versi Final Lengkap)
   ======================================================================== */

/* --- GAYA DASAR --- */

/* Tombol Utama (Oranye Solid) */
.btn-primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(to right, #F97316, #EA580C);
    color: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Tombol Sekunder (Outline Oranye) */
.btn-secondary {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    border: 2px solid #F97316;
    color: #F97316;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    background-color: #F97316;
    color: #FFFFFF;
    transform: translateY(-3px);
}

/* Tombol Hitam (Dark) */
.btn-dark {
    background-color: #EA580C;
    color: #FFFFFF;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-dark:hover {
    background-color: #F97316;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}


/* --- EFEK ANIMASI TAMBAHAN --- */

/* EFEK 1: Gradasi Mengikuti Kursor (untuk .btn-primary & .btn-secondary) */
.btn-primary::before, .btn-secondary::before {
    content: '';
    position: absolute;
    left: var(--mouse-x, -100px);
    top: var(--mouse-y, -100px);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::before, .btn-secondary:hover::before {
    opacity: 1;
}


/*    EFEK FINAL: Kilap & Perubahan Warna (Hanya untuk .btn-shiny)
   ======================================================================== */

/* EFEK 3: Kilap Berulang (EKSKLUSIF untuk .btn-shiny) */
.btn-shiny {
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-shiny::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 3s ease-in-out infinite;
    animation-delay: 1s;
    z-index: 0; /* Pastikan di bawah teks */
}
@keyframes shine {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* ========================================================================
   EFEK BARU: Tombol "Glow" Interaktif
   ======================================================================== */

/* Wadah untuk tombol agar efek glow tidak terpotong */
.btn-container {
    position: relative;
}

/* Tombol utama (hanya gaya dasar, tanpa animasi) */
.btn-primary {
    color: #FFFFFF;
    background: linear-gradient(to right, #F97116, #EA580C);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* Pseudo-element untuk menciptakan efek "glow" */
.btn-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%; /* Sedikit lebih besar dari tombol */
    height: 150%; /* Sedikit lebih besar dari tombol */
    
    /* Gradasi cahaya yang lembut */
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.6), transparent 70%);
    
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Tampilkan glow saat kursor masuk ke area wadah */
.btn-container:hover::before {
    opacity: 1;
}
/* ========================================================================
   EFEK FINAL: Tombol Terbang dengan Garis Angin
   ======================================================================== */

/* Kelas utama untuk memicu kedua animasi */
.btn-fly-animated {
    position: relative; /* Wajib agar garis angin bisa diposisikan */
    overflow: visible;  /* Diubah agar garis angin terlihat di luar tombol */
    animation: fly-effect 4s ease-in-out infinite;
}

/* Pseudo-element untuk membuat "garis angin" */
.btn-fly-animated::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 105%; /* Posisi awal garis di kiri tombol */
    width: 25px;
    height: 2px;
    background-color: #f97316; /* Warna oranye */
    opacity: 0;
    box-shadow: 
        5px 5px 0 0 #fbbf24,  /* Garis kedua (emas) */
        5px -5px 0 0 #f97316; /* Garis ketiga (oranye) */
    
    /* Memicu animasi garis angin */
    animation: wind-lines 4s ease-out infinite;
}

/* Definisi animasi melayang & maju-mundur (fly-effect) */
@keyframes fly-effect {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(8px, -8px); }
    50%  { transform: translate(0, 0); }
    75%  { transform: translate(8px, 8px); }
    100% { transform: translate(0, 0); }
}

/* Definisi animasi garis angin (muncul & menghilang) */
@keyframes wind-lines {
    0%   { transform: translateX(15px); opacity: 0; }
    25%  { transform: translateX(0); opacity: 1; }
    50%  { transform: translateX(-15px); opacity: 0; }
    100% { opacity: 0; }
}

/* ========================================================================
   GAYA TOMBOL SCROLL TO TOP
   ======================================================================== */
#scrollTopBtn {
    display: none; /* Sembunyi secara default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #F97316; /* Warna oranye */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%; /* Membuatnya bulat */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
    background-color: #EA580C; /* Oranye lebih gelap saat hover */
    transform: translateY(-3px); /* Efek sedikit terangkat saat hover */
}

/* ========================================================================
   EFEK BARU: Spotlight Fill (untuk Tombol Hitam)
   ======================================================================== */

.btn-spotlight {
    position: relative; /* Wajib untuk efek */
    overflow: hidden;   /* Wajib, agar efek tidak keluar dari tombol */
    z-index: 1;         /* Agar teks tombol selalu di atas */
}

.btn-spotlight::before {
    content: '';
    position: absolute;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    
    width: 0;
    height: 0;
    
    background: radial-gradient(circle, #EA580C 0%, #F97316 100%);
    border-radius: 50%;
    
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn-spotlight:hover::before {
    width: 400px;  /* Ukuran lingkaran cahaya saat membesar */
    height: 400px;
}

/* ========================================================================
   ANIMASI MENU MOBILE (Slide Down Halus)
   ======================================================================== */

#mobile-menu {
    max-height: 0; /* Mulai dari tinggi 0 (tersembunyi) */
    transition: max-height 0.5s ease-in-out; /* Animasi transisi yang halus */
    overflow: hidden; /* Sembunyikan konten saat menu tertutup */
}

/* ========================================================================
   GAYA TOMBOL CTA JASA WEBSITE
   ======================================================================== */

.btn-cta-service {
    background-color: #1F2937; /* Latar belakang hitam/abu gelap */
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta-service:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Lapisan untuk efek gradasi melayang */
.btn-cta-service::before {
    content: '';
    position: absolute;
    inset: -2px; /* Sedikit lebih besar dari tombol */
    z-index: -1;
    border-radius: 1.25rem; /* Sedikit lebih besar dari rounded-2xl */
    background: linear-gradient(90deg, #F97316, #a371f7, #2563eb, #F97316);
    background-size: 400% 100%;
    animation: flowing-border 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.btn-cta-service:hover::before {
    opacity: 1;
}

@keyframes flowing-border {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}


/* ========================================================================
   GAYA TOMBOL CTA JASA WEBSITE (Gaya "Ghost" Baru)
   ======================================================================== */

.btn-cta-ghost {
    color: #374151; /* Warna teks abu gelap */
    border: 2px solid #e5e7eb; /* Border abu-abu terang */
    background-color: transparent;
}

.btn-cta-ghost:hover {
    color: #FFFFFF; /* Teks menjadi putih */
    background-color: #1F2937; /* Latar menjadi hitam/abu gelap */
    border-color: #1F2937; /* Border menjadi hitam/abu gelap */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}



/* /* ========================================================================
   GAYA UNTUK TOOLTIP PENJELASAN
   ======================================================================== */
.tooltip-container {
    position: relative;
    display: inline-flex; /* Menggunakan inline-flex agar ikon sejajar */
    align-items: center;
    cursor: help;
}

/* Kotak tooltip yang tersembunyi */
.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #1F2937;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Panah kecil di bawah tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1F2937 transparent transparent transparent;
}

/* Tampilkan tooltip saat hover */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* =/* /* /* ========================================================================
   GAYA FOOTER BARU DENGAN GRADASI "WARM GREY"
   ======================================================================== */
.footer-gradient {
    /* Gradasi abu-abu terang ke peach/oranye pucat */
    background: linear-gradient(to top, #FFF7F2, #F9FAFB); 
    border-top: 1px solid #E5E7EB;
    color: #4B5563; /* Warna teks abu-abu gelap */
}

/* Mengubah warna link di dalam footer */
.footer-gradient a {
    color: #374151;
    transition: color 0.3s ease;
}
.footer-gradient a:hover {
    color: #F97316; /* Warna oranye saat hover */
}

/* Mengubah warna judul di dalam footer */
.footer-gradient h3 {
    color: #111827; /* Warna hitam pekat */
}

/* ========================================================================
   GAYA UNTUK ANIMASI GALERI BERGERAK (MARQUEE)
   ======================================================================== */

.marquee {
    overflow: hidden; /* Sembunyikan gambar saat di luar frame */
    position: relative;
    width: 100%;
}

/* Efek memudar di ujung kiri dan kanan */
.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10rem; /* Lebar area pudar */
    z-index: 2;
    pointer-events: none;
}
.marquee::before {
    left: 0;
    background: linear-gradient(to right, #F9FAFB, transparent);
}
.marquee::after {
    right: 0;
    background: linear-gradient(to left, #F9FAFB, transparent);
}

.marquee-content {
    display: flex;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.marquee-item {
    flex-shrink: 0;
    margin: 0 0.5rem; /* Jarak antar gambar di mobile (8px) */
    width: 180px; /* Lebar gambar di mobile (LEBIH KECIL) */
    height: 135px; /* Tinggi gambar di mobile (rasio 4:3) */
}

/* Aturan HANYA untuk layar besar (desktop) */
@media (min-width: 768px) {
    .marquee-item {
        margin: 0 1rem; /* Jarak antar gambar di desktop (16px) */
        width: 320px; /* Lebar gambar di desktop (LEBIH BESAR) */
        height: 240px; /* Tinggi gambar di desktop */
    }
}



.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Agar gambar pas tanpa distorsi */
    border-radius: 0.75rem; /* Sudut membulat */
    border: 1px solid #e5e7eb;
}

/* ========================================================================
   ANIMASI GALERI BERGERAK (Versi Seamless Loop)
   ======================================================================== */

/* Animasi untuk baris atas (kiri ke kanan) */
.scroll-left {
    animation: scroll-left 30s linear infinite;
}
@keyframes scroll-left {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Animasi untuk baris bawah (kanan ke kiri) */
.scroll-right {
    animation: scroll-right 30s linear infinite;
}
@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

/* ========================================================================
   GAYA BARU UNTUK KARTU TEMPLATE UNGGULAN
   ======================================================================== */
.featured-card {
    position: relative;
    overflow: hidden;
    height: 350px; /* Anda bisa menyesuaikan tinggi kartu di sini */
    border-radius: 1rem; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transition: all 0.4s ease-out;
}

.featured-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.featured-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

.featured-card:hover .featured-card-bg {
    transform: scale(1.1); /* Efek zoom pada gambar saat hover */
}

/* Lapisan gradasi gelap di atas gambar */
.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
}

/* Konten teks di dalam kartu */
.featured-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem; /* p-6 */
    color: white;
    transform: translateY(20px); /* Mulai dari bawah untuk animasi */
    opacity: 0; /* Mulai dari transparan */
    transition: all 0.4s ease-out;
}

.featured-card:hover .featured-card-content {
    transform: translateY(0);
    opacity: 1;
}

.card-template {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 122, 0, 0.25); /* shadow oranye */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-template:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(255, 122, 0, 0.4);
}

.card-template img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.card-template .content {
  padding: 20px;
}

.card-template h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #111827;
}

.card-template p {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 16px;
}

.card-template .label {
  font-size: 0.8rem;
  color: #2563EB;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.card-template .btn {
  background-color: #ff6a00;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}
.section-black {
  background: linear-gradient(to bottom, #111827, #1f2937);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.section-black h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-black p {
  font-size: 1rem;
  color: #d1d5db;
  max-width: 600px;
  margin: 0 auto 24px;
}

.btn-cta {
  background-color: #ff6a00;
  padding: 12px 24px;
  color: white;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-cta:hover {
  background-color: #e55a00;
}

/* ========================================================================
   GAYA UNTUK FRAME CTA & MISI (VERSI TERANG)
   ======================================================================== */
.combined-cta-frame-light {
    /* Gradasi lembut dari putih ke oranye sangat pucat */
    background: linear-gradient(135deg, #FFFFFF, #FFF7F2);
    /* Bayangan lembut berwarna oranye agar menonjol */
    box-shadow: 0 15px 40px -15px rgba(234, 88, 12, 0.2);
    border: 1px solid #F3F4F6; /* Garis tepi yang sangat tipis */
}

/* ========================================================================
   ANIMASI UNTUK ILUSTRASI HEADER (FADE IN DARI KIRI)
   ======================================================================== */

/* Mendefinisikan langkah-langkah animasi */
@keyframes fadeInFromLeft {
  /* Kondisi awal: gambar bergeser sedikit ke kiri dan transparan total */
  0% {
    transform: translateX(-50px);
    opacity: 0;
  }
  
  /* Kondisi akhir: gambar di posisi normal dengan transparansi 20% */
  100% {
    transform: translateX(0);
    opacity: 0.2; /* Sesuaikan dengan opacity di HTML jika berbeda */
  }
}

/* Kelas yang akan kita panggil di HTML untuk menerapkan animasi */
.animate-fade-in-left {
  animation: fadeInFromLeft 1.5s ease-out forwards;
}

/* ======================================================
   EFEK GRADASI BERGERAK UNTUK LINK
   ====================================================== */
.link-animated-gradient {
    /* Gradasi warna dari kuning cerah ke putih, lalu kembali ke kuning */
    background-image: linear-gradient(
        90deg, 
        #fde047, /* Kuning cerah */
        #ffffff, /* Putih */
        #fde047  /* Kuning cerah lagi */
    );
    background-size: 200% 100%; /* Buat gradasi 2x lebih lebar dari teksnya */
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    color: transparent; /* Teks dibuat transparan agar gradasi terlihat */
    animation: move-gradient 3s linear infinite; /* Panggil animasi bergerak */
    font-weight: 700; /* Dibuat tebal agar lebih terlihat */
    text-transform: uppercase;
}

@keyframes move-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: -200% 50%; /* Geser posisi background gradasi */
    }
}

