:root {
    --primary-red: #e62222;
    --dark-text: #1a1a1a;
    --med-text: #4a4a4a;
    --light-grey: #f8fafc;
    --card-border: #e2e8f0;
    --dark-red: #b02a37;
    --accent-yellow: #ffc107;
}

* {
    max-width: 100%;
}

html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #fffdf5;
    color: var(--dark-text);
    position: relative;
}

/* Background Shapeless (Efek kuning/kemerahan samar di background) */
body::before {
    content: "";
    position: fixed;
    width: 800px;
    height: 800px;
    top: -200px;
    right: -200px;
    background: radial-gradient(
        circle,
        rgba(255, 220, 100, 0.15) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
    background-color: #ffffff;
    padding: 20px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-red) !important;
    letter-spacing: -1px;
}

.nav-link {
    color: var(--med-text) !important;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 12px;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 80px 0 60px 0;
}

/* Teks Judul Besar (Belanja Dekat & Praktis) */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    color: var(--dark-text);
    margin-bottom: 25px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Sub-judul (Layanan Digital...) */
.hero-subtitle {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--med-text);
    margin-bottom: 20px;
}

/* Deskripsi panjang */
.hero-description {
    font-size: 1.05rem;
    color: var(--med-text);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 550px;
}

/* Container untuk logo full (Burung Enggang + Pita Merah) */
.logo-full-container {
    background: #ffffff;
    padding: 2px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: inline-block;
    border: 1px solid var(--card-border);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo-full-container img {
    max-width: 100%;
    border-radius: 20px;
}

/* Mockup Tablet di Kanan */
.tablet-mockup-container {
    position: relative;
    text-align: right;
    /* max-width: 100%; */
}

.tablet-img {
    width: 100%;
    max-width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 30px;
}

/* --- FEATURE CARDS SECTION --- */
.features-section {
    padding: 60px 0 100px 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 25px;
    padding: 40px;
    text-align: left;
    height: 100%;
    transition: 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-red);
}

/* Container Ikon di atas kartu */
.icon-container {
    width: 70px;
    height: 70px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 30px;
    background-color: #ffffff;
}

