/* =====================================================
   ATRIN TEJARAT — Home Page (صفحه اصلی)
   ===================================================== */

html,
body {
    overflow-x: hidden;
    width: 100%;
}

.home-page-main {
    background-color: #f7f8fa;
    direction: rtl;
    font-family: 'Yekan Bakh', Tahoma, sans-serif;
    overflow-x: hidden;
    width: 100%;
}

/* Common Components */
.home-section-subtitle {
    display: inline-block;
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #153152;
    letter-spacing: 2px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.home-section-title {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 38px;
    font-weight: 900;
    color: #153152;
    margin: 0 0 24px 0;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* =====================================================
   SECTION 1: HERO (Creative Glassmorphism)
   ===================================================== */
.home-hero-section {
    position: relative;
    background: #0f172a;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 100px 0;
    /* Changed from min-height 95vh */
}

/* Abstract Blur Shapes */
.home-hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: floatShape 15s ease-in-out infinite alternate;
}

.shape-1 {
    width: 50vw;
    height: 50vw;
    background: #1e4a7a;
    top: -10%;
    right: -10%;
}

.shape-2 {
    width: 40vw;
    height: 40vw;
    background: #FBB900;
    bottom: -10%;
    left: -10%;
    animation-delay: -5s;
    opacity: 0.3;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.home-hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(80px, 15vw, 250px);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    font-family: Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
    width: 100%;
    text-align: center;
    overflow: hidden;
}

.home-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.home-hero-glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 60px 50px;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.home-hero-content {
    /* No max-width needed here since card is constrained */
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 185, 0, 0.15);
    border: 1px solid rgba(251, 185, 0, 0.3);
    color: #FBB900;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-family: 'Arial', sans-serif;
}

.home-hero-badge i {
    font-size: 16px;
}

.home-hero-title {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 54px;
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 20px 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.home-hero-title span {
    font-size: 34px;
    color: #FBB900;
    display: block;
    margin-top: 5px;
}

.home-hero-desc {
    font-size: 17px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 40px auto;
    max-width: 650px;
}

.home-hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.home-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FBB900;
    color: #153152;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(251, 185, 0, 0.25);
}

.home-btn-primary:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

.home-btn-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.home-btn-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-3px);
}

.home-btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FBB900;
    color: #153152;
    padding: 16px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(251, 185, 0, 0.25);
    border: none;
}

.home-btn-yellow:hover {
    background: #153152;
    color: #FBB900;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(21, 49, 82, 0.2);
}

.home-hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #FBB900;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

/* =====================================================
   SECTION 2: ABOUT SNIPPET
   ===================================================== */
.home-about-section {
    padding: 70px 0;
    background: #fff;
}

.alternate-bg {
    background: #f9f9fb !important;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-about-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(21, 49, 82, 0.1);
}

.home-about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s ease;
}

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

.home-about-experience {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: #153152;
    color: #fff;
    padding: 30px;
    border-radius: 40px 0 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-about-experience strong {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 42px;
    color: #FBB900;
    line-height: 1;
}

.home-about-experience span {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.home-about-desc {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

.home-about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #153152;
}

.home-about-list li i {
    color: #FBB900;
    font-size: 20px;
}

.home-link-with-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #153152;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    border-bottom: 2px solid #FBB900;
    padding-bottom: 4px;
}

.home-link-with-arrow:hover {
    color: #FBB900;
    gap: 12px;
}

/* =====================================================
   SECTION 3: SERVICES (Individual Rows)
   ===================================================== */
.home-service-row {
    padding: 70px 0;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.home-service-row.alternate-bg {
    background: #f9f9fb;
}

.home-service-bg-watermark {
    position: absolute;
    top: 50%;
    right: -5%;
    transform: translateY(-50%);
    font-size: 10vw;
    font-weight: 900;
    color: rgba(21, 49, 82, 0.03);
    font-family: Arial, sans-serif;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
}

.home-service-bg-watermark.left-side {
    right: auto;
    left: -5%;
}

.home-service-flex {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 2;
}

.reverse-row .home-service-flex {
    flex-direction: row-reverse;
}

.home-service-text {
    flex: 1;
}

.home-service-desc {
    font-size: 16px;
    line-height: 2;
    color: #555;
    margin-bottom: 30px;
    text-align: justify;
}

.home-service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-service-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #153152;
}

.home-service-features li i {
    color: #FBB900;
    font-size: 20px;
}

.home-btn-outline.dark-outline {
    border-color: #153152;
    color: #153152;
}

.home-btn-outline.dark-outline:hover {
    background: #153152;
    color: #FBB900;
}

.home-service-img-col {
    flex: 1;
}

.home-service-img-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(21, 49, 82, 0.1);
}

.home-service-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.home-service-img-wrapper:hover img {
    transform: scale(1.05);
}

.home-service-icon-float {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: #FBB900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #153152;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(251, 185, 0, 0.4);
    transition: all 0.4s ease;
}

.reverse-row .home-service-icon-float {
    right: auto;
    left: -20px;
}

.home-service-img-wrapper:hover .home-service-icon-float {
    transform: translateY(-10px) scale(1.05);
}

