@font-face {
    font-family: 'Magistral';
    src: url('../fonts/Magistral-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8f9fa;
    --brand-font: 'Magistral', 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #000 !important;
    transition: all 0.3s;
    font-family: var(--brand-font);
    text-transform: lowercase;
}

.navbar-brand:hover {
    transform: scale(1.05);
    color: #000 !important;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 8px 16px !important;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Buttons */
.btn-primary-custom {
    background: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    color: white;
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    color: white;
}

.btn-outline-light {
    border: 2px solid white;
    font-weight: 600;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    padding: 30px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Product Cards */
.product-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
}

.product-card img {
    transition: all 0.3s;
    filter: grayscale(0%);
}

.product-price {
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin: 0 -10px;
}

.product-card:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.product-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.product-card:hover .product-price {
    background: rgba(255, 255, 255, 0.95);
}

.product-card:hover h3,
.product-card:hover p,
.product-card:hover li {
    color: white !important;
}

.product-card:hover i {
    color: white !important;
}

.product-card:hover .btn-primary-custom {
    background: white;
    color: var(--primary-color);
}

/* Product Carousel & Compact Cards */
.product-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.product-carousel-container {
    overflow: hidden;
}

#productCarousel {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    flex: 0 0 25%;
    /* 4 items on desktop */
    max-width: 25%;
    padding: 0 10px;
}

.product-card-compact {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-compact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    border-color: var(--primary-color);
}

.product-card-compact .screenshot-container {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}

.product-card-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-compact:hover img {
    transform: scale(1.1);
}

.product-card-compact .screenshot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-card-compact:hover .screenshot-overlay {
    opacity: 1;
}

.product-card-compact .screenshot-overlay i {
    font-size: 1.5rem;
    color: white;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.carousel-nav:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.carousel-nav-prev {
    left: -22px;
}

.carousel-nav-next {
    right: -22px;
}

.carousel-nav:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

@media (max-width: 992px) {
    .product-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 768px) {
    .product-carousel-wrapper {
        padding: 0 40px;
    }

    .product-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Product Detail Modal */
#productDetailModal .modal-content {
    border: none;
    border-radius: 24px;
    position: relative;
}

#productDetailModal .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1080;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#productDetailModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1) rotate(90deg);
}

#productDetailModal .modal-body {
    padding: 2rem;
}

.detail-carousel {
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
}

.detail-carousel .carousel-item img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: contain;
    padding: 10px;
}

#modalProductPrice {
    font-size: 1.5rem;
    color: var(--primary-color);
}

#modalProductFitur li {
    font-size: 0.9rem;
    color: #4b5563;
    display: flex;
    align-items: flex-start;
}

#modalProductFitur li i {
    margin-top: 3px;
}

#modalProductButtons .btn {
    transition: all 0.3s ease;
    border-radius: 12px;
}

#modalProductButtons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    #productDetailModal .modal-body {
        padding: 1.5rem;
    }
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured p,
.pricing-card.featured li {
    color: white !important;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.testimonial-carousel-container {
    overflow: hidden;
}

#testimonialCarousel {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.5s ease-in-out;
}

#testimonialCarousel .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav-prev {
    left: 0;
}

.testimonial-nav-next {
    right: 0;
}

.testimonial-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonial-nav:disabled:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .testimonial-carousel-wrapper {
        padding: 0 50px;
    }

    .testimonial-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    #testimonialCarousel .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonial-video {
    margin: -30px -30px 20px -30px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    width: calc(100% + 60px);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.rating {
    color: var(--accent-color);
}

/* FAQ Accordion */
.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Partner Section */
.partner-section {
    background: var(--light-color);
}

.shopee-badge {
    display: inline-block;
    padding: 20px 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.shopee-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Form Section */
.form-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.form-control-custom {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s;
}

.form-control-custom:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: white;
    color: #333;
    border-top: 1px solid #e5e7eb;
}

footer a {
    color: #666;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .text-muted {
    color: #666 !important;
}

footer h5,
footer h6 {
    color: #333 !important;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 5px 30px rgba(37, 211, 102, 0.7);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
    z-index: 999;
    transition: all 0.3s;
    cursor: pointer;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.back-to-top.show {
    display: flex;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    section {
        padding: 60px 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Download Button Styles */
.btn-success,
.btn-info,
.btn-secondary {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    border: none;
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.4);
    color: white;
}

.btn .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Product Card Download Button Animation */
.product-card .btn-success,
.product-card .btn-info,
.product-card .btn-secondary {
    width: 100%;
}

.product-card:hover .btn-success,
.product-card:hover .btn-info,
.product-card:hover .btn-secondary {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}