/* LUBEK - Premium Design with 3D Animations */

/* CSS Variables - Enhanced Color Palette */
:root {
    /* Primary Brand Colors - Rich Navy Blue with depth */
    --primary-color: #0d47a1;
    --primary-dark: #01579b;
    --primary-light: #1976d2;
    --primary-lighter: #42a5f5;
    --primary-accent: #2196f3;
    
    /* Accent Colors - Luxurious Gold */
    --accent-color: #ffa726;
    --accent-gold: #ffb74d;
    --accent-light: #ffcc80;
    --accent-dark: #fb8c00;
    
    /* Secondary Colors - Modern Slate */
    --secondary-color: #263238;
    --secondary-light: #37474f;
    --secondary-dark: #1a1a1a;
    
    /* Background Colors */
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a1a;
    --bg-grey: #f5f5f5;
    --bg-gradient: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
    
    /* Text Colors */
    --text-dark: #212121;
    --text-medium: #616161;
    --text-light: #9e9e9e;
    --text-white: #ffffff;
    
    /* Gradients - Modern & Vibrant */
    --gradient-primary: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    --gradient-primary-hover: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
    --gradient-gold: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%);
    --gradient-gold-hover: linear-gradient(135deg, #fb8c00 0%, #ffa726 100%);
    --gradient-hero: linear-gradient(135deg, rgba(13, 71, 161, 0.95) 0%, rgba(25, 118, 210, 0.92) 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(13, 71, 161, 0.85) 0%, rgba(255, 167, 38, 0.75) 100%);
    
    /* Shadows - Enhanced Depth */
    --shadow-xs: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px 0 rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 16px 48px 0 rgba(0, 0, 0, 0.24);
    --shadow-3d: 0 20px 60px rgba(13, 71, 161, 0.25), 0 0 30px rgba(255, 167, 38, 0.15);
    --shadow-gold: 0 8px 32px rgba(255, 167, 38, 0.3);
    --shadow-blue: 0 8px 32px rgba(13, 71, 161, 0.3);
    
    /* Status Colors - Modern & Clear */
    --success-color: #4caf50;
    --success-light: #81c784;
    --error-color: #f44336;
    --error-light: #e57373;
    --warning-color: #ff9800;
    --warning-light: #ffb74d;
    --info-color: #2196f3;
    --info-light: #64b5f6;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

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

/* Global Responsive Images - Ensure ALL admin-uploaded images are responsive */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Inline images (like logos in navbar) should preserve inline behavior */
.navbar-brand img,
.footer-brand img,
a img {
    display: inline-block;
}

/* Responsive Image Classes */
.img-responsive,
.img-fluid {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    width: 100% !important;
    object-fit: cover;
}

/* Ensure images don't overflow containers */
.container img,
.container-fluid img,
.card img,
.product-card img,
.category-card img,
.facility-image img,
.about-image img,
.about-content img,
.facility-content img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    object-fit: cover;
}

/* Product and category images need to fill containers */
.product-image img,
.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* Logo responsive sizing - override height attribute */
.navbar-brand img,
.footer-brand img {
    max-width: 100% !important;
    height: auto !important;
    max-height: 40px !important;
    width: auto !important;
    object-fit: contain;
}

/* Product detail page images */
.product-image-container,
.product-image-container img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
}

/* Carousel background images - responsive on all devices */
.page-header-carousel {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 300px;
}

/* Ensure all images in tables and lists are responsive */
.table img,
.list-unstyled img,
.feature-card img,
.content-body img:not(.category-image img):not(.product-image img),
.content-body p img,
.about-content img:not(.about-image img),
.facility-content img:not(.facility-image img) {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
}

/* Images within text content (page content) */
.content-body img:not(.category-image img):not(.product-image img),
.page-content img,
article img:not(.category-image img):not(.product-image img) {
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    display: block;
    margin: 1rem auto;
}

