/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1140px; /* Menyesuaikan lebar dengan standar Bootstrap container */
    margin: 0 auto; /* Center horizontally */
    padding: 0 15px; /* Mengatur padding internal */
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Mengurangi tinggi logo */
.navbar-brand img {
    height: 50px !important; /* Ubah sesuai keinginan untuk mengurangi tinggi logo */
}

/* Mengatur padding pada item navigasi */
.nav-link {
    padding-top: 0.25rem !important; /* Kurangi padding atas */
    padding-bottom: 0.25rem !important; /* Kurangi padding bawah */
    font-weight: bold;
    color: #333;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #10375C !important; /* Warna saat dihover */
}

.nav-link.active {
    color: #10375C !important; /* Warna untuk item aktif */
}


/* Hero Section */
.hero {
    position: relative;
    background: url(/assets/img/background.jpg) no-repeat center center/cover;
    height: calc(100vh - 80px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Overlay/Masukkan lapisan gelap semi-transparan */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Gunakan warna hitam semi-transparan */
    z-index: 1;
}

/* Atur teks agar berada di atas overlay */
.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold; /* Membuat teks lebih tebal */
}

.hero p {
    color: #f1f1f1;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600; /* Menambah ketebalan teks paragraf */
}

.hero .btn {
    background-color: #EB8317;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero .btn:hover {
    background-color: #EB8317;
    transform: scale(1.05);
}


/* Services Section */
.services {
    padding: 50px 0;
    text-align: center;
}

.services h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services-description {
    font-size: 18px;
    color: #555;
    margin-bottom: 40px;
}

.service-cards {
    display: flex;
    justify-content: space-between;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 30%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #555;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Styling for Icons */
.card i {
    font-size: 40px;
    color: #000; /* Default color, can change per icon */
    margin-bottom: 15px;
}

/* About section*/
.about h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #EB8317;
}

.about img {
    width: 100%;
    height: 300px; /* atau ukuran yang kamu inginkan */
    object-fit: cover; /* Ini akan membuat gambar terpotong agar sesuai dengan ukuran tanpa merusak proporsi */
}

.about p, .about ul {
    font-size: 16px;
    color: #555;
}

.about ul {
    list-style-type: disc;
    padding-left: 20px;
}

.about ul li {
    margin-bottom: 10px;
}

/* Client Section */
#clients-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

#clients-section h2 {
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.carousel-item {
    display: none; /* Hide all items initially */
}

.carousel-item.active {
    display: flex; /* Show only the active item */
    justify-content: center;
    align-items: center;
}

.carousel-item img {
    max-width: 150px;
    margin: 0 15px;
    opacity: 0.8;
    transition: opacity 0.3s ease-in-out;
}

.carousel-item img:hover {
    opacity: 1;
}

.carousel-control-prev, .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1); /* makes the icons white */
}

/* Contact Section Styling */
.contact-section {
   /* background: linear-gradient(90deg, #ff6600 0%, #ff3300 100%); */
    padding: 50px 0;
    color: #333;
}

.contact-section a {
    text-decoration: none;
}

.contact-section a {
    color: #333;
}

.contact-section .contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
}

.contact-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.contact-section .form-control {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
}

.contact-section .btn-primary {
    background-color: #10375C;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.contact-section .btn-primary:hover {
    background-color: #10375C;
}

.contact-section img {
    max-width: 100%;
    height: auto;
}

/* Contact Section */
.contact-section h2, .contact-section h3 {
    transition: color 0.3s ease-in-out;
}

.contact-section h2:hover, .contact-section h3:hover {
    color: #007bff;
}

.contact-section .btn {
    transition: background-color 0.3s ease;
}

.contact-section .btn:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    color: black;
    text-align: center;
    padding: 10px 0;
}

footer p {
    margin: 0;
    font-size: 14px;
}

footer ul li {
    font-size: 14px;
}

footer a {
    color: black;
    text-decoration: none;
}

/* Responsive for tablets (768px and below) */
@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Mengurangi tinggi hero pada tablet */
    }

    .hero h2 {
        font-size: 32px; /* Kurangi ukuran font */
    }

    .hero p {
        font-size: 16px;
    }

    .hero .btn {
        padding: 8px 15px; /* Sesuaikan ukuran tombol */
        font-size: 14px;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 80%; /* Lebar kartu akan menyesuaikan di perangkat mobile */
        margin-bottom: 20px;
    }

    .about .row {
        flex-direction: column;
        align-items: center;
    }

    .about .col-md-6 {
        margin-bottom: 30px;
    }

    .about .text-center h4 {
        font-size: 20px;
    }

    .about .text-center p {
        font-size: 14px;
    }
}

/* Responsive for mobile phones (480px and below) */
@media (max-width: 480px) {
    .hero {
        height: 50vh; /* Mengurangi tinggi hero pada layar kecil */
    }

    .hero h2 {
        font-size: 24px; /* Sesuaikan ukuran font untuk layar kecil */
    }

    .hero p {
        font-size: 14px;
    }

    .hero .btn {
        padding: 6px 12px; /* Sesuaikan padding tombol */
        font-size: 12px;
    }

    .services h2 {
        font-size: 28px;
    }

    .services-description {
        font-size: 16px;
    }

    .card h3 {
        font-size: 20px;
    }

    .card p {
        font-size: 14px;
    }

    .card i {
        font-size: 30px;
    }

    .card {
        width: 90%;
    }
}
