/* ===== Base Font ===== */
html,
body {
    font-family: "Lexend", sans-serif;
    background-color: var(--black-300);
    color: var(--white-500);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: 100%;
    font-size: 100%;

}
body{
    padding-top: 72px;
}

/* Saat halaman siap ditampilkan */
main.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--black-300);
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-light {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(var(--primary-300-rgb), 0.35) 0%,
        rgba(var(--primary-300-rgb), 0.1) 30%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero:hover .hero-light {
    opacity: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--primary-500);
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(90deg, #ff0080, #4b23ffce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-light {
    filter: blur(25px);
}

.navbar-brand img {
    height: 45px;
    transition: all 0.3s ease;
}

/* Tablet (≤ 680px) */
@media (max-width: 680px) {
    .navbar-brand img {
        height: 34px;
    }
}

/* Smartphone kecil (≤ 480px) */
@media (max-width: 480px) {
    .navbar-brand img {
        height: 28px;
    }
}

/* Mobile lebih kecil */
@media (max-width: 680px) {
    html {
        font-size: 85%; /* jadi sekitar 14.5px */
    }
}

/* Extra small screen (HP mini) */
@media (max-width: 480px) {
    html {
        font-size: 70%; /* jadi sekitar 13px */
    }
}

main {
    min-height: calc(100vh - 72px); /* full layar, minus navbar */
    display: flex;
    flex-direction: column;
}

/* ===== Color Palette ===== */
/* Primary */
:root {
    min-height: 100vh;

    --primary-100: #4c6311;
    --primary-200: #5f7d0e;
    --primary-300: #a3ce14;
    --primary-300-rgb: 163, 206, 20;
    --primary-400: #d7f462;
    --primary-500: #f4fdca;

    /* Whiteout */
    --white-100: #a1a1a1;
    --white-200: #d4d4d4;
    --white-300: #e4e4e4;
    --white-400: #f4f4f4;
    --white-500: #fafafa;

    /* Blackout */
    --black-100: #0c0c0c;
    --black-200: #1c1c1c;
    --black-300: #292929;
    --black-400: #444444;
    --black-500: #575757;

    /* Utilities */
    --notif: #00b3db;
    --accept: #a3ce14;
    --warning: #f4ed62;
    --danger: #ff470a;
    --info: #80c0ff;
}

/* ===========================
   TEXT COLORS
   =========================== */
.text-primary-100 {
    color: var(--primary-100);
}
.text-primary-200 {
    color: var(--primary-200);
}
.text-primary-300 {
    color: var(--primary-300);
}
.text-primary-400 {
    color: var(--primary-400);
}
.text-primary-500 {
    color: var(--primary-500);
}

.text-white-100 {
    color: var(--white-100);
}
.text-white-200 {
    color: var(--white-200);
}
.text-white-300 {
    color: var(--white-300);
}
.text-white-400 {
    color: var(--white-400);
}
.text-white-500 {
    color: var(--white-500);
}

.text-black-100 {
    color: var(--black-100);
}
.text-black-200 {
    color: var(--black-200);
}
.text-black-300 {
    color: var(--black-300);
}
.text-black-400 {
    color: var(--black-400);
}
.text-black-500 {
    color: var(--black-500);
}

.text-notif {
    color: var(--notif);
}
.text-accept {
    color: var(--accept);
}
.text-warning {
    color: var(--warning);
}
.text-danger {
    color: var(--danger);
}
.text-info {
    color: var(--info);
}

/* ===========================
   BACKGROUND COLORS
   =========================== */
.bg-primary-100 {
    background-color: var(--primary-100);
}
.bg-primary-200 {
    background-color: var(--primary-200);
}
.bg-primary-300 {
    background-color: var(--primary-300);
}
.bg-primary-400 {
    background-color: var(--primary-400);
}
.bg-primary-500 {
    background-color: var(--primary-500);
}

.bg-white-100 {
    background-color: var(--white-100);
}
.bg-white-200 {
    background-color: var(--white-200);
}
.bg-white-300 {
    background-color: var(--white-300);
}
.bg-white-400 {
    background-color: var(--white-400);
}
.bg-white-500 {
    background-color: var(--white-500);
}

.bg-black-100 {
    background-color: var(--black-100);
}
.bg-black-200 {
    background-color: var(--black-200);
}
.bg-black-300 {
    background-color: var(--black-300);
}
.bg-black-400 {
    background-color: var(--black-400);
}
.bg-black-500 {
    background-color: var(--black-500);
}

.bg-notif {
    background-color: var(--notif);
}
.bg-accept {
    background-color: var(--accept);
}
.bg-warning {
    background-color: var(--warning);
}
.bg-danger {
    background-color: var(--danger);
}
.bg-info {
    background-color: var(--info);
}

/* ===========================
   BORDER COLORS
   =========================== */
.border-primary-100 {
    border-color: var(--primary-100);
}
.border-primary-200 {
    border-color: var(--primary-200);
}
.border-primary-300 {
    border-color: var(--primary-300);
}
.border-primary-400 {
    border-color: var(--primary-400);
}
.border-primary-500 {
    border-color: var(--primary-500);
}

.border-white-100 {
    border-color: var(--white-100);
}
.border-white-200 {
    border-color: var(--white-200);
}
.border-white-300 {
    border-color: var(--white-300);
}
.border-white-400 {
    border-color: var(--white-400);
}
.border-white-500 {
    border-color: var(--white-500);
}

.border-black-100 {
    border-color: var(--black-100);
}
.border-black-200 {
    border-color: var(--black-200);
}
.border-black-300 {
    border-color: var(--black-300);
}
.border-black-400 {
    border-color: var(--black-400);
}
.border-black-500 {
    border-color: var(--black-500);
}

.border-notif {
    border-color: var(--notif);
}
.border-accept {
    border-color: var(--accept);
}
.border-warning {
    border-color: var(--warning);
}
.border-danger {
    border-color: var(--danger);
}
.border-info {
    border-color: var(--info);
}

/* ===== Typography ===== */

/* Titles */
.title-1 {
    font-weight: 700;
    font-size: 60px;
}
.title-2 {
    font-weight: 700;
    font-size: 40px;
}
.title-3 {
    font-weight: 700;
    font-size: 30px;
}
.title-4 {
    font-weight: 700;
    font-size: 20px;
}
.title-5 {
    font-weight: 600;
    font-size: 14px;
}
.title-6 {
    font-weight: 600;
    font-size: 12px;
}

/* Body */
.body-1 {
    font-weight: 400;
    font-size: 16px;
}
.body-2 {
    font-weight: 400;
    font-size: 10px;
}

/* Buttons */
.btn-1 {
    font-weight: 500;
    font-size: 16px;
}
.btn-2 {
    font-weight: 500;
    font-size: 15px;
}
.btn-3 {
    font-weight: 500;
    font-size: 12px;
}
.btn-4 {
    font-weight: 300;
    font-size: 10px;
}

/* Subtitles */
.subtitle-1 {
    font-weight: 300;
    font-size: 12px;
}
.subtitle-2 {
    font-weight: 500;
    font-size: 10px;
}
.subtitle-3 {
    font-weight: 400;
    font-size: 8px;
}

/* Captions */
.caption-1 {
    font-weight: 400;
    font-size: 10px;
}
.caption-2 {
    font-weight: 400;
    font-size: 8px;
}

/* Search Bar */
.search-bar {
    font-weight: 500;
    font-size: 10px;
}
.search-bar-placeholder {
    font-weight: 300;
    font-size: 10px;
}

/* ===== Buttons Styling ===== */
.btn-custom {
    background-color: var(--primary-300);
    color: var(--black-100);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 20px;
    transition: all 0.2s ease-in-out;
}
.btn-custom:hover {
    background-color: var(--primary-200);
    color: var(--white-500);
}

/* Navbar */

@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center; /* semua menu align tengah */
        align-items: center;
        justify-content: flex-end;
    }
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    #login-logo-section,
    #about-logo-section {
        width: 50%;
        margin-bottom: 2rem;
    }
}
/* Navbar Styling */
.navbar {
    background-color: var(--black-300) !important;
    height: 72px; /* buat tinggi stabil */
}

