/* Import Fonts: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

/* ======== ROOT VARIABLES & GLOBAL STYLES ======== */
:root {
    --bg-light: #fdfcfa;
    --white: #FFFFFF;
    --text-dark: #2c2c2c;
    --text-secondary: #5a5a5a;
    --primary-teal: #008080;
    /* A classic, elegant teal */
    --secondary-peach: #ff9b85;
    /* A warm, friendly peach */
    --accent-gold: #e9c46a;
    --border-light: #eaddcf;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Styling Awal Anda (Sebagai referensi) */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Media Query untuk Perangkat Mobile --- */
/* Aturan ini hanya akan berlaku jika lebar layar 767.98px atau kurang */
@media (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
        /* Ukuran untuk mobile, contoh: 32px */
    }

    h2 {
        font-size: 1.75rem;
        /* contoh: 28px */
    }

    h3 {
        font-size: 1.5rem;
        /* contoh: 24px */
    }

    h4 {
        font-size: 1.25rem;
        /* contoh: 20px */
    }

    h5 {
        font-size: 1.1rem;
        /* contoh: 17.6px */
    }

    h6 {
        font-size: 1rem;
        /* contoh: 16px */
    }
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media screen and (max-width: 767.98px) {
    .section-padding {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
        text-align: center;
    }

}

.section-subtitle {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.btn-primary {
    background-color: var(--primary-teal);
    border-color: var(--primary-teal);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #006666;
    border-color: #006666;
    transform: translateY(-3px);
}

/* ======== NAVBAR ======== */
.navbar {
    background-color: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--text-dark) !important;
}

.navbar-brand-footer {
    color: var(--white) !important;
}

.navbar-brand span {
    color: var(--primary-teal);
}

.nav-link {
    font-weight: 500;
}

/* ======== HERO SECTION ======== */
#hero {
    padding: 100px 0;
}

.hero-greeting {
    color: var(--primary-teal);
    font-weight: 700;
}

.hero-headline {
    font-size: 3rem;
}

@media (max-width: 767.98px) {
    .hero-headline {
        font-size: 2rem;
    }

    p.lead {
        font-size: 1rem;
    }
}

.hero-image-wrapper {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: blob-morph 8s ease-in-out infinite;
}

@keyframes blob-morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 60% 40% 50% 50% / 40% 50% 50% 60%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* ======== SKILLS MARQUEE (HOMEPAGE) ======== */
.skills-marquee {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    white-space: nowrap;
}

.skills-marquee:before,
.skills-marquee:after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.skills-marquee:before {
    left: 0;
    background: linear-gradient(to left, rgba(253, 252, 250, 0), var(--bg-light));
}

.skills-marquee:after {
    right: 0;
    background: linear-gradient(to right, rgba(253, 252, 250, 0), var(--bg-light));
}

.skills-track {
    display: inline-block;
    animation: marquee 40s linear infinite;
}

.skill-logo {
    display: inline-block;
    height: 60px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
    .skill-logo {
        height: 50px;
        margin: 0 30px;
    }

    .skill-logo-layanan {
        height: 40px;
        margin: 0 10px;
    }
}

.skill-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.skill-logo-adjusted {
    height: 25px;
}

