/* Pay Punjab Agriculture - Custom Styles */

/* CSS Variables */
:root {
    --primary-color: #0f4c75;
    --secondary-color: #3282b8;
    --accent-color: #bbe1fa;
    --success-color: #28a745;
    --warning-color: #ffd700;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-success: linear-gradient(135deg, #28a745, #20c997);
    --gradient-gold: linear-gradient(135deg, #ffd700, #ffed4e);
    --shadow-light: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-medium: 0 8px 30px rgba(0,0,0,0.15);
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.2);
    --border-radius: 15px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

/* Header Styles */
.header-section {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.navbar-scrolled {
    padding: 8px 0;
    background: rgba(44, 85, 48, 0.95) !important;
    backdrop-filter: blur(15px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--success-color);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Weather Widget */
.weather-widget {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 8px 15px;
    backdrop-filter: blur(10px);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--white);
}

.weather-temp {
    font-weight: 600;
}

.weather-city {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Small Category Cards */
.category-card-small {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card-small:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

.category-icon-small {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card-small h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.category-card-small p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.category-card-small .btn {
    font-size: 0.85rem;
    padding: 8px 16px;
}

/* Language Selector */
.language-selector .dropdown-toggle {
    min-width: 130px;
    justify-content: space-between;
    align-items: center;
    display: flex;
}

.language-selector .dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 10px 0;
}

.language-selector .dropdown-item {
    color: var(--dark-color);
    padding: 8px 20px;
    transition: all 0.3s ease;
}

.language-selector .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Language Animation */
.language-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.language-transition.active {
    opacity: 1;
}

/* RTL Language Support */
.rtl-language {
    font-family: 'Noto Sans Urdu', 'Arial', sans-serif;
}

.rtl-language .hero-content {
    text-align: right;
}

.rtl-language .btn {
    direction: ltr;
}

.rtl-language .navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

.rtl-language .dropdown-menu {
    left: auto;
    right: 0;
}

/* Featured Product Cards (7 per row) */
.product-card-featured {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 250px;
}

.product-card-featured:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.product-image-featured {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.product-image-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-featured:hover .product-image-featured img {
    transform: scale(1.05);
}

.product-badge-featured {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.product-info-featured {
    padding: 12px;
}

.product-title-featured {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-featured {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-seller-featured {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.seller-avatar-featured {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.seller-name-featured {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-location-featured {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Category Product Cards (6 per row) */
.product-card-category {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    min-height: 260px;
    margin-bottom: 20px;
    cursor: pointer;
}

.product-card-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.product-image-category {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.product-image-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-category:hover .product-image-category img {
    transform: scale(1.05);
}

.product-badge-category {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 600;
}

.product-info-category {
    padding: 12px;
}

.product-title-category {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-category {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.product-seller-category {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.seller-avatar-category {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.seller-name-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-location-category {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* Small Product Cards (legacy - keeping for backward compatibility) */
.product-card-small {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.product-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}

.product-image-small {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.product-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card-small:hover .product-image-small img {
    transform: scale(1.05);
}

.product-badge-small {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-info-small {
    padding: 12px;
}

.product-title-small {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-small {
    color: var(--success-color);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.product-seller-small {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.seller-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 6px;
    object-fit: cover;
}

.seller-name-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.product-location-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Category Product Sections */
.category-products-section {
    background: var(--section-bg);
    margin-bottom: 0;
}

.category-section-title {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.category-section-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.section-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

/* Statistics Section */
.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Responsive adjustments for small cards */
/* Responsive adjustments for product cards */
@media (max-width: 1200px) {
    .category-card-small {
        min-height: 180px;
        padding: 15px 10px;
    }
    
    .category-icon-small {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .product-card-small,
    .product-card-featured,
    .product-card-category {
        margin-bottom: 15px;
    }
    
    .product-card-featured {
        min-height: 230px;
    }
    
    .product-card-category {
        min-height: 220px;
    }
}

@media (max-width: 992px) {
    /* Featured products: 4 per row on tablets */
    .product-card-featured .col-xl-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    /* Category products: 4 per row on tablets */
    .product-card-category .col-xl-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 768px) {
    .product-image-small,
    .product-image-featured {
        height: 100px;
    }
    
    .product-image-category {
        height: 90px;
    }
    
    .category-section-title {
        font-size: 1.5rem;
    }
    
    /* Featured and category products: 2 per row on mobile */
    .product-card-featured,
    .product-card-category {
        min-height: 200px;
    }
}

@media (max-width: 576px) {
    /* All products: 1 per row on small mobile */
    .product-card-featured,
    .product-card-category {
        min-height: 180px;
    }
}

/* 6 Products Per Row Layout */
@media (min-width: 1200px) {
    .col-xl-2.col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

/* Improved Product Grid Spacing */
.row.g-3 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

/* Better hover animations */
.product-card-category {
    position: relative;
    overflow: hidden;
}

.product-card-category::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.5s ease;
    z-index: 1;
}

.product-card-category:hover::before {
    left: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0f4c75 0%, #3282b8 50%, #0f4c75 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-section .container {
    width: 100%;
    max-width: 1200px;
}

.hero-section .row {
    align-items: center;
    justify-content: center;
    margin: 0;
}

.hero-section .col-lg-6 {
    padding: 0 15px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,0.2), transparent);
    animation: float 20s linear infinite;
}

.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    animation: wave 3s ease-in-out infinite alternate;
}

@keyframes wave {
    0% { transform: translateX(0) scaleY(1); }
    100% { transform: translateX(-100px) scaleY(1.1); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="30" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="70" cy="20" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="60" r="0.8" fill="rgba(255,255,255,0.06)"/><circle cx="80" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.text-gradient {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #fff59d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.action-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::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: 0.5s;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.action-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.action-text h6 {
    margin: 0;
    font-weight: 600;
    color: white;
}

.action-text small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.hero-stats {
    margin-top: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
}

.stat-data h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.stat-data span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--white), #e8f5e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 400;
}

.hero-buttons {
    margin-top: 40px;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    margin: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-medium);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

/* Hero Sidebar - Glass Cards */
.hero-sidebar {
    position: relative;
    z-index: 10;
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 25px;
    overflow: hidden;
    transition: all var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-card .card-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.glass-card .card-title {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.glass-card .card-body {
    padding: 20px;
}

.live-indicator {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse 2s infinite;
}

.location-indicator {
    background: rgba(50, 130, 184, 0.2);
    color: #74c0fc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* News Ticker Styles */
.news-ticker {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.news-ticker::-webkit-scrollbar {
    width: 4px;
}

.news-ticker::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.news-ticker::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.news-ticker::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
}

.news-time {
    color: var(--warning-color);
    font-weight: 600;
    font-size: 0.8rem;
    min-width: 40px;
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 6px;
    border-radius: 6px;
    text-align: center;
}

.news-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    line-height: 1.4;
    flex: 1;
}

/* Weather Forecast Styles */
.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.weather-day {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-day:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.weather-day.today {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.day-info {
    flex: 1;
}

.day-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.day-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.weather-icon {
    font-size: 1.5rem;
    margin: 0 15px;
}

.temperature {
    text-align: center;
    min-width: 60px;
}

.temp-high {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.temp-low {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-left: 5px;
}

.weather-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    text-align: center;
    min-width: 70px;
}

/* Responsive Design for Glass Cards */
@media (max-width: 992px) {
    .hero-sidebar {
        margin-top: 40px;
        padding: 15px;
        order: 2; /* Show sidebar after content on mobile */
    }
    
    .hero-content {
        order: 1;
        text-align: center; /* Center content on mobile */
        padding: 20px 0;
    }
    
    .hero-section {
        padding-top: 100px; /* More space on mobile for header */
    }
    
    .hero-section .row {
        align-items: stretch; /* Ensure equal height columns */
    }
    
    .glass-card {
        margin-bottom: 20px;
    }
    
    .weather-forecast {
        gap: 10px;
    }
    
    .weather-day {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .glass-card .card-header {
        padding: 12px 15px;
    }
    
    .glass-card .card-body {
        padding: 15px;
    }
    
    .weather-day {
        flex-wrap: wrap;
        text-align: center;
    }
    
    .day-info, .temperature, .weather-desc {
        min-width: auto;
    }
}

/* Categories Section */
.categories-section {
    padding: 100px 0;
    background: var(--light-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: 0;
}

.category-card:hover::before {
    left: 0;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.category-card * {
    position: relative;
    z-index: 1;
    transition: var(--transition-fast);
}

.category-card:hover * {
    color: var(--white) !important;
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.category-card p {
    color: #666;
    margin-bottom: 0;
}

/* Products Section */
.products-section {
    padding: 100px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 15px;
}

.product-seller {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.seller-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.seller-name {
    font-size: 0.9rem;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition-fast);
}

/* Live Chat Widget */
.live-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.chat-toggle i {
    font-size: 1.5rem;
    color: var(--white);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 400px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: between;
    align-items: center;
}

.chat-header button {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.message {
    display: flex;
    margin-bottom: 15px;
    align-items: flex-start;
}

.message.user-message {
    justify-content: flex-end;
}

.message .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    margin: 0 10px;
}

.message.user-message .avatar {
    background: var(--success-color);
}

.message .content {
    max-width: 70%;
    background: var(--light-color);
    padding: 10px 15px;
    border-radius: var(--border-radius);
    position: relative;
}

.message.user-message .content {
    background: var(--primary-color);
    color: var(--white);
}

.message .content p {
    margin: 0;
    font-size: 0.9rem;
}

.message .content .time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
}

.chat-input .input-group input {
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
}

.chat-input .input-group button {
    border-radius: 0 20px 20px 0;
    border: none;
    background: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-fast);
    z-index: 1000;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

/* Footer Styles */
.footer-section {
    background: var(--dark-color) !important;
    margin-top: 100px;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--success-color) !important;
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--success-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .chat-box {
        width: 90vw;
        height: 70vh;
        right: 5vw;
    }
    
    .live-chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 20px;
    }
    
    .weather-widget {
        margin: 10px auto !important;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .category-card {
        padding: 30px 20px;
    }
    
    .news-label {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
    
    .news-content {
        font-size: 0.8rem;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}