.nav-link {
    font-family: "Lexend", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-500) !important; /* gunakan primary-500 */
    display: flex;
    align-items: center;
    height: 72px; /* biar rata tengah */
    padding: 0 12px;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: var(--primary-300) !important;
}

.nav-link {
    margin: 0 12px;
}

.offcanvas.sidebar-nav {
    width: 260px;
    background-color: var(--black-300);
    height: 100vh;
    border-left: 1px solid var(--black-300);
    transition: all 0.3s ease;
}

.offcanvas.sidebar-nav .nav-link {
    font-weight: 500;
    color: var(--white-500);
    padding: 10px 0;
}

.offcanvas.sidebar-nav .nav-link:hover {
    color: #4b23ff; /* warna utama kamu */
}

.offcanvas.sidebar-nav .btn-custom {
    background-color: #4b23ff;
    color: #fff;
    border-radius: 10px;
}

.offcanvas.sidebar-nav .btn-custom:hover {
    background-color: #3a1fd0;
}

.user-menu {
    background-color: var(--primary-500) !important;
    border: none;
    border-radius: 12px;
    padding: 0.3rem 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.user-menu .dropdown-item {
    color: var(--black-200);
    font-weight: 600;
}

.user-menu .dropdown-item:hover {
    background-color: var(--primary-500);
    color: var(--black-100);
    border-radius: 5px;
    -webkit-text-stroke: 0.2px var(--black-100);
}

/* Navbar Default (black-300) */
.navbar-scroll {
    background-color: var(--black-300);
    transition: background-color 0.2s ease-in-out;
}

/* Saat Scroll -> black-200 */
.navbar-scroll.scrolled {
    background-color: var(--black-200) !important;
}

/* Toggler Custom */
.custom-toggler {
    border: none;
    box-shadow: none !important;
}
.custom-toggler .navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 2px;
    background-color: var(--primary-500); /* warna primary */
    display: block;
    position: relative;
}
.custom-toggler .navbar-toggler-icon::before,
.custom-toggler .navbar-toggler-icon::after {
    content: "";
    width: 24px;
    height: 2px;
    background-color: var(--primary-500);
    position: absolute;
    left: 0;
    transition: 0.3s;
}
.custom-toggler .navbar-toggler-icon::before {
    top: -8px;
}
.custom-toggler .navbar-toggler-icon::after {
    top: 8px;
}

