:root {
    --primary-color: #0061f2;
    --primary-dark: #0046ad;
    --secondary-color: #69707a;
    /* Changed from #690069 */
    --accent-color: #00cfd5;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --bg-light: #f8f9fa;
    /* Added */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s ease;
    /* Added */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hide default Bootstrap caret and style custom indicator */
.dropdown-toggle::after {
    display: none !important;
}

.dropdown-indicator {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
    opacity: 0.7;
}

.dropdown:hover .dropdown-indicator {
    transform: rotate(180deg);
    opacity: 1;
}

/* Auto-show dropdown on hover for desktop */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        visibility: visible;
        opacity: 1;
    }
}

/* Dropdown Animations */
.animate {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

@keyframes slideIn {
    0% {
        transform: translateY(1rem);
        opacity: 0;
    }

    100% {
        transform: translateY(0rem);
        opacity: 1;
    }
}

.slideIn {
    animation-name: slideIn;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 97, 242, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.btn-premium {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-premium {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
    transition: var(--transition);
    z-index: -1;
}

.btn-primary-premium:hover::before {
    width: 100%;
}

.btn-primary-premium:hover {
    color: white;
    box-shadow: 0 5px 15px rgba(0, 97, 242, 0.4);
    transform: translateY(-2px);
}

.btn-outline-premium {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
}

.btn-outline-premium:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 97, 242, 0.2);
}

/* Hero Carousel */
.carousel-item {
    height: 500px;
    background: #000;
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s ease-out;
}

.carousel-item.active img {
    transform: scale(1.15);
}

.carousel-caption {
    bottom: 52%;
    transform: translateY(50%);
    text-align: left;
    padding-left: 8%;
    max-width: 900px;
    z-index: 10;
}

.carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.carousel-caption p {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 25px;
    max-width: 550px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
    line-height: 1.5;
}

/* Gradient Overlay for Text Readability */
.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
    z-index: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }

    .carousel-item::after {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    }

    .carousel-caption h5 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: center;
    }

    .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 15px;
        text-align: center;
        max-width: 100%;
    }

    .carousel-caption {
        padding: 0 20px;
        width: 100%;
        left: 0;
        bottom: 50%;
        text-align: center;
    }

    .carousel-caption .d-flex {
        justify-content: center;
    }
}

/* Category Cards */
.category-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.category-img-wrapper {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.category-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img-wrapper img {
    transform: scale(1.1);
}

/* Product Cards */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 15px;
    transition: var(--transition);
    background: white;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Footer Styling */
footer {
    background: var(--dark-bg);
    color: #94a3b8;
    padding: 80px 0 30px;
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 25px;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent-color);
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hover-scale {
    transition: transform 0.3s ease;
}


.hover-scale:hover {
    transform: scale(1.05);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
    /* Stop pulse on hover to keep it steady */
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(25, 135, 84, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Category Grid Styling (Premium Professional Style) */
.page-hero {
    border-radius: 0 0 40px 40px;
}

.scanner-card {
    padding: 25px;
    background: #fff;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.scanner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.scanner-img-wrapper {
    width: 100%;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fdfdfd;
    border-radius: 18px;
}

.scanner-img-wrapper img {
    max-height: 85%;
    max-width: 85%;
    object-fit: contain;
    transition: transform 0.6s ease;
}

.scanner-card:hover .scanner-img-wrapper img {
    transform: scale(1.08);
}

.category-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: #94a3b8 !important;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.25rem;
    color: #1e293b;
    line-height: 1.4;
    min-height: 3.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #f59e0b;
    /* Vibrant Gold/Orange */
    font-size: 0.9rem;
    word-spacing: 4px;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    border: 1.8px solid #1e293b;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.95rem;
    background: transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-read-more:hover {
    background-color: #1e293b;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(30, 41, 59, 0.2);
}

/* Product Description Styling (Rich Text) */
.product-description {
    line-height: 1.8;
}

.product-description ul,
.product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.product-description b,
.product-description strong {
    font-weight: 700;
    color: var(--text-main);
}