/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #812991;
    --dark-corporate: #32434d;
    --white: #FFFFFF;
    --light-gray: #F5F6F8;
    --primary-gradient: linear-gradient(135deg, #812991 0%, #5d1c69 100%);
    --dark-gradient: linear-gradient(135deg, #32434d 0%, #1c262b 100%);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-corporate);
    background-color: var(--light-gray);
    position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-corporate);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-dark-corporate { background-color: var(--dark-corporate) !important; }
.text-dark-corporate { color: var(--dark-corporate) !important; }

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(129, 41, 145, 0.3);
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 41, 145, 0.4);
    background: var(--primary-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-light {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.navbar-brand {
    font-weight: 800;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 600;
    color: var(--dark-corporate) !important;
    margin: 0 5px;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    padding-top: 76px; /* Offset for fixed navbar */
}
#heroCarousel {
    height: 80vh;
    min-height: 500px;
}
.carousel-inner, .carousel-item {
    height: 100%;
    overflow: hidden;
}
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: transform 10s ease; /* Slow zoom effect */
}
.carousel-item.active .carousel-image {
    transform: scale(1.1);
}
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
.z-index-2 {
    z-index: 2;
}
.carousel-content {
    color: var(--white);
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 20px;
}
/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.carousel-item.active .animate-up {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* Carousel Controls & Indicators */
.custom-indicators {
    bottom: 30px;
}
.custom-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    margin: 0 8px !important;
    background-color: rgba(255,255,255,0.5) !important;
    border: none !important;
    transition: all 0.3s ease;
}
.custom-indicators button.active {
    background-color: var(--primary-color) !important;
    width: 30px !important;
    border-radius: 10px;
}
.custom-control {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}
#heroCarousel:hover .custom-control {
    opacity: 0.8;
}
.custom-control:hover {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    #heroCarousel {
        height: 70vh;
        min-height: 400px;
    }
    .carousel-content {
        padding: 20px;
        margin-bottom: 40px;
    }
    .custom-indicators {
        bottom: 5px;
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1);
}

/* Feature/Brand Cards */
.brand-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(129, 41, 145, 0.1);
    border-bottom: 3px solid var(--primary-color);
}
.brand-card img {
    max-height: 60px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}
.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Product Cards */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(129, 41, 145, 0.15);
}
.product-card .img-wrapper {
    background: var(--light-gray);
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--primary-color);
}
.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card:hover img {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 25px;
}
.product-card .badge {
    background-color: rgba(129, 41, 145, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
}

/* Sections */
.section-padding {
    padding: 80px 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--primary-gradient);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}
.section-title.text-center::after {
    left: 25%;
}

/* Testimonials */
.testimonial-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    margin-top: 30px;
}
.testimonial-icon {
    position: absolute;
    top: -25px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(129, 41, 145, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-corporate);
    color: rgba(255,255,255,0.8);
    padding: 80px 0 20px;
}
.footer h4 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 15px;
}
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}
.fab-whatsapp { background-color: #25D366; }
.fab-call { background-color: var(--primary-color); }
.fab-btn:hover {
    transform: scale(1.1);
    color: white;
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
}

/* Counters */
.counter-box {
    text-align: center;
    padding: 20px;
}
.counter-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Contact Info Box */
.contact-info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(129, 41, 145, 0.1);
    color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-logo {
    max-width: 150px;
    animation: pulseLogo 2s infinite;
    margin-bottom: 20px;
}
.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(129, 41, 145, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spinSpinner 1s linear infinite;
}
@keyframes pulseLogo {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}
@keyframes spinSpinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}

/* ============================================
   BRAND FILTER CARDS (Sidebar)
   ============================================ */
.brand-filter-card {
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.brand-filter-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(129, 41, 145, 0.12);
    transform: translateY(-2px);
}
.brand-filter-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(129,41,145,0.05) 0%, rgba(93,28,105,0.08) 100%);
    box-shadow: 0 4px 15px rgba(129, 41, 145, 0.15);
}
.brand-filter-logo {
    max-height: 35px;
    max-width: 90%;
    object-fit: contain;
    transition: all 0.3s ease;
}
.brand-filter-card:hover .brand-filter-logo {
    transform: scale(1.05);
}
.brand-filter-card.active .brand-filter-logo {
    filter: none;
}
.brand-filter-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dark-corporate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.brand-product-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(129, 41, 145, 0.3);
}

/* ============================================
   CATEGORY FILTER LIST (Sidebar)
   ============================================ */
.category-filter-list li {
    margin-bottom: 2px;
}
.category-filter-item {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #555;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.88rem;
}
.category-filter-item:hover {
    background: rgba(129, 41, 145, 0.06);
    color: var(--primary-color);
    padding-left: 16px;
}
.category-filter-item.active {
    background: linear-gradient(135deg, rgba(129,41,145,0.1) 0%, rgba(93,28,105,0.06) 100%);
    color: var(--primary-color);
    font-weight: 700;
}
.category-icon-box {
    width: 32px;
    height: 32px;
    background: rgba(129, 41, 145, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.85rem;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.category-filter-item.active .category-icon-box {
    background: var(--primary-gradient);
    color: white;
}
.category-filter-item:hover .category-icon-box {
    background: var(--primary-gradient);
    color: white;
}
.category-count {
    background: #f0f0f0;
    color: #888;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
}
.category-filter-item.active .category-count {
    background: rgba(129, 41, 145, 0.15);
    color: var(--primary-color);
}

/* ============================================
   FILTER TAGS (Active filter pills)
   ============================================ */
.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(129, 41, 145, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(129, 41, 145, 0.2);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.filter-tag:hover {
    background: rgba(129, 41, 145, 0.15);
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.filter-tag .bi-x {
    opacity: 0.6;
    transition: opacity 0.2s;
}
.filter-tag:hover .bi-x {
    opacity: 1;
}
