/* --- 1. SETUP & VARIABLES --- */
:root {
    /* Palet Warna */
    --primary-color: #2563EB;   /* Royal Blue */
    --primary-dark: #1D4ED8;    /* Darker Blue for hover */
    --accent-color: #10B981;    /* Vibrant Green */
    --text-dark: #1F2937;       /* Dark Grey for Headings */
    --text-light: #6B7280;      /* Light Grey for Body */
    --bg-light: #F3F4F6;        /* Light Background */
    --footer-bg: #182335; 
    --footer-text-light: #C4C9D3;
    --white: #ffffff;
    
    /* Konfigurasi Ukuran */
    --container-width: 1200px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    transition: opacity 0.5s ease-in-out; 
    opacity: 1; 
}

/* Utility Class untuk mencegah scrolling saat menu mobile terbuka */
body.no-scroll {
    overflow: hidden;
}

h1, h2, h3, .logo, .btn {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }

/* --- 2. NAVBAR & STICKY --- */
.navbar {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1050;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease-in-out; 
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo .dot { color: var(--accent-color); }

.nav-menu a {
    color: var(--text-dark);
    margin: 0 15px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a i {
    margin-right: 5px; /* Jarak Ikon di Navigasi */
}

.nav-menu a:hover { color: var(--primary-color); }

/* REVISI: Styling untuk Link Navigasi yang Sedang Aktif (Berwarna Biru) */
.nav-menu a.active-link {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color); 
    padding-bottom: 3px; 
}

.nav-actions { display: flex; gap: 10px; }

.hamburger {
    display: none; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-dark);
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.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);
}


/* --- 3. BUTTONS --- */
.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
    text-align: center;
}

.btn i {
    margin-right: 8px; /* Jarak Ikon di Tombol */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-dark);
    border: 1px solid #ddd;
}

.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
}

/* --- 4. HERO SECTION --- */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(to right, #ffffff, #f9faff); 
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

/* Badge Styling (Tambahan Warna) */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    /* Default Blue */
    background-color: #E0F2FE; 
    color: var(--primary-color); 
}

.badge.success { background-color: #D1FAE5; color: #059669; }
.badge.warning { background-color: #FEF9C3; color: #FBBF24; }
.badge.alert { background-color: #FEE2E2; color: #DC2626; }

.hero-text h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #111827;
}

.hero-text p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: #4B5563;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.trust-indicators {
    font-size: 0.9rem;
    color: #6B7280;
    display: flex;
    gap: 20px;
}

/* --- 4.5 HERO IMAGE SLIDER --- */
.hero-image-slider {
    flex: 1;
    max-width: 550px;
    position: relative;
    overflow: hidden; 
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.slides {
    display: flex;
    width: 300%; 
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.slide {
    width: calc(100% / 3); 
    position: relative;
    text-align: center;
}

.slide img {
    width: 100%;
    height: 450px; 
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-weight: 600;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slider-dots .dot.active {
    background: var(--white);
    border: 1px solid var(--primary-color);
}


/* --- 5. PRICING SECTION --- */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
    transform: scale(1.05); 
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-header h3 { font-size: 1.5rem; margin-bottom: 5px; }
.card-header .desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.price-tag { margin: 20px 0 30px; }
.price-tag .currency { font-size: 1.2rem; font-weight: 600; vertical-align: top; }
.price-tag .amount { font-size: 3rem; font-weight: 700; color: var(--text-dark); }
.price-tag .period { color: var(--text-light); font-size: 1rem; }

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child { border-bottom: none; }
.features-list li.disabled { color: #9CA3AF; text-decoration: line-through; }

.full-width { width: 100%; display: block; text-align: center; }

/* --- 5.5 LAYANAN JASA (SERVICES SECTION) --- */
.services-section {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
    background-color: #ffffff;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
}

.services-cta {
    text-align: center;
    padding: 40px;
    background-color: #fcfcfc;
    border: 1px dashed #ddd;
    border-radius: var(--border-radius);
}

.services-cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.services-cta .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* --- 5.6 PORTFOLIO PAGE SECTION --- */
.portfolio-page-section {
    padding: 100px 0 80px;
    background-color: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-item h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin: 15px 15px 5px;
}

.portfolio-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0 15px 20px;
}

.portfolio-item .btn {
    margin-top: 15px;
    width: 100%;
    display: block;
    padding: 10px 20px;
    border-radius: 0;
}

.portfolio-item .btn-outline {
    border: none;
    border-top: 1px solid #e5e7eb;
}

.portfolio-cta {
    text-align: center;
    padding: 50px 0 0;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}


/* --- 6. CTA / HUBUNGI KAMI SECTION (KONTAK) --- */
.cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    margin: 0;
}

.cta-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--white);
    padding: 0 40px;
}

.cta-text { max-width: 60%; }
.cta-text h2 { color: var(--white); font-size: 2.2rem; line-height: 1.3; margin-bottom: 15px; }
.cta-text p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }

