/* ==============================================
   SOFTANESIA CUSTOM STYLES
   Light/Dark Mode + Enhancements
   ============================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Custom Properties (Dark Mode = default) --- */
:root {
    --bg-primary: #1f2d3d;
    --bg-secondary: #16213e;
    --bg-card: #162f4d;
    --bg-section: #1f2d3d;
    --bg-hero: #16213e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0b0;
    --text-heading: #ffffff;
    --text-muted-custom: #7a8595;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --navbar-bg: rgba(26, 26, 46, 0.97);
    --accent-color: #6f42c1;
    --accent-hover: #5a32a3;
    --badge-bg: rgba(111, 66, 193, 0.15);
    --stat-bg: rgba(111, 66, 193, 0.1);
    --step-bg: rgba(111, 66, 193, 0.12);
    --footer-bg: #0f0f1e;
    --footer-bar-bg: #0a0a18;
    --toggle-bg: #2d2d44;
    --toggle-icon-color: #f1c40f;
    --accordion-bg: rgba(255, 255, 255, 0.05);
    --accordion-body-bg: rgba(255, 255, 255, 0.03);
    --input-bg: rgba(255, 255, 255, 0.07);
    --testi-card-bg: rgba(255, 255, 255, 0.06);
}

/* --- Light Mode Overrides --- */
body.light-theme {
    --bg-primary: #f8f9ff;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-section: #f0f2ff;
    --bg-hero: #eef0ff;
    --text-primary: #2c2c54;
    --text-secondary: #555577;
    --text-heading: #1a1a3a;
    --text-muted-custom: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 24px rgba(100, 100, 150, 0.12);
    /* Navbar stays DARK in light mode (like footer) */
    --navbar-bg: rgba(26, 26, 46, 0.97);
    --badge-bg: rgba(111, 66, 193, 0.1);
    --stat-bg: rgba(111, 66, 193, 0.07);
    --step-bg: rgba(111, 66, 193, 0.07);
    --footer-bg: #1a1a3a;
    --footer-bar-bg: #111128;
    --toggle-bg: #2d2d44;
    --toggle-icon-color: #f1c40f;
    --accordion-bg: #f5f5ff;
    --accordion-body-bg: #ffffff;
    --input-bg: #f0f0ff;
    --testi-card-bg: #ffffff;
}

/* --- Base Overrides for Theme --- */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    transition: background-color 0.35s ease, color 0.35s ease;
}

/* --- Theme Toggle Button --- */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(241, 196, 15, 0.5);
    background: #2d2d44;
    color: #f1c40f !important;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn i {
    color: #f1c40f !important;
    font-size: 18px;
    line-height: 1;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 16px rgba(111, 66, 193, 0.5);
    border-color: rgba(241, 196, 15, 0.8);
}

/* --- Navbar adjustments (always dark) --- */
#topnav {
    background: rgba(26, 26, 46, 0.97) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: background 0.35s ease;
}

#topnav .logo {
    display: flex;
    align-items: center;
}

#topnav .navigation-menu>li>a {
    color: rgba(255, 255, 255, 0.85) !important;
}

#topnav .navigation-menu>li>a:hover {
    color: #ffffff !important;
}

/* hamburger lines stay white */
#topnav .navbar-toggle .lines span {
    background: rgba(255, 255, 255, 0.8) !important;
}

/* --- Hero Section --- */
.bg-home {
    background: linear-gradient(135deg, var(--bg-hero) 0%, var(--bg-primary) 100%) !important;
    position: relative;
    overflow: hidden;
}

.bg-home::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 66, 193, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--accent-color) !important;
    border: 1px solid rgba(111, 66, 193, 0.3);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease-out;
}

.heading {
    color: var(--text-heading) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    animation: fadeInUp 0.7s ease-out;
}

.para-desc {
    color: var(--text-secondary) !important;
    animation: fadeInUp 0.8s ease-out;
}

/* --- Stats Section --- */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    background: var(--stat-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent-color) !important;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    font-weight: 500;
}

/* --- Section Titles --- */
.title {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

/* --- Feature Cards --- */
.features {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow);
}

.features .uil {
    color: var(--accent-color) !important;
}

.features h5 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

/* --- Key Features Grid --- */
.key-feature {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
}

.key-feature:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.key-feature .title {
    font-size: 0.95rem !important;
}

.key-feature .icon {
    background: var(--badge-bg) !important;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

/* --- Section Backgrounds --- */
section.section {
    background: var(--bg-primary) !important;
}

section.section.bg-light,
section.bg-light {
    background: var(--bg-section) !important;
}

/* --- Process Steps --- */
.process-step {
    text-align: center;
    padding: 28px 20px;
    background: var(--step-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-color), #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 16px rgba(111, 66, 193, 0.4);
}

.process-step h5 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
    margin-bottom: 8px;
}

.process-step p {
    color: var(--text-secondary) !important;
    font-size: 0.875rem;
    margin: 0;
}

