@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

.primary-bg {
    background-color: #0064d2;
}

.primary-text {
    color: #0064d2;
}

.primary-border {
    border-color: #0064d2;
}

.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

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

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

.step-card {
    position: relative;
    z-index: 1;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -33px;
    width: 66px;
    height: 2px;
    background-color: #0064d2;
    z-index: -1;
}

.step-card:last-child::after {
    display: none;
}

@media (max-width: 768px) {
    .step-card::after {
        display: none;
    }
}

.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

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

.price-text {
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.015em;
}

.circle-element {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Styles for FAQ section */
.faq-item.active .faq-question {
    font-weight: 600;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Adjust product icons on PC */
@media (min-width: 1024px) {
    .product-grid {
        padding-left: 4rem;
        padding-right: 4rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ensure FAQ questions are aligned on PC */
@media (min-width: 768px) {
    .faq-question h3 {
        min-height: 3rem;
        display: flex;
        align-items: center;
    }
}

.product-card-inner {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Untuk kompensasi fixed header */
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0064d2;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.header-shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Footer styling */
.footer-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231b7bc8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4H6zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-link {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

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

.social-icon:hover {
    transform: translateY(-3px);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 3s infinite;
}

.primary-bg {
    background: linear-gradient(135deg, #0064d2 0%, #0064d2 100%);
}

/* Glass card effect */
.glass-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
}

.app-button {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.app-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.cashback-banner {
    background-color: #FFD700;
    border-radius: 12px;
    display: flex;
    align-items: center;
}

/* Mobile sidebar */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-sidebar.open {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.mobile-sidebar-link:hover {
    background-color: #f9f9f9;
}

/* Improved mobile responsiveness */
@media (max-width: 640px) {

    h1,
    h2,
    h3,
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .text-3xl {
        font-size: 1.625rem;
        line-height: 1.2;
    }

    .text-2xl {
        font-size: 1.375rem;
        line-height: 1.2;
    }

    .text-xl {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    .text-lg {
        font-size: 1rem;
        line-height: 1.3;
    }

    p,
    .text-sm {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Statistics banner styling to match the image */
.stats-banner {
    background: #0064d2;
    border-radius: 12px;
    padding: 1.25rem;
    color: white;
}

.stats-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
}

/* Add responsive text adjustments for audience cards */
@media (max-width: 640px) {
    .audience-card h3 {
        font-size: 1rem;
    }

    .audience-card p {
        font-size: 0.8125rem;
        line-height: 1.3;
    }
}

/* Add styles for the scroll progress bar and scroll-to-top button */
@media (max-width: 640px) {

    h1,
    h2,
    h3,
    p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .text-3xl {
        font-size: 1.625rem;
        line-height: 1.2;
    }

    .text-2xl {
        font-size: 1.375rem;
        line-height: 1.2;
    }

    .text-xl {
        font-size: 1.125rem;
        line-height: 1.2;
    }

    .text-lg {
        font-size: 1rem;
        line-height: 1.3;
    }

    p,
    .text-sm {
        font-size: 0.875rem;
        line-height: 1.4;
    }

    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Scroll progress bar animation */
#scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: #0064d2;
    z-index: 1000;
    transition: width 0.1s;
}

/* Scroll to top button animation */

/* Desktop/Tablet sidebar */
.desktop-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: white;
    z-index: 100;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.desktop-sidebar.open {
    left: 0;
}

.desktop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.desktop-overlay.open {
    opacity: 1;
    visibility: visible;
}

.desktop-sidebar-link {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid #f1f1f1;
    transition: all 0.2s ease;
}

.desktop-sidebar-link:hover {
    background-color: #f9f9f9;
}

@media (max-width: 768px) {

    .desktop-sidebar,
    .desktop-overlay {
        display: none;
    }
}

.sidebar-content {
    height: calc(100vh - 73px);
    overflow-y: auto;
}
