/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2980b9;      /* Biru Laut */
    --secondary-color: #16a085;    /* Hijau Toska */
    --dark: #2c3e50;               /* Biru Gelap Keabuan */
    --light: #f0f9ff;              /* Biru Sangat Muda / Krem */
    --text-color: #34495e;         /* Biru Keabuan */
    --border-color: #E5E7EB;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Pembungkus halaman untuk mencegah horizontal scroll di mobile */
.page-wrapper {
    position: relative;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Jarak antara logo dan teks */
    text-decoration: none; /* Jika ingin logo bisa diklik tanpa garis bawah */
}

.logo-img {
    height: 40px; /* Sesuaikan tinggi logo */
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.5rem; /* Sedikit mengurangi ukuran font untuk keseimbangan */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 128, 185, 0.3);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark);
}

/* Hero Section */
.hero {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.feature-item .icon {
    background: white;
    color: var(--primary-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* About Section */
.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Benefit Section */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--secondary-color);
    color: white;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-number {
    font-size: 4rem;
    font-weight: bold;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.benefit-card p {
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

/* Process Section */
.process {
    background: var(--light);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* Testimonial Section */
.testimonial {
    padding-bottom: 7rem; /* Beri ruang lebih untuk pagination */
}

.testimonial-slider {
    padding-bottom: 50px; /* Ruang untuk pagination */
    overflow: visible; /* Agar gambar tidak terpotong */
    margin-top: 50px; /* Beri ruang di atas untuk gambar */
}

.testimonial-card {
    background: white;
    padding: 2.5rem 2rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    /* Hapus hover transform karena interaksi sekarang ada di slider */
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
}

.stars {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-name {
    font-weight: bold;
    color: var(--primary-color);
}

/* Swiper Pagination Styles */
.swiper-pagination-bullet {
    background-color: var(--secondary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color);
    opacity: 1;
}

/* FAQ Section */
.faq {
    background: var(--light);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.faq-item h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 200;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: inherit; /* Mengambil warna dari elemen induk (putih) */
    text-decoration: none; /* Menghilangkan garis bawah */
    transition: text-decoration 0.3s;
}

.footer-bottom a:hover {
    text-decoration: underline; /* Menambahkan garis bawah saat hover */
}

/* Contact Section */
.contact {
    background: var(--secondary-color);
    color: white;
}

.contact .section-title, .contact .section-subtitle {
    color: white;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: white;
}

.contact-form input:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on navbar height */
        gap: 0;
        flex-direction: column;
        background-color: var(--light);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 999; /* Di bawah navbar (1000) tapi di atas konten lain */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .benefit-grid,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }

    .nav-menu li {
        padding: 1rem 0;
    }
}

/* Promo Popup */
.promo-popup {
    /* Posisi diatur oleh container */
    position: absolute;
    bottom: 0;
    right: 0; 
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 320px;
    width: calc(100vw - 40px); /* Lebar popup di mobile */
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.promo-popup.show {
    transform: translateY(0);
    opacity: 1;
}

.promo-popup p {
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
}

#closePromo {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500; /* Menyamakan ketebalan font dengan tombol WA */
}

#closePromo:hover {
    background: #3498db; /* A slightly lighter shade of primary */
}

.popup-actions {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Membuat item meregang setinggi kontainer */
    gap: 1rem;
    margin-top: 1.5rem;
}

.popup-link {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.popup-link:hover {
    color: white;
    text-decoration: underline;
}

/* Tombol WhatsApp di Popup */
.btn-whatsapp-popup {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Menengahkan konten di dalam tombol */
    background-color: #16A085; /* Warna hijau WhatsApp */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.3s;
    gap: 0.5rem;
}

.btn-whatsapp-popup:hover {
    background-color: #1EBE57; /* Warna hijau lebih gelap saat hover */
}

.btn-whatsapp-popup img {
    height: 18px; /* Sesuaikan ukuran ikon */
}

/* Tombol Kembali ke Atas */
#toTopBtn {
    display: flex;
    /* Posisi diatur oleh container */
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1002;
    border: none;
    outline: none; 
    background-color: var(--dark);
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Bentuk bulat */
    font-size: 22px;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none; /* Tidak bisa diklik saat transparan */
    transition: opacity 0.7s ease-in-out, background-color 0.7s, transform 0.5s ease-in-out;
}

#toTopBtn:hover {
    background-color: #34495e;
}

/* Kelas untuk menampilkan tombol */
#toTopBtn.show {
    opacity: 1;
    pointer-events: auto; /* Bisa diklik saat terlihat */
}

/* Sembunyikan tombol ke atas saat popup promo muncul */
.promo-popup.show + #toTopBtn.show {
    opacity: 0;
    pointer-events: none;
}

/* Wadah untuk elemen fixed */
.fixed-elements-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}