@keyframes marquee {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ======== SERVICES TABS (HOMEPAGE) ======== */
.nav-tabs {
    border-bottom: 1px solid var(--border-light);
}

.nav-tabs .nav-link {
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: var(--primary-teal);
    background-color: transparent;
    border-bottom: 3px solid var(--primary-teal);
}

.tab-content {
    padding-top: 2.5rem;
}

.service-tab-pane h3 {
    font-size: 2rem;
}

.service-tab-pane .badge {
    background-color: #e6f2f2;
    color: var(--primary-teal);
    padding: 0.5em 1em;
}

/* Wadah untuk tombol tabs */
.services-tabs-container {
    /* border-bottom: 1px solid #dee2e6; */
    margin-bottom: 2.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 15px;
    /* TAMBAHKAN INI: Memberi ruang di sisi kiri dan kanan */
}

/* Tombol tabs (pills) */
.services-tabs-container .nav-pills .nav-item {
    margin-bottom: 1.5rem;
    margin: 0 10px;
}

.services-tabs-container .nav-pills .nav-link {
    padding: 10px 25px;
    border-radius: 40px;
    font-weight: 500;
    color: #6c757d;
    background-color: transparent;
    transition: all 0.3s ease;
}

@media screen and (max-width: 767.98px) {
    .tab-content {
        padding-top: 1rem;
    }

    .tab-pane h3 {
        font-size: 1.5rem;
    }

    .services-tabs-container {
        padding: 0 10px;
    }

    .services-tabs-container .nav-pills .nav-item {
        margin: 0 5px;
    }

    .services-tabs-container .nav-pills .nav-link {
        padding: 5px 10px;
        font-size: 1rem;
        margin-bottom: 5px;
    }

}

/* Tombol tabs saat aktif atau di-hover */
.services-tabs-container .nav-pills .nav-link.active,
.services-tabs-container .nav-pills .nav-link:hover {
    color: #fff;
    background-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Konten di dalam setiap tab */
.service-content-box {
    padding-left: 1.5rem;
}

/* Judul layanan dengan ikon */
.service-content-box h3 {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-content-box h3 i {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #0d6efd;
}

/* Menggunakan kembali style deskripsi yang sudah kita buat */
.service-description-box {
    background-color: #f8f9fa;
    border-left: 5px solid #0d6efd;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #495057;
}

/* Wadah untuk tag keahlian */
.service-tags-container {
    margin-top: 1.5rem;
}

/* Style baru untuk setiap tag */
.service-tag {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 6px 12px;
    border-radius: 5px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Efek shadow pada gambar layanan */
.service-image-wrapper img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======== CREATIVE ZONE (HOMEPAGE) ======== */
#creative-zone,
#blog,
#testimonials {
    background-color: var(--white);
}

.creative-zone-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.creative-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.creative-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.creative-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.creative-item:hover .creative-item-overlay {
    opacity: 1;
}

.creative-item:hover img {
    transform: scale(1.05);
}

.creative-item-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
}

.creative-item-title {
    color: var(--white);
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

@media (max-width: 992px) {
    .creative-zone-grid {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .creative-zone-grid {
        column-count: 1;
    }
}

/* ======== BLOG & TESTIMONIALS (HOMEPAGE) ======== */
.blog-card {
    border: 1px solid var(--border-light);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.blog-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary-peach);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.testimonial-carousel .carousel-inner {
    padding: 2rem;
    background-color: #f2f7f7;
    border-radius: 1rem;
}

.testimonial-quote {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-teal);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(0.5);
}

/* ======== SERVICE PAGE STYLES ======== */
.service-hero {
    padding: 80px 0;
    text-align: center;
    background: var(--white);
    overflow-x: hidden;
}

.process-step .icon {
    width: 80px;
    height: 80px;
    background-color: #e6f2f2;
    color: var(--primary-teal);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

/* --- Style untuk Before-After Image Slider --- */

.before-after-container {
    position: relative;
    /* Wajib untuk menumpuk elemen di dalamnya */
    width: 100%;
    overflow: hidden;
    /* Sembunyikan bagian gambar yang keluar dari container */
    border-radius: 8px;
    /* Opsional: agar sudutnya lebih manis */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.before-after-container>img {
    /* Atur gambar dasar (After) agar memenuhi container */
    display: block;
    width: 100%;
    height: auto;
}

.before-after-container .before-image {
    /* Container untuk gambar "Before" */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    /* Posisi awal slider di tengah */
    overflow: hidden;
}

.before-after-container .before-image img {
    /* Paksa gambar "Before" agar ukurannya sama persis dengan gambar "After" */
    height: 100%;
    width: auto;
    /* Biarkan width menyesuaikan dengan height */
    max-width: none;
    /* Penting agar gambar tidak menyusut */

    /* Trik agar width gambar 'before' sama dengan width container-nya */
    /* Ini akan memastikan gambar tidak bergeser saat slider digerakkan */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

.before-after-container .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    /* Posisi awal di tengah */
    transform: translateX(-50%);
    /* Pusatkan handle */
    height: 100%;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    cursor: ew-resize;
    /* Ubah cursor menjadi panah kiri-kanan */
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-container .slider-handle-bar {
    /* Ikon grip di tengah handle */
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 24px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Menambahkan ikon grip menggunakan pseudo-element */
.slider-handle-bar::before {
    content: '↔';
    font-weight: bold;
}

/* --- Style untuk Timeline --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #dee2e6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: white;
    border: 4px solid #0d6efd;
    /* Primary color */
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
}

.timeline-year {
    color: #0d6efd;
    font-weight: bold;
}

/* ======================================================= */
/* == Penyesuaian Timeline KHUSUS untuk Tampilan Mobile == */
/* ======================================================= */

/* Aturan ini hanya akan aktif jika lebar layar 767.98px atau kurang */
@media (max-width: 767.98px) {

    /* 1. Pindahkan garis waktu vertikal dari tengah ke sisi kiri */
    .timeline-container::after {
        left: 0px;
    }

    /* 2. Buat semua item (ganjil & genap) memenuhi lebar layar */
    .timeline-item {
        width: 100%;
        /* Beri padding di kiri agar ada ruang untuk garis dan dot */
        padding-left: 30px;
        padding-right: 25px;
    }

    /* 3. Paksa semua item (ganjil & genap) untuk mulai dari sisi kiri */
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        right: 0;
    }

    /* 4. Posisikan semua 'dot' di tempat yang sama (di atas garis) */
    .timeline-dot {
        left: -7px;
        /* Kalkulasi: posisi garis (31px) - setengah lebar dot (16px/2 = 8px) */
        right: 0px;
        /* Hapus aturan 'right' dari style desktop */
    }

    /* 5. Pastikan semua konten di item genap menjadi rata kiri */
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-dot {
        right: 0px;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: -7px;
        right: 0px;
    }

}

/* ======== FOOTER ======== */
.main-footer {
    background-color: #2c2c2c;
    color: #c4c8e1;
    padding: 60px 0 0 0;
}

.main-footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.main-footer a {
    color: #c4c8e1;
    text-decoration: none;
    transition: color 0.3s;
}

.main-footer a:hover {
    color: var(--white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid #4a4a4a;
    padding: 1.5rem 0;
    margin-top: 40px;
    text-align: center;
    color: #a0a0a0;
}

@media (max-width: 767.98px) {
    .btn {
        font-size: 1rem;
        padding: auto;
    }
}