/* ================================================================
1. VARIABEL & DASAR 
================================================================
*/
:root {
    --primary-color: #1f7e9b; /* Diselaraskan dengan dwincolor */
    --secondary-color: #6c757d;
    --accent-color: #00bcd4;
    --dwincolor: #1f7e9b;
    --dwin-gradient: linear-gradient(135deg, #1f7e9b 0%, #00bcd4 100%);
    --hover-color: #ff6347; 
    --hover-shadow: 0 12px 25px rgba(31, 126, 155, 0.2);
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #fdfdfd;
    color: #333;
}

/* ================================================================
2. NAVBAR & TOPBAR
================================================================
*/
.bg-dwincolor { background-color: var(--dwincolor) !important; }
.top-info { font-size: 0.85rem; padding: 8px 0; }
.navbar-brand { font-weight: 700; letter-spacing: 1px; }

#mainNav .nav-link {
    color: #ffffff !important;
    transition: 0.3s;
    font-weight: 500;
}

#mainNav .nav-link:hover, 
#mainNav .nav-link.active {
    opacity: 0.9;
    font-weight: 700;
}

/* Search Wrapper */
.search-wrapper {
    border-radius: 50px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    box-shadow: 0 4px 20px rgba(31, 126, 155, 0.15);
    border-color: var(--dwincolor);
}

/* ================================================================
3. KOMPONEN UI (BUTTONS, CARDS, BADGES)
================================================================
*/

/* Button Kustom D'Win */
.btn-dwin {
    background: var(--dwin-gradient) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-dwin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(31, 126, 155, 0.3);
    opacity: 0.95;
}

/* Hover Lift Effect Umum */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Kartu Produk */
.product-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}

.product-img {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.price-tag {
    font-size: 1.15rem;
    color: var(--dwincolor) !important;
    font-weight: 800;
}

/* Badge Service */
.badge-service {
    background: var(--dwin-gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ================================================================
4. NAV PILLS & PAGINASI
================================================================
*/

/* Nav Pills Kustom */
.nav-pills .nav-link {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-pills .nav-link.active {
    background: var(--dwin-gradient) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(31, 126, 155, 0.2);
}

.nav-pills .nav-link:not(.active):hover {
    background-color: #f0f7ff;
    color: var(--dwincolor);
    border-color: var(--dwincolor);
}

/* Paginasi */
.pagination-custom .page-item .page-link {
    color: var(--dwincolor) !important;
    border-radius: 10px !important;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.pagination-custom .page-item.active .page-link {
    background: var(--dwin-gradient) !important;
    border-color: var(--dwincolor) !important;
    color: #ffffff !important;
}

/* ================================================================
5. SECTION SPECIFIC (SLIDER, CATEGORY, DETAIL)
================================================================
*/

/* Carousel */
.carousel { border-radius: 15px; overflow: hidden; }
.carousel-item img { height: 350px; object-fit: cover; }

/* Ikon Minimalis (Menu Kategori) */
.ikon-minimalis {
    background: var(--dwin-gradient);
    color: white;
    font-size: 28px;
    width: 65px; height: 65px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 15px rgba(31, 126, 155, 0.2);
    margin: 0 auto;
}

.ikon-minimalis:hover {
    background: var(--hover-color) !important;
    transform: translateY(-8px) rotate(5deg);
}

/* Ikon Category Section */
.category-icon {
    font-size: 2.5rem;
    color: var(--dwincolor);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hover-lift:hover .category-icon {
    color: var(--hover-color);
}

/* Detail Service */
.service-img-detail {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.price-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    border-left: 5px solid var(--dwincolor);
}

/* ================================================================
6. FOOTER & SOSMED
================================================================
*/
footer {
    background-color: #1a1d20 !important;
    color: #adb5bd;
    padding: 4rem 0 1.5rem;
}

.social-icons-footer {
    display: flex !important; 
    gap: 10px; 
    margin-top: 15px;
}

.social-icons-footer i {
    width: 40px; 
    height: 40px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icons-footer a:hover i {
    background: var(--dwin-gradient);
    transform: translateY(-5px);
    color: white;
}

/* ================================================================
7. RESPONSIVE & ANIMATION
================================================================
*/
@media (max-width: 991.98px) {
    .carousel-item img { height: 180px; }
    
    .mobile-scroll-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    .mobile-scroll-row .col-12, 
    .mobile-scroll-row .col-6 {
        flex: 0 0 260px;
        max-width: 260px;
    }
    .mobile-scroll-row::-webkit-scrollbar { display: none; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-item.is-visible { animation: fadeInUp 0.5s ease forwards; }

.card i {
    color: #1f7e9b !important; 
}

.sidebar-produk-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 100px; 
    z-index: 10;
}

/* ================================================================
8. MODERN AI PRELOADER (D'WIN CUSTOM)
================================================================
*/
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff; /* Pastikan background putih pekat */
    display: flex;
    flex-direction: column; /* Agar teks berada di bawah bulatan */
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: all 0.7s ease;
}

/* Tambahkan ini untuk memastikan teks loader rapi */
.ai-loader p {
    margin-top: 20px;
    color: #1f7e9b;
    font-weight: bold;
    text-align: center;
}