/* General Styles */
    :root {
        --primary-color: #2c3e50;
        --secondary-color: #e74c3c;
        --accent-color: #f39c12;
        --text-dark: #2c3e50;
        --text-light: #7f8c8d;
        --bg-light: #f8f9fa;
        --border-color: #dee2e6;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        line-height: 1.6;
        color: var(--text-dark);
    }

    /* Header Styles */
    .navbar {
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        background: white !important;
        padding: 0.8rem 0;
        min-height: 70px;
    }

    .navbar-brand {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--primary-color) !important;
    }

    .navbar-nav-container {
        display: flex !important;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        margin: 0;
    }

    .navbar-nav .nav-item {
        margin: 0 0.3rem;
    }

    .navbar-nav .nav-link {
        color: var(--text-dark) !important;
        font-weight: 500;
        padding: 0.5rem 0.8rem !important;
        transition: all 0.3s ease;
        position: relative;
        font-size: 0.9rem;
    }

    .navbar-nav .nav-link:hover {
        color: var(--secondary-color) !important;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
        left: 0;
    }

    /* Hero Section */
    .hero-section {
        background: linear-gradient(135deg, var(--primary-color) 0%, #34495e 100%);
        color: white;
        padding: 100px 0;
        min-height: 70vh;
        display: flex;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        font-weight: bold;
        margin-bottom: 1.5rem;
        animation: fadeInUp 1s ease;
    }

    .hero-content p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease 0.2s both;
    }

    .btn-primary-custom {
        background: var(--secondary-color);
        border: none;
        padding: 12px 30px;
        font-size: 1.1rem;
        border-radius: 50px;
        transition: all 0.3s ease;
        animation: fadeInUp 1s ease 0.4s both;
        cursor: pointer;
    }

    .btn-primary-custom:hover {
        background: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
    }

    /* Card Styles */
    .card-custom {
        border: none;
        border-radius: 15px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .card-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .card-custom .card-img-top {
        height: 250px;
        object-fit: cover;
        transition: all 0.3s ease;
    }

    .card-custom:hover .card-img-top {
        transform: scale(1.05);
    }

    .price-badge {
        background: var(--secondary-color);
        color: white;
        padding: 5px 15px;
        border-radius: 20px;
        font-weight: bold;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .discount-badge {
        background: var(--accent-color);
        color: white;
        padding: 3px 10px;
        border-radius: 15px;
        font-size: 0.8rem;
        position: absolute;
        top: 15px;
        left: 15px;
    }

    /* Product Rating */
    .rating {
        color: var(--accent-color);
        margin-bottom: 10px;
    }

    /* Category Section */
    .category-card {
        text-align: center;
        padding: 2rem;
        border-radius: 15px;
        background: white;
        box-shadow: 0 5px 25px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        height: 100%;
    }

    .category-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

    .category-icon {
        font-size: 3rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

    /* WhatsApp Button */
    .whatsapp-btn {
        background: #25d366;
        color: white;
        border: none;
        padding: 0.4rem 1rem;
        border-radius: 25px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: all 0.3s ease;
        font-size: 0.85rem;
        white-space: nowrap;
        cursor: pointer;
    }

    .whatsapp-btn:hover {
        background: #128c7e;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    }

    /* Footer */
    .footer {
        background: var(--primary-color);
        color: white;
        padding: 50px 0 20px;
    }

    .footer h5 {
        color: var(--accent-color);
        margin-bottom: 1rem;
    }

    .footer-links {
        list-style: none;
        padding: 0;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: #bdc3c7;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-links a:hover {
        color: white;
    }

    /* Animations */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Search Form */
    .search-form {
        position: relative;
        width: 250px;
        margin: 0 1rem;
    }

    .search-form .form-control {
        border-radius: 25px;
        padding: 0.4rem 2.5rem 0.4rem 1rem;
        border: 2px solid var(--border-color);
        font-size: 0.85rem;
        height: 35px;
    }

    .search-form .btn {
        position: absolute;
        right: 3px;
        top: 3px;
        border-radius: 20px;
        background: var(--secondary-color);
        border: none;
        width: 29px;
        height: 29px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    /* Loading Animation */
    .loading {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 200px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid var(--border-color);
        border-top: 4px solid var(--secondary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .search-form { width: 200px; }
        .navbar-nav .nav-link {
            font-size: 0.85rem;
            padding: 0.4rem 0.6rem !important;
        }
    }

    @media (max-width: 992px) {
        .navbar-brand { font-size: 1.3rem; }
        .search-form { width: 180px; }
        .navbar-nav .nav-item { margin: 0 0.2rem; }
        .navbar-nav .nav-link {
            font-size: 0.8rem;
            padding: 0.4rem 0.5rem !important;
        }
    }

    @media (max-width: 768px) {
        .hero-content h1 { font-size: 2.5rem; }
        .hero-content p { font-size: 1rem; }
        .card-custom .card-img-top { height: 200px; }
        .instagram-banner { aspect-ratio: 1/1; }
        .promotion-card, .gallery-item { margin-bottom: 1rem; }
    }

    @media (max-width: 576px) {
        .navbar-nav-container {
            flex-direction: column;
            align-items: stretch;
            gap: 0.5rem;
        }
        .navbar-nav {
            order: 1;
            justify-content: space-around;
            width: 100%;
            margin-bottom: 0.5rem;
        }
        .navbar-nav .nav-item { flex: 1; text-align: center; margin: 0; }
        .navbar-nav .nav-link {
            font-size: 0.7rem;
            padding: 0.3rem !important;
            text-align: center;
        }
        .search-form {
            order: 2;
            width: calc(100% - 120px);
            margin: 0;
        }
        .whatsapp-btn {
            order: 2;
            margin-left: 0.5rem;
            flex-shrink: 0;
        }
    }

    /* Sticky/fixed navbar improvements */
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
    }

    .navbar-collapse, .navbar-toggler { display: none !important; }

    /* Instagram-style Banner */
    .instagram-banner {
        aspect-ratio: 1 / 1; /* square seperti postingan IG */
        width: 100%;
    }
    
    .promotion-banners .carousel-indicators button {
        width: 8px; height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.7);
    }
    
    .promotion-banners .carousel-indicators .active { background: #fff; }
    
    /* Promotion Cards */
    .promotion-card {
        transition: all 0.3s ease;
        background: white;
        border: none;
        overflow: hidden;
    }
    
    .promotion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    }
    
    .promotion-card:hover .image-overlay {
        opacity: 1;
    }
    
    .promotion-btn {
        position: relative;
        z-index: 100;
        transition: all 0.3s ease;
        text-decoration: none !important;
        pointer-events: auto !important;
    }
    
    .promotion-btn:hover {
        background-color: #198754 !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
    }
    
    .promotion-btn:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25) !important;
    }
    
    .promotion-content {
        position: relative;
        z-index: 10;
        background: white !important;
    }
    
    .image-overlay {
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .promotion-image {
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }
    
    .transition-opacity {
        transition: opacity 0.3s ease;
    }
    
    /* Gallery Items */
    .gallery-item {
        position: relative;
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    
    .gallery-item:hover {
        transform: scale(1.05);
    }
    
    .gallery-item:hover { transform: scale(1.05); }
    .gallery-overlay {
        position: absolute;
        top:0; left:0; right:0; bottom:0;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .gallery-item:hover .gallery-overlay { opacity: 1; }
    
    .gallery-overlay {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .gallery-image {
        transition: transform 0.3s ease;
    }
    
    /* Gallery Section Background */
    .gallery-section {
        position: relative;
    }
    
    .gallery-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1;
    }
    
    .gallery-section .container {
        position: relative;
        z-index: 2;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
        .instagram-banner {
            aspect-ratio: 1/1; /* Square for mobile */
        }
        
        .promotion-card {
            margin-bottom: 1rem;
        }
        
        .gallery-item {
            margin-bottom: 1rem;
        }
    }
    
    .promotion-card {
        animation: fadeInUp 0.6s ease-out;
    }
    
    /* Badge styling */
    .discount-badge .badge {
        font-size: 0.9rem !important;
        box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
    }
    
    .validity-badge .badge {
        font-size: 0.8rem !important;
        box-shadow: 0 2px 10px rgba(255, 193, 7, 0.3);
    }

    .clients-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .stats-item {
        padding: 1rem;
        transition: all 0.3s ease;
    }
    
    .stats-item:hover {
        transform: translateY(-5px);
    }
    
    .clients-grid {
        position: relative;
    }
    
    .client-item {
        transition: all 0.3s ease;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .client-item:hover {
        transform: translateY(-5px);
    }
    
    .client-logo-wrapper {
        background: white;
        border-radius: 10px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .client-logo-wrapper:hover {
        box-shadow: 0 5px 25px rgba(0,0,0,0.15);
        transform: scale(1.05);
    }
    
    .client-logo {
        max-width: 100%;
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
        filter: grayscale(100%);
        opacity: 0.7;
        transition: all 0.3s ease;
    }
    
    .client-logo:hover {
        filter: grayscale(0%);
        opacity: 1;
    }
    
    .client-logo-placeholder {
        text-align: center;
        color: #6c757d;
        width: 100%;
    }
    
    .client-name {
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1.2;
        display: block;
    }
    
    .client-year {
        font-size: 0.7rem;
        color: #adb5bd;
        display: block;
        margin-top: 0.25rem;
    }
    
    .client-cta {
        border: 2px solid #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .client-cta:hover {
        border-color: #007bff;
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    }
    
    .cta-buttons .btn {
        transition: all 0.3s ease;
    }
    
    .cta-buttons .btn:hover {
        transform: translateY(-2px);
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .client-item {
            height: 100px;
        }
        
        .client-logo-wrapper {
            padding: 1rem;
        }
        
        .client-logo {
            max-height: 60px;
        }
        
        .stats-item h3 {
            font-size: 2.5rem;
        }
        
        .cta-buttons {
            flex-direction: column;
            gap: 1rem;
        }
        
        .cta-buttons .btn {
            width: 100%;
            margin: 0 !important;
        }
    }
    
    @media (max-width: 576px) {
        .client-item {
            height: 80px;
        }
        
        .client-logo-wrapper {
            padding: 0.8rem;
        }
        
        .client-logo {
            max-height: 50px;
        }
        
        .client-name {
            font-size: 0.8rem;
        }
    }
    
    /* Animation for client logos */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .client-item {
        animation: fadeInUp 0.6s ease-out;
        animation-fill-mode: both;
    }
    
    .client-item:nth-child(1) { animation-delay: 0.1s; }
    .client-item:nth-child(2) { animation-delay: 0.2s; }
    .client-item:nth-child(3) { animation-delay: 0.3s; }
    .client-item:nth-child(4) { animation-delay: 0.4s; }
    .client-item:nth-child(5) { animation-delay: 0.5s; }
    .client-item:nth-child(6) { animation-delay: 0.6s; }
    .client-item:nth-child(7) { animation-delay: 0.7s; }
    .client-item:nth-child(8) { animation-delay: 0.8s; }
    .client-item:nth-child(9) { animation-delay: 0.9s; }
    .client-item:nth-child(10) { animation-delay: 1.0s; }
    .client-item:nth-child(11) { animation-delay: 1.1s; }
    .client-item:nth-child(12) { animation-delay: 1.2s; }
    
    /* Grayscale to color effect */
    .clients-grid:hover .client-logo {
        filter: grayscale(80%);
        opacity: 0.5;
    }
    
    .client-logo-wrapper:hover .client-logo {
        filter: grayscale(0%) !important;
        opacity: 1 !important;
    }