:root {
    --primary-color: #2f80ed; /* Warna biru untuk tema utama */
    --secondary-color: #f0f0f0; /* Warna sekunder untuk background */
    --text-color: #333; /* Warna teks gelap */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.hero-section {
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center; 
    height: 100vh;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4); /* Bisa 0.3 - 0.6 sesuai selera */
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px; 
    background-color: #2f80ed;
    z-index: 3;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    margin-bottom: 5px;
    background-color: white;
    border-radius: 3px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none; /* Menghilangkan garis bawah dari link */
    color: #fff; /* Mengubah warna teks 'BayDev' */
    font-weight: bold; /* Menebalkan teks 'BayDev' */
    font-size: 30px;
}

.logo-image {
    height: 50px; /* Sesuaikan tinggi logo Anda */
    width: auto;
    margin-right:10px; /* Memberi jarak antara logo dan teks */
}

.navbar ul {
    list-style-type: none;
    display: flex;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s ease-in-out;
}

.navbar ul li a:hover {
    color: #f0f0f0;
}

.navbar ul li a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: white;
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease-in-out;
}

.navbar ul li a:hover::after {
    width: 100%; /* Garis muncul saat di-hover */
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #ffffff;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #ffffff;
}

.button {
    display: inline-block;
    background-color: white;
    color: #000000;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
    background-color:#2f80ed;
}

.about-us {
    padding: 60px 20px;
    background-color: #fff;
}

.about-wrapper {
    max-width: 1100px; /* Batasi lebar total konten About Us */
    margin: 0 auto; /* Pusatkan wrapper */
    padding: 20px; /* Tambahkan padding di dalam wrapper */
    background-color: #fff; /* Pastikan background putih */
    border-radius: 10px; /* Sudut membulat */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Tambahkan shadow */
    display: flex; /* Gunakan flexbox untuk tata letak internal */
    flex-direction: column; /* Konten diatur secara kolom */
    align-items: flex-start; /* Konten dimulai dari kiri */
}

.about-us h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #2f80ed;
    text-align: left;
}

.about-flex-container {
    display: flex;
    align-items: center; /* Pusatkan vertikal */
    gap: 40px; /* Jarak antara teks dan gambar */
    width: 100%; /* Memastikan container mengambil lebar penuh wrapper */
}

.about-text-content {
    flex: 1; /* Memberikan porsi lebar yang fleksibel untuk teks */
    text-align: left; /* Teks rata kiri */
}

.about-text-content p {
    font-size: 16px;
    color: #555; /* Ubah warna teks agar lebih soft */
    line-height: 1.7;
    margin-bottom: 15px; /* Jarak antar paragraf */
}

.about-image-wrapper {
    flex-shrink: 0; /* Mencegah gambar menyusut */
    width: 450px; /* Lebar tetap untuk gambar, sesuaikan jika perlu */
    border-radius: 10px; /* Sudut membulat untuk wrapper gambar */
    overflow: hidden; /* Pastikan gambar tidak keluar dari sudut membulat */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Tambahkan sedikit shadow */
}

.instansi-image {
    width: 100%; /* Gambar mengisi penuh wrapper-nya */
    height: auto;
    display: block; /* Menghilangkan spasi ekstra di bawah gambar */
    filter: grayscale(100%); /* Gambar hitam-putih */
    transition: filter 0.5s ease;
}

.instansi-image:hover {
    filter: grayscale(0%); /* Gambar berwarna saat hover */
}

.about-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.about-us p {
    font-size: 16px;
    color: #000000;
    max-width: 600px;
    margin: 0 auto;
}

/* Styling untuk Bagian Struktur Organisasi */
.organization-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.organization-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color:#2f80ed;
}

.organisasi-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Styling untuk Kartu Setiap Anggota */
.organisasi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 200px;
    text-align: center;
    cursor: pointer;
}

/* Membuat Gambar Berbentuk Lingkaran */
.organisasi-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* Membuat gambar menjadi lingkaran */
    object-fit: cover; /* Memastikan gambar mengisi area tanpa terdistorsi */
    border: 3px solid #2f80ed;
    transition: transform 0.3s ease;
}

.organisasi-image:hover {
    transform: scale(1.05); /* Efek perbesar saat di-hover */
}

.organisasi-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Styling untuk Tooltip */
.tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%; /* Posisikan di atas foto dan nama */
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Tanda Panah Tooltip */
.tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Menampilkan Tooltip saat di-hover */
.tooltip-trigger:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
}

/* Styling untuk Bagian Galeri */
.gallery-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #2f80ed;
}

.gallery-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Styling untuk Kartu Gambar */
.gallery-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Styling untuk Gambar di dalam Kartu */
.gallery-image {
    width: 240px; /* Ukuran gambar yang konsisten */
    height: 240px;
    object-fit: cover; /* Penting! Mencegah gambar terdistorsi */
    margin-bottom: 15px;
    transition: filter 0.5s ease;
}

.gallery-image:hover {
    filter: grayscale(0%); /* Gambar menjadi berwarna saat di-hover */
}

