/* Homepage Custom Styles - Inspired by BioAlban & Kutus Kutus */

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

:root {
    --herbal-primary: #4a7c59;
    --herbal-secondary: #6b8e5a;
    --herbal-accent: #8fbc8f;
    --herbal-light: #f8fdf8;
    --herbal-dark: #2d4a32;
    --herbal-gradient: linear-gradient(135deg, #0b0047 0%, #1f00a7 100%);
    --herbal-gradient-light: linear-gradient(135deg, #8fbc8f 0%, #a8d5a8 100%);
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --border-radius: 12px;
    --shadow-soft: 0 4px 20px rgba(74, 124, 89, 0.1);
    --shadow-medium: 0 8px 30px rgba(74, 124, 89, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Container Padding Improvements */
.container {
    padding-left: 30px;
    padding-right: 30px;
}

section {
    padding-left: 15px;
    padding-right: 15px;
}

/* Custom Buttons */
.btn-herbal {
    background: var(--herbal-gradient);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

/* Cerita Produk Section Styles */
.cerita-produk-section {
    padding: 80px 0;
    background-color: var(--herbal-light);
}

.cerita-produk-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.cerita-produk-section .description {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: var(--font-primary);
    line-height: 1.8;
    color: var(--text-light);
    max-width: 900px;
    text-align: left;
    margin: 0;
    padding-right: 2rem;
}

.about-card {
    background: linear-gradient(
        135deg,
        rgba(7, 0, 105, 0.85) 0%,
        rgba(0, 11, 77, 0.65) 100%
    );
    border-radius: var(--border-radius);
    height: 100%;
    transition: var(--transition);
    padding: 2.5rem, 2px;
    box-shadow: var(--shadow-soft);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.about-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.about-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.about-card .learn-more {
    color: rgba(229, 255, 0, 0.85);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.about-card .learn-more:hover {
    color: var(--herbal-dark);
}

.product-image img {
    border-radius: var(--border-radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    .cerita-produk-section {
        padding: 40px 0;
    }

    .cerita-produk-section .section-title {
        font-size: 2rem;
    }

    .about-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    /* Tambahan jarak untuk card Tentang Kami di mobile */
    .cerita-produk-section .about-card {
        margin-bottom: 3rem;
    }
    
    .cerita-produk-section .row.mt-4 {
        margin-bottom: 2rem;
    }
}

.btn-herbal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline-herbal {
    border: 2px solid var(--herbal-primary);
    color: var(--herbal-primary);
    background: transparent;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.btn-outline-herbal:hover {
    background: var(--herbal-primary);
    color: white;
    transform: translateY(-2px);
}

/* Section Badges */
.section-badge {
    display: inline-block;
    background: var(--herbal-light);
    color: var(--herbal-primary);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    border: 1px solid var(--herbal-accent);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-default {
    background: linear-gradient(135deg, 
        rgba(74, 124, 89, 0.9) 0%, 
        rgba(107, 142, 90, 0.8) 100%),
        url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(74, 124, 89, 0.8) 0%, 
        rgba(107, 142, 90, 0.6) 50%,
        rgba(143, 188, 143, 0.4) 100%);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 500px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Custom Carousel Indicators */
.carousel-indicators-custom {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicators-custom button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    transition: var(--transition);
}

.carousel-indicators-custom button.active {
    background: white;
    border-color: white;
}

/* About Section */
.about-section {
    background: var(--herbal-light);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, white, var(--herbal-light));
}

.about-features {
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--herbal-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 24px;
}

.feature-content h5 {
    color: var(--herbal-dark);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
    font-size: 14px;
}

/* About Images */
.about-image-wrapper {
    position: relative;
    padding: 40px 0;
}

.about-image-main {
    position: relative;
    z-index: 2;
}

.about-image-main img {
    box-shadow: var(--shadow-medium);
}

.about-image-floating {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    z-index: 3;
    transform: translateY(-20px);
}

.about-image-floating img {
    box-shadow: var(--shadow-medium);
    border: 4px solid white;
}

/* Products Section */
.products-section {
    background: var(--herbal-light);
    position: relative;
    
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.product-card.featured {
    grid-column: span 2;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-card.featured .product-image-wrapper {
    height: 350px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--herbal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--herbal-primary);
    font-size: 48px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 124, 89, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-content {
    padding: 25px;
}

.product-title {
    color: var(--herbal-dark);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.product-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--herbal-primary);
}

/* Articles Section */
.articles-section {
    background: var(--herbal-light);
    position: relative;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.article-card.featured {
    grid-column: span 2;
}

.article-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-card.featured .article-image-wrapper {
    height: 300px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--herbal-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--herbal-primary);
    font-size: 48px;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
}

.category-badge {
    background: var(--herbal-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 25px;
}

.article-meta {
    margin-bottom: 15px;
}

.article-date {
    color: var(--text-light);
    font-size: 14px;
}

.article-title {
    color: var(--herbal-dark);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-link {
    color: var(--herbal-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.article-link:hover {
    color: var(--herbal-dark);
}

/* CTA Section */
.cta-section {
    background: var(--herbal-gradient);
    color: white;
}

.cta-wrapper {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

/* Empty State */
.empty-state {
    padding: 60px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .product-card.featured,
    .article-card.featured {
        grid-column: span 1;
    }
    
    .about-image-floating {
        position: static;
        width: 100%;
        margin-top: 20px;
        transform: none;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .cta-wrapper {
        padding: 30px 20px;
        text-align: center;
    }
    
    .cta-actions {
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .products-grid,
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .hero-description {
        max-width: 100%;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--herbal-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--herbal-dark);
}

/* Additional Responsive Fixes */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .about-image-wrapper {
        padding: 20px 0;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

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

    .hero-actions .btn {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* Loading Animation */
.loading-animation {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading-animation.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects Enhancement */
.product-card,
.article-card,
.feature-item {
    will-change: transform;
}

/* Background Pattern */
.about-section::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%234a7c59" opacity="0.1"/></svg>') repeat;
    opacity: 0.3;
    z-index: 0;
}

/* Improved Button Animations */
.btn-herbal,
.btn-outline-herbal {
    position: relative;
    overflow: hidden;
}

.btn-herbal::before,
.btn-outline-herbal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-herbal:hover::before,
.btn-outline-herbal:hover::before {
    left: 100%;
}