/* Tombol Sign Up */
.btn-custom {
    background-color: var(--primary-500) !important;
    color: var(--black-200) !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 8px 18px;
    transition: all 0.2s ease-in-out;
}
.btn-custom:hover {
    background-color: var(--primary-300) !important;
    color: var(--black-200) !important;
}

.btn-custom2 {
    background-color: var(--primary-300) !important;
    color: var(--black-100) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 18px;
    transition: all 0.2s ease-in-out;
}

.btn-custom2:hover {
    background-color: var(--primary-500) !important;
    color: var(--black-100) !important;
}

.btn-custom3 {
    background-color: var(--primary-300);
    color: var(--black-100);
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 5px;
    transition: all 0.2s ease-in-out;
}
.btn-custom3:hover {
    background-color: var(--primary-200);
    color: var(--white-500);
}

.btn-custom4 {
    background-color: var(--primary-500) !important;
    color: var(--black-100) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 2px 5px;
    transition: all 0.2s ease-in-out;
}

.btn-custom4:hover {
    background-color: var(--primary-300) !important;
    color: var(--black-100) !important;
}
/* ===== Cards (Pricing) ===== */
.pricing-card {
    background-color: var(--white-500);
    color: var(--black-200);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s ease-in-out;
}
.pricing-card:hover {
    transform: scale(1.05);
    border: 2px solid var(--primary-300);
}