/* Image containers should prevent overflow */
.category-image,
.product-image,
.facility-image,
.about-image,
.product-image-container {
    overflow: hidden;
    width: 100%;
}

/* Ensure product cards and category cards contain images properly */
.product-card .product-image,
.category-card .category-image {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.product-card .product-image img,
.category-card .category-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
    margin-top: 0;
    padding-top: 0;
    scroll-behavior: smooth;
}

/* Text colors for different backgrounds */
.bg-light p, .bg-white p {
    color: var(--text-medium) !important;
}

.bg-dark p, .bg-primary p {
    color: rgba(255, 255, 255, 0.9) !important;
}

section p {
    color: var(--text-medium);
}

.bg-dark section p, .bg-primary section p {
    color: rgba(255, 255, 255, 0.9);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

/* Headings on dark backgrounds */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
section[style*="background: #0a2463"] h1,
section[style*="background: #0a2463"] h2,
section[style*="background: linear-gradient"] h1,
section[style*="background: linear-gradient"] h2 {
    color: var(--text-white) !important;
}

/* Headings on light backgrounds */
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6 {
    color: var(--primary-color) !important;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

/* Navigation - Enhanced with 3D Effects */
.navbar {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.98) 0%, rgba(25, 118, 210, 0.95) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(13, 71, 161, 0.3);
    border-bottom: 3px solid transparent;
    background-image: linear-gradient(135deg, rgba(10, 36, 99, 1) 0%, rgba(30, 58, 138, 1) 100%),
                      linear-gradient(to right, #dc2626 0%, #facc15 50%, #dc2626 100%);
    background-size: 100% 100%, 200% 3px;
    background-position: 0 0, 0 100%;
    background-repeat: no-repeat;
    padding: 1rem 0 !important;
    margin: 0 !important;
    transition: var(--transition);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    overflow: visible !important;
}

.navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .navbar .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), rgba(250, 204, 21, 0.1), transparent);
    animation: navShimmer 3s infinite;
    pointer-events: none;
}

@keyframes navShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    margin-right: 0 !important;
    padding: 0 !important;
}

.navbar-brand span {
    color: var(--text-white) !important;
    -webkit-text-fill-color: var(--text-white) !important;
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    animation: none !important;
    text-shadow: none;
    position: relative;
}

/* Force white for bold brand text */
.navbar .navbar-brand .fw-bold {
    color: var(--text-white) !important;
    -webkit-text-fill-color: var(--text-white) !important;
    text-shadow: none !important;
}

/* Highest specificity fallback to ensure brand title is white everywhere */
nav.navbar.navbar-expand-lg .container .navbar-brand span.fw-bold {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.8));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.6));
    }
}

.navbar-brand img {
    transition: var(--transition);
    filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.5));
    animation: logoFloat 3s ease-in-out infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        filter: drop-shadow(0 4px 6px rgba(220, 38, 38, 0.5));
    }
    50% { 
        transform: translateY(-8px) rotate(5deg);
        filter: drop-shadow(0 8px 12px rgba(250, 204, 21, 0.6));
    }
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    transition: var(--transition);
    position: relative;
    color: var(--text-white) !important;
    z-index: 1;
}

@media (min-width: 992px) {
    .nav-link {
        padding: 0.5rem 1.25rem !important;
        margin: 0 0.25rem;
    }
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 3px;
    background: #dc2626;
    transition: var(--transition);
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 3px;
    background: #dc2626;
    transition: var(--transition);
    z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
    left: 10%;
    transform: translateX(0) scaleX(1);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    left: 10%;
    transform: translateX(0) scaleX(1);
}

.nav-link:hover {
    color: var(--text-white) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
}

