/* General Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

/* Efek Judul Section */
.section-title {
    font-size: 32px;
    color: #002d5d;
    margin-bottom: 40px;
    position: relative;
    width: fit-content;
}

.section-title.text-center {
    margin-left: auto;
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #ffcc00;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-title:hover::after {
    width: 100%;
}

/* Header & Nav */
header {
    background: #002d5d;
    padding: 20px 0;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.logo .ans { color: #fff; } /* Putih */
.logo .reload { color: #ffcc00; } /* Kuning */

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #f0f0f0;
    margin-left: 25px;
    font-weight: 600;
    transition: 0.3s;
}

/* Memberikan jarak antara ikon dan teks navigasi */
.nav-links li a i {
    margin-right: 8px;
}

.nav-links li a:hover { color: #ffcc00; }

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #002d5d;
        flex-direction: column;
        padding: 20px 0;
        /* box-shadow: 0 5px 10px rgba(0,0,0,0.1); */
        display: none;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links li {
        margin: 15px 0;
    }
    .nav-links li a {
        margin-left: 0;
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: #f4f9ff;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 48px; color: #002d5d; margin-bottom: 20px; }
.hero-content p { color: #333; }
.hero-image { flex: 1; text-align: right; }
.hero-image img { width: 80%; animation: float 3s ease-in-out infinite; }

/* Efek Ilustrasi Background Hero */
.hero-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 45, 93, 0.05), rgba(255, 204, 0, 0.15));
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-download {
    display: inline-block;
    padding: 15px 30px;
    background: #ffcc00;
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-download:hover {
    background: #002d5d;
    color: #fff;
    transform: scale(1.05);
}

.btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    color: #002d5d;
    text-decoration: none;
    border: 2px solid #002d5d;
    border-radius: 50px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-contact:hover {
    background: #002d5d;
    color: #fff;
    transform: scale(1.05);
}

/* Services Section */
.services-section {
    background: #f4f9ff;
    padding-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 45, 93, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent; /* Garis transparan sebagai ruang efek glow */
}

.service-card i {
    font-size: 40px;
    color: #002d5d;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00a8ff; /* Garis outline berwarna muda */
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.4); /* Efek cahaya Glow menyebar */
}

.service-card:hover i {
    color: #00a8ff; /* Warna ikon menjadi muda */
}

/* Produk Unggulan */
.produk-unggulan { padding: 80px 0; background: #fff; }
.produk-unggulan .container { 
    display: flex; 
    align-items: flex-start; /* Agar judul sejajar rapi di atas */
    gap: 100px; /* Jarak ekstra agar gambar tidak menabrak card kanan */
}

.produk-left { flex: 0.8; }
.produk-right { flex: 1.5; } /* Card sebelah kanan diberi ruang sedikit lebih luas */

.produk-left img { 
    width: 80%; 
    border-radius: 15px; 
    transform: scale(1.5); /* Memperbesar gambar 1.5x lipat */
    transform-origin: top center; /* Titik perbesaran dari atas ke bawah */
    display: block; /* Agar elemen dapat diratakan ke tengah dengan margin */
    margin: 40px auto 0; /* Memberikan ruang napas di atas dan rata tengah horizontal */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.product-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border-left: 5px solid #ffcc00;
    transition: 0.3s;
    cursor: pointer;
    gap: 20px;
}

.product-info {
    text-align: left;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-info p {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.5;
}

.product-card:hover {
    background: #0056b3;
    color: #fff;
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-card i { font-size: 60px; color: #0056b3; }
.product-card:hover i { color: #fff; }

/* History Section */
.history-section { padding: 80px 0; background: #f4f8fb; }
.history-section .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.history-left { flex: 1.2; position: relative; z-index: 1; }
.history-right { 
    flex: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative; 
    z-index: 2; 
}
.history-right img { 
    width: 100%; 
    max-width: 400px; 
}

.history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.history-card {
    padding: 30px 20px;
    background: #ffffff;
    border: 2px solid #e0e6ed; /* Outline agar jelas */
    border-radius: 15px;
    transition: 0.4s;
    cursor: pointer;
}

.history-card i { font-size: 36px; color: #0056b3; margin-bottom: 15px; }

.history-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 45, 93, 0.1);
    border-color: #0056b3; /* Outline berubah warna biru saat disorot */
}

.history-card p {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    line-height: 1.6;
}

/* Steps Section */
.steps-section { padding: 80px 0; text-align: center; }
.steps-grid {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-top: 40px;
}

.step-item {
    flex: 1;
    background: #f9f9f9;
    padding: 30px 20px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.step-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 45, 93, 0.2);
    background: #ffffff;
    border-top-color: #ffcc00;
}

.step-number-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 48px;
    font-weight: bold;
    color: #002d5d;
    opacity: 0.15;
    transition: 0.3s;
}

.step-icon {
    font-size: 50px;
    margin: 0 auto 20px;
    transition: 0.3s;
    /* Gradient Color */
    background: linear-gradient(to bottom, #002d5d, #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block; /* Necessary for background-clip to work well */
}

.step-item:hover .step-icon {
    transform: rotate(-15deg) scale(1.1);
}

.step-item p {
    font-size: 14px;
    color: #666;
    margin-top: 12px;
    padding: 0 10px;
    line-height: 1.6;
}

/* Footer */
footer { background: #002d5d; color: #fff; padding: 60px 0 20px; }
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-left, .footer-middle, .footer-right {
    flex: 1; /* Membuat ke-3 kolom membagi lebar secara rata */
}

.footer-middle h3, .footer-right h3 {
    margin-bottom: 20px;
}

.footer-right p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-right p i {
    margin-right: 12px;
    margin-top: 5px; /* Menyesuaikan tinggi ikon dengan baris pertama teks */
    width: 20px;
    text-align: center;
}

.footer-right p span {
    text-align: left;
}

.footer-links {
    margin-top: 15px;
    font-size: 14px;
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links a:hover {
    color: #ffcc00;
}
.footer-links a i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

.social-icons a {
    color: #fff; font-size: 24px; margin-right: 15px; transition: 0.3s; display: inline-block;
}
.social-icons a:hover { color: #ffcc00; transform: scale(1.2); }

.text-center { text-align: center; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsiveness untuk Hero & Produk di Mobile */
@media (max-width: 768px) {
    .hero .container,
    .produk-unggulan .container,
    .history-section .container {
        flex-direction: column;
        text-align: center;
    }
    .section-title {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .hero-image {
        margin-top: 40px;
        text-align: center;
    }
    .hero-image img {
        width: 100%;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    .produk-left {
        margin-bottom: 30px;
    }
    .produk-left img {
        transform: scale(1); /* Reset ukuran gambar pada versi mobile agar tidak meluap */
        margin-top: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .history-grid {
        grid-template-columns: 1fr;
    }
    .history-right {
        margin-left: 0; /* Reset margin kiri pada mobile */
        margin-top: 30px; /* Berikan jarak dari atas */
    }
    .steps-grid {
        flex-direction: column;
        gap: 30px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .footer-right p {
        justify-content: center; /* Menjaga agar kontak tetap di tengah saat tampilan HP */
    }
}