/* ===== About Section ===== */
.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--white-300);
}

/* Base card style */
.pricing-card {
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 20px;
}

/* Basic: hanya border */
.pricing-card.basic {
    background-color: transparent;
    border: 5px solid var(--primary-500);
    color: var(--primary-500);
    transform: translateY(-6px);
}
.pricing-card.basic h3,
.pricing-card.basic .price {
    color: var(--primary-500);
}

.pricing-card.pro {
    background-color: var(--primary-300);
    color: var(--black-300);
    transform: translateY(-6px);
}

/* Plus & Pro highlight */
.pricing-card.highlight {
    background-color: var(--primary-500);
    color: var(--black-200);
    transform: translateY(-6px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
.pricing-card.highlight h3,
.pricing-card.highlight .price {
    color: var(--black-200);
}

/* Hover effect */
.pricing-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

/* Title */
.pricing-card h3 {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Price */
.pricing-card .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0 20px;
}

/* Button */
.btn-outline-custom {
    border: 2px solid var(--black-300);
    color: var(--black-300);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline-custom:hover {
    background-color: var(--black-300);
    color: var(--primary-500);
}

.btn-outline-custom2 {
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    display: inline-block;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline-custom2:hover {
    background-color: var(--primary-500);
    color: var(--black-300);
}

/* Divider */
.pricing-card hr {
    border: none;
    border-top: 3px solid currentColor;
    margin: 20px 0;
}

/* Features */
.pricing-card .features li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* About Us Section */
.about-us {
    background-color: var(--black-300);
    color: var(--white-500);
    min-height: calc(100vh - 72px); /* full screen minus navbar */
    display: flex;
    align-items: center;
}

.about-us h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-500);
}

.about-us p {
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-us .btn-outline-custom {
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.about-us .btn-outline-custom:hover {
    background-color: var(--primary-500);
    color: var(--black-200);
}

/* Image */
.about-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Background halaman login */

.form-label {
    color: var(--primary-500); /* biar label tetap putih jelas */
    font-weight: 500;
}

/* Input styling */
.input-custom {
    background-color: var(--primary-500);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: var(--black-200);
}
.input-custom:focus {
    outline: none;
    background-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-300);
}

/* Tombol utama */
.btn-custom2 {
    background-color: var(--primary-500);
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: var(--black-200);
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-custom2:hover {
    background-color: var(--primary-400);
}

/* Tombol Sign up */
.btn-custom {
    background-color: var(--primary-100);
    color: var(--black-200);
    border-radius: 6px;
    font-weight: 600;
}

/* Posisi ikon di dalam input */
.toggle-password {
    position: absolute;
    top: 70%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--black-300);
    font-size: 1.2rem;
}
.toggle-password:hover {
    color: var(--primary-200);
}

span a:hover {
    text-decoration: underline;
    color: var(--primary-500);
}

#dropZone {
    cursor: pointer;
    transition: all 0.3s ease;
}
#dropZone:hover {
    background-color: var(--black-300);
}
.spinner-border.text-primary-500 {
    color: var(--primary-500) !important;
}

#loading-screen {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#loading-screen.active {
    display: flex !important;
    opacity: 1;
}