/* Styling Formspree CTA (FINAL) */
.cta-form {
    display: flex;
    gap: 15px;
    min-width: 350px;
    justify-content: flex-end;
}
.cta-form input[type="email"] {
    padding: 15px 20px;
    border: none;
    border-radius: var(--border-radius);
    flex-grow: 1;
    font-size: 1rem;
}
.cta-form input[type="email"]::placeholder {
    color: #9CA3AF;
}
.cta-form button[type="submit"] {
    background-color: var(--accent-color); 
    color: var(--text-dark);
    padding: 15px 30px;
    font-weight: 700;
    transition: 0.3s;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
}


/* --- 7. FOOTER SECTION --- */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text-light);
    padding-top: 60px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1.5fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 { color: var(--white); font-size: 1.1rem; font-weight: 600; margin-bottom: 25px; }
.footer-col p { margin-bottom: 15px; }
.footer-col .logo { color: var(--white); margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--footer-text-light); transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--primary-color); }

.payment-logos span {
    display: inline-block;
    background-color: #374151; 
    color: var(--white);
    padding: 5px 10px;
    margin-right: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* --- Tambahan Styling E-Wallet di Footer --- */
.payment-logos .ewallet {
    font-weight: 700;
    color: var(--text-dark); /* Mengganti warna teks default */
    background-color: var(--white); /* Mengganti warna latar default */
    border: 1px solid #ddd;
}

.payment-logos .ovo {
    color: var(--white);
    background-color: #4A258C; /* Warna khas OVO */
    border-color: #4A258C;
}

.payment-logos .dana {
    color: var(--white);
    background-color: #108DE9; /* Warna khas DANA */
    border-color: #108DE9;
}

.payment-logos .gopay {
    color: var(--white);
    background-color: #00AA13; /* Warna khas GoPay */
    border-color: #00AA13;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    background-color: var(--text-light);
    color: var(--footer-bg);
    text-align: center;
    border-radius: 50%;
    margin-right: 8px;
    transition: 0.3s;
}

.social-links a:hover { background-color: var(--primary-color); color: var(--white); }

.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; }
.footer-bottom p { margin: 0; color: var(--footer-text-light); }


/* --- 8. BOTTOM NAVBAR (MOBILE ONLY) --- */
.bottom-navbar {
    display: none; 
    position: fixed;
    bottom: 0; 
    left: 0;
    width: 100%;
    height: 60px; 
    background-color: var(--white);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9995; /* Di atas navbar utama, di bawah float-btn */
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    flex-grow: 1;
    font-size: 0.75rem;
    padding: 5px;
    transition: color 0.3s;
    text-align: center;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.bottom-nav-item:hover {
    color: var(--primary-color);
}

/* REVISI: Status Aktif Bottom Navbar (Berwarna Biru) */
.bottom-nav-item.active-nav-item {
    color: var(--primary-color); 
    font-weight: 600;
}


/* --- 9. FLOATING BUTTONS (SCROLL-TOP & WHATSAPP) --- */
.float-btn {
    position: fixed;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    text-align: center;
    line-height: 55px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 9998; /* Z-index tertinggi agar di atas navigasi (9995) */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: none;
    bottom: 30px; /* Default di desktop/tablet */
}

/* WhatsApp Button Styling (PINNED KE KIRI) */
.whatsapp-float {
    left: 20px; 
    background-color: #25D366; 
    color: var(--white);
    animation: pulse 1.8s infinite; 
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1); 
    animation: none; 
}