.nav-link.active {
    color: var(--text-white) !important;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: rgba(10, 36, 99, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dropdown-item {
    color: var(--text-white) !important;
    transition: var(--transition);
    position: relative;
}

.dropdown-item::before {
    content: '→';
    position: absolute;
    left: 10px;
    opacity: 0;
    transition: var(--transition);
    color: #facc15;
}

.dropdown-item:hover::before {
    opacity: 1;
    left: 15px;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.3), rgba(250, 204, 21, 0.3)) !important;
    color: var(--text-white) !important;
    padding-left: 2rem;
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(250, 204, 21, 0.5);
    padding: 0.25rem 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220, 38, 38, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Scroll Effect */
.navbar.scrolled {
    padding: 0.75rem 0 !important;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
    border-bottom: 3px solid #dc2626;
}

/* ===================================
   HERO CAROUSEL SECTION - Clean Code
   =================================== */

/* Hero Carousel Container */
.hero-carousel-section {
    position: relative;
    width: 100%;
    max-width: 2500px;
    height: 600px;
    overflow: hidden;
    margin: 70px auto 0 auto;
    padding: 0;
}

.hero-carousel-section #heroCarousel {
    width: 100%;
    height: 600px;
}

.hero-carousel-section .carousel-inner {
    width: 100%;
    height: 600px;
    position: relative;
}

.hero-carousel-section .carousel-item {
    width: 100%;
    height: 600px;
    position: relative !important;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 600px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    display: block;
    z-index: 1;
}

/* Hero Overlay & Content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Responsive - Tablets */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Responsive - Mobile */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
}

/* ===================================
   END HERO CAROUSEL SECTION
   =================================== */


/* Buttons - 3D Effect */
.btn {
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--gradient-gold);
    color: #ffffff;
    box-shadow: var(--shadow-gold);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--gradient-gold-hover);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 167, 38, 0.45);
}

.btn-outline-primary {
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--gradient-gold);
    border-color: var(--accent-gold);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-gold);
}

/* Section-specific Text Colors */
/* Subcategories Section */
.subcategories-section .section-title,
.subcategories-section h1,
.subcategories-section h2 {
    color: var(--primary-color) !important;
}

.subcategories-section p {
    color: var(--text-medium) !important;
}

/* Products Section */
.products-section .section-title,
.products-section h1,
.products-section h2,
.products-section h3 {
    color: var(--primary-color) !important;
}

.products-section p {
    color: var(--text-medium) !important;
}

/* Product Details Section */
.product-details h1,
.product-details h2,
.product-details h3 {
    color: var(--primary-color) !important;
}

.product-details p,
.product-details .product-description {
    color: var(--text-medium) !important;
}

/* Related Products Section */
.related-products .section-title,
.related-products h2 {
    color: var(--primary-color) !important;
}

/* Cards - Enhanced 3D */
.card, .category-card, .product-card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    background: var(--bg-white);
    transform-style: preserve-3d;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover, .category-card:hover, .product-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.card-img-top {
    transition: var(--transition);
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

.category-image img, 
.product-image img {
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.category-image, .product-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    background: var(--bg-gradient);
}

/* Ensure images fill their containers while maintaining aspect ratio */
.category-image img,
.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.95) 0%, rgba(30, 58, 138, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover .category-overlay {
    opacity: 1;
}

.category-overlay .btn {
    transform: scale(0.8);
    transition: var(--transition);
}

.category-card:hover .category-overlay .btn {
    transform: scale(1);
}

.card:hover .card-img-top,
.category-card:hover .category-image img,
.product-card:hover .product-image img {
    transform: scale(1.1);
}

.category-content, .product-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow-y: auto;
}

/* Custom scrollbar for cards */
.category-content::-webkit-scrollbar,
.product-content::-webkit-scrollbar,
.feature-card::-webkit-scrollbar,
.value-card::-webkit-scrollbar,
.contact-card::-webkit-scrollbar {
    width: 6px;
}

