/* Custom Professional Styles for LebanonStocks */

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Category Cards */
.card:hover {
    border-color: #0d6efd;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Button Transitions */
.btn {
    transition: all 0.3s ease;
}

/* Social Links */
.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #0d6efd !important;
    transform: translateY(-2px);
}

/* Contact Items */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* Custom Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Improved Typography */
.display-4, .display-5 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Custom Colors */
:root {
    --bs-primary: #0d6efd;
    --bs-primary-rgb: 13, 110, 253;
}

/* Loading State for Images */
.card-img-top {
    background-color: #f8f9fa;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }
    
    .hero .lead {
        font-size: 1.1rem !important;
    }
    
    .hero .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Accessibility Improvements */
.visually-hidden-focusable:focus {
    position: absolute !important;
    width: auto !important;
    height: auto !important;
    clip: auto !important;
    z-index: 2000;
    background: #000;
    color: #fff;
    padding: 1rem;
    text-decoration: none;
    top: 0;
    left: 0;
}

/* Loading Spinner for Dynamic Content */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Clickable category card improvements */
a .card {
    transition: all 0.3s ease;
    position: relative;
}

a .card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    z-index: 0;
}

a .card:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

a .card:hover h5 {
    color: #0d6efd !important;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

a .card:hover i {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

a .card .card-body {
    position: relative;
    z-index: 1;
}

/* Stats Section Background */
.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Improved Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: #86b7fe;
}

/* Navigation Improvements */
.navbar-nav .nav-link {
    position: relative;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: currentColor;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section Enhancements */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Footer Enhancements */
.footer a:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}