.card-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem;
    color: var(--med-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

/* List item kecil di bawah deskripsi kartu (Point of sale, Kontrol Stok, dll) */
.card-detail-item {
    font-size: 0.9rem;
    color: var(--med-text);
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.card-detail-item i {
    color: var(--primary-red);
    margin-right: 10px;
    font-size: 1.1rem;
}

.btn {
    white-space: normal;
}

/* Tombol di bawah kartu */
.btn-card {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 25px;
    width: 100%;
    transition: 0.3s;
}

/* Tombol Daftar Sekarang (Merah Solid) */
.btn-card-red {
    background-color: var(--primary-red);
    color: white;
    border: none;
}

.btn-card-red:hover {
    background-color: #c91a1a;
}

/* Tombol Lihat Demo (Outline/Light) */
.btn-card-outline {
    background-color: #fff8f0;
    /* Kuning sangat pudar */
    color: var(--primary-red);
    border: 1px solid rgba(230, 34, 34, 0.2);
}

.btn-card-outline:hover {
    background-color: #ffe0b3;
}

/* Ikon kecil di paling bawah footer (opsional, sesuai mockup) */
.footer-icons-row {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    margin-top: 50px;
}

.footer-icons-row img {
    max-height: 25px;
    margin: 0 15px;
    opacity: 0.6;
}

.footer-category-icons i {
    transition: 0.3s;
    cursor: default;
}

/* Efek hover halus pada ikon kategori */
.footer-category-icons i:hover {
    color: #c32026 !important;
    /* Berubah jadi Merah ItahMili saat di-hover */
    transform: scale(1.1);
}

.footer-bottom-links a:hover {
    color: #c32026 !important;
    text-decoration: underline !important;
}

.row {
    margin-right: 0;
    margin-left: 0;
}

/* Garis pemisah tipis di atas copyright */
.row.align-items-center.pt-4 {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.pre-footer {
    /* Menggunakan gradasi hijau seperti gambar referensi,
       atau ganti ke merah (#c32026) jika ingin sesuai tema ItahMili */
    background: #fffdf5;
    color: #000000;
}

/* Jika ingin tema MERAH ItahMili, gunakan ini: */

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: #f8b517;
    /* Kuning ItahMili saat hover */
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--card-border);
}

.footer-category-icons img {
    height: 18px;
    width: auto;
    margin: 0 6px;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-category-icons img:hover {
    transform: scale(1.1);
    opacity: 1;
}

.footer-bottom-links a {
    transition: 0.3s;
}

.footer-bottom-links a:hover {
    color: #c32026 !important;
    text-decoration: underline !important;
}

.footer-socials i {
    font-size: 18px;
    transition: 0.3s;
}

.footer-socials i:hover {
    color: #c32026;
}

.text-black-50 {
    color: rgb(0, 0, 0) !important;
    line-height: 1.6;
}

.download-badges img {
    transition: transform 0.3s;
    filter: brightness(1.1);
}

.download-badges img:hover {
    transform: scale(1.05);
}

.cta-section {
    /* Gradasi merah sesuai pita logo ItahMili */
    background: linear-gradient(135deg, #c32026 0%, #921419 100%);
    border-radius: 0;
    /* Bisa diubah ke 30px jika ingin tampilan melayang */
    overflow: hidden;
    position: relative;
}

/* Efek dekorasi di background agar tidak flat */
.cta-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-section h2 {
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
}

@media (max-width: 576px) {
    .cta-section h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
}

.fw-800 {
    font-weight: 800;
}

.mascot-cta {
    max-width: 300px;
    max-height: 350px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transition: 0.5s;
    width: 100%;
    margin: 0 auto;
}

.mascot-cta:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Tombol Kuning (Primary CTA) */
.btn-cta-yellow {
    background-color: #f8b517;
    /* Kuning paruh Enggang */
    color: #332b2b;
    border: none;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(248, 181, 23, 0.3);
}

.btn-cta-yellow:hover {
    background-color: #ffcc00;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(248, 181, 23, 0.4);
}

/* Tombol Putih (Secondary CTA) */
.btn-cta-outline-white {
    background-color: white;
    color: #c32026;
    border: none;
    font-weight: 800;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-cta-outline-white:hover {
    background-color: #f8f9fa;
    color: #921419;
    transform: translateY(-3px);
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }
}

@media (max-width: 991px) {
    .cta-section {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* --- Gaya Navbar Umum --- */
.navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-red) !important;
}

.btn-demo {
    background-color: var(--primary-red) !important;
    color: white !important;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 700;
    transition: 0.3s;
    border: none;
}

.btn-demo:hover {
    background-color: var(--primary-red) !important;
    transform: translateY(-2px);
    color: white !important;
    box-shadow: 0 5px 15px rgba(195, 32, 38, 0.3);
}

/* --- Gaya Dropdown Kustom (Utama) --- */
.custom-dropdown {
    border-radius: 12px;
    padding: 1rem 0;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease-in-out;
    display: block;
}

.custom-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    /* color: #555; */
    border-radius: 8px;
    margin: 0 0.5rem;
    width: auto;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

/* Efek Hover Item Dropdown */
.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
    background-color: #fff1f1;
    /* color: #0d6efd; */
}

/* Gaya Kotak Ikon (Opsional, untuk Fitur) */
.custom-dropdown .icon-box {
    width: 40px;
    height: 40px;
    background-color: #e6f0ff;
    /* color: #0d6efd; */
    color: var(--primary-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.custom-dropdown .dropdown-item:hover .icon-box {
    transform: scale(1.1);
}

/* Gaya Divider */
.custom-dropdown .dropdown-divider {
    border-top: 1px solid #ebedf0;
}

@media (max-width: 991px) {
    .custom-dropdown {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none; /* default tertutup */
        box-shadow: none !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }

    .custom-dropdown.show {
        display: block; /* muncul normal */
    }

    /* rapikan jarak item */
    .custom-dropdown .dropdown-item {
        margin: 0;
        padding: 10px 15px;
    }

    /* biar tidak ada jarak aneh */
    .navbar-nav {
        gap: 0 !important;
    }

    .nav-item {
        margin-bottom: 5px;
    }

    .navbar-collapse {
        padding-top: 10px;
    }
}

section {
    overflow-x: hidden;
}