/* === Dropdown Custom === */
.dropdown-custom .btn-dropdown {
    background: var(--primary-500);
    color: var(--black-300);
    font-weight: 600;
    border: none;
    padding: 6px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.dropdown-custom .btn-dropdown:hover {
    box-shadow: 0 0 0 2px var(--primary-300);
}

.dropdown-menu {
    background: var(--primary-500);
}
.dropdown-menu .dropdown-item.custom-option {
    border-radius: 50px;
    padding: 6px 16px;
    text-align: center;
}
.dropdown-menu .dropdown-item.custom-option.active,
.dropdown-menu .dropdown-item.custom-option:hover {
    box-shadow: 0 0 0 2px var(--primary-300);
    background: var(--primary-500);
    color: var(--black);
}

/* === Project Card === */
.project-item {
    background: var(--black-200);
    border: 1px solid transparent;
    transition: all 0.25s ease;
}
.project-item:hover {
    border-color: var(--primary-300);
    background: #202020;
}
.project-thumbnail {
    width: 100px;
    height: 100px;
    background: var(--black-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* === Gauge === */
.gauge-bg {
    stroke: var(--primary-500);
    stroke-width: 7;
    fill: none;
}
#gauge-arc {
    stroke: var(--primary-300);
    stroke-width: 10;
    fill: none;
}
.divider {
    border-color: var(--white-300);
}

/* === SEARCH FORM === */
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--black-300);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input {
    background: var(--primary-500);
    border: none;
    border-radius: 50px;
    padding: 8px 16px 8px 42px; /* ruang untuk ikon kiri */
    height: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.search-input::placeholder {
    font-weight: 400;
}

.search-input:hover {
    box-shadow: 0 0 0 2px var(--primary-300);
}

.search-input:focus {
    outline: none;
    background-color: var(--primary-500);
    box-shadow: 0 0 0 2px var(--primary-300);
}

.search-input:focus + i {
    color: var(--primary-300);
}

/* === Search in Dark Mode Containers === */
.bg-black-200 .search-input,
.bg-black-300 .search-input {
    background: var(--black-300);
    color: var(--white-300);
    box-shadow: none;
}

.bg-black-200 .search-input::placeholder,
.bg-black-300 .search-input::placeholder {
    color: var(--white-300);
    opacity: 0.5;
}

/* === FILTER BAR RESPONSIVE === */
#filterForm {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.search-wrapper {
    flex-grow: 1;
    min-width: 240px;
}

/* Agar dropdown sejajar di layar besar */
.dropdown-custom {
    position: relative;
}

/* === Tablet (≤992px) === */
@media (max-width: 992px) {
    #filterForm {
        width: 100%;
        justify-content: space-between;
    }
    .search-wrapper {
        flex-grow: 1;
        width: 100%;
    }
}

/* === Mobile (≤768px) === */
@media (max-width: 768px) {
    /* bungkus judul dan form agar vertikal */
    .d-flex.flex-wrap.justify-content-between.align-items-center {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    #filterForm {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .search-wrapper {
        width: 100%;
    }

    .dropdown-custom {
        width: 100%;
    }

    .dropdown-custom .btn-dropdown {
        width: 100%;
        text-align: center;
    }
}

.video-wrapper video {
    border: 2px solid var(--primary-300);
}
.placeholder-wrapper {
    border: 2px solid var(--primary-300);
    transition: 0.3s ease;
}
.placeholder-wrapper:hover {
    box-shadow: 0 0 12px var(--primary-200);
}
.bar-bg {
    background: #2b2b2b;
    border-radius: 10px;
    height: 18px;
    width: 100%;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-300), var(--primary-500));
    transition: width 0.8s ease;
}
@media (max-width: 768px) {
    .video-wrapper video,
    .placeholder-wrapper {
        max-height: 610px;
    }
}

@media (min-width: 768px) {
    .video-wrapper video,
    .placeholder-wrapper {
        max-height: 520px;
        min-width: 165px;
    }
}

.bg-black-200 {
    background: #1f1f1f !important;
}
.text-white-400 {
    color: #bdbdbd !important;
}
.btn-custom2 {
    background: var(--primary-500);
    color: #111;
    border: 0;
}
.btn-custom2:hover {
    filter: brightness(1.05);
}

/* Inputs */
.input-custom {
    background: var(--primary-500) !important;
    border: 0 !important;
    color: var(--black-200) !important;
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
}

/* Avatar KOTAK */
.avatar-square {
    --s: var(--avatar-size, 320px);
    width: var(--s);
    height: var(--s);
    border-radius: 1.25rem;
    position: relative;
    background: #1f1f1f;
    border: 2px dashed var(--black-500);
    box-shadow: inset 0 0 0 4px var(--black-500);
}
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

