/* ================================================================
   style.css – استایل‌های صفحه اصلی
   ================================================================ */

@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* ================================================================
   RESET & BASE
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', sans-serif;
    background-color: #0a1a3a;
    min-height: 100vh;
    color: #fff;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%; 
    display: block;
}

/* ================================================================
   پس‌زمینه ثابت (position:fixed)
   ================================================================ */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('assets/img/background-pattern.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0a1a3a;
}

/* محتوای اصلی بالای پس‌زمینه */
#main-content {
    position: relative;
    z-index: 1;
}

/* ================================================================
   باکس محتوای محو (برای خوانایی بهتر متن)
   ================================================================ */
.content-box {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================================================================
   HERO SWIPER
   ================================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
    border-radius: 5vh;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-swiper .swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-swiper .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-swiper .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-swiper .slide-text-box {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px 50px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-swiper .slide-text-box h1 {
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
    color: #fff;
}

.hero-swiper .slide-text-box p {
    font-size: 1.2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-swiper .slide-text-box .btn {
    padding: 12px 45px;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(255, 193, 7, 0.7);
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #ffc107;
    opacity: 1;
}

/* ================================================================
   بخش محصولات با اسکرول افقی
   ================================================================ */
.section-products {
    padding: 60px 0;
}

.section-products .section-header .content-box {
    display: inline-block;
}

.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    color: #fff;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: #ffc107;
    margin: 0 auto;
    border-radius: 4px;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ===== ردیف دسته‌بندی ===== */
.category-row {
    margin-bottom: 40px;
}

.category-row:last-of-type {
    margin-bottom: 0;
}

.category-header {
    padding: 0 8px;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.category-title::before {
    content: '▸ ';
    color: #ffc107;
}

/* ===== کانتینر اسکرول ===== */
.category-scroll-wrapper {
    position: relative;
    padding: 0 40px;
}

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 10px 4px 20px 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 193, 7, 0.4) transparent;
}

.category-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 193, 7, 0.4);
    border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 193, 7, 0.7);
}

/* ===== آیتم محصول در اسکرول ===== */
.category-product-item {
    flex: 0 0 200px;
    width: 200px;
    min-height: 280px;
}

/* ===== کارت محصول ===== */
.product-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 193, 7, 0.3);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: 0.4s;
    background: rgba(0, 0, 0, 0.2);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.04);
}

.product-info {
    padding: 14px 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.product-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6rem;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50%;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-detail:hover {
    background: #ffc107;
    color: #0a1a3a;
}

/* ===== کارت "مشاهده همه" ===== */
.view-all-item {
    flex: 0 0 200px;
    width: 200px;
    min-height: 280px;
}

.view-all-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    min-height: 280px;
    padding: 20px;
}

.view-all-card:hover {
    background: rgba(255, 193, 7, 0.08);
    border-color: #ffc107;
    transform: scale(1.02);
    color: #fff;
}

.view-all-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.view-all-content i {
    color: #ffc107;
    margin-bottom: 6px;
}

.view-all-content span {
    font-size: 1.1rem;
    font-weight: 700;
}

.view-all-content small {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===== دکمه‌های اسکرول ===== */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 5;
    font-size: 0.9rem;
}

.scroll-btn:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
}

.scroll-prev {
    left: 0;
}

.scroll-next {
    right: 0;
}

/* ================================================================
   ABOUT
   ================================================================ */
.section-about {
    padding: 60px 0;
}

.section-about .content-box {
    height: 100%;
}

.section-about h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.section-about .highlight {
    color: #ffc107;
}

.section-about .about-text {
    font-size: 1.05rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    text-align: justify;
}

.section-about .about-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ================================================================
   LOGOS
   ================================================================ */
.section-logos {
    padding: 60px 0;
}

