/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #2c3e50; 
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: #fff;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    display: inline;
    margin-left: 25px;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, .active {
    color: #00aeef;
}

.btn-contact {
    background-color: #8dc63f; 
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-contact:hover {
    background-color: #7ab430;
    color: #fff !important;
}

/* GANTI BLOK .hero LAMA ANDA DENGAN DUA BLOK DI BAWAH INI */

/* Mengatur container hero */
.hero {
    /* Properti background dipindahkan ke ::before */
    height: 75vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end; 
    text-align: right;
    padding-right: 10%;          
    box-sizing: border-box;

    /* Properti baru untuk menampung background animasi */
    position: relative;
    overflow: hidden; /* Penting untuk memotong gambar yang di-zoom */
}

/* Membuat lapisan background terpisah untuk dianimasikan */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Properti background yang dipindahkan */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/backgrounda4.png') no-repeat center center;
    background-size: cover;
    
    z-index: -1; /* Meletakkan background di belakang konten (teks & tombol) */

    /* Menerapkan animasi yang sudah kita buat */
    animation: zoomIn 1.5s ease-out forwards;
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 650;
}

.hero p {
    font-size: 1.25rem;
    margin-top: 10px;
}

.hero-buttons {
    margin-top: 25px;
}

/* Sections */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    color: #2c3e50;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00aeef;
    margin: 10px auto 0;
}

/* General Button Styles */
.btn {
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    margin: 0 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: #8dc63f;
    color: white;
    border: 2px solid #8dc63f;
}

.btn-primary:hover {
    background-color: #7ab430;
    border-color: #7ab430;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: #2c3e50;
}

.btn-outline-dark {
    color: #2c3e50;
    border: 2px solid #2c3e50;
    background-color: transparent;
}

.btn-outline-dark2:hover {
    background-color: #7ab430;
    color: #fff;
}

.btn-outline-dark2 {
    color: #ffffff;
    border: 2px solid #9da4aa;
    background-color: transparent;
}

.btn-outline-dark:hover {
    background-color: #2c3e50;
    color: #2c3e50;
}

/* GANTI KODE .card-grid LAMA ANDA DENGAN INI */

.card-grid {
    display: grid;
    /* Default: 1 kolom untuk mobile */
    grid-template-columns: 1fr; 
    gap: 30px;
}

/* Tampilan 2 kolom untuk tablet */
@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tampilan 3 kolom untuk desktop (sesuai permintaan Anda) */
@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* General Card Styles */
.card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card.aos-animate:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
}

/* === GAYA KHUSUS UNTUK HALAMAN TENTANG KAMI === */

.about-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-page-text h3 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 700;
}

.about-page-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 768px) {
    .about-page-grid {
        grid-template-columns: 1fr; /* Tumpuk menjadi 1 kolom */
        text-align: center;
    }
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Ganti .card lama Anda dengan ini */
.card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden; /* PENTING: Agar gambar tidak keluar dari sudut kartu */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    /* Warna biru dari logo */
    color: #2c3e50;
}

/* Project Card Image */
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.project-card h4 {
    margin: 10px 0 5px 0;
}

/* Contact Section with Icons */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-item .icon {
    font-size: 48px;
    /* Warna biru dari logo */
    color: #00aeef;
    margin-bottom: 15px;
}

.contact-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Home Page: About Section */
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.home-about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.home-about-text { text-align: left; }
.home-about-text .section-title { text-align: left; }
.home-about-text .section-title::after { margin-left: 0; margin-right: auto; }
.home-about-text p { margin-bottom: 30px; }

/* Home Page: CTA Section */
/* === GAYA YANG BENAR UNTUK BAGIAN 'MENGAPA MEMILIH KAMI' (CTA) === */

.cta-section {
    padding: 60px 0;
    /* Background pattern sudah diatur dari HTML dengan class 'bg-pattern-dots' */
}

/* Mengatur .container di dalam .cta-section menjadi 2 kolom */
.cta-section .container {
    display: grid;
    grid-template-columns: 1fr 0.3fr; /* Membuat 2 kolom berdampingan */
    gap: 50px;
    padding-left: 10%;
    padding-right: 10%;
    align-items: center; /* Menjaga konten tetap sejajar di tengah */
}

.cta-text {
    text-align: left;
}

.cta-text h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

.cta-text p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #555;
}

