/* =========================
   HKDMServices v1.0
   Main Stylesheet
========================= */


:root {

    --primary: #22c55e;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    --white: #ffffff;

}


* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}


body {

    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;

}


a {

    text-decoration: none;

}


/* =========================
   Announcement Bar
========================= */

.announcement-bar {

    background: var(--primary);
    color: white;
    padding: 10px;
    font-size: 14px;
    position: relative;
    z-index: 2000;

}



/* =========================
   Navbar
========================= */


.navbar {

    background: var(--dark);
    padding: 18px 0;

}


.navbar-brand {

    font-size: 22px;

}


.brand-icon {

    color: var(--primary);

}


.nav-link {

    color: white !important;
    margin-left: 15px;

}


.nav-link:hover {

    color: var(--primary) !important;

}



/* =========================
   Hero Section
========================= */


.hero-section {

    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );

    color: white;
    padding-top: 120px;

}



.hero-badge {

    background: rgba(34,197,94,.15);
    color: #86efac;
    padding: 8px 18px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;

}



.hero-title {

    font-size: 55px;
    font-weight: 700;

}


.hero-title span {

    color: var(--primary);

}



.hero-description {

    color: #cbd5e1;
    font-size: 18px;
    max-width: 600px;

}



.hero-trust {

    color: #cbd5e1;

}



.dashboard-preview {

    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,.15);

}



.preview-header {

    font-weight: 600;
    margin-bottom: 25px;

}



.preview-card,
.mini-card {

    background: white;
    color: var(--text);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;

}



/* =========================
   Sections
========================= */


.platform-section,
.features-section,
.how-section,
.services-section,
.testimonial-section,
.faq-section {

    padding: 90px 0;

}



.section-heading h2 {

    font-size: 38px;
    font-weight: 700;

}



.section-heading p {

    color: var(--muted);

}



/* =========================
   Platform Cards
========================= */


.platform-card {

    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);

}


.platform-card i {

    font-size: 35px;
    color: var(--primary);

}


.platform-card:hover {

    transform: translateY(-8px);

}



/* =========================
   Feature Cards
========================= */


.feature-card,
.service-card,
.step-card,
.testimonial-card {

    background: white;
    padding: 30px;
    border-radius: 20px;
    height: 100%;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);

}



.feature-card:hover,
.service-card:hover,
.step-card:hover {

    transform: translateY(-8px);

}



.feature-card i,
.service-card i {

    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;

}



/* =========================
   Steps
========================= */


.step-number {

    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;

}



/* =========================
   Services Notice
========================= */


.login-notice {

    background: #dcfce7;
    color: #166534;
    padding: 18px;
    border-radius: 15px;
    display: inline-block;

}



/* =========================
   Statistics
========================= */


.stats-section {

    background: var(--dark);
    color: white;
    padding: 70px 0;

}



.stats-section h2 {

    color: var(--primary);
    font-size: 45px;

}



/* =========================
   Testimonials
========================= */


.testimonial-card {

    border-left: 5px solid var(--primary);

}



/* =========================
   FAQ
========================= */


.accordion-button {

    font-weight: 600;

}



/* =========================
   CTA
========================= */


.cta-section {

    background: var(--dark);
    color: white;
    padding: 90px 0;
    text-align: center;

}



.cta-section h2 {

    font-size: 40px;

}



/* =========================
   Footer
========================= */


footer {

    background: #020617;
    color: white;
    padding: 40px 0;

}



footer p {

    color: #94a3b8;

}



/* =========================
   Responsive
========================= */


@media(max-width:768px){


.hero-title {

    font-size: 38px;

}


.section-heading h2 {

    font-size: 30px;

}


.nav-link {

    margin-left: 0;

}


}

/* =========================================================
   DASHBOARD TOGGLE BUTTON
========================================================= */

