/* ===== GLOBAL ===== */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fb;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.bg-light {
    background: #f1f3f6;
}

.bg-highlight {
    background: #133860;
    color: white;
    text-align: center;
}

/* ===== HEADER ===== */

header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== HEADER LOGO ===== */
.logo-area {
    display: flex;
    align-items: center; /* Menyelaraskan logo dan teks secara vertikal */
    gap: 10px; /* Jarak antara logo dan teks */
}

.logo-area img {
    width: 50px; /* Ukuran logo, bisa diubah sesuai kebutuhan */
    height: auto; /* Menjaga proporsi gambar */
}
h1{
    color : black;
}

h2 {
    font-size: 1.8rem; /* Ukuran teks yang sesuai */
    font-weight: 600;
    margin: 0;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: .3s;
}

nav a:hover {
    color: #0a84ff;
}

.btn-nav {
    background: #0a84ff;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
}

/* ===== HERO ===== */

.hero {
    padding: 120px 20px;
    background: linear-gradient(120deg,#0a84ff,#005fcc);
    color: white;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-position .1s;
}

.hero h1 {
    font-size: 2.8rem;
}

.btn-hero {
    display: inline-block;
    background: white;
    color: #0a84ff;
    padding: 12px 25px;
    border-radius: 10px;
    margin-top: 20px;
    text-decoration: none;
    font-weight: bold;
}

/* ===== HERO SECTION ===== */
.hero {
    background-image: url('hero.jpg');  /* Ganti 'path-to-your-image.jpg' dengan path gambar kamu */
    background-size: cover; /* Gambar mengisi seluruh area */
    background-position: center; /* Posisi gambar berada di tengah */
    background-attachment: fixed; /* Gambar tetap di belakang saat scroll */
    color: white;
    padding: 120px 20px;
    text-align: center;
}
.hero p{
    color: black;
}

.hero-yusha {
    background: url('hero-bg.jpg') center/cover no-repeat;
    padding: 60px 20px;
    position: relative;
    color: white;
}

/* Overlay gelap */
.hero-yusha::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.hero-left {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-big-logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}

.hero-yusha {
    background-color: rgb(232, 206, 113);
    background: url('background.png') center/cover no-repeat;
    background-size: cover;  /* Menjaga agar gambar tetap menutupi seluruh area */
    padding: 60px 20px; /* Sesuaikan padding sesuai kebutuhan */
    color: white; /* Untuk memastikan teks terlihat dengan baik */

}

.hero-right {
    flex: 2;
}

.hero-right h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #adccd0; /* biru toska */
}

.hero-right h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 10px;
    color: #27c4d9;
    color: #fff;
}

.hero-right p {
    margin-top: 12px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #fff;
}

.checklist {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.checklist li {
    font-size: 1.1rem;
    margin-bottom: 7px;
}

/* Tombol WA melayang di kanan */
.wa-button {
    position: absolute;
    right: 25px;
    bottom: 25px;
    background: #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 5px 18px rgba(0,0,0,0.3);
}

.wa-button img {
    width: 32px;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-big-logo {
        width: 130px;
        height: 130px;
    }

    .hero-right h1 {
        font-size: 2rem;
    }

    .hero-right h2 {
        font-size: 1.4rem;
    }
}

/* ===== GRID & CARD ===== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 20px;
}

/* ===== Gambar Foto Teknisi ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom */
    gap: 20px; /* jarak antar gambar */
    align-items: center; /* rata tengah vertikal */
}

.grid-3 img {
    width: 100%; /* memenuhi kontainer */
    height: auto; /* menjaga aspek rasio */
    border-radius: 10px; /* sudut gambar membulat */
    object-fit: cover; /* menyesuaikan gambar ke dalam kotak tanpa merubah aspek rasio */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* bayangan halus untuk gambar */
}

/* ===== Responsif untuk layar kecil ===== */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di layar kecil */
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr; /* 1 kolom di HP */
    }
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    box-shadow:
        0px 4px 8px rgba(0, 0, 0, 0.04),
        0px 12px 24px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow:
        0px 6px 12px rgba(0, 0, 0, 0.05),
        0px 18px 36px rgba(0, 0, 0, 0.08);
}