/* =====================================================
   SECTION 4: STATISTICS / WHY CHOOSE US
   ===================================================== */
.home-stats-section {
    padding: 70px 0;
    background: transparent;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.home-stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-stat-card:hover {
    background: #fff;
    border-color: rgba(251, 185, 0, 0.3);
    box-shadow: 0 15px 30px rgba(21, 49, 82, 0.06);
    transform: translateY(-5px);
}

.home-stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background: rgba(251, 185, 0, 0.15);
    color: #FBB900;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.home-stat-card h3 {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 36px;
    font-weight: 900;
    color: #153152;
    margin: 0 0 10px 0;
}

.home-stat-card p {
    font-size: 15px;
    color: #666;
    margin: 0;
    font-weight: 600;
}

/* =====================================================
   SECTION 5: BRANDS
   ===================================================== */
.home-brands-section {
    padding: 70px 0;
}

.home-brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.home-brand-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.7);
}

.home-brand-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.home-brand-item img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* =====================================================
   SECTION 6: BLOG / ENCYCLOPEDIA
   ===================================================== */
.home-blog-section {
    padding: 70px 0;
}

.home-blog-header {
    display: flex;
    flex-direction: column;
}

.home-blog-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.home-blog-titles {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.home-blog-titles-text {
    display: flex;
    flex-direction: column;
}

.home-blog-yellow-line {
    height: 60px;
    margin-top: 5px;
}

.home-blog-titles-text .home-section-title {
    margin-bottom: 0;
}

.home-blog-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35px;
}

.home-blog-tabs {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.home-blog-tab-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Yekan Bakh', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.home-blog-tab-btn.active,
.home-blog-tab-btn:hover {
    background: #f0f0f5;
    color: #153152;
}

/* Removed .home-blog-all-btn as it is replaced by .home-btn-primary */

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-blog-card {
    background: #fff;
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 180px;
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.home-blog-img-wrapper {
    flex: 0 0 40%;
    overflow: hidden;
}

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

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

.home-blog-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.home-blog-title {
    font-size: 16px;
    font-weight: 800;
    color: #153152;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-blog-dot {
    width: 6px;
    height: 6px;
    background: #FBB900;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.home-blog-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 15px 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.home-blog-cat {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-blog-link {
    font-size: 13px;
    font-weight: 700;
    color: #153152;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    background: #f4f4f9;
    padding: 4px 10px;
    border-radius: 8px;
}

.home-blog-link:hover {
    background: #FBB900;
    color: #fff;
}

/* =====================================================
   SECTION 7: CALL TO ACTION (Thin Strip)
   ===================================================== */
.home-cta-strip {
    position: relative;
    padding: 0;
    margin-top: -1px;
    /* prevent gaps */
}

.home-cta-strip-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #153152 0%, #1e4a7a 100%);
    z-index: 1;
}

.home-cta-strip-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 10h10v10H10V10z' fill='rgba(255,255,255,0.02)'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.home-cta-strip-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 40px 0;
    gap: 40px;
}

.home-services-header {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.home-cta-text h2 {
    font-family: 'Rokh Pro', 'Yekan Bakh', sans-serif;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px 0;
}

.home-cta-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.home-cta-action {
    flex-shrink: 0;
}

.home-btn-golden {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FBB900;
    color: #153152;
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.home-btn-golden:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.15);
}

/* =====================================================
   ANIMATIONS & RESPONSIVE
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Intersection Observer Reveal Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 1024px) {
    .home-hero-glass-card {
        padding: 40px 30px;
    }

    .home-hero-title {
        font-size: 42px;
    }

    .home-hero-title span {
        font-size: 28px;
    }

    .home-about-grid {
        gap: 40px;
    }

    .home-service-flex {
        gap: 40px;
    }

    .home-service-bg-watermark {
        font-size: 15vw;
    }

    .home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-hero-section {
        padding: 120px 0 80px 0;
    }

    .home-hero-actions {
        flex-direction: column;
        gap: 16px;
    }

    .home-btn-primary,
    .home-btn-glass {
        width: 100%;
        justify-content: center;
    }

    .home-about-grid {
        grid-template-columns: 1fr;
    }

    .home-about-image-col {
        order: -1;
    }

    .home-service-flex,
    .reverse-row .home-service-flex {
        flex-direction: column;
    }

    .home-service-img-col {
        order: -1;
        width: 100%;
    }

    .home-service-bg-watermark {
        display: none;
    }

    .home-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-brands-grid {
        gap: 20px;
    }

    .home-brand-item img {
        height: 40px;
    }

    .home-cta-strip-inner {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .home-blog-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .home-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .home-blog-actions {
        width: 100%;
    }

    .home-blog-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

    .home-blog-tabs::-webkit-scrollbar {
        display: none;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .home-blog-card {
        flex-direction: column;
        height: auto;
        width: 100%;
    }

    .home-blog-img-wrapper {
        flex: none;
        height: 200px;
    }
}


.home-stats-section .container {
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
}

.home-blog-section .container {
    display: grid !important;
}