.dashboard-toggle {

    position: fixed;

    top: 85px;

    left: 18px;

    width: 52px;

    height: 52px;

    border: none;

    border-radius: 12px;

    background: #198754;

    color: #ffffff;

    font-size: 26px;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    z-index: 1300;

    box-shadow:
        0 4px 15px
        rgba(0, 0, 0, 0.20);

    transition:
        transform 0.2s ease,
        background 0.2s ease;

}


.dashboard-toggle:hover {

    transform: scale(1.05);

    background: #157347;

}


/* =========================================================
   SIDE PANEL
========================================================= */

.dashboard-panel {

    position: fixed;

    top: 0;

    left: -430px;

    width: 420px;

    max-width: 92vw;

    height: 100vh;

    background: #f8f9fa;

    z-index: 1400;

    box-shadow:
        8px 0 30px
        rgba(0, 0, 0, 0.22);

    transition:
        left 0.3s ease;

    overflow-y: auto;

}


/* OPEN PANEL */

.dashboard-panel.open {

    left: 0;

}


/* =========================================================
   PANEL HEADER
========================================================= */

.dashboard-panel-header {

    position: sticky;

    top: 0;

    z-index: 10;

    background: #212529;

    color: #ffffff;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.dashboard-panel-close {

    width: 42px;

    height: 42px;

    border: none;

    border-radius: 10px;

    background: #dc3545;

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

}


.dashboard-panel-close:hover {

    background: #bb2d3b;

}


/* =========================================================
   PANEL CONTENT
========================================================= */

.dashboard-panel-content {

    padding: 20px;

}


/* =========================================================
   PANEL BUTTONS
========================================================= */

.dashboard-panel-content .btn {

    width: 100%;

    padding: 12px;

    font-size: 16px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .dashboard-toggle {

        top: 75px;

        left: 12px;

        width: 48px;

        height: 48px;

    }


    .dashboard-panel {

        width: 100%;

        max-width: 100%;

    }


    .dashboard-panel-content {

        padding: 15px;

    }

}

/* =========================================================
   HKDMservices DASHBOARD TOGGLE
========================================================= */

.dashboard-toggle {
    position: fixed !important;
    top: 80px !important;
    left: 15px !important;

    width: 52px !important;
    height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #198754 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 12px !important;

    font-size: 25px !important;

    cursor: pointer !important;

    z-index: 99999 !important;

    pointer-events: auto !important;

    box-shadow: 0 5px 18px rgba(0,0,0,0.25);

    transition: 0.25s ease;
}

.dashboard-toggle:hover {
    background: #157347 !important;
    transform: scale(1.05);
}


/* =========================================================
   SIDE PANEL
========================================================= */

.dashboard-panel {
    position: fixed !important;

    top: 0 !important;
    left: -450px !important;

    width: 430px !important;
    max-width: 92vw !important;

    height: 100vh !important;

    background: #f8f9fa !important;

    z-index: 99998 !important;

    overflow-y: auto !important;

    box-shadow: 8px 0 30px rgba(0,0,0,0.25);

    transition: left 0.3s ease !important;

    visibility: hidden;
}


/* OPEN */

.dashboard-panel.open {
    left: 0 !important;
    visibility: visible !important;
}


/* =========================================================
   PANEL HEADER
========================================================= */

.dashboard-panel-header {
    position: sticky;

    top: 0;

    z-index: 10;

    background: #212529;

    color: white;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.dashboard-panel-close {
    width: 42px;

    height: 42px;

    border: none;

    border-radius: 10px;

    background: #dc3545;

    color: white;

    font-size: 18px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* =========================================================
   PANEL CONTENT
========================================================= */

.dashboard-panel-content {
    padding: 20px;
}


/* =========================================================
   PANEL BUTTONS
========================================================= */

.dashboard-panel-content .btn {
    width: 100%;

    padding: 12px;

    font-size: 16px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .dashboard-toggle {
        top: 75px !important;
        left: 12px !important;

        width: 48px !important;
        height: 48px !important;
    }

    .dashboard-panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    .dashboard-panel-content {
        padding: 15px;
    }

}