/* Fallback (inisial) */
.avatar-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    background: radial-gradient(120% 120% at 10% 10%, #2d2d2d 0%, #222 80%);
}
.avatar-initials-text {
    font-weight: 800;
    font-size: calc(var(--avatar-size, 320px) * 0.33);
    letter-spacing: 0.04em;
    color: var(--primary-300);
    line-height: 1;
    text-shadow: 0 2px 0 #111;
}
.avatar-square:not(:has(img)),            /* tidak ada img */
.avatar-square.avatar-fallback-mode       /* img error */ {
}
.avatar-square:not(:has(img)) .avatar-fallback,
.avatar-square.avatar-fallback-mode .avatar-fallback {
    display: flex;
}

/* Copy input menyatu */
.input-group-copy {
    align-items: stretch;
}
.cp-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.btn-copy-like-input {
    background: var(--primary-500);
    color: var(--black-200);
    border: 0;
    padding: 0 14px;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.btn-copy-like-input:hover {
    background: var(--primary-500);
    color: var(--black-200);
    border: 0;
    padding: 0 14px;
}

@media (max-width: 1290px) {
    .avatar-square {
        --s: 250px;
    }
}

.btn-copy-like-input {
    cursor: pointer;
}

/* Floating text ala toast (tanpa library) */
.float-toast {
    position: fixed; /* tetap fixed supaya ikut scroll */
    z-index: 99999;
    background: #1f1f1f;
    color: #e6f7a1;
    border: 1px solid #2a2a2a;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    /* posisi (top/left) akan di-set lewat JS */
}
.float-toast.show {
    opacity: 1;
    transform: translateY(0);
}

#toast-container > .toast-error {
    background-color: var(--danger);
}
#toast-container > .toast-success {
    background-color: var(--accept);
}
#toast-container > .toast-info {
    background-color: var(--info);
}
#toast-container > .toast-warning {
    background-color: var(--warning);
}

.modal-backdrop.show {
    z-index: 2050 !important;
    position: fixed !important;
}
.modal {
    z-index: 2060 !important;
}

/* Pastikan tidak ada stacking context dari container */
.container {
    transform: none !important;
    perspective: none !important;
    filter: none !important;
}

.container {
    padding-right: var(--bs-gutter-x, 0.75rem); /* ≈ 12px */
    padding-left: var(--bs-gutter-x, 0.75rem);
}

/* marquee */
.logo-marquee {
    width: 75%;
    overflow: hidden;
    position: relative;
    background: transparent;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

/* Jalur logo bergerak */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
}

.logo-marquee img {
    height: 30px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.logo-marquee img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* hero content */
.floating-field {
    position: relative;
    width: 100%;
    height: 70vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* === Semua logo === */
.float-logo {
    position: absolute;
    filter: drop-shadow(0 0 15px var(--primary-300));
    animation: logofloat 1s ease-in-out infinite alternate;
    opacity: 0.9;
    transition: transform 0.26s ease, filter 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    will-change: transform;
    transform-origin: center;
}

/* Logo utama */
.float-logo.center {
    width: 400px;
    z-index: 2;
    opacity: 1;
}

/* Logo kecil */
.float-logo.small {
    width: 80px;
    opacity: 0.75;
}
.float-logo.small1 {
    width: 50px;
    opacity: 0.75;
}

/* === Posisi acak === */
.s1 {
    top: 25%;
    left: 20%;
    animation-delay: 0.3s;
}
.s2 {
    top: 26%;
    right: 15%;
    animation-delay: 1.2s;
}
.s3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 2.1s;
}
.s4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 0.8s;
}
.s5 {
    top: 20%;
    right: 40%;
    animation-delay: 3.5s;
}
.s6 {
    bottom: 15%;
    left: 40%;
    animation-delay: 2.8s;
}

/* === Animasi melayang acak === */
/* @keyframes floatY {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1.5deg);
    }
    50% {
        transform: translateY(-25px) rotate(-1.5deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
} */
@keyframes logofloat {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(15px) rotate(1deg);
    }
}

/* === Efek Hover === */
.float-logo:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 30px var(--primary-300)) brightness(1.3);
    opacity: 1;
}