/* --- Testimonials --- */
.client-testi .client-image {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.client-testi .content {
    background: var(--testi-card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.client-testi .content h6 {
    color: var(--text-heading) !important;
    font-weight: 600;
}

.client-testi .testi-quote {
    font-size: 0.875rem;
    color: var(--text-secondary) !important;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, #6f42c1 0%, #a855f7 100%) !important;
    border-radius: 20px !important;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

/* --- FAQ Accordion --- */
.accordion-item {
    background: var(--accordion-bg) !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 8px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    background: var(--accordion-bg) !important;
    color: var(--text-heading) !important;
    font-weight: 600;
    border: none !important;
    box-shadow: none !important;
}

/* Dark mode: invert arrow so it's visible on dark bg */
body:not(.light-theme) .accordion-button::after {
    filter: invert(1) brightness(1.5);
}

/* Light mode: keep arrow default dark */
body.light-theme .accordion-button::after {
    filter: none;
}

.accordion-button:not(.collapsed) {
    color: var(--accent-color) !important;
    box-shadow: none !important;
    background: var(--accordion-bg) !important;
}

.accordion-body {
    background: var(--accordion-body-bg) !important;
    color: var(--text-secondary) !important;
}

/* Light mode: force readable text color in accordion */
body.light-theme .accordion-button {
    color: #1a1a3a !important;
}

body.light-theme .accordion-body {
    color: #555577 !important;
}

body.light-theme .accordion-button:not(.collapsed) {
    color: #6f42c1 !important;
}

/* --- Contact Section --- */
.card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--card-shadow) !important;
}

.card-title {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

/* Contact info cards: Phone/Email/Kantor icon box */
.feature-clean .icons {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.15), rgba(168, 85, 247, 0.15)) !important;
    border: 1px solid rgba(111, 66, 193, 0.25) !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-clean .icons i.uil {
    color: var(--accent-color) !important;
    font-size: 2rem !important;
    line-height: 1 !important;
}

.feature-clean h5 {
    color: var(--text-heading) !important;
    font-weight: 700 !important;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 500;
}

.form-control {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.2) !important;
}

.form-control::placeholder {
    color: var(--text-muted-custom) !important;
}

/* --- Footer --- */
footer.footer {
    background: var(--footer-bg) !important;
}

footer.footer-bar {
    background: var(--footer-bar-bg) !important;
}

footer .footer-head {
    color: #fff !important;
}

footer .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

footer .footer-list li a {
    color: rgba(255, 255, 255, 0.55) !important;
    transition: color 0.2s ease;
}

footer .footer-list li a:hover {
    color: var(--accent-color) !important;
}

.social-icon li a {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
}

.social-icon li a:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #fff !important;
}

/* --- About Section --- */
.about-features-list {
    list-style: none;
    padding: 0;
}

.about-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-secondary) !important;
    font-size: 1.0rem;
}

.about-features-list li i {
    color: var(--accent-color) !important;
    margin-top: 2px;
    flex-shrink: 0;
}

/* --- Shape / SVG dividers --- */
.shape .text-white {
    color: var(--bg-primary) !important;
}

.text-footer {
    color: var(--bg-primary) !important;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.mover {
    animation: float 4s ease-in-out infinite !important;
}

/* --- Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #6f42c1, #a855f7) !important;
    border: none !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 66, 193, 0.4) !important;
    opacity: 0.92 !important;
}

.btn-light {
    font-weight: 600 !important;
}

.btn-soft-primary {
    background: rgba(111, 66, 193, 0.15) !important;
    color: var(--accent-color) !important;
    border: 1px solid rgba(111, 66, 193, 0.3) !important;
}

.btn-soft-primary:hover {
    background: var(--accent-color) !important;
    color: #fff !important;
}

/* --- Back to top --- */
#back-to-top {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .stat-number {
        font-size: 1.8rem;
    }

    .heading {
        font-size: 1.8rem !important;
    }

    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float i {
    color: #fff;
    font-size: 26px;
    line-height: 1;
}

/* --- Section badge/tag above headings --- */
.section-badge {
    display: inline-block;
    background: var(--badge-bg);
    color: var(--accent-color);
    border: 1px solid rgba(111, 66, 193, 0.25);
    border-radius: 50px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ==============================================
   HIGH SPECIFICITY OVERRIDES
   (must be at end of file to win cascade)
   ============================================== */

/* --- Contact Icons: Fix font-family override by style-dark.css --- */
/* style-dark.css sets font-family:'Nunito' globally which breaks icon fonts */
html body .feature-clean .icons {
    width: 64px !important;
    height: 64px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.18), rgba(168, 85, 247, 0.18)) !important;
    border: 1px solid rgba(111, 66, 193, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

/* Restore Unicons font-family that was overridden by style-dark.css Nunito */
/* 'Unicons' is the confirmed font-family name (v3.0.6) */
html body .feature-clean .icons i.uil,
html body .feature-clean .icons [class*="uil-"] {
    font-family: 'Unicons' !important;
    color: #6f42c1 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-style: normal !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Icon content lives in :before pseudo-element — also restore font there */
html body .feature-clean .icons i.uil::before,
html body .feature-clean .icons [class*="uil-"]::before {
    font-family: 'Unicons' !important;
}

html body .feature-clean h5 {
    color: var(--text-heading) !important;
    margin-top: 12px !important;
}

/* --- FAQ: Force readable text (MAXIMUM SPECIFICITY override) --- */
/* These rules are intentionally verbose to beat style-dark.css !important */
html body .accordion .accordion-item .accordion-header .accordion-button {
    color: #e0e0e0 !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

html body.light-theme .accordion .accordion-item .accordion-header .accordion-button {
    color: #1a1a3a !important;
    background-color: #f5f5ff !important;
}

html body.light-theme .accordion .accordion-item .accordion-header .accordion-button:not(.collapsed) {
    color: #6f42c1 !important;
    background-color: #f0eeff !important;
}

html body.light-theme .accordion .accordion-item .accordion-collapse .accordion-body {
    color: #444466 !important;
    background-color: #ffffff !important;
}

html body.light-theme .accordion .accordion-item {
    background: #f5f5ff !important;
    border-color: rgba(111, 66, 193, 0.15) !important;
}

/* Accordion arrow indicator */
html body.light-theme .accordion-button::after {
    filter: brightness(0) saturate(100%) opacity(0.6) !important;
}

html body:not(.light-theme) .accordion-button::after {
    filter: invert(1) brightness(2) !important;
}