/* Fail: /assets/css/style.css */
/* Penerangan: Gaya CSS custom untuk aplikasi, kini dengan reka bentuk responsif. */

/* --- Gaya Asas & Fon --- */
body {
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 0.95rem;
}

h1, .h1 { font-size: 2.2rem; }
h2, .h2 { font-size: 1.8rem; }
h3, .h3 { font-size: 1.5rem; }

main {
    flex: 1;
}

/* --- Bahagian Halaman Utama (Landing Page) --- */
.landing-page {
    background-color: #0a0a1a;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.landing-page h1 {
    font-size: 3rem;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.text-glow {
    text-shadow: 0 0 8px rgba(77, 255, 175, 0.7), 0 0 10px rgba(77, 255, 175, 0.5);
}

.btn-primary-glow {
    background-color: #4dffaf;
    border-color: #4dffaf;
    color: #0a0a1a;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(77, 255, 175, 0.5);
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(77, 255, 175, 0.8);
    background-color: #5effba;
    border-color: #5effba;
}

.secondary-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 25px;
}

.secondary-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.secondary-nav a:hover {
    color: #fff;
}

.lang-switcher {
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 2px 8px;
    border-radius: 5px;
}

/* --- Gaya Modal (Pop-up) --- */
.modal-content {
    border: none;
    border-radius: 15px;
}

/* --- Bahagian Jadual Harga --- */
.pricing-card {
    border: 1px solid #e9ecef;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.pricing-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.pricing-card ul {
    list-style: none;
    padding: 0;
}
.pricing-card ul li {
    margin-bottom: 10px;
}
.popular-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background-color: #0d6efd;
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-card.plan-personal {
    background-color: #f8f9fa;
}
.pricing-card.plan-personal .bi-check-circle-fill {
    color: #6c757d;
}

.pricing-card.pro {
    border-color: #0d6efd;
    border-width: 2px;
    position: relative;
    overflow: hidden;
    background-color: #e7f1ff;
}
.pricing-card.pro .bi-check-circle-fill {
    color: #0d6efd;
}

.pricing-card.plan-business {
    background-color: #212529;
    color: #fff;
}
.pricing-card.plan-business .text-muted {
    color: #adb5bd !important;
}
.pricing-card.plan-business .bi-check-circle-fill {
    color: #4dffaf;
}
.pricing-card.plan-business .btn-outline-dark {
    border-color: #fff;
    color: #fff;
}
.pricing-card.plan-business .btn-outline-dark:hover {
    background-color: #fff;
    color: #212529;
}


/* --- Gaya Halaman Dalaman (selepas log masuk) --- */
body:not(.landing-page) {
    background-color: #f8f9fa;
}

.card-icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.lang-switcher-nav {
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 5px;
}

/* ##################################################### */
/* DIKEMAS KINI: REKA BENTUK RESPONSIf UNTUK MUDAH ALIH  */
/* ##################################################### */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(0,0,0,0.1);
        border-radius: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    /* --- Halaman Utama (Landing Page) --- */
    .landing-page h1 {
        font-size: 2.2rem;
    }
    .main-content .lead {
        font-size: 1rem;
    }
    .main-content .btn-lg {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    .secondary-nav {
        /* DIKEMAS KINI: Memastikan menu bawah kemas */
        right: 0;
        left: 0;
        bottom: 20px;
        justify-content: center;
        gap: 20px;
        transform: none;
    }
    .secondary-nav a {
        font-size: 0.85rem;
    }

    /* --- Halaman Dalaman --- */
    h1, .h1 { font-size: 1.8rem; }
    h2, .h2 { font-size: 1.5rem; }

    /* Menyasarkan div butang di papan pemuka dengan lebih tepat */
    main .d-flex.justify-content-between h1 + .d-flex {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
    }
    main .d-flex.justify-content-between h1 + .d-flex .btn {
        width: 100%;
    }
}