/* Mengatur gambar agar ukurannya proporsional dan tidak terlalu besar */
.card img {
    width: 100%;       /* Gambar mengikuti lebar container */
    max-width: 300px;  /* Gambar akan memiliki lebar maksimal 300px */
    height: auto;      /* Menjaga aspek rasio gambar */
    object-fit: cover; /* Menyesuaikan gambar dalam kotak tanpa merubah aspek rasio */
    margin: 0 auto; 
    display: flex;
    justify-content: center;  /* Centering gambar */
}

/* ===== TABLE ===== */

.price-table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.price-table th, .price-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.price-table th {
    background: #003366;
    color: rgb(251, 174, 30);
}

/* ===== TESTIMONI (RAPI & SERAGAM) ===== */

.testimonial-slider {
    position: relative;
    width: 100%;
    max-width: 600px;  /* Atur lebar slider */
    margin: 50px auto;
    overflow: hidden;  /* Menyembunyikan gambar di luar container */
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;  /* Efek transisi geser gambar */
}

.slider-item {
    flex: 0 0 100%;  /* Setiap item slider penuh lebar */
    text-align: center;
}

.slider-item img {
    width: 80%;  /* Gambar bisa disesuaikan */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

button.prev {
    left: 10px;
}

button.next {
    right: 10px;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#testimoni .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    align-items: flex-start; /* supaya foto & teks sejajar rata atas */
}

#testimoni img {
    width: 500px;        /* ukuran foto */
    height: 100px;       /* seragam */
    object-fit: cover;   /* crop tanpa distorsi */
    border-radius: 10px; /* sudut membulat */
    display: block;
    margin: 0 auto;      /* foto center */
    justify-content: left;
}
/* ===== SECTION ===== */
.section {
  position: relative;
  overflow: visible; /* penting biar tombol muncul */
}

/* ===== CAROUSEL ===== */
#carouselExampleIndicators {
  width: 100%;
}

/* ===== ITEM ===== */
.carousel-item {
  text-align: center;
}

/* ===== GAMBAR (ANTI GEPENG) ===== */
#carouselExampleIndicators .carousel-item img {
  width: 100%;
  height: auto;          /* ❗ KUNCI UTAMA */
  max-height: 420px;     /* batas tinggi */
  object-fit: contain;  /* TIDAK CROP */
  display: block;
  margin: 0 auto;
}

/* ===== HP ===== */
@media (max-width: 576px) {
  #carouselExampleIndicators .carousel-item img {
    max-height: 260px;
  }
}

/* ===== TOMBOL KIRI KANAN ===== */
.carousel-control-prev,
.carousel-control-next {
  width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* biar kelihatan di background gelap */
}

/* ===== FAQ ===== */

.section-bg-light-fade-in{
    background: url('backgroundfaqq.jpeg') center/cover no-repeat;
    background-size: cover;  /* Menjaga agar gambar tetap menutupi seluruh area */
    padding: 60px 20px; /* Sesuaikan padding sesuai kebutuhan */
    width: 100%;
    height: 100%;

}
.faq-item {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.section-bg-light-fade-in h2 {
    color: #fff;
}

.contact-section {
    background: #003366; /* biru tua */
    padding: 60px 20px;
    text-align: center;
    color: white;
}
.contact-section h2 {
    color: rgb(251, 174, 30);
}

.contact-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;          /* jarak ikon dan teks */
    margin-bottom: 10px;
}

.wa-icon {
    width: 30px;        /* ukuran ikon */
    height: 30px;
}

.email-icon {
    width: 50px;        /* ukuran ikon */
    height: auto;

}
/* ===== ANIMATIONS ===== */

.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1.2s forwards;
}

.pop {
    opacity: 0;
    transform: scale(.8);
    animation: popIn .8s forwards;
}

.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .4s; }
.delay-3 { animation-delay: .6s; }
.delay-4 { animation-delay: .8s; }

/* Keyframes */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    to { opacity: 1; transform: scale(1); }
}

/* ===== WHATSAPP FLOAT ===== */

.wa-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #000000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 999;
}

.wa-float img {
    width: 40px;
}

/* ===== FOOTER ===== */

footer {
    text-align: center;
    background: #222;
    color: white;
    padding: 20px;
    margin-top: 40px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* Hide the checkbox */
#nav-toggle {
    display: none;
}

/* Hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 4px;
    transition: 0.3s;
}

/* Navigation menu default (desktop) */
.menu {
    display: flex;
    gap: 20px;
}

/* ===== MOBILE MODE ===== */
@media (max-width: 768px) {

    .hamburger {
        display: flex;
        z-index: 10000;
    }

    /* Mobile menu hidden */
    .menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        text-align: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    
}

