html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.6; color: #333; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }

/* Navbar */
nav { background: transparent; padding: 10px 0; position: sticky; top: 0; z-index: 100; transition: all 0.4s ease; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 40px; font-weight: bold; color: #0056b3; transition: color 0.4s ease; }
.logo span { color: #333; transition: color 0.4s ease; }
nav ul { display: flex; list-style: none; gap: 25px; }
nav ul a { text-decoration: none; color: #333; font-weight: 500; transition: color 0.4s ease; position: relative; }
nav ul a.active { color: #0056b3; font-weight: 700; }
nav ul a:not(.btn-download)::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: #0056b3; transition: width 0.3s ease; }
nav ul a:not(.btn-download):hover::after, nav ul a.active::after { width: 100%; }
.btn-download { background: #0056b3; color: #fff !important; padding: 8px 15px; border-radius: 5px; transition: all 0.4s ease; }

nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Hero Banner */
.hero { background: linear-gradient(to right, #0056b3, #007bff); color: #fff; padding: 120px 0; }
.hero-flex { display: flex; align-items: center; gap: 40px; }
.hero-left { flex: 1; }
.hero-left h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-left h1 span { color: #f1c40f; }
.hero-left p { font-size: 1.1rem; margin-bottom: 30px; line-height: 1.6; }
.hero-right { flex: 1; text-align: center; }
.hero-right img { width: 450px; max-width: 100%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }
.btn-primary { background: #fff; color: #0056b3; border: none; padding: 12px 30px; font-size: 1rem; border-radius: 30px; cursor: pointer; font-weight: bold; display: inline-block; text-decoration: none; transition: all 0.3s ease; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Info Cards Section */
.info-cards {
    position: relative;
    z-index: 50; /* Lebih rendah dari nav, lebih tinggi dari hero/produk */
    margin-top: -80px; /* Menarik section ke atas */
    padding-bottom: 80px; /* Memberi ruang sebelum section berikutnya */
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
.info-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
}
.info-card i { font-size: 2.5rem; color: #0056b3; margin-bottom: 15px; }
.info-card h4 { font-size: 1.1rem; color: #333; }

/* Produk Section */
.produk { padding: 0 0 80px 0; background: #fff; }
.section-title { text-align: center; margin-bottom: 50px; font-size: 2rem; color: #0056b3; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(to right, #0056b3, #00d2ff); border-radius: 2px; }
.produk-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; }
.produk-side .item { display: flex; align-items: center; gap: 15px; margin-bottom: 30px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border: 1px solid #0056b3; transition: all 0.3s ease; cursor: pointer; }
.produk-side .item:hover { transform: translateY(-5px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.produk-side i { font-size: 2rem; color: #0056b3; }
.side-right { text-align: right; }
.side-right .item { justify-content: flex-end; }
.produk-center img { width: 100%; max-width: 480px; display: block; margin: auto; }

/* Fitur Section */
.fitur { padding: 80px 0; background: #f9f9f9; }
.fitur-flex { display: flex; align-items: center; gap: 50px; }
.fitur-left { flex: 1; }
.fitur-left h2 { font-size: 2rem; color: #0056b3; position: relative; padding-bottom: 15px; margin-bottom: 30px; }
.fitur-left h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px; height: 4px; background: linear-gradient(to right, #0056b3, #00d2ff); border-radius: 2px; }
.fitur-item { display: flex; align-items: center; justify-content: flex-start; gap: 20px; margin-top: 20px; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.fitur-item:hover { background-color: #f0f7ff; transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.1); }
.fitur-item i { font-size: 2.5rem; color: #0056b3; }
.fitur-right { flex: 1; }
.fitur-right img { width: 100%; border-radius: 15px; }

/* H2H Section */
.h2h { padding: 80px 0; background: #fff; }
.h2h-flex { display: flex; align-items: center; gap: 60px; }
.h2h-left { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.h2h-illustration { width: 250px; height: 250px; background: linear-gradient(135deg, #f0f7ff, #e0efff); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 15px 30px rgba(0,86,179,0.1); position: relative; margin: 20px 0; }
.h2h-illustration::before { content: ''; position: absolute; width: 290px; height: 290px; border: 2px dashed #00d2ff; border-radius: 50%; animation: spin 20s linear infinite; }
.h2h-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.h2h-lines line { stroke: #00d2ff; stroke-width: 2; stroke-dasharray: 6 4; animation: flow 5s linear infinite; opacity: 0.6; }
.main-server { position: relative; z-index: 2; background: #fff; width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 20px rgba(0,86,179,0.15); }
.main-server i { font-size: 3rem; color: #0056b3; margin: 0; }
.node { position: absolute; z-index: 2; background: #fff; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,86,179,0.1); transition: transform 0.3s ease; }
.node:hover { transform: scale(1.1); }
.node i { font-size: 1.5rem; color: #00d2ff; margin: 0; }
.node-1 { top: 20px; left: 20px; }
.node-2 { top: 20px; right: 20px; }
.node-3 { bottom: 20px; left: 50%; transform: translateX(-50%); }
.node-3:hover { transform: translateX(-50%) scale(1.1); }
.h2h-right { flex: 1; }
.h2h-right h2 { font-size: 2rem; color: #0056b3; position: relative; padding-bottom: 15px; margin-bottom: 20px; }
.h2h-right h2::after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px; height: 4px; background: linear-gradient(to right, #0056b3, #00d2ff); border-radius: 2px; }
.h2h-right p { font-size: 1.05rem; color: #555; margin-bottom: 30px; line-height: 1.8; }
.h2h-list { list-style: none; }
.h2h-list li { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 1.05rem; color: #333; font-weight: 500; }
.h2h-list i { color: #00d2ff; font-size: 1.5rem; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes flow { 100% { stroke-dashoffset: -100; } }

.h2h-buttons { display: flex; gap: 15px; margin-top: 40px; z-index: 5; flex-wrap: wrap; justify-content: center; }
.btn-h2h { padding: 10px 25px; border-radius: 30px; font-weight: bold; text-decoration: none; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.btn-h2h-primary { background: #0056b3; color: #fff; box-shadow: 0 4px 10px rgba(0,86,179,0.2); border: 2px solid #0056b3; }
.btn-h2h-primary:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,86,179,0.3); }
.btn-h2h-secondary { background: #fff; color: #0056b3; border: 2px solid #0056b3; }
.btn-h2h-secondary:hover { background: #0056b3; color: #fff; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,86,179,0.2); }

/* Steps */
.steps { padding: 80px 0; background: #f4f9ff; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.step-card { padding: 40px 20px 30px; background: #fff; border-radius: 15px; position: relative; transition: all 0.4s ease; cursor: pointer; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); border: 1px solid #e0efff; z-index: 1; }
.step-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 5px; background: linear-gradient(to right, #0056b3, #00d2ff); transition: width 0.4s ease; z-index: 10; }
.step-card:hover::before { width: 100%; }
.step-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 86, 179, 0.1); border-color: #00d2ff; }

.step-num { position: absolute; top: -10px; right: 0px; font-size: 7rem; font-weight: 900; color: rgba(0, 86, 179, 0.04); line-height: 1; z-index: 0; transition: color 0.4s ease; }
.step-card:hover .step-num { color: rgba(0, 210, 255, 0.08); }

.step-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #0056b3, #00d2ff); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px auto; box-shadow: 0 10px 20px rgba(0, 86, 179, 0.3); transition: transform 0.4s ease; position: relative; z-index: 2; }
.step-card:hover .step-icon { transform: scale(1.1) rotate(10deg); }
.step-icon i { font-size: 2.2rem; color: #fff; margin: 0; }

.step-card h4 { font-size: 1.3rem; margin-bottom: 12px; color: #0056b3; font-weight: 700; position: relative; z-index: 2; }
.step-card p { font-size: 0.95rem; color: #666; line-height: 1.5; position: relative; z-index: 2; }

/* Footer */
footer { background: #333; color: #fff; padding: 50px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.socials { display: flex; gap: 15px; margin-top: 15px; }
.socials i { font-size: 1.5rem; color: #fff; }
.footer-right h4 { text-align: left; margin-bottom: 20px; }
.footer-right p { display: flex; justify-content: flex-start; align-items: flex-start; gap: 15px; margin-bottom: 15px; font-size: 0.95rem; text-align: left; }
.footer-right p i { font-size: 1.2rem; margin-top: 3px; width: 20px; text-align: left; }
.footer-right a { color: #fff; text-decoration: none; transition: opacity 0.3s ease; }
.footer-right a:hover { opacity: 0.8; text-decoration: underline; }
.footer-left h3 span { color: #0056b3; }
.footer-links { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #ccc; font-size: 0.9rem; text-decoration: none; transition: color 0.3s ease; display: inline-flex; align-items: center; gap: 10px; width: fit-content; }
.footer-links a i { width: 20px; text-align: center; }
.footer-links a:hover { color: #fff; text-decoration: underline; }


.footer-credit {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
}
.footer-credit p:last-child { font-size: 0.8rem; color: #888; margin-top: 5px; }
.footer-credit p:last-child a { color: #888; text-decoration: none; transition: color 0.3s ease; }
.footer-credit p:last-child a:hover { color: #00d2ff; }

/* =========================================
   Back to Top Button
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #0056b3;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
    z-index: 1000;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #007bff; transform: translateY(-5px); }

/* =========================================
   Scroll Reveal Animation
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Responsive / Mobile Styles
   ========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .nav-flex { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    /* Hero Banner */
    .hero { padding: 50px 0; }
    .hero-flex { flex-direction: column; text-align: center; }
    .hero-left h1 { font-size: 2.2rem; }
    
    /* Info Cards */
    .info-cards {
        margin-top: -60px;
        padding-bottom: 60px;
    }
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Produk Section */
    .produk-grid { grid-template-columns: 1fr; }
    .produk-center { order: -1; margin-bottom: 30px; } /* Memindahkan gambar ke atas */
    .produk-side .item { flex-direction: column; text-align: center; gap: 10px; }
    .side-right .item { flex-direction: column-reverse; } /* Memastikan ikon selalu di atas teks */
    
    /* Fitur Section */
    .fitur-flex { flex-direction: column; text-align: center; }
    .fitur-item { flex-direction: column; justify-content: center; text-align: center; gap: 15px; }
    
    /* H2H Section */
    .h2h-flex { flex-direction: column; text-align: center; }
    .h2h-right h2::after { left: 50%; transform: translateX(-50%); }
    .h2h-list { display: inline-block; text-align: left; }

    /* Steps Section */
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .socials { justify-content: center; }
    .footer-links { align-items: center; }
    .footer-right h4 { text-align: left; }
    .footer-right p { justify-content: flex-start; text-align: left; }
}

/* Untuk layar handphone berukuran sangat kecil */
@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid { grid-template-columns: 1fr; }
}