/* Dropdown muncul saat hover */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* biar nempel rapi */
    animation: fadeIn 0.3s ease-in-out;
}

/* Animasi halus muncul */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    background: linear-gradient(135deg, #1e3c2f 0%, #2d5a3f 100%);
    color: #ecf0f1;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-section {
    height: 100%;
}

.footer-title {
    color: #ecf0f1;
    font-weight: 700;
    font-size: 1.5rem;
}

.footer-heading {
    color: #ecf0f1;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 2px;
}

.col-lg-4:first-child .footer-heading::after {
    left: 0;
    transform: none;
}

.col-lg-4:last-child .footer-heading::after {
    right: 0;
    left: auto;
    transform: none;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icons a:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Address Info */
.address-info p {
    margin-bottom: 8px;
}

.line-height-relaxed {
    line-height: 1.8;
}

/* Contact Info */
.contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    font-size: 20px;
    color: #28a745;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 14px;
    color: #bdc3c7;
    font-weight: 500;
}

.contact-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #20c997;
}

/* Footer Bottom */
.footer-bottom {
    padding: 25px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.footer-copyright {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-copyright a {
    color: #28a745;
    text-decoration: none;
    font-weight: 600;
}

.footer-copyright a:hover {
    color: #20c997;
}

.dot {
    color: #28a745;
}

@media (max-width: 768px) {
    .footer-top {
        padding: 40px 0 30px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer-section {
        text-align: left !important;
    }

    .footer-section.text-center {
        text-align: center !important;
    }

    .footer-heading::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

    .col-lg-4:first-child .footer-heading::after,
    .col-lg-4:last-child .footer-heading::after {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 576px) {
    .footer-logo {
        flex-direction: column;
        text-align: center;
        align-items: center !important;
    }

    .footer-logo figure {
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .social-icons {
        justify-content: center;
    }
}

.infographic-header {
    padding: 80px 0 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-subtitle {
    color: #28a745;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c2f;
    margin-bottom: 20px;
    text-transform: none;
    position: relative;
}

.section-description {
    color: #6c757d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Stats Section */
.modern-stats {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    overflow: hidden;
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="2" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="1.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: movePattern 60s linear infinite;
}

@keyframes movePattern {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100px, -100px);
    }
}

/* Stat Cards */
.stat-card {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card-inner {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:hover .card-inner::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card:hover .card-inner {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Stat Icons */
.stat-icon {
    position: relative;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 3rem;
    color: #28a745;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.icon-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.1) 0%,
        rgba(118, 75, 162, 0.1) 100%
    );
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-icon {
    width: 50px;
    height: 50px;
    color: rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    z-index: 1;
}

.stat-card:hover .icon-bg {
    transform: translate(-50%, -50%) scale(1.2);
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.2) 0%,
        rgba(118, 75, 162, 0.2) 100%
    );
}

.stat-card:hover .bg-icon {
    color: rgba(102, 126, 234, 0.5);
    transform: rotate(15deg) scale(1.1);
}

.stat-card:hover .stat-icon i {
    transform: scale(1.1);
}

/* Count Wrapper */
.count-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: auto;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
    width: 0;
    transition: width 2s ease-in-out 0.5s;
}

/* Color Variations for Different Cards */
.luas-kas .stat-icon i {
    color: #28a745;
}
.luas-kas .progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
}
.luas-kas .bg-icon {
    color: rgba(40, 167, 69, 0.3);
}
.luas-kas:hover .bg-icon {
    color: rgba(40, 167, 69, 0.5);
}

.luas-tanah .stat-icon i {
    color: #fd7e14;
}
.luas-tanah .progress-fill {
    background: linear-gradient(90deg, #fd7e14, #ffc107);
}
.luas-tanah .bg-icon {
    color: rgba(253, 126, 20, 0.3);
}
.luas-tanah:hover .bg-icon {
    color: rgba(253, 126, 20, 0.5);
}

.luas-dhkp .stat-icon i {
    color: #198754;
}
.luas-dhkp .progress-fill {
    background: linear-gradient(90deg, #198754, #20c997);
}
.luas-dhkp .bg-icon {
    color: rgba(25, 135, 84, 0.3);
}
.luas-dhkp:hover .bg-icon {
    color: rgba(25, 135, 84, 0.5);
}

.total-penduduk .stat-icon i {
    color: #6f42c1;
}
.total-penduduk .progress-fill {
    background: linear-gradient(90deg, #6f42c1, #d63384);
}
.total-penduduk .bg-icon {
    color: rgba(111, 66, 193, 0.3);
}
.total-penduduk:hover .bg-icon {
    color: rgba(111, 66, 193, 0.5);
}

.penduduk-laki .stat-icon i {
    color: #0d6efd;
}
.penduduk-laki .progress-fill {
    background: linear-gradient(90deg, #0d6efd, #6610f2);
}
.penduduk-laki .bg-icon {
    color: rgba(13, 110, 253, 0.3);
}
.penduduk-laki:hover .bg-icon {
    color: rgba(13, 110, 253, 0.5);
}

.penduduk-perempuan .stat-icon i {
    color: #d63384;
}
.penduduk-perempuan .progress-fill {
    background: linear-gradient(90deg, #d63384, #dc3545);
}
.penduduk-perempuan .bg-icon {
    color: rgba(214, 51, 132, 0.3);
}
.penduduk-perempuan:hover .bg-icon {
    color: rgba(214, 51, 132, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .modern-stats {
        padding: 60px 0;
    }

    .card-inner {
        padding: 30px 20px;
    }

    .counter-number {
        font-size: 2rem;
    }

    .stat-icon i {
        font-size: 2.5rem;
    }

    .bg-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .infographic-header {
        padding: 60px 0 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* Gallery Section Styling */
.galeri-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Gallery Card Styling */
.gallery-carousel {
    padding: 20px 0;
}

.gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Image Wrapper */
.image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-card:hover .image-wrapper img {
    transform: scale(1.1);
}

.image-wrapper .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(102, 126, 234, 0.8) 0%,
        rgba(118, 75, 162, 0.8) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .overlay {
    opacity: 1;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.hover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.gallery-card:hover .hover-content {
    opacity: 1;
}

.hover-content i {
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
}

/* Content Area */
.gallery-card .content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Title and Description */
.gallery-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.gallery-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Meta Info */
.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.meta-info i {
    color: #667eea;
    font-size: 12px;
}

/* Gallery Button */
.gallery-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.gallery-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-btn i {
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .galeri-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .galeri-section {
        padding: 60px 0;
    }

    .gallery-card .content {
        padding: 20px;
    }

    .gallery-card h3 {
        font-size: 1.1rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .image-wrapper {
        height: 200px;
    }

    .gallery-card h3 {
        font-size: 1rem;
    }

    .gallery-btn {
        padding: 12px 30px;
        font-size: 14px;
    }
}

/* Animation untuk smooth loading */
.gallery-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

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

.clickable-service {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 30px 20px;
}

.clickable-service:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.clickable-service:hover h5 {
    color: white;
}

.clickable-service:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.clickable-service img {
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.clickable-service:hover img {
    /* filter: brightness(0) invert(1); */
    transform: scale(1.2);
}

/* Efek loading saat diklik */
.clickable-service:active {
    transform: scale(0.98);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .news-card {
        margin-bottom: 20px;
    }

    .news-card .content {
        padding: 20px;
    }
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section Base */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: "Poppins", sans-serif;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-section .background-slider,
.hero-section .slide-background {
    width: 100%;
    height: 100vh;
}

.hero-section .slide-background {
    background-size: cover;
    background-position: center;
}

/* Portal Cards Wrapper */
.hero-portal-services {
    position: absolute;
    top: 55%; /* geser sedikit lebih ke bawah biar gak kepotong */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: 100%;
    max-width: 1300px;
    overflow: visible; /* biar child yang hover nggak kepotong */
}

/* Link reset → hilangin underline */
.hero-portal-link {
    text-decoration: none !important;
}

/* Title */
.hero-portal-title {
    font-size: 3.8rem; /* jauh lebih besar */
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Gradient vibrant hijau + biru */
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    position: relative;
    display: inline-block;
    animation: fadeSlideIn 1s ease-out forwards, shimmer 5s infinite linear;
}

/* Garis bawah neon */
.hero-portal-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 6px;
    border-radius: 3px;
    background: #fff;
    animation: pulseLine 2.5s infinite;
}

/* Garis bawah glowing */
@keyframes pulseLine {
    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleX(1.2);
    }
}

/* Row → Grid 8 kolom di desktop */
/* Portal Cards Wrapper */
.hero-portal-row {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: visible; /* biar efek hover nggak kepotong */
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    scroll-snap-type: x mandatory;
    padding-left: 0.5rem; /* trik: kasih padding biar total width lebih besar */
    padding-right: 0.5rem; /* supaya scroll muncul meski item pas muat */
}

/* Scrollbar transparan custom (Chrome, Edge, Safari) */
.hero-portal-row::-webkit-scrollbar {
    height: 5px;
}
.hero-portal-row::-webkit-scrollbar-track {
    background: transparent;
}
.hero-portal-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
.hero-portal-row::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Card konsisten ukuran + snap + animasi masuk */
.hero-portal-card {
    flex: 0 0 auto;
    width: 120px;
    min-width: 120px; /* paksa supaya selalu dihitung fixed width */
    height: 120px;
    scroll-snap-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border-radius: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    cursor: pointer;

    /* animasi masuk */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideIn 0.8s ease-out forwards;
    transition: transform 0.35s ease, background 0.35s ease,
        box-shadow 0.35s ease;
}

/* delay animasi bertahap */
.hero-portal-card:nth-child(1) {
    animation-delay: 0.1s;
}
.hero-portal-card:nth-child(2) {
    animation-delay: 0.2s;
}
.hero-portal-card:nth-child(3) {
    animation-delay: 0.3s;
}
.hero-portal-card:nth-child(4) {
    animation-delay: 0.4s;
}
.hero-portal-card:nth-child(5) {
    animation-delay: 0.5s;
}
.hero-portal-card:nth-child(6) {
    animation-delay: 0.6s;
}
.hero-portal-card:nth-child(7) {
    animation-delay: 0.7s;
}
.hero-portal-card:nth-child(8) {
    animation-delay: 0.8s;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-portal-row {
        justify-content: flex-start; /* tablet → scrollable */
    }
}

@media (max-width: 600px) {
    .hero-portal-row {
        justify-content: flex-start; /* mulai dari kiri */
        padding-left: 1rem;
    }
    .hero-portal-card {
        width: 100px;
        height: 100px;
    }

    .hero-portal-icon {
        font-size: 1.5rem;
    }
    .hero-portal-card h5 {
        font-size: 0.75rem;
    }
}

/* Icon */
.hero-portal-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
    transition: transform 0.35s ease, color 0.35s ease;
}

/* Text */
.hero-portal-card h5 {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
    font-weight: 600;
    transition: color 0.35s ease;
}

/* Hover effect */
.hero-portal-card:hover {
    transform: translateY(-10px) scale(1.08);
    background: linear-gradient(90deg, #22c55e, #06b6d4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-portal-card:hover .hero-portal-icon {
    transform: scale(1.25) rotate(8deg);
    color: #fff;
}

/* Badge pill (kapsul glassy) */
.badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    margin-top: 1rem; /* jarak atas biar aman dari h1 */
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeSlideIn 1s ease-out forwards;
}
.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    text-transform: uppercase;
}

/* Hero Title (Selamat Datang…) */
.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
    animation: fadeSlideIn 1.2s ease-out forwards;
}

/* Gradient highlight pada kata Portal Desa */
.text-gradient {
    background: linear-gradient(90deg, #22c55e, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: #e5e7eb;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    animation: fadeSlideIn 1.4s ease-out forwards;
}

/* Reusable fade-slide animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
}