/* Scroll to Top Button Styling (PINNED KE KANAN) */
.scroll-to-top {
    right: 20px; 
    background-color: var(--primary-color);
    color: var(--white);
    display: none; 
}

.scroll-to-top:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.scroll-to-top.show {
    display: block;
}

/* Aturan Keyframes untuk Animasi Pulse */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --- 11. PRELOADER FEATURE --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white); 
    z-index: 99999; 
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; 
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(37, 99, 235, 0.2); 
    border-top-color: var(--primary-color); 
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- 12. PAGE TRANSITION EFFECT --- */
.fade-out {
    opacity: 0 !important;
}


/* --- 10. RESPONSIVE MEDIA QUERIES --- */

@media (max-width: 992px) {
    .pricing-card.popular { transform: scale(1); }
    .pricing-card.popular:hover { transform: translateY(-10px); }

    /* CTA Container */
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 0 20px; 
    }

    .cta-text { max-width: 100%; }
    
    /* FIX: Form CTA */
    .cta-form { 
        flex-direction: column;
        width: 100%; 
        max-width: 350px; 
        margin: 0 auto; 
        min-width: 0;
    }
    .cta-form input[type="email"] {
        width: 100%;
        text-align: center;
    }
    .cta-form button[type="submit"] {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: row; 
        justify-content: space-between;
    }
    
    .hamburger { display: block; }
    
    .nav-menu {
        position: absolute;
        top: 80px; 
        left: 0;
        width: 100%;
        height: auto;
        flex-direction: column;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        transform: translateY(-100%); 
        transition: transform 0.4s ease-in-out;
        z-index: 9995; /* Di bawah float-btn */
        display: none; 
    }

    .nav-menu.active {
        transform: translateY(0);
        display: flex; 
        opacity: 1;
    }
    
    .nav-menu a {
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
        margin: 0;
    }
    
    .nav-actions { display: none; } 

    .hero-container {
        flex-direction: column-reverse; 
        text-align: center;
    }

    /* FIX SLIDER: Slider mengambil lebar penuh dan kurangi tinggi */
    .hero-image-slider {
        max-width: 100%; 
        margin-top: 30px; 
    }
    
    .slide img {
        height: 300px; 
    }
    
    .hero-text h1 { font-size: 2rem; }
    
    .hero-buttons { justify-content: center; flex-direction: column; }
    
    .hero-image { text-align: center; }
    
    .trust-indicators { justify-content: center; flex-wrap: wrap; }
    
    /* FIX MOBILE CTA BUTTONS */
    .cta-form {
        max-width: none !important; 
        width: 90%; 
        margin: 0 auto;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-col.about {
        grid-column: span 2;
        margin-bottom: 20px;
    }

    /* REVISI FINAL: Bottom Navbar Styling */
    .bottom-navbar {
        display: flex; 
    }
    
    /* Tambah padding bawah pada body setinggi navbar agar konten tidak tertutup */
    body {
        padding-bottom: 60px; 
    }

    /* REVISI FINAL: Naikkan posisi Bottom Navbar agar tidak tertutup */
    .float-btn {
        /* Tinggi Bottom Navbar 60px + 15px margin = 75px */
        bottom: 75px !important; 
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1rem;
    }

    .whatsapp-float {
        left: 20px; 
    }

    .scroll-to-top {
        right: 20px; 
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .payment-logos, .social-links { text-align: center; }
    
    .slide img {
        height: 250px; 
    }
}