/* Global Styles */
/* Prevent horizontal scroll in all scenarios */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* Dark mode toggle button */
.theme-toggle {
    background: transparent;
    border: none; /*1px solid var(--border-color);
    border-radius: 50%;*/
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--nav-text);
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--nav-hover);
    transform: rotate(15deg);
    border-color: rgba(102, 126, 234, 0.5);
}

.bg-light-custom {
    background-color: var(--light-bg) !important;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.icon-box i {
    font-size: 2rem;
    color: var(--primary-color);
}

        /* Hero Chemistry Section */
        #hero-chemistry {
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
            url('https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
            background-size: cover;
            background-position: center;
            height: 70vh;
            color: white;
            position: relative;
        }
        
        .hero-chemistry-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }
        
        @media (max-width: 768px) {
            .hero-chemistry-title {
                font-size: 2.5rem;
            }
        }
        
        .btn-get-started {
            background-color: var(--primary-color);
            color: white;
            padding: 0.75rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-get-started:hover {
            background-color: #0b5ed7;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.feature-card:hover .icon-box {
    background-color: var(--primary-color);
}

.feature-card:hover .icon-box i {
    color: white;
}

.product-card, .post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card:hover, .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.approach-step {
    position: relative;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.contact-method {
    padding: 2rem 1rem;
}

.contact-method .icon-box {
    margin: 0 auto 1.5rem;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

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


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
    url('/images/products.png');
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

/* Card Hover Effect */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    object-fit: cover;
/*    height: 300px;*/
    background-color: #f1f5f9;
}

.product-image {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 100%;
}

/* Cart Thumbnails */
.cart-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
  position: relative;
  overflow: hidden; /* Hide any overflow from the gradient */
}

.horizontal-scroll-container::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60px;
  /* background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); */
  pointer-events: none;
  z-index: 10;
}

/* Horizontal Scroll */
.overflow-x-auto {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox - hide scrollbar */
  -ms-overflow-style: none; /* IE and Edge - hide scrollbar */
  scroll-behavior: smooth;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.overflow-x-auto::-webkit-scrollbar {
  display: none; /* Completely hide scrollbar */
}
