/* ==========================================================================
         بخش دوم: استایل‌های مخصوص صفحه اصلی (Home Page Only Styles)
         شامل: اسلایدرها، بنرها، سکشن‌های محصولات و محتوای داخلی صفحه
 ========================================================================== */

section {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.reveal-item {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
    transform: translateY(100px) scale(0.95);
}

.reveal-item.reveal-left {
    transform: translateX(-100px) scale(0.95);
}

.reveal-item.reveal-right {
    transform: translateX(100px) scale(0.95);
}

.reveal-item.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Hero */
.hero-wrap {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    z-index: -1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
}

.hero-content p {
    color: #f1f1f1 !important;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About */
.about-section {
    background-color: #fff;
    overflow: hidden;
}

.about-img-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-img-wrap img {
    transition: transform 0.5s;
}

.about-img-wrap:hover img {
    transform: scale(1.05);
}

.about-line {
    width: 80px;
    height: 4px;
    background: var(--theme-color);
    margin-bottom: 20px;
}

/* Counter */
.counter-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/banner/015.jpg');
    background-size: cover;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
}

.counter-icon {
    font-size: 3rem;
    color: var(--theme-color);
    margin-bottom: 15px;
    display: inline-block;
}

.counter-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
}

.counter-label {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 5px;
}

/* Video Gallery */
.video-gallery-section {
    padding: 60px 0;
    background: var(--bg-body);
}

.video-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    border: none;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
    filter: brightness(0.9);
}

.video-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.play-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff!important;
    font-size: 24px;
    z-index: 2;
    animation: pulse-red 2s infinite;
}
.play-btn-glow {
    color: #fff!important;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(213, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(213, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(213, 0, 0, 0);
    }
}

/* Comparison Slider */
.comparison-section {
    text-align: center;
}

.ba-slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    cursor: col-resize;
    border: 3px dashed var(--theme-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    -webkit-user-select: none;
    user-select: none;
}

.ba-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: none !important;
}

.ba-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ba-image-wrapper.after {
    width: 50%;
    border-right: 3px solid var(--theme-color);
    z-index: 2;
}

.ba-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 0 15px rgba(213, 0, 0, 0.6);
    cursor: col-resize;
    transition: transform 0.1s;
}

.ba-handle i {
    color: #fff;
    font-size: 24px;
}

.ba-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 30px;
    font-size: 14px;
    z-index: 3;
    pointer-events: none;
}

.label-before {
    right: 20px;
}

.label-after {
    left: 20px;
    background: rgba(213, 0, 0, 0.8);
    font-weight: bold;
}

/* Products */
.product-slider {
    padding: 10px;
    overflow: hidden;
}

.swiper-slide {
    height: auto;
}

.swiper-btn-prev-custom, .swiper-btn-next-custom {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-main);
    background: #fff;
}

.swiper-btn-prev-custom:hover, .swiper-btn-next-custom:hover {
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.swiper-pagination-bullet-active {
    background-color: var(--theme-color) !important;
}

.product-card-dark {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card-dark:hover {
    transform: translateY(-10px);
    border-color: var(--theme-color);
    box-shadow: 0 15px 30px rgba(213, 0, 0, 0.1);
}

.price-tag {
    font-size: 1.2rem;
    color: #000;
    font-weight: 700;
}

.product-card-dark h5 {
    color: #000;
}

.product-card-dark .btn-outline-dark:hover {
    background-color: transparent !important;
    color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.btn-primary {
    background-color: var(--theme-color) !important;
    border-color: var(--theme-color) !important;
}

.text-gold {
    color: var(--theme-color) !important;
}

.bg-gold {
    background-color: var(--theme-color) !important;
}

/* Shop CTA */
.shop-cta-section {
    background-color: #111;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    position: relative;
    overflow: hidden;
}

.shop-cta-overlay {
    position: absolute;
    top: 0;
    start: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner/019.jpg') center/cover fixed;
    opacity: 0.15;
    z-index: 0;
}

.service-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.service-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--theme-color);
    transform: translateY(-5px);
}

/* Services */
.services-main-section {
    padding: 80px 0;
    background-color: #fff;
}

.service-card-main {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-body);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card-main:hover {
    transform: translateY(-10px);
    border-color: var(--theme-color);
    box-shadow: 0 15px 40px rgba(213, 0, 0, 0.1);
    background: #fff;
}

.service-icon-main {
    width: 90px;
    height: 90px;
    background: rgba(213, 0, 0, 0.08);
    color: var(--theme-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.service-card-main:hover .service-icon-main {
    background: var(--theme-color);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card-main h5 {
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

.service-card-main p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Contact Area */
.contact-section-bg {
    background: #111;
}

.contact-cta-section {
    padding: 5rem 0;
}

.contact-pulse-btn {
    width: 100px;
    height: 100px;
    background-color: var(--theme-color);
    color: #fff!important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 20px rgba(213, 0, 0, 0.6);
    transition: transform 0.3s;
    margin: 0 auto;
}

.contact-pulse-btn:hover {
    transform: scale(1.1);
    color: #fff!important;
}

.contact-pulse-btn::before, .contact-pulse-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--theme-color);
    animation: pulse-ring 2s infinite;
    z-index: -1;
}

.contact-pulse-btn::after {
    animation-delay: 0.5s;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 220%;
        height: 220%;
        opacity: 0;
    }
}

.btn-contact-custom {
    border-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

/* Blog */
.blog-card {
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-date {
    color: var(--theme-color);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.blog-title {
    color: #000;
    font-size: 1.2rem;
    transition: 0.3s;
}

.blog-card:hover .blog-title {
    color: var(--theme-color);
}

.read-more {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.read-more i {
    margin-right: 5px;
    transition: 0.3s;
}

.read-more:hover i {
    margin-right: 10px;
    color: var(--theme-color);
}

.section-title-divider {
    width: 50px;
    height: 3px;
    background: var(--theme-color);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .ba-slider {
        height: 300px;
    }
}

/* --- تنظیمات شفافیت برای مودال‌های Fancybox --- */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

/* اگر از مودال‌های بوت‌استرپ هم استفاده می‌کنید */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-outline-dark:hover {
  color: #fff !important;
  background-color: #212529 !important;
  border-color: #212529 !important;
}
.btn-outline-dark {
  color: #212529 !important;
  border-color: #212529 !important;
}