.category-content::-webkit-scrollbar-track,
.product-content::-webkit-scrollbar-track,
.feature-card::-webkit-scrollbar-track,
.value-card::-webkit-scrollbar-track,
.contact-card::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.category-content::-webkit-scrollbar-thumb,
.product-content::-webkit-scrollbar-thumb,
.feature-card::-webkit-scrollbar-thumb,
.value-card::-webkit-scrollbar-thumb,
.contact-card::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.category-content::-webkit-scrollbar-thumb:hover,
.product-content::-webkit-scrollbar-thumb:hover,
.feature-card::-webkit-scrollbar-thumb:hover,
.value-card::-webkit-scrollbar-thumb:hover,
.contact-card::-webkit-scrollbar-thumb:hover {
    background: #c9a961;
}

/* Standard scrollbar for Firefox */
.category-content,
.product-content,
.feature-card,
.value-card,
.contact-card {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) #f1f5f9;
}

.category-title, .product-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.category-description {
    color: var(--text-medium);
    flex-grow: 1;
    margin-bottom: 0;
}

/* Product Overlay */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 36, 99, 0.95) 0%, rgba(30, 58, 138, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay .btn {
    transform: scale(0.8) translateY(20px);
    transition: var(--transition);
    opacity: 0;
}

.product-card:hover .product-overlay .btn {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 2px solid var(--bg-light);
    gap: 1rem;
}

.product-stock {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
}

.product-stock.in-stock {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.product-stock.out-of-stock {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.product-sku {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-description {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
    position: relative;
}

/* Categories Section */
.categories-section {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.categories-section .container,
.categories-section .row {
    position: relative;
    z-index: 1;
}

/* About Section - with 3D particles */
.about-section {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.about-section .container,
.about-section .row,
.about-section .about-content,
.about-section .about-image {
    position: relative;
    z-index: 1;
}

/* About Content Section */
.about-content {
    background: var(--bg-white);
}

.about-content h1,
.about-content h2,
.about-content h3,
.about-content h4 {
    color: var(--primary-color) !important;
}

.about-content p,
.about-content .content-body {
    color: var(--text-medium) !important;
}

/* Company Stats Section */
.company-stats {
    background: var(--bg-light);
}

.company-stats .section-title {
    color: var(--primary-color) !important;
}

/* Values Section */
.values-section {
    background: var(--bg-white);
}

.values-section .section-title {
    color: var(--primary-color) !important;
}

/* Facility Content Section */
.facility-content {
    background: var(--bg-white);
}

.facility-content h1,
.facility-content h2,
.facility-content h3 {
    color: var(--primary-color) !important;
}

.facility-content p {
    color: var(--text-medium) !important;
}

/* Facility Features Section */
.facility-features {
    background: var(--bg-light);
}

.facility-features .section-title {
    color: var(--primary-color) !important;
}

/* Facility Section - match footer gradient and add 3D particles */
.facility-section {
    position: relative;
    background: var(--gradient-primary);
    color: var(--text-white);
    overflow: hidden;
}

/* Distributor Section - match navbar gradient */
.distributor-section {
    position: relative;
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%) !important;
    color: var(--text-white);
    overflow: hidden;
}

.distributor-section h1,
.distributor-section h2,
.distributor-section h3,
.distributor-section p {
    color: var(--text-white) !important;
}

/* Distributor Content Section */
.distributor-content {
    background: var(--bg-white);
}

.distributor-content h1,
.distributor-content h2,
.distributor-content h3 {
    color: var(--primary-color) !important;
}

.distributor-content p {
    color: var(--text-medium) !important;
}

/* Application Form Section */
.application-form {
    background: var(--bg-light);
}

.application-form .section-title,
.application-form h1,
.application-form h2,
.application-form h3 {
    color: var(--primary-color) !important;
}

.application-form p,
.application-form label {
    color: var(--text-medium) !important;
}

.distributor-section .container,
.distributor-section .row,
.distributor-section .distributor-content {
    position: relative;
    z-index: 1;
}

.facility-section .section-title,
.facility-section .facility-text,
.facility-section h1,
.facility-section h2,
.facility-section h3,
.facility-section p {
    color: var(--text-white) !important;
}

.facility-section .facility-image img {
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
}

.facility-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(201,169,97,0.08), transparent 45%),
                radial-gradient(circle at 60% 70%, rgba(255,255,255,0.05), transparent 50%);
    filter: blur(0.2px);
}

.facility-section .container,
.facility-section .row,
.facility-section .facility-content,
.facility-section .facility-image {
    position: relative;
    z-index: 1;
}

.categories-section .row.g-4 {
    align-items: stretch;
}

.categories-section .col-lg-4,
.categories-section .col-md-6 {
    display: flex;
}

.categories-section .category-card {
    width: 100%;
}

/* Subcategories Section Enhancements */
.subcategories-section .category-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.subcategories-section .category-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(201, 169, 97, 0.3) !important;
}

.subcategories-section .badge {
    transition: all 0.3s ease;
}

.subcategories-section .category-card:hover .badge {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Homepage Category Badge */
.category-image .badge {
    animation: badge-pulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.category-card:hover .category-image .badge {
    animation: none;
    transform: scale(1.1);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--primary-color) !important;
    font-weight: 900;
    background: none !important;
    background-color: transparent !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* Section titles on dark backgrounds */
.bg-dark .section-title,
.bg-primary .section-title,
.facility-section .section-title {
    color: var(--text-white) !important;
}

/* Section titles on light backgrounds */
.bg-light .section-title,
.bg-white .section-title {
    color: var(--primary-color) !important;
}

/* Remove any backgrounds from section title containers */
.section-title,
h2.section-title,
.text-center .section-title,
.col-12 .section-title,
section .section-title {
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Remove backgrounds from title wrapper containers */
.text-center.mb-5,
.col-12.text-center,
.col-12.text-center.mb-5,
section .row .col-12.text-center,
section .container > .row > .col-12 {
    background: transparent !important;
    background-color: transparent !important;
}

/* Section subtitles should also have no background */
.section-subtitle {
    background: none !important;
    background-color: transparent !important;
    color: var(--text-medium);
}

/* Ensure all headings inside sections have no background */
section h1,
section h2,
section h3,
.categories-section h2,
.facility-section h2,
.about-section h2,
.distributor-section h2 {
    background: none !important;
    background-color: transparent !important;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Push header down below fixed navbar */
    transition: var(--transition);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.5);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.page-header:hover::after { opacity: 1; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

.page-header h1 {
    color: var(--text-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    transform: translateY(0);
}

.page-header .page-title {
    position: relative;
    display: inline-block;
}

.page-header .page-subtitle { 
    color: rgba(255, 255, 255, 0.9); 
    position: relative; 
    z-index: 1; 
}

/* Animated particles in page header */
.page-header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* 3D Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-fade-in-down {
    animation: fadeInDown 0.8s ease-out both;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out both;
}

.animate-rotate-y {
    animation: rotateY 0.8s ease-out both;
}

/* Slide in animations */
.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out both;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out both;
}

/* Hide elements initially */
.opacity-0 {
    opacity: 0;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes rotateY {
    from {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Product Details */
.product-details {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.product-image-container img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.product-image-container:hover img {
    transform: scale(1.03);
    box-shadow: var(--shadow-3d);
}

/* Section Carousel Styles - Enhanced with Higher Specificity */
.carousel .page-header-carousel h1,
.carousel .page-header-carousel h1.display-3,
.page-header-carousel .container h1,
.page-header-carousel .container h1.display-3,
div.page-header-carousel h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.carousel .page-header-carousel h1:hover,
.carousel .page-header-carousel h1.display-3:hover,
.page-header-carousel .container h1:hover,
.page-header-carousel .container h1.display-3:hover,
div.page-header-carousel h1:hover {
    color: #f4d03f !important;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.9),
                 0 0 30px rgba(244, 208, 63, 0.7),
                 0 0 40px rgba(244, 208, 63, 0.5),
                 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.02);
}

.carousel .page-header-carousel p,
.carousel .page-header-carousel p.lead,
.page-header-carousel .container p,
.page-header-carousel .container p.lead,
div.page-header-carousel p {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.carousel .page-header-carousel p:hover,
.carousel .page-header-carousel p.lead:hover,
.page-header-carousel .container p:hover,
.page-header-carousel .container p.lead:hover,
div.page-header-carousel p:hover {
    color: #c9a961 !important;
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.8),
                 0 0 25px rgba(201, 169, 97, 0.5),
                 1px 1px 5px rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.01);
}

/* Also target section-header-image for home page sections if needed */
.section-header-image h1,
.section-header-image h2,
.section-header-image .display-3,
.section-header-image .display-4 {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.section-header-image h1:hover,
.section-header-image h2:hover,
.section-header-image .display-3:hover,
.section-header-image .display-4:hover {
    color: #f4d03f !important;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.9),
                 0 0 30px rgba(244, 208, 63, 0.7),
                 0 0 40px rgba(244, 208, 63, 0.5),
                 2px 2px 8px rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.02);
}

.section-header-image p,
.section-header-image .lead {
    color: #ffffff !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.section-header-image p:hover,
.section-header-image .lead:hover {
    color: #c9a961 !important;
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.8),
                 0 0 25px rgba(201, 169, 97, 0.5),
                 1px 1px 5px rgba(0, 0, 0, 0.7) !important;
    transform: scale(1.01);
}

/* Footer - Enhanced 3D Design */
.footer {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.5);
}

.footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer h5 {
    color: var(--accent-gold);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.5);
}

.footer p {
    margin-bottom: 0.75rem;
    opacity: 0.9;
    transition: var(--transition);
    position: relative;
    padding-left: 0;
}

.footer p:hover {
    opacity: 1;
    transform: translateX(5px);
    color: var(--accent-gold);
}

.footer i {
    color: var(--accent-gold);
    transition: var(--transition);
}

.footer p:hover i {
    transform: scale(1.2);
    color: var(--accent-light);
}

/* Social Links - Redesigned */
.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(201, 169, 97, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-decoration: none;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    transition: var(--transition);
    z-index: 0;
}

.social-links a:hover::before {
    left: 0;
}

.social-links a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.3) 0%, transparent 70%);
    transition: var(--transition);
    z-index: 1;
}

.social-links a:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 30px rgba(201, 169, 97, 0.4), 
                0 0 0 4px rgba(201, 169, 97, 0.1);
}

.social-links a i {
    position: relative;
    z-index: 2;
    transition: var(--transition);
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 1.25rem;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-links a:hover i {
    color: var(--primary-color);
    transform: scale(1.2) rotate(5deg);
}

/* Specific social media colors on hover */
.social-links a[href*="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-links a[href*="facebook"]:hover i {
    color: white;
}

.social-links a[href*="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-links a[href*="twitter"]:hover i {
    color: white;
}

.social-links a[href*="linkedin"]:hover {
    background: #0a66c2;
    border-color: #0a66c2;
}

.social-links a[href*="linkedin"]:hover i {
    color: white;
}

/* Footer HR - Animated */
.footer hr {
    border: none;
    height: 3px;
    background: linear-gradient(to right, transparent, rgba(201, 169, 97, 0.5), transparent);
    margin: 2rem 0;
    position: relative;
    animation: pulseLine 2s ease-in-out infinite;
}

.footer hr::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 9px;
    background: var(--gradient-gold);
    border-radius: 5px;
    animation: shimmer 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.8);
}

.footer hr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(201, 169, 97, 0.8);
    border-radius: 3px;
    animation: moveAcross 3s ease-in-out infinite;
}

