/* Custom styles for AgriNitro India website */

/* ========================================
   GLOBAL FONT FAMILY - Satoshi-Bold
   ======================================== */

/* Import Satoshi font from CDN (using similar font as fallback) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&family=DM+Sans:wght@700;800;900&display=swap');

/* Apply Satoshi-Bold (with fallbacks) to entire website */
body, html {
    font-family: 'Satoshi-Bold', 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* Apply to all text elements except icons */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select, label,
.btn, .card, .nav-link, .dropdown-item {
    font-family: 'Satoshi-Bold', 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* Preserve Font Awesome icons */
.fa, .fas, .far, .fal, .fab,
[class^="fa-"], [class*=" fa-"],
i.fa, i.fas, i.far, i.fal, i.fab {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'FontAwesome' !important;
    font-weight: 900 !important;
}

/* ========================================
   TASK 4: STANDARDIZED SPACING SYSTEM
   ======================================== */

/* Standardized Spacing Scale using CSS Variables */
:root {
    /* Spacing Scale Variables */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 3rem;     /* 48px */
    --spacing-xxl: 4rem;    /* 64px */
    
    /* Line Height Standard */
    --line-height-base: 1.6;
    
    /* Font Family */
    --font-family-base: 'Satoshi-Bold', 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* Apply uniform margins to all section titles */
h1, h2, h3, h4, h5, h6,
.section-title,
.page-title,
.content-title {
    margin-top: var(--spacing-lg);    /* 2rem top */
    margin-bottom: var(--spacing-md); /* 1.5rem bottom */
    line-height: var(--line-height-base);
}

/* Override for first heading in a section */
section > h1:first-child,
section > h2:first-child,
section > h3:first-child,
.section > h1:first-child,
.section > h2:first-child,
.section > h3:first-child {
    margin-top: 0;
}

/* Apply consistent padding to all content sections */
section,
.section,
.content-section {
    padding: var(--spacing-md); /* 1.5rem padding */
}

/* Set line-height to 1.6 for all text blocks */
p, .text-block, .content-text,
li, .list-item,
.description, .text-content {
    line-height: var(--line-height-base); /* 1.6 */
}

/* Apply responsive padding to containers */
.container,
.container-fluid,
.content-container {
    padding-left: var(--spacing-sm);  /* 1rem mobile */
    padding-right: var(--spacing-sm); /* 1rem mobile */
}

/* Desktop responsive padding */
@media (min-width: 769px) {
    .container,
    .container-fluid,
    .content-container {
        padding-left: var(--spacing-lg);  /* 2rem desktop */
        padding-right: var(--spacing-lg); /* 2rem desktop */
    }
    
    section,
    .section,
    .content-section {
        padding: var(--spacing-xl) var(--spacing-lg); /* More padding on desktop */
    }
}

/* Apply consistent spacing to common elements */
.card-body {
    padding: var(--spacing-md);
}

.card-header,
.card-footer {
    padding: var(--spacing-sm) var(--spacing-md);
}

.modal-body {
    padding: var(--spacing-md);
}

.modal-header,
.modal-footer {
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Form spacing consistency */
.form-group,
.mb-3 {
    margin-bottom: var(--spacing-md) !important;
}

.form-label {
    margin-bottom: var(--spacing-xs);
}

/* Button spacing */
.btn {
    padding: var(--spacing-xs) var(--spacing-md);
}

.btn-lg {
    padding: var(--spacing-sm) var(--spacing-lg);
}

.btn-sm {
    padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
}

/* List spacing */
ul, ol {
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

li {
    margin-bottom: var(--spacing-xs);
}

/* Paragraph spacing */
p {
    margin-bottom: var(--spacing-md);
}

/* Image spacing */
img {
    margin-bottom: var(--spacing-md);
}

/* Table spacing */
.table th,
.table td {
    padding: var(--spacing-sm);
}

/* Alert spacing */
.alert {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Badge spacing */
.badge {
    padding: var(--spacing-xs) var(--spacing-sm);
}

/* Breadcrumb spacing */
.breadcrumb {
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Navbar spacing */
.navbar {
    padding: var(--spacing-sm) var(--spacing-md);
}

/* Footer spacing - maintain existing footer styles but ensure consistency */
.footer-section {
    padding: var(--spacing-lg); /* 2rem consistent padding */
}

/* ======================================== */

body {
    font-family: 'Arial', sans-serif;
    padding-top: 0; /* Reset any default padding since we handle fixed navbar spacing */
    line-height: var(--line-height-base); /* Apply 1.6 line-height to body */
}

/* Header and Navigation Styles */
.navbar {
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
    font-weight: bold;
    color: #28a745 !important;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: #1e7e34 !important;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand span {
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333 !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #28a745 !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: #28a745 !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #28a745;
}

/* Mobile Navigation Styles */
.navbar-toggler {
    display: none !important; /* Hide hamburger menu */
}

.navbar-toggler:focus {
    box-shadow: none;
}

.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%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Always show navigation menu */
.navbar-nav-container {
    display: flex !important;
    flex-grow: 1;
    align-items: center;
    justify-content: flex-end;
}

.navbar-nav-container .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    margin-left: auto;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid #f8f9fa;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Touch-friendly button sizes for mobile */
@media (max-width: 768px) {
    .navbar-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Professional Agricultural Footer */
.professional-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%) !important;
    position: relative;
    color: #fff !important;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997, #17a2b8, #28a745);
}

.professional-footer .footer-main {
    background: rgba(0, 0, 0, 0.4) !important;
}

.professional-footer .footer-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.professional-footer .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #28a745;
}

.professional-footer .footer-description {
    color: #e9ecef;
    line-height: 1.7;
    font-size: 0.95rem;
}

.professional-footer .footer-nav li {
    margin-bottom: 0.75rem;
}

.professional-footer .footer-link {
    color: #ced4da;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
}

.professional-footer .footer-link:hover {
    color: #28a745;
    transform: translateX(5px);
}

.professional-footer .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.professional-footer .social-btn.facebook {
    background: rgba(59, 89, 152, 0.2);
    color: #3b5998;
    border: 1px solid rgba(59, 89, 152, 0.3);
}

.professional-footer .social-btn.facebook:hover {
    background: #3b5998;
    color: white;
    transform: translateY(-3px);
}

.professional-footer .social-btn.twitter {
    background: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
    border: 1px solid rgba(29, 161, 242, 0.3);
}

.professional-footer .social-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    transform: translateY(-3px);
}

.professional-footer .social-btn.linkedin {
    background: rgba(0, 119, 181, 0.2);
    color: #0077b5;
    border: 1px solid rgba(0, 119, 181, 0.3);
}

.professional-footer .social-btn.linkedin:hover {
    background: #0077b5;
    color: white;
    transform: translateY(-3px);
}

.professional-footer .social-btn.instagram {
    background: rgba(225, 48, 108, 0.2);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.professional-footer .social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    transform: translateY(-3px);
}

.professional-footer .social-btn.youtube {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.professional-footer .social-btn.youtube:hover {
    background: #ff0000;
    color: white;
    transform: translateY(-3px);
}

.professional-footer .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.professional-footer .contact-item i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1.1rem;
}

.professional-footer .footer-bottom {
    border-top: 1px solid rgba(40, 167, 69, 0.3);
    background: rgba(0, 0, 0, 0.6);
}

.professional-footer .footer-legal-link {
    color: #adb5bd;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.professional-footer .footer-legal-link:hover {
    color: #28a745;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .professional-footer .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .professional-footer .social-links {
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .professional-footer .contact-item {
        margin-bottom: 1.5rem;
    }
}

/* Enhanced Footer Styles - DEPRECATED */
.footer-enhanced {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #0f1419 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(40, 167, 69, 0.2);
    text-align: center; /* Task 2: Center-align footer content */
}

/* Task 2: Center-align footer row content using flexbox */
.footer-enhanced .row {
    justify-content: center;
    align-items: flex-start;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #28a745 15%, 
        #20c997 30%, 
        #17a2b8 50%, 
        #20c997 70%, 
        #28a745 85%, 
        transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
    z-index: 2;
}

.footer-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(40, 167, 69, 0.08) 30%, 
        rgba(32, 201, 151, 0.12) 50%, 
        rgba(40, 167, 69, 0.08) 70%, 
        transparent);
    animation: sweep 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes shimmer {
    0%, 100% { 
        opacity: 0.6; 
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2);
    }
}

@keyframes sweep {
    0% { 
        left: -100%; 
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        left: 100%; 
        opacity: 0;
    }
}

/* Footer scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        #28a745 0%, 
        #20c997 50%, 
        #17a2b8 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 
        0 6px 20px rgba(40, 167, 69, 0.4),
        0 0 0 0 rgba(40, 167, 69, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.scroll-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Slower animation on mobile to prevent blinking */
@media (max-width: 768px) {
    .scroll-to-top.visible {
        animation: pulse-glow-mobile 4s ease-in-out infinite;
    }
}

.scroll-to-top:hover {
    transform: translateY(-6px) scale(1.15);
    box-shadow: 
        0 12px 32px rgba(40, 167, 69, 0.6),
        0 0 0 4px rgba(40, 167, 69, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, 
        #20c997 0%, 
        #17a2b8 50%, 
        #28a745 100%);
}

.scroll-to-top:hover::before {
    opacity: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 6px 20px rgba(40, 167, 69, 0.4),
            0 0 0 0 rgba(40, 167, 69, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(40, 167, 69, 0.5),
            0 0 0 8px rgba(40, 167, 69, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

/* Gentler animation for mobile devices */
@keyframes pulse-glow-mobile {
    0%, 100% {
        box-shadow: 
            0 6px 20px rgba(40, 167, 69, 0.3),
            0 0 0 0 rgba(40, 167, 69, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 7px 22px rgba(40, 167, 69, 0.4),
            0 0 0 4px rgba(40, 167, 69, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }
}

/* Footer fade-in animation */
.footer-enhanced {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for footer sections */
.footer-section {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Section Styling */
.footer-section {
    height: 100%;
    padding: 2rem; /* Task 2: Consistent padding of 2rem */
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(40, 167, 69, 0.1);
    text-align: center; /* Task 2: Center-align footer content */
    line-height: 1.6; /* Task 2: Set line-height to 1.6 */
}

.footer-section:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 
        0 12px 40px rgba(40, 167, 69, 0.15),
        0 0 0 1px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.08) 0%, 
        rgba(32, 201, 151, 0.06) 50%, 
        rgba(23, 162, 184, 0.04) 100%);
    border-radius: 20px;
    border: 2px solid rgba(40, 167, 69, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.footer-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

.footer-brand:hover {
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.15) 0%, 
        rgba(32, 201, 151, 0.12) 50%, 
        rgba(23, 162, 184, 0.08) 100%);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 
        0 8px 32px rgba(40, 167, 69, 0.2),
        0 0 0 1px rgba(40, 167, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.footer-brand:hover::before {
    left: 100%;
}

.footer-logo {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    filter: brightness(1.1) contrast(1.1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 0 2px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(40, 167, 69, 0.3);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
}

.footer-brand:hover .footer-logo {
    transform: scale(1.15) rotate(3deg);
    filter: brightness(1.4) contrast(1.2) saturate(1.2);
    box-shadow: 
        0 8px 24px rgba(40, 167, 69, 0.4),
        0 0 0 3px rgba(40, 167, 69, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(40, 167, 69, 0.6);
}

.footer-brand h5 {
    background: linear-gradient(135deg, 
        #28a745 0%, 
        #20c997 25%, 
        #17a2b8 50%, 
        #20c997 75%, 
        #28a745 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    font-family: 'Arial Black', Arial, sans-serif;
    text-transform: uppercase;
}

.footer-brand h5::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #28a745 20%, 
        #20c997 50%, 
        #28a745 80%, 
        transparent 100%);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-brand:hover h5::after {
    opacity: 1;
}

.footer-description {
    line-height: 1.6; /* Task 2: Maintain line-height 1.6 */
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #28a745;
    position: relative;
    overflow: hidden;
    text-align: center; /* Task 2: Center-align text */
}

.footer-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #28a745, #20c997);
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Footer Titles */
.footer-title {
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Black', Arial, sans-serif;
    background: linear-gradient(135deg, 
        #28a745 0%, 
        #20c997 30%, 
        #17a2b8 60%, 
        #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        #28a745 0%, 
        #20c997 50%, 
        #17a2b8 100%);
    border-radius: 2px;
    animation: expand-line 1s ease-out;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.footer-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(40, 167, 69, 0.3) 0%, 
        transparent 60%);
    border-radius: 1px;
}

.footer-section:hover .footer-title::after {
    width: 80px;
    background: linear-gradient(90deg, 
        #20c997 0%, 
        #17a2b8 50%, 
        #28a745 100%);
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.6);
}

@keyframes expand-line {
    0% { 
        width: 0; 
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% { 
        width: 60px; 
        opacity: 1;
    }
}

/* Enhanced Typography Hierarchy */
.footer-enhanced {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-enhanced h5,
.footer-enhanced h6 {
    font-family: 'Arial Black', Arial, sans-serif;
}

.footer-enhanced .footer-description {
    font-family: 'Georgia', serif;
    font-style: italic;
    line-height: 1.7;
}

/* Company Branding Enhancement */
.footer-brand-enhanced {
    position: relative;
}

.footer-brand-enhanced::after {
    content: 'Quality • Innovation • Trust';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(40, 167, 69, 0.8);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-brand:hover .footer-brand-enhanced::after {
    opacity: 1;
}

/* Enhanced Visual Hierarchy */
.footer-section-priority-1 {
    order: 1;
}

.footer-section-priority-2 {
    order: 2;
}

.footer-section-priority-3 {
    order: 3;
}

.footer-section-priority-4 {
    order: 4;
    /* Task 2: Hide Services section */
    display: none !important;
}

/* Improved Color Scheme */
:root {
    --footer-primary: #28a745;
    --footer-secondary: #20c997;
    --footer-accent: #17a2b8;
    --footer-bg-primary: #0f1419;
    --footer-bg-secondary: #1a2332;
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #cbd5db;
    --footer-text-muted: #adb5bd;
    --footer-border: rgba(40, 167, 69, 0.2);
    --footer-hover: rgba(40, 167, 69, 0.1);
}

/* Enhanced Micro-interactions */
.footer-link,
.social-link,
.contact-item,
.footer-legal-link {
    will-change: transform;
}

/* Performance optimizations */
.footer-enhanced * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced accessibility */
.footer-enhanced a:focus {
    outline: 2px solid var(--footer-secondary);
    outline-offset: 2px;
}

.footer-enhanced button:focus {
    outline: 2px solid var(--footer-secondary);
    outline-offset: 2px;
}

/* Footer Links */
.footer-links {
    margin: 0;
    padding: 0;
    text-align: center; /* Task 2: Center-align footer links */
    line-height: 1.6; /* Task 2: Set line-height to 1.6 */
}

.footer-link {
    color: #adb5bd !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem 0;
    position: relative;
    border-radius: 6px;
    background: transparent;
    border-left: 2px solid transparent;
    line-height: 1.6; /* Task 2: Set line-height to 1.6 */
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 0 6px 6px 0;
}

.footer-link:hover {
    color: #28a745 !important;
    transform: translateX(8px);
    text-decoration: none;
    background: rgba(40, 167, 69, 0.05);
    border-left-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.footer-link:hover::before {
    width: 3px;
}

.footer-link i {
    font-size: 0.85rem;
    width: 18px;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    color: #28a745;
}

.footer-link:hover i {
    opacity: 1;
    transform: scale(1.1);
    color: #20c997;
}

/* Compact Footer Styles */
.compact-list {
    margin: 0;
    padding: 0;
}

.compact-list li {
    margin-bottom: 0.5rem !important;
}

.compact-list .footer-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

.contact-info-compact {
    font-size: 0.9rem;
}

.contact-item-compact {
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.contact-item-compact i {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item-compact .footer-link {
    padding: 0;
    margin: 0;
    display: inline;
    font-size: 0.85rem;
}

/* Reduce footer section spacing */
.footer-section {
    padding: 0;
}

.footer-title {
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

/* Social Media Links */
.footer-social {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(40, 167, 69, 0.05) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 15px;
    border: 2px solid rgba(40, 167, 69, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.footer-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #28a745 20%, 
        #20c997 50%, 
        #17a2b8 80%, 
        transparent 100%);
    animation: social-glow 3s ease-in-out infinite;
}

.footer-social:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(40, 167, 69, 0.12) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 
        0 8px 32px rgba(40, 167, 69, 0.2),
        0 0 0 1px rgba(40, 167, 69, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

@keyframes social-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-social h6 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: linear-gradient(45deg, #28a745, #20c997, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social h6::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, 
        #28a745 0%, 
        #20c997 50%, 
        #17a2b8 100%);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.footer-social h6::before {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(40, 167, 69, 0.3) 50%, 
        transparent 100%);
}

.social-links {
    gap: 1rem !important;
    justify-content: center;
    padding: 0.5rem 0;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(73, 80, 87, 0.6);
    border-radius: 50%;
    color: #adb5bd !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(40, 167, 69, 0.03) 50%, 
        rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.2), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: 0;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    width: 120%;
    height: 120%;
}

.social-link:hover::after {
    opacity: 1;
}

.social-link:hover {
    border-color: #28a745;
    color: #28a745 !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.social-link i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Specific social media colors on hover */
.social-link.facebook:hover {
    border-color: #1877f2;
    color: #1877f2 !important;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-link.twitter:hover {
    border-color: #1da1f2;
    color: #1da1f2 !important;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    color: #0077b5 !important;
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.social-link.instagram:hover {
    border-color: #e4405f;
    color: #e4405f !important;
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.3);
}

.social-link.youtube:hover {
    border-color: #ff0000;
    color: #ff0000 !important;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* WhatsApp contact icon styling */
.contact-icon .fa-whatsapp {
    color: #25d366 !important;
}

.footer-link[href*="wa.me"]:hover {
    color: #25d366 !important;
}

/* Contact Information */
.contact-info {
    margin-top: 0.5rem;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.04) 0%, 
        rgba(40, 167, 69, 0.06) 50%, 
        rgba(255, 255, 255, 0.03) 100%);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(40, 167, 69, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #28a745 20%, 
        #20c997 40%, 
        #17a2b8 60%, 
        #20c997 80%, 
        #28a745 100%);
    animation: contact-glow 4s ease-in-out infinite;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(40, 167, 69, 0.4) 50%, 
        transparent 100%);
}

@keyframes contact-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.contact-item {
    margin-bottom: 1.5rem !important;
    align-items: flex-start !important;
    padding: 1.25rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(40, 167, 69, 0.1);
    backdrop-filter: blur(5px);
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(180deg, 
        #28a745 0%, 
        #20c997 50%, 
        #17a2b8 100%);
    border-radius: 16px 0 0 16px;
    transition: width 0.4s ease;
}

.contact-item:hover {
    background: rgba(40, 167, 69, 0.08);
    transform: translateX(8px) translateY(-2px);
    border-color: rgba(40, 167, 69, 0.3);
    box-shadow: 
        0 8px 24px rgba(40, 167, 69, 0.2),
        0 0 0 1px rgba(40, 167, 69, 0.2);
}

.contact-item:hover::before {
    width: 4px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(40, 167, 69, 0.2) 0%, 
        rgba(32, 201, 151, 0.15) 50%, 
        rgba(23, 162, 184, 0.1) 100%);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 50%;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(40, 167, 69, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    border-color: #28a745;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.contact-item:hover .contact-icon::before {
    width: 100%;
    height: 100%;
}

.contact-icon i {
    font-size: 1.1rem;
    color: #28a745;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon i {
    color: #20c997;
    transform: scale(1.1);
}

.contact-details {
    flex: 1;
    line-height: 1.6; /* Task 2: Maintain line-height 1.6 */
    text-align: center; /* Task 2: Center-align contact details */
}

.contact-details strong {
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-details span,
.contact-details a {
    font-size: 0.9rem;
    color: #adb5bd;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #28a745;
    text-decoration: none;
}

/* Footer Bottom */
.footer-bottom {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(15, 20, 25, 0.6) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    border-top: 2px solid rgba(40, 167, 69, 0.3) !important;
    position: relative;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 -4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center; /* Task 2: Center-align footer bottom */
    line-height: 1.6; /* Task 2: Set line-height to 1.6 */
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #28a745 15%, 
        #20c997 30%, 
        #17a2b8 50%, 
        #20c997 70%, 
        #28a745 85%, 
        transparent 100%);
    animation: footer-bottom-glow 5s ease-in-out infinite;
}

.footer-bottom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(40, 167, 69, 0.5) 50%, 
        transparent 100%);
}

@keyframes footer-bottom-glow {
    0%, 100% { 
        opacity: 0.6; 
        transform: scaleX(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2);
    }
}

.footer-bottom p {
    font-size: 0.95rem;
    color: #cbd5db;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    align-items: center;
}

.footer-legal-link {
    color: #20c997 !important;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid rgba(32, 201, 151, 0.3);
    background: linear-gradient(135deg, 
        rgba(32, 201, 151, 0.08) 0%, 
        rgba(40, 167, 69, 0.06) 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(32, 201, 151, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    letter-spacing: 0.3px;
}

.footer-legal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(32, 201, 151, 0.3) 30%, 
        rgba(40, 167, 69, 0.2) 70%, 
        transparent);
    transition: left 0.6s ease;
}

.footer-legal-link:hover {
    background: linear-gradient(135deg, 
        rgba(32, 201, 151, 0.2) 0%, 
        rgba(40, 167, 69, 0.15) 100%);
    color: #17a2b8 !important;
    text-decoration: none;
    border-color: #20c997;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(32, 201, 151, 0.3),
        0 0 0 1px rgba(32, 201, 151, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-legal-link:hover::before {
    left: 100%;
}

/* Responsive Footer Adjustments */
@media (max-width: 1199.98px) {
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .contact-info .col-lg-12 {
        margin-top: 1rem;
    }
}

@media (max-width: 991.98px) {
    .footer-enhanced .container-fluid {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .footer-brand {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: left;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 767.98px) {
    .footer-enhanced .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .footer-enhanced .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-brand h5 {
        font-size: 1.2rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
    }
    
    .contact-icon {
        width: 35px;
        height: 35px;
    }
    
    .footer-legal {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .footer-legal-link {
        display: inline-block;
        margin: 0 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .footer-enhanced .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .footer-brand {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-logo {
        margin-bottom: 0.5rem;
    }
    
    .footer-brand h5 {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .footer-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .footer-link {
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link i {
        font-size: 0.9rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
        width: 32px;
        height: 32px;
    }
    
    .contact-details {
        text-align: center;
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    .footer-legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Home Page Styles */
.hero-section {
    background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.7)), url('../../bgimage/bg-header-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 70vh;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.min-vh-75 {
    min-height: 75vh;
}

/* Product Card Styles */
.product-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Placeholder image for missing product images */
.product-card .card-img-top[src*="placeholder-product.svg"],
.product-card .card-img-top[onerror] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 3rem;
}

.product-card .card-img-top[src*="placeholder-product.svg"]:before {
    content: '\f1c0'; /* FontAwesome seedling icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Video Section Styles */
.video-container {
    max-width: 800px;
    margin: 0 auto;
}

.ratio iframe {
    border-radius: 10px;
}

/* Feature Icons Styles */
.bg-primary.rounded-circle,
.bg-success.rounded-circle,
.bg-warning.rounded-circle {
    transition: all 0.3s ease;
}

.bg-primary.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

.bg-success.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.bg-warning.rounded-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255,193,7,0.3);
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    .hero-section .container {
        padding: 0 1rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem !important;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1rem !important;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
        min-height: 40vh;
    }
    
    .hero-product-slider {
        height: 220px !important;
        overflow: hidden !important;
    }
    
    .slider-track {
        animation: slideUpInfinite 25s linear infinite !important;
        position: absolute !important;
        width: 100% !important;
    }
    
    .slider-product-card {
        margin: 0.5rem !important;
        padding: 0.75rem !important;
        min-width: 200px !important;
    }
    
    .slider-product-image {
        width: 40px !important;
        height: 40px !important;
    }
    
    .slider-product-name {
        font-size: 0.85rem !important;
    }
    
    .slider-product-description {
        font-size: 0.75rem !important;
        display: none; /* Hide description on very small screens */
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* Modal Enhancements */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

/* Category Button Styles */
.category-btn {
    min-width: 180px;
    min-height: 50px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #28a745;
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
    text-decoration: none;
}

.category-btn.btn-success {
    background-color: #28a745;
    color: white;
}

.category-btn.btn-outline-success {
    background-color: transparent;
    color: #28a745;
}

.category-btn.btn-outline-success:hover {
    background-color: #28a745;
    color: white;
}

.category-btn i {
    font-size: 1.1rem;
}

/* Responsive Category Buttons */
@media (max-width: 768px) {
    .category-btn {
        min-width: 160px;
        min-height: 48px;
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .category-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .category-btn {
        min-width: 140px;
        min-height: 44px;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .category-btn i {
        font-size: 0.9rem;
    }
    
    /* Stack buttons vertically on very small screens */
    .d-flex.flex-wrap.justify-content-center {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
    .category-btn {
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.2);
        touch-action: manipulation;
    }
}

/* Enhanced Mobile Form Optimizations */
@media (max-width: 768px) {
    /* Touch-friendly form inputs with enhanced mobile support */
    .form-control,
    .form-select {
        min-height: 48px; /* Increased from 44px for better touch targets */
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 18px; /* Increased padding for better touch area */
        border-radius: 12px; /* More rounded for modern mobile feel */
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
        -webkit-appearance: none; /* Remove default iOS styling */
        -moz-appearance: none;
        appearance: none;
        background-color: #fff;
        line-height: 1.5;
    }
    
    /* Enhanced focus states for better mobile interaction */
    .form-control:focus,
    .form-select:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        transform: scale(1.02);
        outline: none;
        background-color: #fff;
    }
    
    /* Mobile-specific input types for better UX */
    input[type="tel"] {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }
    
    input[type="email"] {
        -webkit-appearance: none;
        text-transform: none;
    }
    
    input[type="url"] {
        -webkit-appearance: none;
    }
    
    /* Enhanced touch-friendly buttons */
    .btn {
        min-height: 48px; /* Increased minimum touch target */
        min-width: 48px; /* Ensure square buttons are large enough */
        padding: 14px 24px; /* Increased padding */
        font-size: 16px;
        border-radius: 12px; /* More rounded corners */
        font-weight: 600;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: all 0.2s ease;
    }
    
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        min-height: 52px;
        min-width: 52px;
        padding: 16px 28px;
        font-size: 18px;
    }
    
    /* Enhanced touch feedback with ripple effect */
    .btn:active {
        transform: scale(0.96);
        transition: transform 0.1s ease;
    }
    
    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease;
        pointer-events: none;
    }
    
    .btn:active::before {
        width: 300px;
        height: 300px;
    }
    
    /* Enhanced textarea optimization */
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
        line-height: 1.6;
        font-family: inherit;
    }
    
    /* Enhanced form labels */
    .form-label {
        font-weight: 600;
        font-size: 16px;
        margin-bottom: 10px;
        color: #495057;
        display: block;
        line-height: 1.4;
    }
    
    .form-label .text-danger {
        color: #dc3545 !important;
        font-weight: 700;
    }
    
    /* Enhanced form validation feedback */
    .invalid-feedback {
        font-size: 14px;
        margin-top: 8px;
        padding-left: 6px;
        line-height: 1.4;
        color: #dc3545;
        font-weight: 500;
    }
    
    .valid-feedback {
        font-size: 14px;
        margin-top: 8px;
        padding-left: 6px;
        line-height: 1.4;
        color: #28a745;
        font-weight: 500;
    }
    
    .is-invalid {
        border-color: #dc3545 !important;
        box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
        animation: shake 0.3s ease-in-out;
    }
    
    .is-valid {
        border-color: #28a745 !important;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25) !important;
    }
    
    /* Shake animation for invalid inputs */
    @keyframes shake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-5px); }
        75% { transform: translateX(5px); }
    }
    
    /* Enhanced checkbox and radio improvements */
    .form-check-input {
        width: 22px;
        height: 22px;
        margin-top: 2px;
        border-radius: 6px;
        border: 2px solid #dee2e6;
        transition: all 0.2s ease;
    }
    
    .form-check-input:checked {
        background-color: #28a745;
        border-color: #28a745;
        transform: scale(1.1);
    }
    
    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        outline: none;
    }
    
    .form-check-label {
        font-size: 16px;
        padding-left: 10px;
        cursor: pointer;
        line-height: 1.5;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Enhanced file input improvements */
    .form-control[type="file"] {
        padding: 12px 16px;
        cursor: pointer;
        border: 2px dashed #dee2e6;
        background: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .form-control[type="file"]:hover {
        border-color: #28a745;
        background: #e8f5e8;
    }
    
    .form-control[type="file"]:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
        outline: none;
    }
    
    /* Enhanced input group improvements */
    .input-group .form-control {
        border-radius: 12px 0 0 12px;
    }
    
    .input-group .btn {
        border-radius: 0 12px 12px 0;
        min-height: 48px;
    }
    
    .input-group-text {
        min-height: 48px;
        padding: 14px 16px;
        border: 2px solid #e9ecef;
        border-radius: 12px 0 0 12px;
        background: #f8f9fa;
        color: #6c757d;
        font-weight: 500;
    }
    
    /* Enhanced form spacing */
    .mb-3 {
        margin-bottom: 1.75rem !important;
    }
    
    .form-floating .form-control {
        height: calc(4rem + 2px);
        padding: 1.25rem 1rem;
        font-size: 16px;
    }
    
    .form-floating label {
        padding: 1.25rem 1rem;
        font-size: 14px;
        color: #6c757d;
    }
    
    /* Enhanced select dropdown */
    .form-select {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 1rem center;
        background-size: 16px 12px;
        padding-right: 3rem;
    }
    
    /* Form group enhancements */
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    /* Required field indicator */
    .form-label .text-danger::after {
        content: ' *';
        color: #dc3545;
        font-weight: 700;
    }
    
    /* Form help text */
    .form-text {
        font-size: 14px;
        color: #6c757d;
        margin-top: 6px;
        line-height: 1.4;
    }
    
    /* Loading state for forms */
    .form-control:disabled,
    .form-select:disabled {
        background-color: #e9ecef;
        opacity: 0.7;
        cursor: not-allowed;
    }
    
    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }
    
    .btn:disabled::before {
        display: none;
    }
}

/* Enhanced Mobile Modal Optimizations */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.75rem;
        max-width: calc(100vw - 1.5rem);
    }
    
    .modal-content {
        border-radius: 16px;
        border: none;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        overflow: hidden;
    }
    
    .modal-header {
        padding: 1.25rem 1.5rem;
        border-bottom: 1px solid #e9ecef;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        position: sticky;
        top: 0;
        z-index: 1020;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 65vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .modal-footer {
        padding: 1.25rem 1.5rem;
        border-top: 1px solid #e9ecef;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom-left-radius: 16px;
        border-bottom-right-radius: 16px;
        position: sticky;
        bottom: 0;
        z-index: 1020;
    }
    
    .modal-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: #28a745;
        line-height: 1.3;
    }
    
    .btn-close {
        width: 36px;
        height: 36px;
        padding: 0;
        margin: 0;
        border-radius: 50%;
        background: rgba(0,0,0,0.1);
        opacity: 0.8;
        transition: all 0.2s ease;
    }
    
    .btn-close:hover,
    .btn-close:focus {
        background: rgba(0,0,0,0.2);
        opacity: 1;
        transform: scale(1.1);
    }
    
    /* Enhanced scrollbar for modal body */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }
    
    .modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .modal-body::-webkit-scrollbar-thumb {
        background: #28a745;
        border-radius: 3px;
    }
    
    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #1e7e34;
    }
    
    /* Full-screen modal for small screens */
    @media (max-width: 576px) {
        .modal-dialog {
            margin: 0;
            max-width: 100vw;
            height: 100vh;
            display: flex;
            align-items: stretch;
        }
        
        .modal-content {
            height: 100vh;
            border-radius: 0;
            display: flex;
            flex-direction: column;
        }
        
        .modal-header,
        .modal-footer {
            border-radius: 0;
            flex-shrink: 0;
        }
        
        .modal-body {
            max-height: none;
            flex: 1;
            overflow-y: auto;
        }
        
        .modal-title {
            font-size: 1.2rem;
        }
        
        .btn-close {
            width: 32px;
            height: 32px;
        }
    }
}

/* Mobile-Specific Input Type Optimizations */
@media (max-width: 768px) {
    /* Phone number input enhancements */
    input[type="tel"] {
        letter-spacing: 1px;
        font-family: 'Courier New', monospace;
    }
    
    /* Email input enhancements */
    input[type="email"] {
        text-transform: lowercase;
        font-family: inherit;
    }
    
    /* URL input enhancements */
    input[type="url"] {
        font-family: 'Courier New', monospace;
        font-size: 14px;
    }
    
    /* Number input enhancements */
    input[type="number"] {
        text-align: right;
        font-family: 'Courier New', monospace;
    }
    
    /* Date/time input enhancements */
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"] {
        font-family: inherit;
        cursor: pointer;
    }
    
    /* Search input enhancements */
    input[type="search"] {
        -webkit-appearance: none;
        border-radius: 25px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Password input enhancements */
    input[type="password"] {
        font-family: 'Courier New', monospace;
        letter-spacing: 2px;
    }
}

/* Enhanced Mobile Form Validation and Feedback */
@media (max-width: 768px) {
    /* Real-time validation indicators */
    .form-control.validating {
        border-color: #ffc107;
        box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    }
    
    .form-control.valid-input {
        border-color: #28a745;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 2.94-2.94.94.94-3.88 3.88z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        padding-right: calc(1.5em + 0.75rem);
    }
    
    .form-control.invalid-input {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right calc(0.375em + 0.1875rem) center;
        background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
        padding-right: calc(1.5em + 0.75rem);
    }
    
    /* Character counter for textareas */
    .char-counter {
        font-size: 12px;
        color: #6c757d;
        text-align: right;
        margin-top: 4px;
        font-weight: 500;
    }
    
    .char-counter.warning {
        color: #fd7e14;
        font-weight: 600;
    }
    
    .char-counter.danger {
        color: #dc3545;
        font-weight: 700;
        animation: pulse 1s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
    
    /* Form progress indicator */
    .form-progress {
        height: 4px;
        background: #e9ecef;
        border-radius: 2px;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .form-progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #28a745, #20c997);
        border-radius: 2px;
        transition: width 0.3s ease;
    }
    
    /* Enhanced form submission states */
    .form-submitting {
        pointer-events: none;
        opacity: 0.7;
    }
    
    .form-submitting .btn {
        position: relative;
        color: transparent;
    }
    
    .form-submitting .btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid transparent;
        border-top-color: currentColor;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Success state animation */
    .form-success {
        animation: successPulse 0.6s ease-out;
    }
    
    @keyframes successPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.02); }
        100% { transform: scale(1); }
    }
    
    /* Error state animation */
    .form-error {
        animation: errorShake 0.5s ease-out;
    }
    
    @keyframes errorShake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-10px); }
        75% { transform: translateX(10px); }
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        background: rgba(40, 167, 69, 0.1);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    }
    
    .navbar-collapse {
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        margin-top: 0.5rem;
        padding: 1rem 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f8f9fa;
        font-size: 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
        touch-action: manipulation;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(0.98);
    }
}

/* Mobile Alert Optimizations */
@media (max-width: 768px) {
    .alert {
        border-radius: 12px;
        padding: 1rem 1.25rem;
        margin-bottom: 1.5rem;
        font-size: 16px;
        line-height: 1.5;
    }
    
    .alert .btn-close {
        width: 28px;
        height: 28px;
        padding: 0;
        margin: 0;
        opacity: 0.8;
    }
    
    .alert i {
        font-size: 18px;
        margin-right: 8px;
    }
}

/* Mobile Card Optimizations */
@media (max-width: 768px) {
    .card {
        border-radius: 12px;
        border: none;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
        margin-bottom: 1.5rem;
    }
    
    .card-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #e9ecef;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .card-footer {
        padding: 1rem 1.25rem;
        border-top: 1px solid #e9ecef;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}

/* Mobile Table Optimizations */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th,
    .table td {
        padding: 12px 8px;
        vertical-align: middle;
    }
    
    .table th {
        font-weight: 600;
        background-color: #f8f9fa;
        border-bottom: 2px solid #e9ecef;
    }
    
    /* Stack table on very small screens */
    @media (max-width: 576px) {
        .table-responsive table,
        .table-responsive thead,
        .table-responsive tbody,
        .table-responsive th,
        .table-responsive td,
        .table-responsive tr {
            display: block;
        }
        
        .table-responsive thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }
        
        .table-responsive tr {
            border: 1px solid #ccc;
            margin-bottom: 10px;
            padding: 10px;
            border-radius: 8px;
            background: white;
        }
        
        .table-responsive td {
            border: none;
            position: relative;
            padding-left: 50% !important;
            padding-top: 8px;
            padding-bottom: 8px;
        }
        
        .table-responsive td:before {
            content: attr(data-label) ": ";
            position: absolute;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
            font-weight: bold;
            color: #495057;
        }
    }
}

/* Mobile Pagination */
@media (max-width: 768px) {
    .pagination {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        margin: 0 2px;
        touch-action: manipulation;
    }
    
    .page-link:active {
        transform: scale(0.95);
    }
}

/* Mobile Loading States */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Accessibility Improvements */
@media (max-width: 768px) {
    /* Focus indicators */
    .btn:focus,
    .form-control:focus,
    .form-select:focus,
    .nav-link:focus {
        outline: 2px solid #28a745;
        outline-offset: 2px;
    }
    
    /* Skip links for screen readers */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: #28a745;
        color: white;
        padding: 8px;
        text-decoration: none;
        border-radius: 4px;
        z-index: 1000;
    }
    
    .skip-link:focus {
        top: 6px;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .btn {
            border-width: 2px;
        }
        
        .form-control,
        .form-select {
            border-width: 2px;
        }
    }
    
    /* Reduced motion support */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Category button animation */
.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.category-btn:hover::before {
    left: 100%;
}

/* Product Grid and Card Enhancements */
.product-card {
    border: none;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.product-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Product Badge Styles */
.product-card .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    font-weight: 600;
}

.product-card .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.product-card .badge.bg-success {
    background-color: #28a745 !important;
}

/* Product Card Content */
.product-card .card-title {
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.product-card .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6c757d;
}

/* Product Action Buttons */
.product-card .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card .btn i {
    font-size: 0.8rem;
}

/* Placeholder Image Styling */
.product-card .card-img-top[src*="placeholder-product.svg"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 2rem;
    position: relative;
}

.product-card .card-img-top[src*="placeholder-product.svg"]:after {
    content: '\f1c0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Mobile Product Card Optimizations */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    .product-card .card-img-top {
        height: 200px !important;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
    
    .product-card .card-text {
        font-size: 0.85rem;
    }
    
    .product-card .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 180px !important;
    }
    
    .product-card .badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .product-card .d-grid.gap-2 {
        gap: 0.5rem !important;
    }
}

/* Product Count Info */
.text-muted {
    font-size: 0.9rem;
}

/* Loading Animation for Product Cards */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Touch Feedback for Mobile */
@media (max-width: 768px) {
    .product-card {
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
        touch-action: manipulation;
    }
}

/* No Products Found Alert */
.alert-warning {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.alert-warning i {
    color: #856404;
}

/* Modal Enhancements for Product Details and Quote Request */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.modal-title {
    font-weight: 600;
    color: #28a745;
}

/* Product Detail Modal Specific Styles */
#productDetailModal .modal-body img {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#productDetailModal .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Quote Request Form Styles */
#quoteRequestModal .form-label {
    font-weight: 600;
    color: #495057;
}

#quoteRequestModal .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#quoteRequestModal .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#quoteRequestModal .form-control.is-invalid {
    border-color: #dc3545;
}

#quoteRequestModal .invalid-feedback {
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

#quoteRequestModal .alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border: none;
    border-radius: 10px;
}

/* Success and Error Alert Styles */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
}

/* Loading Button State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile Modal Optimizations */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-lg {
        max-width: calc(100vw - 2rem);
    }
    
    #productDetailModal .row {
        flex-direction: column;
    }
    
    #productDetailModal .col-md-6:first-child {
        margin-bottom: 1rem;
    }
    
    #quoteRequestModal .modal-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    .modal-header,
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
}/
* Enhanced Mobile Touch Interactions and Spacing */
@media (max-width: 768px) {
    /* Touch-friendly spacing for all interactive elements */
    .btn-group .btn,
    .btn-toolbar .btn {
        margin: 2px;
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Enhanced card interactions */
    .card {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
        transition: all 0.2s ease;
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    /* Enhanced list interactions */
    .list-group-item {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
    }
    
    .list-group-item:active {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(0.98);
    }
    
    /* Enhanced navigation interactions */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
        border-radius: 8px;
        margin: 2px 0;
    }
    
    .nav-link:active {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(0.98);
    }
    
    /* Enhanced dropdown interactions */
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
    }
    
    .dropdown-item:active {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(0.98);
    }
    
    /* Enhanced accordion interactions */
    .accordion-button {
        min-height: 52px;
        padding: 16px 20px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
        font-size: 16px;
        font-weight: 600;
    }
    
    .accordion-button:active {
        transform: scale(0.98);
    }
    
    /* Enhanced tab interactions */
    .nav-tabs .nav-link {
        min-height: 48px;
        padding: 12px 20px;
        font-size: 16px;
        font-weight: 500;
    }
    
    .nav-pills .nav-link {
        min-height: 44px;
        padding: 12px 20px;
        border-radius: 22px;
        font-weight: 500;
    }
    
    /* Enhanced pagination interactions */
    .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 12px;
        font-size: 16px;
        font-weight: 500;
        border-radius: 8px;
        margin: 0 2px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
    }
    
    .page-link:active {
        transform: scale(0.95);
    }
    
    /* Enhanced breadcrumb interactions */
    .breadcrumb-item a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        padding: 8px 12px;
        border-radius: 6px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(40, 167, 69, 0.1);
    }
    
    .breadcrumb-item a:active {
        background-color: rgba(40, 167, 69, 0.1);
        transform: scale(0.98);
    }
    
    /* Enhanced badge interactions */
    .badge {
        min-height: 24px;
        padding: 6px 12px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
    }
    
    .badge.badge-interactive {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
        transition: all 0.2s ease;
    }
    
    .badge.badge-interactive:active {
        transform: scale(0.95);
    }
    
    /* Enhanced close button interactions */
    .btn-close {
        min-width: 32px;
        min-height: 32px;
        padding: 0;
        border-radius: 50%;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
    }
    
    .btn-close:active {
        transform: scale(0.9);
        background-color: rgba(0, 0, 0, 0.2);
    }
    
    /* Enhanced switch/toggle interactions */
    .form-switch .form-check-input {
        width: 48px;
        height: 24px;
        border-radius: 12px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .form-switch .form-check-input:active {
        transform: scale(1.1);
    }
    
    /* Enhanced range slider interactions */
    .form-range {
        height: 8px;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .form-range::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #28a745;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        border: 2px solid #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }
    
    .form-range::-webkit-slider-thumb:active {
        transform: scale(1.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .form-range::-moz-range-thumb {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #28a745;
        cursor: pointer;
        border: 2px solid #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }
    
    .form-range::-moz-range-thumb:active {
        transform: scale(1.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Mobile-Specific Form Layout Improvements */
@media (max-width: 768px) {
    /* Stacked form layout for better mobile UX */
    .row .col-md-6,
    .row .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Full-width buttons on mobile */
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 8px;
        justify-content: center;
    }
    
    .btn-group-mobile .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Enhanced form sections */
    .form-section {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #e9ecef;
    }
    
    .form-section-title {
        font-size: 18px;
        font-weight: 600;
        color: #28a745;
        margin-bottom: 16px;
        padding-bottom: 8px;
        border-bottom: 2px solid #e9ecef;
    }
    
    /* Enhanced input groups for mobile */
    .input-group {
        flex-wrap: nowrap;
        margin-bottom: 1rem;
    }
    
    .input-group .form-control {
        flex: 1;
        min-width: 0;
    }
    
    .input-group .btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    /* Mobile-optimized form grid */
    .form-grid {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr;
    }
    
    .form-grid.two-column {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-grid.three-column {
        grid-template-columns: 1fr;
    }
    
    /* Full-width form elements */
    .form-control,
    .form-select,
    .btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-group .btn {
        width: auto;
    }
    
    /* Enhanced form validation summary */
    .validation-summary {
        background: #f8d7da;
        border: 1px solid #f5c6cb;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        color: #721c24;
    }
    
    .validation-summary h6 {
        color: #721c24;
        font-weight: 600;
        margin-bottom: 8px;
    }
    
    .validation-summary ul {
        margin-bottom: 0;
        padding-left: 20px;
    }
    
    .validation-summary li {
        margin-bottom: 4px;
        font-size: 14px;
    }
    
    /* Success message styling */
    .success-message {
        background: #d4edda;
        border: 1px solid #c3e6cb;
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 20px;
        color: #155724;
        text-align: center;
    }
    
    .success-message i {
        font-size: 24px;
        margin-bottom: 8px;
        color: #28a745;
    }
    
    .success-message h6 {
        color: #155724;
        font-weight: 600;
        margin-bottom: 8px;
    }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
    }
    
    /* Optimize fonts for mobile */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
    
    /* Optimize scrolling */
    .modal-body,
    .overflow-auto {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Hardware acceleration for animations */
    .btn,
    .card,
    .modal-content,
    .form-control {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
}

/* Mobile Accessibility Enhancements */
@media (max-width: 768px) {
    /* Enhanced focus indicators */
    .btn:focus-visible,
    .form-control:focus-visible,
    .form-select:focus-visible,
    .nav-link:focus-visible {
        outline: 3px solid #28a745;
        outline-offset: 2px;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    }
    
    /* Screen reader improvements */
    .sr-only-mobile {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .btn {
            border-width: 2px !important;
            font-weight: 700 !important;
        }
        
        .form-control,
        .form-select {
            border-width: 2px !important;
        }
        
        .card {
            border-width: 2px !important;
        }
    }
    
    /* Dark mode support */
    @media (prefers-color-scheme: dark) {
        .form-control,
        .form-select {
            background-color: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        .form-control:focus,
        .form-select:focus {
            background-color: #2d3748;
            border-color: #28a745;
            color: #e2e8f0;
        }
        
        .modal-content {
            background-color: #1a202c;
            color: #e2e8f0;
        }
        
        .modal-header,
        .modal-footer {
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            border-color: #4a5568;
        }
    }
    
    /* Large text support */
    @media (min-resolution: 2dppx) {
        .form-label,
        .btn {
            font-weight: 600;
        }
    }
}/* Comprehe
nsive Mobile Responsive Design Testing and Refinements */

/* Mobile Device Specific Optimizations */
@media (max-width: 480px) {
    /* Extra small devices (phones in portrait) */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .display-4 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .display-5 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    h5 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* Compact spacing for small screens */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    /* Compact cards */
    .card-body {
        padding: 1rem;
    }
    
    .card-header,
    .card-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Smaller buttons for very small screens */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Tablet Portrait Optimizations */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Two-column layout for tablets */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Optimized hero section for tablets */
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.25rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
}

/* Large Mobile Devices (phones in landscape) */
@media (min-width: 576px) and (max-width: 767px) {
    /* Optimize navigation for landscape phones */
    .navbar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        font-size: 14px;
    }
    
    /* Two-column forms for landscape */
    .form-row-landscape {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

/* Image Optimization for Mobile Performance */
@media (max-width: 768px) {
    /* Lazy loading and performance optimizations */
    img {
        loading: lazy;
        decoding: async;
    }
    
    /* Responsive images with better compression */
    .product-card .card-img-top {
        height: 180px;
        object-fit: cover;
        object-position: center;
        background-color: #f8f9fa;
        transition: transform 0.2s ease;
    }
    
    .product-card:hover .card-img-top {
        transform: scale(1.02);
    }
    
    /* Hero section background optimization */
    .hero-section {
        background-attachment: scroll; /* Better performance than fixed on mobile */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    /* Company photos optimization */
    .company-photo {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    
    /* CEO image optimization */
    .ceo-image {
        width: 150px;
        height: 150px;
        object-fit: cover;
        border-radius: 50%;
        margin: 0 auto 1rem;
        display: block;
    }
    
    /* Logo optimization */
    .navbar-brand img {
        max-height: 35px;
        width: auto;
    }
    
    /* Icon optimization */
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        margin: 0 auto 1rem;
    }
}

/* Text Readability Optimizations */
@media (max-width: 768px) {
    /* Improved line heights for mobile reading */
    body {
        line-height: 1.6;
        font-size: 16px; /* Minimum for good readability */
    }
    
    p {
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Better contrast for text */
    .text-muted {
        color: #495057 !important; /* Darker than default for better readability */
    }
    
    .text-light-emphasis {
        color: #adb5bd !important;
    }
    
    /* Improved link visibility */
    a {
        text-decoration: underline;
        text-decoration-thickness: 1px;
        text-underline-offset: 2px;
    }
    
    a:hover {
        text-decoration-thickness: 2px;
    }
    
    .btn {
        text-decoration: none;
    }
    
    /* Better focus indicators for accessibility */
    a:focus,
    button:focus,
    .btn:focus {
        outline: 2px solid #28a745;
        outline-offset: 2px;
        text-decoration: none;
    }
    
    /* Improved table readability */
    .table {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .table th {
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Better list readability */
    ul, ol {
        padding-left: 1.25rem;
    }
    
    li {
        margin-bottom: 0.25rem;
        line-height: 1.5;
    }
}

/* Navigation Intuitive Design for Small Screens */
@media (max-width: 768px) {
    /* Enhanced mobile navigation */
    .navbar {
        padding: 0.5rem 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .navbar-brand {
        font-size: 1rem;
        font-weight: 700;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
    
    .navbar-nav-container {
        margin-top: 0.5rem;
    }
    
    .navbar-nav {
        flex-direction: column !important;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem !important;
        margin: 0.1rem 0;
        border-radius: 6px;
        font-weight: 500;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background: rgba(40, 167, 69, 0.1);
        color: #28a745 !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link::after {
        content: '\f054';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 12px;
        opacity: 0.5;
        transition: all 0.2s ease;
    }
    
    .navbar-nav .nav-link:hover::after {
        opacity: 1;
        transform: translateX(3px);
    }
    
    /* Breadcrumb navigation for mobile */
    .breadcrumb {
        background: none;
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        font-size: 14px;
    }
    
    .breadcrumb-item {
        line-height: 1.5;
    }
    
    .breadcrumb-item + .breadcrumb-item::before {
        content: '\f054';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 10px;
        color: #6c757d;
    }
    
    /* Back to top button for mobile */
    .back-to-top {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background: #28a745;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 18px;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
    }
    
    .back-to-top.show {
        opacity: 1;
        visibility: visible;
    }
    
    .back-to-top:hover {
        background: #1e7e34;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Reduce animations for better performance */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize transforms for hardware acceleration */
    .card,
    .btn,
    .product-card,
    .modal-content {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Optimize scrolling */
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    /* Reduce box-shadows for better performance */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    }
    
    .btn {
        box-shadow: none !important;
    }
    
    .btn:hover {
        box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
    }
    
    /* Optimize gradients - Keep blue overlay on mobile */
    .hero-section {
        background: linear-gradient(rgba(0, 123, 255, 0.7), rgba(0, 86, 179, 0.7)), url('../../bgimage/bg-header-2.jpg') center/cover no-repeat !important;
        background-attachment: scroll !important; /* Better performance on mobile */
    }
    
    footer {
        background: #1a1a1a; /* Fallback solid color */
    }
}

/* Critical CSS for Above-the-Fold Content */
@media (max-width: 768px) {
    /* Prioritize hero section loading */
    .hero-section {
        contain: layout style paint;
    }
    
    /* Ensure blue overlay is visible on mobile */
    .hero-section::before {
        display: block !important;
        opacity: 1 !important;
    }
    
    /* Prioritize navigation loading */
    .navbar {
        contain: layout style;
    }
    
    /* Defer non-critical animations */
    .product-card {
        animation: none;
    }
    
    .product-card.in-viewport {
        animation: fadeIn 0.3s ease-out;
    }
}

/* Dark Mode Support for Mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }
    
    .card {
        background-color: #1e1e1e;
        border-color: #333;
        color: #e0e0e0;
    }
    
    .navbar {
        background-color: #1e1e1e !important;
        border-bottom-color: #333;
    }
    
    .navbar-brand {
        color: #28a745 !important;
    }
    
    .navbar-nav .nav-link {
        color: #e0e0e0 !important;
    }
    
    .navbar-collapse {
        background-color: #1e1e1e;
        border-color: #333;
    }
    
    .form-control,
    .form-select {
        background-color: #2d2d2d;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .form-control:focus,
    .form-select:focus {
        background-color: #2d2d2d;
        border-color: #28a745;
        color: #e0e0e0;
        box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    }
    
    .btn-outline-success {
        color: #28a745;
        border-color: #28a745;
    }
    
    .btn-outline-success:hover {
        background-color: #28a745;
        color: #fff;
    }
    
    .text-muted {
        color: #adb5bd !important;
    }
    
    .alert-info {
        background-color: #1e3a5f;
        border-color: #2c5aa0;
        color: #9ec5fe;
    }
    
    .alert-success {
        background-color: #0f2419;
        border-color: #1e4d2b;
        color: #75b798;
    }
    
    .alert-danger {
        background-color: #2c0b0e;
        border-color: #58151c;
        color: #ea868f;
    }
}

/* High Contrast Mode Support */
@media (max-width: 768px) and (prefers-contrast: high) {
    body {
        background: #fff;
        color: #000;
    }
    
    .btn {
        border-width: 2px !important;
        font-weight: 700 !important;
    }
    
    .btn-success {
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
    }
    
    .btn-outline-success {
        color: #000 !important;
        border-color: #000 !important;
        background: #fff !important;
    }
    
    .btn-outline-success:hover {
        background: #000 !important;
        color: #fff !important;
    }
    
    .form-control,
    .form-select {
        border-width: 2px !important;
        border-color: #000 !important;
    }
    
    .form-control:focus,
    .form-select:focus {
        border-color: #000 !important;
        box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
    }
    
    .card {
        border-width: 2px !important;
        border-color: #000 !important;
    }
    
    .navbar {
        border-bottom: 2px solid #000 !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
        text-decoration-thickness: 2px !important;
    }
    
    .text-muted {
        color: #000 !important;
    }
}

/* Reduced Motion Support */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .product-card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none !important;
    }
}

/* Print Styles for Mobile */
@media print {
    .navbar,
    .footer,
    .btn,
    .modal,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: none;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}
/* =
=======================================
   Task 3: Remove Duplicate Breadcrumb Navigation Links
   Requirements: 3.1, 3.2, 3.3, 3.4, 3.5
   ======================================== */

/* Hide breadcrumb navigation on About Us page */
body.about-page .breadcrumb,
body.about-page .breadcrumb-nav,
body.about-page nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Hide breadcrumb navigation on Become a Dealer page */
body.dealer-page .breadcrumb,
body.dealer-page .breadcrumb-nav,
body.dealer-page nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Hide breadcrumb navigation on Products page */
body.products-page .breadcrumb,
body.products-page .breadcrumb-nav,
body.products-page nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Hide breadcrumb navigation on Contact Us page */
body.contact-page .breadcrumb,
body.contact-page .breadcrumb-nav,
body.contact-page nav[aria-label="breadcrumb"] {
    display: none !important;
}

/* Alternative: Hide all breadcrumbs that appear after hero sections or page headers */
.hero-section + .breadcrumb,
.hero-section + .breadcrumb-nav,
.page-header + .breadcrumb,
.page-header + .breadcrumb-nav,
main > .breadcrumb:first-child,
main > .breadcrumb-nav:first-child {
    display: none !important;
}

/* Ensure main header navigation remains visible and functional */
.navbar,
.navbar-nav,
.navbar-brand,
.navbar-toggler,
.navbar-collapse {
    display: flex !important;
}

.navbar {
    display: block !important;
}


/* ========================================
   TASK 5: BECOME A DEALER PAGE LAYOUT AND SPACING
   ======================================== */

/* Remove unnecessary blank spaces between sections */
.dealer-page .row + .row {
    margin-top: 0 !important;
}

.dealer-page .mb-5 {
    margin-bottom: var(--spacing-lg) !important; /* 2rem consistent spacing */
}

/* Apply consistent container padding (2rem) to all sections */
.dealer-page .card-body {
    padding: var(--spacing-lg) !important; /* 2rem */
}

.dealer-page .card-header {
    padding: var(--spacing-md) var(--spacing-lg) !important;
}

/* Fix title spacing with proper margin-bottom (1rem) */
.dealer-page h2,
.dealer-page h3,
.dealer-page h4,
.dealer-page h5 {
    margin-bottom: var(--spacing-sm) !important; /* 1rem */
}

/* Ensure form fields have consistent spacing (1rem between fields) */
.dealer-page .mb-3 {
    margin-bottom: var(--spacing-sm) !important; /* 1rem */
}

.dealer-page .mb-4 {
    margin-bottom: var(--spacing-sm) !important; /* 1rem */
}

.dealer-page form .mb-3:last-of-type,
.dealer-page form .mb-4:last-of-type {
    margin-bottom: var(--spacing-md) !important; /* Slightly more space before submit button */
}

/* Balance visual weight of partnership benefits and application form sections */
.dealer-page .col-lg-6 {
    display: flex;
    flex-direction: column;
}

.dealer-page .col-lg-6 > .h-100 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dealer-page .col-lg-6 > .card {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dealer-page .col-lg-6 .card-body {
    flex: 1;
}

/* Remove extra spacing from hero section */
.dealer-page .bg-success.p-5 {
    padding: var(--spacing-xl) var(--spacing-lg) !important;
}

/* Consistent spacing for partnership benefits cards */
.dealer-page .card.border-0.shadow-sm {
    margin-bottom: var(--spacing-md) !important;
}

.dealer-page .card.border-0.shadow-sm:last-child {
    margin-bottom: 0 !important;
}

/* Ensure consistent spacing in product categories grid */
.dealer-page .row.g-3 {
    gap: var(--spacing-sm) !important;
}

/* Contact information card spacing */
.dealer-page .card.border-0.shadow-sm.mt-4 {
    margin-top: var(--spacing-md) !important;
}

/* Form label spacing */
.dealer-page .form-label {
    margin-bottom: var(--spacing-xs) !important;
}

/* Form text helper spacing */
.dealer-page .form-text {
    margin-top: var(--spacing-xs) !important;
}

/* Alert message spacing */
.dealer-page .alert {
    margin-bottom: var(--spacing-md) !important;
}

/* List items in benefits section */
.dealer-page .list-unstyled li {
    margin-bottom: var(--spacing-xs) !important;
}

/* Product category boxes spacing */
.dealer-page .text-center.p-3 {
    padding: var(--spacing-md) !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .dealer-page .col-lg-6 {
        margin-bottom: var(--spacing-md) !important;
    }
    
    .dealer-page .bg-success.p-5 {
        padding: var(--spacing-lg) var(--spacing-sm) !important;
    }
    
    .dealer-page .card-body {
        padding: var(--spacing-md) !important;
    }
}

/* ======================================== */

/* ========================================
   HERO PRODUCT SLIDER - LOADING SKELETON
   ======================================== */

/* Loading skeleton animation for product cards */
.loading-card {
    opacity: 0.7;
    pointer-events: none;
}

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

.loading-image {
    width: 100%;
    height: 200px;
    margin-bottom: 12px;
}

.loading-title {
    width: 80%;
    height: 20px;
    margin-bottom: 10px;
}

.loading-text {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.loading-text.short {
    width: 60%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Fade in animation when real products load */
.slider-product-card:not(.loading-card) {
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================== */

/* ========================================
   SCROLL-TO-TOP BUTTON - SMOOTH ANIMATION
   ======================================== */

/* Base styles for scroll-to-top button */
.scroll-to-top,
#scrollToTop,
button[aria-label*="Scroll to top"] {
    transition: all 0.3s ease-in-out;
}

/* Mobile-specific smooth animation */
@media (max-width: 768px) {
    .scroll-to-top,
    #scrollToTop,
    button[aria-label*="Scroll to top"] {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Smooth scroll behavior */
    html {
        scroll-behavior: smooth !important;
    }
    
    /* Slower fade animations */
    .scroll-to-top.visible,
    #scrollToTop.visible {
        animation: smoothFadeIn 0.6s ease-out forwards !important;
    }
    
    .scroll-to-top:not(.visible),
    #scrollToTop:not(.visible) {
        animation: smoothFadeOut 0.6s ease-in forwards !important;
    }
}

@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes smoothFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    40% {
        opacity: 0.6;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
}

/* ======================================== */

/* ========================================
   LOGO SIZING - RESPONSIVE
   ======================================== */

.navbar-brand .logo-image {
    height: 50px !important;
    max-width: 400px !important;
    width: auto !important;
    object-fit: contain !important;
    display: block !important;
}

@media (max-width: 768px) {
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    
    .navbar-brand .logo-image {
        height: 95px !important;
        max-width: 380px !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    
    .navbar-brand .logo-image {
        height: 90px !important;
        max-width: 340px !important;
        display: block !important;
        margin: 0 auto !important;
    }
}

/* ======================================== */


/* ===================================
   Modal Z-Index Fix - Ensure all modals appear above header
   =================================== */
.modal {
    z-index: 10500 !important;
}

.modal-backdrop {
    z-index: 10400 !important;
}

.modal-dialog {
    z-index: 10500 !important;
}

/* Ensure modals work with translated header */
body.translated .modal {
    z-index: 10500 !important;
}

body.translated .modal-backdrop {
    z-index: 10400 !important;
}
