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

body {
    font-family: "Inter", sans-serif;
}

/* Navbar Blur & Border */
/* Navbar umum */
.navbar-desaku .nav-link {
    font-weight: 500;
    transition: 0.3s ease;
}

.navbar-desaku .nav-link:hover {
    color: #198754 !important;
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
}

/* Highlight active link */
.navbar-desaku .nav-link.active {
    background-color: rgba(25, 135, 84, 0.1);
    border-radius: 8px;
    color: #198754 !important;
}

/* Tombol Masuk & Daftar */
.navbar-desaku .btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    transition: 0.3s ease;
    padding: 10px 16px;
    font-size: 15px;
}

.navbar-desaku .btn-login {
    border: 2px solid #198754;
    color: #198754;
    background-color: transparent;
    border-radius: 12px;
}

.navbar-desaku .btn-login:hover {
    background-color: #198754;
    color: white;
}

.navbar-desaku .btn-register {
    background-color: #198754;
    color: white;
    border-radius: 12px;
    border: none;
}

.navbar-desaku .btn-register:hover {
    background-color: #157347;
}

.navbar-toggler i {
    font-size: 1.5rem;
    color: #198754; /* warna hijau Bootstrap */
}

/* Mobile only adjustments */
@media (max-width: 767.98px) {
    .navbar-desaku .collapse .nav-link {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .navbar-desaku .d-flex-auth-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
        padding: 0 12px;
    }
}

/* Tombol Masuk & Daftar */
.btn-outline-success {
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.btn-outline-success:hover {
    background-color: #198754;
    color: white;
}

.btn-success {
    font-size: 0.875rem;
    transition: all 0.3s ease;
}
.btn-success:hover {
    opacity: 0.9;
}

/* Hero Section */
.hero {
    background-image: url("/landing/hero1.jpg"); /* Ganti sesuai kebutuhan */
    background-size: cover;
    background-position: center;
    height: 100vh;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 102, 51, 0.651) 30%,
        rgba(0, 102, 51, 0.6) 60%,
        rgba(0, 102, 51, 0.3) 100%
    );
    z-index: 1; /* Di bawah konten */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.6),
        rgba(0, 0, 0, 0.1)
    );
    z-index: 1;
}

.badge {
    background-color: rgba(25, 135, 84, 0.45);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
}

/* Fitur Unggulan */

.fitur-unggulan {
    position: absolute;
    bottom: -70px; /* Agar floating ke bawah */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    border-radius: 1rem;

    padding: 1.5rem;
    width: 90%;
    max-width: 1000px;
}

.fitur-unggulan .glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    background-image: linear-gradient(
        135deg,
        rgba(25, 135, 84, 0.45) 0%,
        rgba(0, 255, 0, 0.2) 100%
    );
    box-shadow: 0 8px 32px 0 rgba(0, 128, 0, 0.29);
}

.fitur-unggulan .glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 40px 0 rgba(0, 255, 0, 0.45);
    cursor: pointer;
}

.fitur-unggulan .card-title i {
    margin-right: 8px;
    color: #00ff88;
}

/* Menuju Section */
.menuju-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #131212;
    box-shadow: 0 4px 10px 0 rgba(0, 128, 0, 0.37);
}
.menuju-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 128, 0, 0.37);
}

.bg-decor {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bg-decor::before,
.bg-decor::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.bg-decor::before {
    width: 400px;
    height: 400px;
    background: #28a745;
    top: -200px;
    left: -200px;
}

.bg-decor::after {
    width: 300px;
    height: 300px;
    background: #007bff;
    bottom: -100px;
    right: -100px;
}

.hero-umkm {
    background: linear-gradient(to right, #007f3d, #40a84f);
    color: white;
    padding: 60px 20px 50px;
}

.hero-umkm .container {
    max-width: 1140px;
    margin: 0 auto;
}

.hero-umkm .breadcrumb {
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 14px;
}

.hero-umkm .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.hero-umkm .breadcrumb-item.active {
    color: #fff;
    font-weight: 600;
}

.hero-umkm .hero-badge {
    background-color: #fff;
    color: #007f3d;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
    font-size: 14px;
}

.hero-umkm .title {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
}

.hero-umkm .subtitle {
    font-size: 16px;
    margin-top: 10px;
    max-width: 600px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
    .hero-umkm {
        padding: 40px 15px;
        text-align: center;
    }

    .hero-umkm .breadcrumb {
        justify-content: center;
        font-size: 12px;
    }

    .hero-umkm .title {
        font-size: 26px;
    }

    .hero-umkm .subtitle {
        font-size: 14px;
        max-width: 100%;
    }

    .hero-umkm .hero-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Footer Desa */

.footer-section {
    background-color: #121212;
    color: #ddd;
    font-size: 15px;
}

.footer-link {
    color: #aaa;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background-color: #333;
    color: white;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s ease;
}

.social-icon:hover {
    background-color: #00c897;
    transform: scale(1.1);
}

.footer-section hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Profile Section */
.profile-section {
    background: linear-gradient(135deg, #007f5f, #2b9348);
    color: white;
    padding: 60px 0;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

/* Tabs Section */
.tab-button-glass {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 16px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button-glass:hover {
    color: #198754;
}

.tab-button-glass.active {
    color: #198754;
    border-bottom: 2px solid #198754;
}

.tab-panels .tab-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-panels .tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tabs scrollable on small screens */
.tab-wrapper-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.tab-wrapper-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.tab-inner {
    display: inline-flex;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 576px) {
    /* Hero section content */
    .hero {
        align-items: flex-start;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Fitur Unggulan (Glass Cards) */
    .fitur-unggulan {
        flex-direction: column;
        padding: 1rem;
        bottom: -60px;
    }

    .fitur-unggulan .glass-card {
        margin-bottom: 1rem;
        padding: 1rem;
        text-align: left;
    }

    .fitur-unggulan .glass-card:last-child {
        margin-bottom: 0;
    }

    .fitur-unggulan .glass-card h5 {
        font-size: 1rem;
    }

    .fitur-unggulan .glass-card p {
        font-size: 0.9rem;
    }

    /* Navbar brand text */
    .navbar-brand span {
        font-size: 1rem;
    }

    /* Make sure overlay and background still align well */
    .hero::before,
    .overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 102, 51, 0.75) 0%,
            rgba(0, 102, 51, 0.5) 60%,
            rgba(0, 102, 51, 0.25) 100%
        );
    }
}