@keyframes pulseLine {
    0%, 100% {
        opacity: 0.6;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes moveAcross {
    0% {
        left: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: calc(100% - 50px);
        opacity: 0;
    }
}

/* Footer Links */
.footer a {
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.footer a:hover {
    color: var(--accent-gold);
}

/* Quick Links Hover Effect */
.footer .list-unstyled {
    padding: 0;
    margin: 0;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.footer .list-unstyled li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    font-weight: bold;
}

.footer .list-unstyled li:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer .list-unstyled a {
    display: inline-block;
    padding: 0.25rem 0;
    transition: var(--transition);
    position: relative;
}

.footer .list-unstyled a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.footer .list-unstyled a:hover {
    color: var(--accent-gold);
    transform: translateX(8px);
}

.footer .list-unstyled a:hover::after {
    width: 100%;
}

/* Copyright */
.footer .text-center p {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer Particles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Image Overlays */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 36, 99, 0.5) 100%);
    opacity: 0;
    transition: var(--transition);
}

.image-overlay:hover::after {
    opacity: 1;
}

/* Facility Highlights - Interactive */
.feature-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    max-height: 400px;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-gold);
    color: var(--primary-color);
    font-size: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--bg-white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotateY(360deg);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

.feature-card:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-icon i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.feature-card:hover h3 {
    color: var(--accent-gold);
    transform: translateY(-5px);
}