.section-logos .content-box {
    display: inline-block;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-slider {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logo-track:hover {
    animation-play-state: paused;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-slide {
    flex: 0 0 auto;
    padding: 0 25px;
    min-width: 130px;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(0%) brightness(0.9) contrast(1.2);
    opacity: 0.8;
    transition: 0.4s ease;
}

.logo-slide img:hover {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.08);
}

/* ================================================================
   CONTACT
   ================================================================ */
.section-contact {
    padding: 60px 0;
}

.contact-card {
    padding: 0;
    height: 100%;
}

.contact-card .content-box {
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.contact-item h6 {
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
}

.contact-item a:hover {
    color: #ffc107;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 350px;
    border: 0;
}

/* ================================================================
   دکمه‌های خروجی
   ================================================================ */
.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-light:hover {
    background: #ffc107;
    border-color: #ffc107;
    color: #0a1a3a;
}

/* ================================================================
   SCROLL TO TOP
   ================================================================ */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.9);
    color: #0a1a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    z-index: 999;
}

.scroll-to-top:hover {
    background: #ffc107;
    transform: translateY(-4px);
}

/* ================================================================
   ریسپانسیو
   ================================================================ */
@media (max-width: 992px) {
    .hero-section {
        height: 55vh;
        min-height: 350px;
        max-height: 500px;
    }
    .hero-swiper .slide-text-box h1 {
        font-size: 2.2rem;
    }
    .hero-swiper .slide-text-box p {
        font-size: 1rem;
    }
    .section-products,
    .section-about,
    .section-logos,
    .section-contact {
        padding: 45px 0;
    }
    .content-box {
        padding: 25px 28px;
    }
    .category-product-item,
    .view-all-item {
        flex: 0 0 170px;
        width: 170px;
        min-height: 240px;
    }
    .view-all-card {
        min-height: 240px;
    }
    .category-scroll-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
        max-height: 420px;
    }
    .hero-swiper .slide-text-box {
        padding: 20px 25px;
    }
    .hero-swiper .slide-text-box h1 {
        font-size: 1.6rem;
    }
    .hero-swiper .slide-text-box p {
        font-size: 0.9rem;
    }
    .hero-swiper .slide-text-box .btn {
        padding: 8px 25px;
        font-size: 0.9rem;
    }
    .swiper-button-prev,
    .swiper-button-next {
        width: 36px;
        height: 36px;
    }
    .section-products,
    .section-about,
    .section-logos,
    .section-contact {
        padding: 35px 0;
    }
    .section-about .about-img {
        height: 220px;
    }
    .logo-slide {
        padding: 0 15px;
        min-width: 90px;
        max-width: 140px;
    }
    .logo-slide img {
        height: 70px;
    }
    .map-wrapper {
        min-height: 280px;
    }
    .content-box {
        padding: 20px 18px;
    }
    .category-product-item,
    .view-all-item {
        flex: 0 0 150px;
        width: 150px;
        min-height: 210px;
    }
    .view-all-card {
        min-height: 210px;
    }
    .product-info h4 {
        font-size: 0.8rem;
        height: 2.2rem;
    }
    .btn-detail {
        width: 30px;
        height: 30px;
        font-size: 0.7rem;
    }
    .category-scroll-wrapper {
        padding: 0 20px;
    }
    .scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .category-title {
        font-size: 1.2rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 40vh;
        min-height: 250px;
        max-height: 350px;
    }
    .hero-swiper .slide-text-box {
        padding: 14px 16px;
    }
    .hero-swiper .slide-text-box h1 {
        font-size: 1.2rem;
    }
    .hero-swiper .slide-text-box p {
        font-size: 0.8rem;
        margin-bottom: 15px;
    }
    .hero-swiper .slide-text-box .btn {
        padding: 6px 18px;
        font-size: 0.8rem;
    }
    .category-product-item,
    .view-all-item {
        flex: 0 0 130px;
        width: 130px;
        min-height: 190px;
    }
    .view-all-card {
        min-height: 190px;
        padding: 12px;
    }
    .view-all-content i {
        font-size: 2rem;
    }
    .view-all-content span {
        font-size: 0.9rem;
    }
    .view-all-content small {
        font-size: 0.7rem;
    }
    .product-info {
        padding: 10px 8px;
        min-height: 60px;
    }
    .product-info h4 {
        font-size: 0.7rem;
        height: 2rem;
        margin-bottom: 4px;
    }
    .btn-detail {
        width: 26px;
        height: 26px;
        font-size: 0.6rem;
    }
    .category-scroll-wrapper {
        padding: 0 12px;
    }
    .scroll-btn {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }
    .category-title {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-about h2 {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 1.4rem;
    }
    .content-box {
        padding: 14px 12px;
    }
    .category-scroll {
        gap: 10px;
        padding: 8px 2px 14px 2px;
    }
}