/* Index Page Styles */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(16, 185, 129, 0.9) 100%),
                url('../images/hero-bg.jpg') center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 35px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn-primary {
    background: white;
    color: var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background: var(--accent-color);
    color: white;
}

.hero-buttons .btn-secondary {
    border-color: white;
    color: white;
}

.hero-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 15px;
    background: var(--light-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

/* Categories Section - Modern Cards */
.categories {
    padding: 50px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border-color);
    padding: 30px;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    transition: var(--transition);
}

.category-card.electrical::before {
    background: linear-gradient(90deg, #f43f5e, #fb7185);
}

.category-card.plumbing::before {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}

.category-card.agricultural::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.category-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.category-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.category-card.electrical .category-icon {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.4);
}

.category-card.plumbing .category-icon {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
}

.category-card.agricultural .category-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.category-card:hover .category-icon {
    transform: rotateY(360deg) scale(1.1);
}

.category-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.category-content p {
    color: var(--gray-color);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card.electrical .category-link {
    background: linear-gradient(135deg, #fef2f2, #ffe4e6);
    color: #e11d48;
}

.category-card.electrical:hover .category-link {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    color: white;
    transform: scale(1.05);
}

.category-card.plumbing .category-link {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: #0284c7;
}

.category-card.plumbing:hover .category-link {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    transform: scale(1.05);
}

.category-card.agricultural .category-link {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.category-card.agricultural:hover .category-link {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: scale(1.05);
}

/* Promotional Banners */
.promo-banners {
    padding: 40px 0;
    background: white;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.banner-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.banner-card:hover img {
    transform: scale(1.1);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
    transition: all 0.3s ease;
}

.banner-card:hover .banner-overlay {
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
}

/* Responsive Banners */
@media (max-width: 768px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .banner-card {
        height: auto;
    }
}

/* Products Section */
.products {
    padding: 80px 0;
    background: white;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.products-filter {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.new {
    background: var(--secondary-color);
    color: white;
}

.product-badge.sale {
    background: var(--accent-color);
    color: white;
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    bottom: 15px;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--gray-color);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-info h3 a:hover {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price .current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old {
    font-size: 1rem;
    color: var(--gray-color);
    text-decoration: line-through;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta .btn {
    background: white;
    color: var(--primary-color);
}

.cta .btn:hover {
    background: var(--accent-color);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 35px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-header {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Categories horizontal scroll on mobile */
    .categories {
        padding: 30px 0;
    }
    
    .categories .section-title {
        margin-bottom: 20px;
    }
    
    .categories .section-title h2 {
        font-size: 1.3rem;
    }
    
    .categories .section-title p {
        font-size: 0.85rem;
    }
    
    .categories-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 10px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .categories-grid::-webkit-scrollbar {
        display: none;
    }
    
    .category-card {
        flex: 0 0 45%;
        min-width: 45%;
        height: 140px;
        scroll-snap-align: start;
        border-radius: 12px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .category-content h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .category-content p {
        display: none;
    }
    
    .category-link {
        padding: 6px 15px;
        font-size: 0.8rem;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-filter {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cta h2 {
        font-size: 1.8rem;
    }
}