.feature-card p {
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.6;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

/* Stat Cards - Interactive */
.stat-card {
    padding: 2rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 100%;
    max-height: 250px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-number {
    color: var(--accent-gold);
    transform: scale(1.1) rotateY(360deg);
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-medium);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.stat-card:hover .stat-label {
    color: var(--text-dark);
}

.stat-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

/* Value Cards - Interactive */
.value-card {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    cursor: pointer;
    height: 100%;
    max-height: 400px;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: var(--gradient-gold);
    transition: var(--transition);
}

.value-card:hover::after {
    width: 100%;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--text-white);
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.value-card:hover .value-icon::before {
    opacity: 1;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.5);
}

.value-icon i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.value-card:hover .value-icon i {
    color: var(--primary-color);
}

.value-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.value-card:hover h3 {
    color: var(--accent-gold);
}

.value-card p {
    color: var(--text-medium);
    margin: 0;
    line-height: 1.6;
}

.value-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-3d);
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

/* Custom Utilities */
.rounded-shadow {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-glow {
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.5);
}

/* Responsive - Mobile First Approach */
@media (max-width: 575.98px) {
    /* Mobile */
    body {
        padding-top: 0;
    }
    
    .navbar {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand span {
        animation: gradientShift 2.5s ease-in-out infinite;
    }
    
    .navbar-brand img {
        height: 30px !important;
        max-width: 100%;
        width: auto;
    }
    
    /* Enhanced responsive images for mobile (excluding category/product images) */
    img:not(.category-image img):not(.product-image img) {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* Override height attribute on mobile (excluding category/product images) */
    img[height]:not(.category-image img):not(.product-image img) {
        height: auto !important;
    }
    
    /* Category and product images must fill their containers */
    .product-image img,
    .category-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .category-image,
    .product-image {
        position: relative;
        overflow: hidden;
        height: 200px;
        min-height: 200px;
        max-height: 300px;
    }
    
    .facility-image img,
    .about-image img,
    .about-content img,
    .facility-content img {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
    }
    
    .product-image-container,
    .product-image-container img {
        max-height: 400px !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .navbar-brand img,
    .footer-brand img {
        max-height: 30px !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Carousel images on mobile */
    .page-header-carousel {
        min-height: 250px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
    }
    
    .page-header {
        margin-top: 80px; /* Push header down below mobile navbar */
    }
    
    /* Mobile-friendly buttons */
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .btn-lg {
        padding: 0.85rem 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Center buttons on mobile */
    .text-center .btn,
    .text-center button {
        margin: 0.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .social-links a i {
        font-size: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small tablets */
    /* Responsive images for tablets (excluding category/product images) */
    img:not(.category-image img):not(.product-image img) {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
    }
    
    /* Override height attribute on tablets (excluding category/product images) */
    img[height]:not(.category-image img):not(.product-image img) {
        height: auto !important;
    }
    
    /* Category and product images must fill their containers */
    .product-image img,
    .category-image img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .category-image,
    .product-image {
        position: relative;
        overflow: hidden;
        height: 220px;
        min-height: 220px;
        max-height: 350px;
    }
    
    .facility-image img,
    .about-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 350px;
        object-fit: cover;
    }
    
    .product-image-container,
    .product-image-container img {
        max-height: 500px !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .navbar-brand img,
    .footer-brand img {
        max-height: 35px !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Carousel images on tablets */
    .page-header-carousel {
        min-height: 300px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .btn {
        padding: 0.8rem 1.75rem !important;
        font-size: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.9rem 2.25rem !important;
        font-size: 1.05rem !important;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.4rem; }
}

@media (max-width: 991.98px) {
    /* Tablets and below */
    .category-image,
    .product-image {
        height: 250px;
        min-height: 200px;
        max-height: 300px;
        position: relative;
        overflow: hidden;
    }
    
    .category-image img,
    .product-image img {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Ensure all images remain responsive */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    img[height] {
        height: auto !important;
    }
}

@media (max-width: 1199.98px) {
    /* Medium screens */
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (min-width: 1200px) {
    /* Large screens */
    h1 { font-size: 3.75rem; }
    h2 { font-size: 2.85rem; }
}

/* Contact Section */
.contact-section {
    background: var(--bg-light);
}

.contact-section .section-title {
    color: var(--primary-color) !important;
}

.contact-section h1,
.contact-section h2,
.contact-section h3 {
    color: var(--primary-color) !important;
}

.contact-section p,
.contact-section label {
    color: var(--text-medium) !important;
}

/* Contact Cards - Compact Design */
.contact-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    max-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-card .contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--transition);
}

.contact-card .contact-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(201, 169, 97, 0.4);
}

.contact-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card .contact-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    word-break: break-word;
}

.contact-card .contact-link:hover {
    color: var(--accent-gold);
}

.contact-card .contact-text {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Carousel Position - Account for Fixed Navbar */
.carousel#facilityCarousel,
.carousel#aboutCarousel,
.carousel#contactCarousel,
.carousel#distributorCarousel,
.carousel#categoryCarousel {
    margin-top: 75px; /* Push carousel down below fixed navbar */
}

@media (max-width: 575.98px) {
    .carousel#facilityCarousel,
    .carousel#aboutCarousel,
    .carousel#contactCarousel,
    .carousel#distributorCarousel,
    .carousel#categoryCarousel {
        margin-top: 60px; /* Mobile navbar height */
    }
}

/* Carousel Header Hover Effects - Final Override */
#facilityCarousel h1:hover,
#aboutCarousel h1:hover,
#contactCarousel h1:hover,
#distributorCarousel h1:hover,
#categoryCarousel h1:hover {
    color: #f4d03f !important;
    text-shadow: 0 0 20px rgba(244, 208, 63, 0.9),
                 0 0 30px rgba(244, 208, 63, 0.7),
                 0 0 40px rgba(244, 208, 63, 0.5) !important;
    transform: scale(1.02) !important;
}

#facilityCarousel p:hover,
#aboutCarousel p:hover,
#contactCarousel p:hover,
#distributorCarousel p:hover,
#categoryCarousel p:hover {
    color: #c9a961 !important;
    text-shadow: 0 0 15px rgba(201, 169, 97, 0.8),
                 0 0 25px rgba(201, 169, 97, 0.5) !important;
    transform: scale(1.01) !important;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}