/* Indonesian Design Enhancements */

/* Icon Styles */
svg[href*="#icon-"] {
    transition: all 0.3s ease;
}

.hero-badge svg {
    color: #10b981;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.limited-offer svg {
    animation: zap 1.5s ease-in-out infinite;
    color: #fbbf24;
}

@keyframes zap {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-10deg) scale(1.1);
    }
    75% {
        transform: rotate(10deg) scale(1.1);
    }
}

/* Indonesian Design Enhancements */

/* Batik Pattern Background */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/batik-pattern.svg');
    opacity: 0.15;
    z-index: 0;
}

/* Indonesian Gold Accents */
.hero-badge {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2) 0%, rgba(180, 83, 9, 0.2) 100%);
    border: 2px solid #d97706;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Enhanced Typography - Indonesian Style */
.section-title {
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #10b981 50%, #d97706 100%);
    border-radius: 2px;
}

/* Card Shadows - Softer Indonesian Feel */
.benefit-card,
.feature-item,
.testimonial-card {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover,
.feature-item:hover,
.testimonial-card:hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.25);
}

/* Indonesian Color Palette */
:root {
    --indonesian-green: #10b981;
    --indonesian-dark-green: #059669;
    --indonesian-gold: #d97706;
    --indonesian-terracotta: #dc2626;
    --indonesian-cream: #fef3c7;
}

/* Mobile-First Improvements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75em;
        line-height: 1.3;
        padding: 0 10px;
    }
    
    .hero p {
        font-size: 1em;
        padding: 0 10px;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1.1em;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.5em;
        padding: 0 15px;
    }
    
    .section-subtitle {
        font-size: 0.95em;
        padding: 0 15px;
    }
}

/* Floating Animation for Cards */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.benefit-icon-wrapper {
    animation: float 3s ease-in-out infinite;
}

.benefit-card:nth-child(1) .benefit-icon-wrapper { animation-delay: 0s; }
.benefit-card:nth-child(2) .benefit-icon-wrapper { animation-delay: 0.2s; }
.benefit-card:nth-child(3) .benefit-icon-wrapper { animation-delay: 0.4s; }
.benefit-card:nth-child(4) .benefit-icon-wrapper { animation-delay: 0.6s; }
.benefit-card:nth-child(5) .benefit-icon-wrapper { animation-delay: 0.8s; }
.benefit-card:nth-child(6) .benefit-icon-wrapper { animation-delay: 1s; }

/* Indonesian Decorative Border */
.product-highlight {
    border: 3px solid rgba(217, 119, 6, 0.3);
    position: relative;
}

.product-highlight::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 6px;
    background: linear-gradient(90deg, transparent 0%, #d97706 50%, transparent 100%);
}

/* Improved Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::after {
    width: 400px;
    height: 400px;
}

/* Stats Section Enhancement */
.stat-number {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #d97706;
    border-radius: 2px;
}

/* Testimonial Stars - Gold Color */
.stars svg {
    fill: #d97706;
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.3));
}

/* Product Preview Enhancement */
.product-preview {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

/* Form Inputs - Better Mobile UX */
.form-group input,
.form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Loading State for Images */
img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

img[src] {
    animation: none;
    background: transparent;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Indonesian Accent Circles */
.section-gradient::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
}

.section-gradient::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
}

/* Responsive Images */
@media (max-width: 768px) {
    .product-image-main,
    .product-img-main {
        max-width: 100%;
        height: auto;
    }
    
    .product-preview-content {
        padding: 20px;
    }
    
    .price-display {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .new-price {
        font-size: 2em;
    }
}

/* Touch-Friendly Buttons on Mobile */
@media (max-width: 768px) {
    .cta-button,
    button[type="submit"] {
        min-height: 48px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
    
    .trust-badge {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Smooth Entrance Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.section-title {
    animation: fadeInUp 0.6s ease-out;
}

/* Indonesian Traditional Pattern Divider */
.section-white,
.section-gray,
.section-gradient {
    position: relative;
}

/* Better Text Contrast on Mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 1.5em;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero p {
        font-size: 0.95em;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
}