/* Membuat Bentuk Gambar yang Berbeda */
.square-shape {
    border-radius: 10px; /* Sudut membulat */
}

.circle-shape {
    border-radius: 50%; /* Membuat gambar lingkaran */
}

.produk {
  text-align: center;
  padding: 40px 20px;
}

.judul-produk {
  font-size: 28px;
  color: #1E88E5;
  margin-bottom: 30px;
}

.produk-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.produk-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 260px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s;
}

.produk-card:hover {
  transform: translateY(-5px);
}

.produk-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

.produk-card h3 {
  font-size: 20px;
  margin-bottom: 25px;
}

.produk-card p {
  font-size: 14px;
  color: #555;
  margin-top: 5px;
  margin-bottom: 15px;
}

.btn-selengkapnya {
  background: #1E88E5;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.btn-selengkapnya:hover {
  background: #1565C0;
}

.btn-mobil-lainnya {
  background: #1E88E5;
  color: #fff;
  border: none;
  padding: 10px 18px;
  width: 120px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
  display: block;          /* biar gampang diatur jaraknya */
  margin: 30px auto 0;
  text-decoration: none;
}

.btn-mobil-lainnya:hover {
  background: #1565C0
}


/* Teks Deskripsi */
.gallery-caption {
    font-size: 16px;
    color: #555;
    font-weight: 500;
}

/* Section Berita */
.news-section {
  display: flex;
  flex-direction: column;
  align-items: center;       /* semua isi di tengah */
  justify-content: center;
  padding: 50px 20px;
  background-color: #f9f9f9;
}

.news-section h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #2f80ed;
  text-align: center;
}

.news-container {
  max-width: 800px;          /* batas lebar box */
  width: 100%;
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;       /* kasih jarak dengan pagination */
}

.news-article {
    display: none;
    margin-bottom: 30px;
    text-align: justify;
    line-height: 1.6;
}

.news-article h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 22px;
  text-align: center;
}

.news-article p {
  font-size: 16px;
  color: #555;
}

.news-article.active {
    display: block;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 20%;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.pagination a:hover {
  background-color: #ddd;
}

.pagination a.active {
  background-color: #007bff;
    color: white;
}

.pagination .arrow {
    background-color: transparent;
    border-radius: 0;
}

.services-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.services-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-section {
    padding: 60px 20px;
    text-align: center;
}

.contact-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.contact-section form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-section input,
.contact-section textarea {
    padding: 15px 15px 15px 45px; 
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.contact-section input,
.contact-section textarea {
    padding: 15px 15px 15px 45px; 
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.input-icon-container {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}

.input-icon-container i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-95%);
    color: #888;
    font-size: 18px;
}

.textarea-container i {
    top: 15px;
    transform: translateY(0); 
}

.input-icon-container input,
.input-icon-container textarea {
    padding-left: 45px;
}

.button-kirim {
    display: inline-block;
    background-color: #2f80ed;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.button-kirim:hover {
    background-color: #1a5bb8;
}

footer {
    background-color: #2f80ed;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.follow-text {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
}

.social-icon {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icon a {
    color: white;
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.social-icon a i {
    font-size: 24px;
    margin-right: 8px;
}

.social-icon a:hover {
    transform: translateY(0px);
}

/* Bagian Dashboard */
/* ===== PRODUK ===== */
.produk {
    padding: 120px 20px 60px; /* biar tidak ketutup navbar */
    text-align: center;
    background: #f8f9fa;
}

.produk h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2f80ed;
}

.produk p {
    color: #555;
    margin-bottom: 40px;
}

.produk h2 {
    margin-bottom: 20px;
}

.produk-container1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.2s;
    text-align: center;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 20px;
    margin: 10px 0;
    color: #333;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card .btn {
    display: inline-block;
    padding: 10px 15px;
    background: #2f80ed;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}

.card .btn:hover {
    background: #1a5bb8;
}

.card:hover {
    transform: translateY(-5px);
}



@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .navbar {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px;
    }

    .navbar ul {
        display: none; 
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #2f80ed;
        width: 100%;
        flex-direction: column;
        text-align: center;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px); 
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    }

    .navbar ul.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .navbar ul li {
     margin: 15px 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .button {
        padding: 10px 20px;
    }

.about-flex-container {
        flex-direction: column; /* Teks dan gambar menumpuk di bawah */
        gap: 30px;
    }

    .about-image-wrapper {
        width: 100%; /* Gambar mengambil lebar penuh */
        max-width: 500px; /* Batasi lebar gambar agar tidak terlalu besar di HP */
    }

    .about-wrapper {
        padding: 15px;
    }
}
    .about-us h2 {
        font-size: 28px;
    }
    .about-text-content p {
        font-size: 15px;
    }

 .news-container {
        padding: 20px;
        margin: 0 15px;
    }
    .news-article {
        columns: 1;
        column-gap: normal;
        column-rule: none;
    }
    .news-section h2 {
        text-align: left; /* Rata kiri di HP */
    }

    .services-section, .contact-section {
        padding: 40px 15px;
    }

    .services-section h2, .contact-section h2 {
        font-size: 28px;
    }

    html {
        scroll-behavior: smooth;
    }



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}