/* OPTIMIZATION: All custom styles are moved to this external file */


/* This allows the browser to cache the file, speeding up subsequent visits */

body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d8fd 100%);
    overflow-x: hidden;
}

#animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bubble {
    position: absolute;
    background: rgba(104, 80, 161, 0.15);
    border-radius: 50%;
    animation: moveShapes 25s linear infinite;
}

@keyframes moveShapes {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(10vw);
        opacity: 0;
    }
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#navbar.scrolled {
    background: rgba(249, 247, 251, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.parallax-container {
    position: relative;
    overflow: hidden;
    height: 100vh;
}

#parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image: url("asset/img/BG.webp");
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

.video-modal {
    transition: opacity 0.3s ease;
}

.video-modal-content {
    transition: transform 0.3s ease;
}

.playlist-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.playlist-item.active {
    background-color: rgba(104, 80, 161, 0.3);
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .carousel-item {
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        min-width: 33.33%;
    }
}

.progress-bar-container {
    position: absolute;
    bottom: 10px;
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background-color: #6850a1;
    border-radius: 2px;
    width: 0%;
}

.progress-bar.active {
    animation: fillProgress 5s linear forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: 100%;
    }
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #6850a1;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #543f80;
    transform: scale(1.1);
}

.reseller-list-item {
    cursor: pointer;
    margin: 5px 0;
    padding: 12px 16px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-weight: 600;
    transition: background-color 0.3s;
}

.provinsi-item {
    background-color: #6850a1;
}

.provinsi-item:hover {
    background-color: #543f80;
}

.kota-item {
    background-color: #8e7cc3;
}

.kota-item:hover {
    background-color: #7a6aab;
}

.reseller-sub-list {
    margin-left: 20px;
    display: none;
}

.reseller-arrow {
    font-size: 14px;
    transition: transform 0.3s ease-in-out;
}

.reseller-arrow.open {
    transform: rotate(180deg);
}

.reseller-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin: 8px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #333;
}

.reseller-card h3 {
    margin: 0 0 10px 0;
    color: #6850a1;
    font-weight: 700;
}

.reseller-card p {
    margin: 5px 0;
}

.reseller-card .contact-button {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 15px;
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}

.reseller-card .contact-button:hover {
    background-color: #128c7e;
}

.reseller-card .gmaps-link {
    color: #543f80;
    text-decoration: none;
    font-weight: 500;
}

.reseller-card .gmaps-link:hover {
    text-decoration: underline;
}

.reseller-card .delivery-options {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reseller-card .delivery-options span {
    display: inline-block;
    padding: 4px 10px;
    background-color: #e8e2f2;
    border-radius: 12px;
    color: #543f80;
    font-size: 12px;
    font-weight: 500;
}

.ratio-16-9,
.ratio-9-16 {
    position: relative;
    width: 100%;
}

.ratio-16-9::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.ratio-9-16::before {
    content: "";
    display: block;
    padding-top: 177.78%;
}

.ratio-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(202, 68, 68, 0.4), 0 0 20px rgba(161, 80, 84, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(161, 80, 87, 0.6), 0 0 40px rgba(161, 80, 80, 0.4);
    }
}

.animate-glow {
    animation: glowPulse 2s infinite;
}

#navbar.scrolled .nav-link {
    color: #374151;
}

#navbar.scrolled .nav-link:hover {
    color: #6850a1;
}

.nav-link.active {
    color: #6850a1;
    /* Adjusted to match theme */
    font-weight: 700;
}

.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
    position: relative;
}

.expertSwiper {
    max-width: 400px;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.swiper-pagination-bullet-active {
    background-color: #6802c7 !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: #6802c7 !important;
    background-color: white;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #f0f9ff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
}

@media (min-width: 1024px) {
    .managementSwiper .swiper-button-next,
    .managementSwiper .swiper-button-prev,
    .managementSwiper .swiper-pagination {
        display: none;
    }
}

.butterfly {
    position: absolute;
    width: 40px;
    height: 40px;
    background-image: url("asset/img/butterfly.png");
    background-size: contain;
    background-repeat: no-repeat;
    animation: fly 15s linear infinite;
    pointer-events: none;
}

@keyframes fly {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(200px, -200px) rotate(45deg);
    }
    100% {
        transform: translate(400px, -600px) rotate(90deg);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .bubble,
    .butterfly {
        display: none;
    }
    #parallax-bg {
        transform: none !important;
        background-attachment: fixed;
    }
    .hover\:-translate-y-2:hover {
        transform: translateY(0);
    }
    .hover\:scale-105:hover {
        transform: scale(1);
    }
}