/* === Responsive Adjustments === */
@media (max-width: 1200px) {
    .marquee-track img {
        height: 30px;
        margin: 0 2rem;
    }
    .marquee-track {
        animation-duration: 45s;
    } /* slightly slower */
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
        text-align: center;
    }
    .floating-field {
        height: 240px;
        margin-bottom: 1rem;
    }
    .float-logo.center {
        width: 130px;
    }
    .float-logo.small {
        width: 40px;
    }
    .marquee-track img {
        height: 28px;
        margin: 0 1.5rem;
    }
    .marquee-track {
        animation-duration: 50s;
    } /* slower scroll */
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .floating-field {
        order: -1;
        margin-bottom: 2rem;
    }
    .logo-marquee {
        margin-top: 2rem;
    }
    .marquee-track img {
        height: 24px;
        margin: 0 1rem;
    }
    .marquee-track {
        animation-duration: 55s;
    } /* slower for mobile */
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    .float-logo.center {
        width: 100px;
    }
    .float-logo.small {
        width: 30px;
    }
    .marquee-track img {
        height: 20px;
        margin: 0 0.8rem;
    }
    .marquee-track {
        animation-duration: 60s;
    } /* slowest for readability */
}

.container-section {
    background-color: var(--black-200);
    position: relative;
    overflow: hidden;
}

/* === STEP LAYOUT === */
.steps-wrapper {
    position: relative;
    padding-left: 2.3rem;
}

.vertical-line {
    position: absolute;
    top: 0;
    left: 16px; /* posisinya sejajar titik */
    width: 5px;
    height: 100%;
    background: var(--black-300);
    border-radius: 2px;
    overflow: hidden;
}

.vertical-line::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--primary-300),
        transparent
    );
    animation: lineGlow 12s linear infinite;
}

@keyframes lineGlow {
    0% {
        top: -40%;
    }
    100% {
        top: 100%;
    }
}

/* === Setiap Step === */
.step {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 0.5rem;
}

.step:last-child {
    margin-bottom: 0;
}

/* Titik sejajar garis */
/* .step .dot {
    position: absolute;
    left: -25px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--black-300);
    transition: all 1s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
} */

/* Step aktif */
.step.active .dot {
    background-color: var(--primary-300);
    box-shadow: 0 0 12px var(--black-300);
}

.step h4 {
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--primary-300);
}

.step p {
    font-size: 0.95rem;
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .steps-wrapper {
        padding-left: 1.7rem;
        margin-bottom: 2rem;
    }
    .vertical-line {
        left: 12px;
    }
    .step .dot {
        left: -20px;
    }
}

.vertical-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(var(--primary-300-rgb), 0.3) 0%,
        transparent 70%
    );
    opacity: 0.3;
    pointer-events: none;
    filter: blur(4px);
}

.step.active ~ .step .dot {
    background-color: var(--black-300);
    box-shadow: none;
}

/* === RIGHT IMAGE === */
.image-preview {
    position: relative;
    min-height: 300px;
}
.step-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.8s ease;
    max-height: 360px;
}
.step-image.active {
    opacity: 1;
    z-index: 2;
}
.testimonials-section {
    background-color: var(--black-300);
    position: relative;
    overflow: hidden;
}
/* Gaya untuk kartu testimonial */
.testimonial-card {
    transition: transform 0.3s ease-in-out;
    shadow-box: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: var(--black-200);
}

.testimonial-card:hover {
    transform: translateY(-5px); /* Efek hover untuk daya tarik visual */
}

/* Gaya untuk avatar placeholder */
.avatar-placeholder {
    display: inline-block;
    flex-shrink: 0;
}

.navbar-expand-lg.sticky-top {
    /* Ini akan memastikan navbar berada di atas konten lain (modal menggunakan 1050) */
    z-index: 1030;
}

.accordion-item {
    background-color: var(--black-200);
    color: var(--primary-500);
}

