/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0eea4c; /* Cyan/Green - Warna Aksen Utama */
    --secondary-color: #104594; /* Dark Blue - Warna Background Utama */
    --card-bg: #172a45; /* Lighter Blue - Warna Background Kartu/Form */
    --text-color: #ccd6f6; /* Soft White - Warna Teks Utama */
    --text-light: #a8b2d1; /* Muted Blue - Warna Teks Sekunder */
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    margin-top: 50px;
    color: var(--primary-color);
}

.bg-dark {
    background-color: var(--card-bg);
}

/* --- Header & Navigation --- */

body.homepage main {
    padding-top: 80px; /* Atur nilai ini sesuai dengan tinggi header Anda */
}

header {
    background: rgba(10, 25, 47, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 50px; /* Sesuaikan dengan kebutuhan */
    width: auto;
    max-width: 180px; /* Maksimal lebar logo */
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Animasi hamburger menjadi 'X' saat menu aktif */
.hamburger.toggle span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger.toggle span:nth-child(2) {
    opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}


/* --- Hero Section --- */
.hero {
    position: relative; /* Penting untuk penempatan elemen video di dalamnya */
    height: 100vh;
    overflow: hidden; /* Sembunyikan bagian video yang keluar dari area */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    /* Background image dihapus karena diganti video */
}

/* Styling untuk Video Background (TAMBAHKAN INI) */
.hero video {
    position: absolute; /* Keluar dari flow normal dan diposisikan relatif terhadap .hero */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Membuat video menutupi seluruh area tanpa distorsi */
    z-index: -1; /* Letakkan video di lapisan paling belakang */
}

/* Pastikan konten tetap berada di atas video (TAMBAHKAN/UBAH INI) */
.hero-content {
    position: relative; /* Pastikan konten berada di atas video */
    z-index: 1;
    /* Tambahkan overlay semi-transparan agar teks lebih jelas */
    background-color: rgba(16, 69, 148, 0.8); /* Menggunakan warna tema Anda dengan transparansi */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
}

/* Kode h1 dan p di bawah ini bisa Anda biarkan seperti semula, tidak perlu diubah */
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-light);
}
.cta-buttons .btn {
    margin: 0 10px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #0bc985; /* Warna hijau yang sedikit lebih gelap */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(14, 234, 76, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(14, 234, 76, 0.2);
}

/* Cari kode .service-card i di style.css dan ganti dengan ini */
.service-card img {
    width: 240px;       /* Atur lebar gambar */
    height: 180px;      /* Atur tinggi gambar agar seragam */
    object-fit: contain; /* Mencegah gambar terdistorsi */
    margin-bottom: 10px;
    /* Tidak perlu 'color' atau 'font-size' lagi */
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-light);
}

/* --- Why Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

/* Pastikan kode ini ada di style.css */
.why-us-item img {
    width: 80px;       /* Atur lebar gambar */
    height: 80px;      /* Atur tinggi gambar agar seragam */
    object-fit: cover;  /* Memastikan gambar memenuhi kotak tanpa terdistorsi */
    border-radius: 50%; /* Membuat gambar berbentuk lingkaran */
    margin-bottom: 15px;
}

.why-us-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.why-us-item p {
    color: var(--text-light);
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(14, 234, 76, 0.1);
}

.contact-info p, .contact-info a {
    color: var(--text-light);
    margin-bottom: 15px;
    text-decoration: none;
    font-size: 1.1rem;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.map {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* --- Profil & Dokumentasi --- */
.profile-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.profile-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.documentation-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.documentation-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.documentation-gallery figure:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(14, 234, 76, 0.2);
}

.documentation-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* --- Video Gallery --- */
.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

/* Gaya utama embed IG */
.video-wrapper blockquote.instagram-media {
  width: 45% !important;
  max-width: 400px !important;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin: 0 auto !important;
}

/* Paksa isi penuh tanpa ruang putih */
.video-wrapper blockquote.instagram-media iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border: none;
}

/* Tablet */
@media (max-width: 992px) {
  .video-wrapper blockquote.instagram-media {
    width: 48% !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .video-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .video-wrapper blockquote.instagram-media {
    width: 90% !important;
    max-width: 350px !important;
    aspect-ratio: 9 / 16;
  }
}

/* HP kecil */
@media (max-width: 480px) {
  .video-wrapper blockquote.instagram-media {
    width: 100% !important;
    max-width: 300px !important;
  }
}



/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--card-bg);
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links a {
    color: var(--text-light);
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 25, 47, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .cta-buttons .btn {
        display: block;
        width: 80%;
        margin: 10px auto;
    }

    .contact-wrapper {
        max-width: 100%;
    }

    .documentation-gallery {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
    }
    
    footer p {
        margin-bottom: 10px;
    }
}