.cta-image img {
    
    width: 100%;
    height: auto;
    border-radius: 8px;

    background-color: #fff; /* Memberi latar belakang putih agar terlihat */
    padding: 40px;          /* Memberi jarak di dalam kotak (atas, bawah, kiri, kanan) */
    border-radius: 15px;      /* INI KUNCINYA: Membuat sudut menjadi melengkung */
    box-shadow: 0 5px 20px rgba(0,0,0,0.09); /* Memberi efek bayangan lembut */
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 768px) {
    .cta-section .container {
        grid-template-columns: 1fr; /* Tumpuk menjadi 1 kolom */
        text-align: center;
    }
    

    .cta-text {
        text-align: center; /* Tengahkan teks di mobile */
    }

    
    .cta-image {
        order: -1; /* Pindahkan gambar ke atas di mobile */
        padding-right: 80px;
    }

}

/* Home Page: Featured Services (Accordion) */
#featured-services {
    background-color: #2c3e50 !important;
}
#featured-services .section-title {
    color: #fff;
}
.service-layout {
    display: grid;
    grid-template-columns: 2fr 0.5fr;
    gap: 50px;
    /* Menggunakan !important untuk 'memaksa' kedua kolom meregang sama tinggi */
    align-items: stretch !important; 
}


.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.accordion-item {
    background-color: #34495e;
    border: 1px solid #afaeae;
    border-radius: 8px;
}
.accordion-header {
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    border-radius: 8px;
}
.accordion-header h4 { margin: 0; font-size: 1.1rem; color: #fff; }
.accordion-header i { transition: transform 0.3s ease; color: #ccc; }
.accordion-header.active i { transform: rotate(90deg); color: #8dc63f; }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    padding: 0 20px;
    color: #ccc;
}
.accordion-content ul {
    list-style-type: disc;
    padding: 15px 0 15px 20px;
    margin: 0;
    border-top: 1px solid #4a6fa5;
}
.accordion-content li { color: #ccc; margin-bottom: 10px; }
.capabilities-panel {
    background-color: #8dc63f;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);

    /* Menggunakan flexbox untuk menengahkan konten (gambar) di dalamnya */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Memberi sedikit jarak agar gambar tidak menempel tepi */
    overflow: hidden; 
}

/* 3. Mengatur Ukuran Gambar Agar Tidak Meregang (Stretched) */
.capabilities-panel img {
    /* Hapus width & height 100% agar gambar tidak meregang */
    width: auto;
    height: auto;
    /* Batasi ukuran gambar agar tidak lebih besar dari panelnya */
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain; /* Memastikan seluruh gambar terlihat utuh */
}

/* Home Page: Clients Section (Swiper) */
.clients-section { background-color: #fff; }
.client-slider { padding: 20px 0; }
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.swiper-slide img {
    max-height: 70px;
    max-width: 100%;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}
.swiper-slide img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.1); }
.swiper-button-next, .swiper-button-prev { color: #00aeef; }
.swiper-pagination-bullet-active { background-color: #00aeef; }

/* Other Pages: Page Header */
.page-header {
    padding: 60px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)), url('images/backgrounda4.png') no-repeat center center/cover;
    color: white;
    text-align: center;
}
.page-header h1 {
    font-size: 3rem;
}

/* Other Pages: Intro Image */
.page-intro { padding-top: 0; }
.breadcrumb { color: #555; margin-bottom: 15px; }
.intro-image img {
    max-width: 70%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.10);
    display: block;
    margin: 0 auto;
}

/* Background Patterns */
.bg-pattern-dots {
    background-color: #f8f9fa;
    background-image: radial-gradient(#d0d9e2 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Footer */
footer { background-color: #f8f9fa; border-top: 1px solid #e9ecef; }
.footer-map iframe { width: 100%; height: 350px; border: 0; }
.footer-content {
    padding: 40px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), url('images/footer-background.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #fff;
    border-bottom: 2px solid #00aeef;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-column p, .footer-column ul { margin-bottom: 10px; line-height: 1.8; padding: 0; list-style: none; }
.footer-column ul a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.footer-column ul a:hover { color: #fff; }
.social-icons a { color: #fff; font-size: 24px; margin-right: 15px; text-decoration: none; transition: color 0.3s; }
.social-icons a:hover { color: #00aeef; }
.footer-bottom { background: #1e2b37; color: #ccc; text-align: center; padding: 15px 0; }

/* Responsive Styles */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #2c3e50;
}

@media (max-width: 992px) {
    .service-layout { grid-template-columns: 1fr; }
    .capabilities-panel { height: 300px; }
}

@media (max-width: 768px) {
    /* Hamburger Menu */
    #hamburger-btn { display: block; z-index: 1001; }
    nav ul {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100%;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: left 0.3s ease-in-out;
    }
    nav ul.nav-open { left: 0; }
    nav ul li { margin: 20px 0; }
    nav ul li a { color: #fff; font-size: 1.2rem; }
    .btn-contact { padding: 12px 25px; }

    /* Page specific responsive */
    .hero { align-items: center; text-align: center; padding-right: 0; }
    .home-about-grid { grid-template-columns: 1fr; text-align: center; }
    .home-about-text, .about-page-grid { text-align: center; }
    .home-about-text .section-title { text-align: center; }
    .home-about-text .section-title::after { margin: 10px auto 0; }
    .cta-wrapper { grid-template-columns: 1fr; padding: 30px; }
    .cta-text { text-align: center; }
    .about-page-grid { grid-template-columns: 1fr; }
}

/* === GAYA UNTUK HALAMAN MENGAPA MEMILIH KAMI === */

.why-us-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.why-us-item {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 50px 0;
    border-bottom: 1px solid #e9ecef;
}

.why-us-item:last-child {
    border-bottom: none;
}

.why-us-item:nth-child(even) {
    flex-direction: row-reverse;
}

.why-us-number {
    /* Gaya untuk lingkaran */
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background-color: #2c3e50; /* Warna biru tua sesuai permintaan Anda */
    color: #fff; /* Teks angka menjadi putih */
    
    /* Menengahkan angka di dalam lingkaran */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Teks angka */
    font-size: 5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.why-us-text {
    flex: 1;
}

.why-us-text h4 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .why-us-item,
    .why-us-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px 10px;
    }
}

/* Gaya untuk Logo di Footer */
.footer-logo {
    max-height: 40px; /* Mengatur tinggi maksimum logo agar tidak terlalu besar */
    margin-bottom: 15px; /* Memberi jarak antara logo dan judul "Lintas Solusi" */
    display: block; /* Praktik terbaik untuk penataan gambar */
}

/* Gaya untuk Deskripsi di Footer */
.footer-description {
    font-size: 0.9rem;      /* Ukuran teks sedikit lebih kecil */
    color: #ccc;            /* Warna abu-abu terang agar mudah dibaca */
    line-height: 1.7;       /* Jarak antar baris agar tidak terlalu rapat */
    margin-top: 15px;       /* Jarak dari judul di atasnya */
    margin-bottom: 20px;    /* Jarak ke ikon sosial di bawahnya */
}

/* === GAYA UNTUK GAMBAR DI DALAM KARTU LAYANAN === */

/* Gaya untuk Gambar di bagian atas Kartu */
.card-img-top {
    /* Lebar penuh ditambah padding kiri & kanan kartu (100% + 60px) */
    width: calc(100% + 60px); 
    height: 180px; /* Anda bisa sesuaikan tinggi gambar ini */
    object-fit: cover; /* Membuat gambar mengisi area tanpa distorsi */
    
    /* Margin negatif untuk "menarik" gambar ke tepi atas kartu */
    margin: -30px -30px 20px -30px; 
    
    /* Sudut melengkung hanya di bagian atas agar menyatu dengan kartu */
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

/* === GAYA UNTUK BAGIAN PORTOFOLIO PROYEK DI HALAMAN UTAMA === */

.home-projects-section {
    background-color: #f8f9fa; /* Latar belakang abu-abu muda */
}

.home-projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolom di desktop */
    gap: 30px 50px; /* Jarak vertikal dan horizontal */
}

.project-preview-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.project-preview-image img {
    width: 120px; /* Ukuran gambar preview */
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.project-preview-text h4 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.project-preview-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* Tombol "Selengkapnya" */
.see-all-button-container {
    text-align: center;
    margin-top: 50px;
}

.btn-see-all {
    background-color: #2c3e50; /* Warna biru tua */
    color: #fff;
    border: none;
}

.btn-see-all:hover {
    background-color: #34495e;
}

.btn-see-all i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-see-all:hover i {
    transform: translateX(5px);
}

/* Penyesuaian untuk Tampilan Mobile */
@media (max-width: 768px) {
    .home-projects-grid {
        grid-template-columns: 1fr; /* Tumpuk menjadi 1 kolom di mobile */
    }
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Membuat tombol tersusun ke bawah */
        align-items: center;   /* Menengahkan tombol-tombol yang tersusun */
        gap: 15px;             /* Memberi jarak 15px antar tombol */
    }
}

/* === KODE ANIMASI UNTUK EFEK ZOOM === */
@keyframes zoomIn {
    from {
        transform: scale(1); /* Mulai dari ukuran normal */
    }
    to {
        transform: scale(1.17); /* Selesai dengan sedikit zoom (110%) */
    }
}