.accordion-body {
    background-color: var(--black-300);
    border: 1px solid var(--black-400);
    color: var(--primary-500);
}
.accordion-button {
    background-color: var(--black-200);
    color: var(--primary-500);
}
.accordion-button:not(.collapsed) {
    color: var(--primary-500);
}

.accordion-button::after {
    /* Mengganti nilai filter statis dengan variabel CSS */
    filter: invert(0.6) sepia(1) saturate(0) hue-rotate(180deg) brightness(1.2) drop-shadow(0 0 0 var(--primary-500));
}

.faq-section{
    color: var(--primary-500);
}

.footer-section {
    background-color: var(--black-300);
    color: var(--primary-500);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.footer-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-300);
}

.footer-icon {
\    transition: all 0.3s ease;
}

.footer-icon:hover {
    color: var(--primary-300);
    transform: scale(1.1);
}

.demo-section {
  background-color: var(--black-200);
  position: relative;

  padding-top: 5rem;
  padding-bottom: 5rem;
}

.demo-section h2 {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.demo-section p {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.demo-section .demo-video-wrapper {
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(90, 255, 90, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-section .demo-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover effect (neon glow) */
.demo-section .demo-video-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(20, 231, 20, 0.2);
}

/* Responsiveness */
@media (max-width: 768px) {
  .demo-section .demo-video-wrapper {
    width: 90%;
  }
}
.project-info {
    display: flex;
    flex-direction: column;
    font-size: 18px; /* Adjust font size */
}

.project-info h5 {
    font-weight: 600;
    color: #a3ce14; /* Set the project name color */
}

.project-info .separator {
    padding: 0 8px; /* Adjust space around the separator */
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2e2e2e; /* black-200 background color */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: #A3CE14; /* primary-300 text color */
}

.avatar-img2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials-text2 {
  font-size: 16px;
  font-weight: bold;
  color: #A3CE14; /* primary-300 text color */
}

.hidden-tab {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #888;
    border-radius: 24px;
    transition: 0.3s;
}

.slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

/* ON State */
.toggle-switch input:checked + .slider {
    background-color: #a3ce14;
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.component-custom{
    margin-bottom: 0.8rem;
}


.social-project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spider-wrapper,
.thumbnail-wrapper {
    height: 240px; /* samakan tinggi */
    display: flex;
    justify-content: center;
    align-items: center;
}

    .heatmap-horizontal-wrapper {
        width: 100%;
        max-width: 900px;          /* lebih lebar untuk horizontal */
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Gambar di-rotate dan tetap fit */
    .heatmap-horizontal-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: 0.3s ease-in-out;
    }

    /* Mobile View */
    @media (max-width: 768px) {
        .heatmap-horizontal-wrapper {
            max-width: 100%;
            aspect-ratio: 4 / 5;   /* lebih tinggi agar setelah rotate terlihat penuh */
        }

        .heatmap-horizontal-img {
            transform: rotate(90deg) scale(1.15);  /* perbesar sedikit supaya looks perfect */
        }
    }


    /* Small avatar for project detail page only */
.avatar-circle-sm {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.avatar-img-sm {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials-text-sm {
    color: var(--primary-300);
    font-weight: 700;
    font-size: 12px;
}
.avatar-link {
    text-decoration: none !important;
}

.infinite-marquee {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;

    -webkit-mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0) 100%
    );
            mask-image: linear-gradient(
        to right,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,1) 10%,
        rgba(0,0,0,1) 90%,
        rgba(0,0,0,0) 100%
    );
}

.marquee-track-video {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: marqueeInfinite 25s linear infinite;
}

.video-box {
    min-width: 300px;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    border: 2px solid #2a6903ff; /* CourtPlay green */
    box-shadow: 0 0 12px rgba(100, 221, 23, 0.4);
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* INFINITE LOOP ANIMATION */
@keyframes marqueeInfinite {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}


@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* bergerak ke kiri tanpa henti */
}
.navbar-expand-lg.sticky-top {
    /* Ini akan memastikan navbar berada di atas konten lain (modal menggunakan 1050) */
    z-index: 1030;
}
