/* ===== اسلاید اول ===== */
.slide {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1c1c1c;
    position: relative;
    overflow: hidden;
}

.slide-with-bg {
    background:
        linear-gradient(rgba(18, 18, 18, 0.6), rgba(18, 18, 18, 0.6)),
        url("/img/index/1.webp") center/cover no-repeat;
    background-color: #2e2e2e;
    z-index: 1;
}

.slide-with-bg .content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    line-height: 2.2;
    font-size: 1.1rem;
    text-align: justify;
    text-align-last: right;
    color: #e0e0e0;
    padding: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

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

.content p {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlide 0.8s ease-out forwards;
}

.content p:nth-child(2) {
    animation-delay: 0.5s;
}

.content p:nth-child(3) {
    animation-delay: 1s;
}

.content p:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.company-title {
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0;
    transform: scale(0.9);
    animation: titleFadeIn 1.2s ease-out 0.5s forwards;
}

@keyframes titleFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* لینک‌ها */
.slide-with-bg .content a {
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.slide-with-bg .content a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.slide-with-bg .content a:hover {
    color: #f0f0f0;
    transform: translateY(-1px);
}

.slide-with-bg .content a:hover::after {
    width: 100%;
}

/* ========== ریسپانسیو برای موبایل ========== */
@media (max-width: 768px) {
    .slide {
        padding: 2rem 1rem;
    }

    .slide-with-bg .content {
        font-size: 0.95rem;
        line-height: 1.8;
        padding: 0.5rem;
        text-align: center;
        text-align-last: center;
    }

    .company-title {
        font-size: 1.5rem;
    }

    .content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 2rem 0.5rem;
    }

    .slide-with-bg .content {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0.5rem;
    }

    .company-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 2rem 1rem;
    }

    .slide-with-bg .content {
        font-size: 0.95rem;
        line-height: 1.8;
        padding: 0.5rem;
        /* دیگه center نیست */
        text-align: justify;
        text-align-last: right;
    }

    .company-title {
        font-size: 1.5rem;
    }

    .content p {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .slide {
        padding: 2rem 0.5rem;
    }

    .slide-with-bg .content {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0.5rem;
        /* همچنان راست‌چین */
        text-align: justify;
        text-align-last: right;
    }

    .company-title {
        font-size: 1.3rem;
    }
}