/* Hero Section with Background Image */
.hero-section-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-section-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://shop-avd.ru/image/catalog/788/img_9074.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(3px);
    transform: scale(1.02);
    z-index: -1; /* Place behind content */
    animation: backgroundShift 20s ease-in-out infinite;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content-bg {
    position: relative;
    z-index: 3; /* Increased z-index to bring content to foreground */
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title-bg {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.location-text {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle-bg {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero-catalog-btn {
    margin-bottom: 3rem;
    text-align: center;
}

.btn-catalog-primary {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-catalog-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    color: white;
    background: linear-gradient(45deg, #ff5252, #26c6da);
}

.hero-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.tag-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 10px 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.tag-item::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;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.tag-item i {
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    flex-shrink: 0;
}

.tag-item span {
    line-height: 1.3;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section-bg {
        background-attachment: scroll;
        min-height: 90vh;
    }
    
    .hero-title-bg {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-bg {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content-bg {
        padding: 2rem 1rem;
    }
    
    .hero-tags-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .tag-item {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .tag-item i {
        font-size: 1rem;
    }
    
    .btn-catalog-primary {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title-bg {
        font-size: 2rem;
    }
    
    .hero-subtitle-bg {
        font-size: 1rem;
    }
    
    .hero-tags-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-item {
        justify-content: center;
        text-align: center;
    }
}

/* Animation for background */
@keyframes backgroundShift {
    0%, 100% {
        background-position: center center;
    }
    50% {
        background-position: center top;
    }
}

.hero-section-bg {
    animation: backgroundShift 20s ease-in-out infinite;
}

