header {
    width: 100%;
    height: 100vh;
    direction: rtl;
    background-image: url(../image/psd.webp);
    background-size: cover;
    background-position: center;
    background-color: transparent;
    overflow-x: hidden;
    background-attachment: fixed;
    box-shadow: -100px 0px 50px 50px #00000005 inset;
    transition: background-image 0.3s ease-in-out;
}

#apply {
    background: #202020;
    transition: all .3s linear;
}

#apply:hover {
    background-color: #414141;
}

body {
    background-color: #f1f1f1;
}

.service-link:hover::before {
    content: "لورم ایپسوم متن ساختگی است. لورم ایپسوم متن ساختگی است.لورم ایپسوم متن ساختگی است. لورم ایپسوم متن ساختگی است.";
    opacity: 1;
    font-size: 16px;
    width: 440px;
    position: absolute;
    bottom: 200px;
    right: 180px;
    text-align: center;
    text-shadow:
        2px 2px 2px rgba(0, 0, 0, 0.5),
        4px 4px 6px rgba(0, 0, 0, 0.4),
        8px 8px 12px rgba(0, 0, 0, 0.3);
}

.store-link:hover::before {
    content: "لورم ایپسوم متن ساختگی است. لورم ایپسوم متن ساختگی است.لورم ایپسوم متن ساختگی است. لورم ایپسوم متن ساختگی است.";
    opacity: 1;
    font-size: 16px;
    width: 440px;
    position: absolute;
    bottom: 200px;
    left: 160px;
    text-align: center;
    text-shadow:
        2px 2px 2px rgba(0, 0, 0, 0.5),
        4px 4px 6px rgba(0, 0, 0, 0.4),
        8px 8px 12px rgba(0, 0, 0, 0.3);

}

header.active {
    background-image: url(../image/psd1.webp);
    /* تصویر برای کلاس active */
}

header.store-active {
    background-image: url(../image/psd2.webp);
    /* تصویر برای فروشگاه */
}


.header-top {
    width: 100%;
    height: 10vh;
    display: flex;
}

.search-container {
    width: 100%;
    height: 10vh;
    padding: 10px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-box {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 10px;
    padding: 10px;
    transition: width 0.5s ease-in-out;
    position: relative;
    box-shadow: 0 0 10px 0 #ccc;
    backdrop-filter: blur(2px);
    margin-top: 0px;

}



.search-box:hover,
.search-box:focus-within {
    width: 350px;
}

.search-box:active {
    width: 350px;
}

.search-input {
    width: 90%;
    height: 100%;
    padding: 10px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    border-radius: 10px;
    background-color: transparent;
}

.search-icon {
    position: absolute;
    right: 15px;
    color: #fff;
    transition: none;
}


.logo-container {
    width: 20%;
    height: 10vh;
    display: flex;
    justify-content: start;
    font-size: 35px;
    color: #fff;
}

.header-bottem {
    width: 100%;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding: 10px;
}

.wellcome {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: end;
}

.slogan {
    width: 100%;
    height: 15vh;
    display: flex;
    justify-content: center;
    align-items: end;
}

.header-bottem h1 {
    font-size: 50px;
    font-weight: 500;
    text-shadow:
        2px 2px 2px rgba(0, 0, 0, 0.5),
        4px 4px 6px rgba(0, 0, 0, 0.4),
        8px 8px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 100px;

}

.link {
    display: flex;
    gap: 20px;
    height: 25vh;
}

.link-container {
    display: flex;
    justify-content: center;
    align-items: start;
    width: 100%;
    height: 80px;
    gap: 20px;
    transition: transform .3s ease-in-out;
}

.link-container:hover {
    transform: scale(0.9);
}

.link-container a {
    border: 2px solid #fff;
    padding: 20px;
    border-radius: 10px;
    width: 360px;
    font-size: 20px;
    text-align: center;
    box-shadow: 0 0 10px 0 #ccc;
    transition: all .3s ease-in-out;
    backdrop-filter: blur(2px);
}


.header-bottem h1,
.header-bottem p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.5s;
}

.link-container a {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 1s;

}

.header-bottem.show h1,
.header-bottem.show p,
.header-bottem.show .link-container a {
    opacity: 1;
    transform: translateY(0);
}



.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 20px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}

.logo {
    width: 125px;
    height: 80px;
    margin: 4px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1250px;
    width: 90%;
    gap: 20px;
    border-top: 2px solid #ccc;
    padding-top: 40px;
    margin-top: 25px;
}

.card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    padding-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}


.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;

}

.card:hover img {
    filter: grayscale(0%);
}

.card h3 {
    margin: 15px 0 10px;
    font-size: 20px;
}


footer {
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.email-container {
    max-width: 1250px;
    width: 90%;
    display: flex;
    border-top: 2px solid #ccc;
}

.email-caption {
    width: 50%;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.email-caption h2 {
    font-size: 30px;
}

p {
    font-family: 'Vazir', sans-serif;
    /* فونت یکسان برای همه */
    font-size: 16px;
    /* سایز دلخواه */
    color: #333;
    /* رنگ دلخواه */
    line-height: 1.6;
    /* فاصله بین خطوط */
}

.email-input {
    width: 50%;
    height: 200px;
    display: flex;
    align-items: center;
}

.btn-shine {
    transform: translate(-50%, -50%);
    padding: 12px 48px;
    color: #fff;
    background: linear-gradient(to right, #6e6e6e 0, #cccccc 10%, #ffffff 20%);
    -webkit-text-fill-color: transparent;
    animation: shine 3s infinite linear;
    animation-fill-mode: forwards;
    -webkit-text-size-adjust: none;
    font-weight: 600;
    font-size: 50px;
    text-decoration: none;
    white-space: nowrap;
    font-family: "Poppins", sans-serif;
}

@-moz-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@-webkit-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@-o-keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}

@keyframes shine {
    0% {
        background-position: 0;
    }

    60% {
        background-position: 180px;
    }

    100% {
        background-position: 180px;
    }
}


.email-input form {
    display: flex;
    justify-content: end;
    width: 100%;
}

.input {
    border: 1px solid #8b8b8b;
    padding: 10px;
    width: 85%;
    height: 50px;
    border-radius: 5px;
    margin: 0 5px 0 0;
}

.email-input form input[type="submit"] {
    border: 1px solid #202020;
    padding: 0px 20px 0 20px;
    border-radius: 5px;
    margin-right: 10px;
    cursor: pointer;
    background-color: #202020;
    color: #fff;
    align-content: center;
}

.footer-info {
    max-width: 1250px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    border-top: 2px solid #ccc;
    padding: 40px 0;
}

.footer-social,
.footer-address,
.footer-links {
    font-size: 20px;
    color: #333;
}

.footer-social h2,
.footer-address h2 {
    font-size: 30px;
    margin-bottom: 40px;
    color: #000;
}

.footer-social i {
    font-size: 40px;
    margin: 0 4px;
    transition: transform 0.3s ease;
}


.footer-social i:hover {
    transform: scale(1.2);
}

a .whatsappsize {
    font-size: 43px;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-links img:hover {
    cursor: pointer;
}

@media (max-width: 1024px) {
    header {
        background-position: center;
        background-image: url(../image/ng.webp);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .link-container {
        display: flex;
        justify-content: center;
        align-items: end;
        gap: 10px;
        height: 17vh;
    }

    .logo {
        width: 97px;
        height: 68px;
        margin: 10px 0;
    }

    .service-link:hover::before {
        content: "";
    }

    .store-link:hover::before {
        content: "";
    }

    header.active {
        background-image: url(../image/ng.webp);
        /* تصویر برای کلاس active */
    }

    header.store-active {
        background-image: url(../image/ng.webp);
        /* تصویر برای فروشگاه */
    }

}

@media (max-width: 768px) {
    .email-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .email-caption {
        width: 100%;
        text-align: center;
        height: 100px;
    }

    .email-caption h2 {
        font-size: 25px;
    }

    .email-caption p {
        font-size: 15px;
    }

    .email-input {
        width: 100%;
        height: 100px;
        justify-content: center;
    }

    .email-input form {
        width: 100%;
        justify-content: center;
    }

    .input {
        width: 100%;
    }

    .email-caption .search-box:hover,
    .search-box:focus-within {
        width: 240px;
    }

    .search-box:active {
        width: 240px;
    }

    .footer-info {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .footer-social,
    .footer-address,
    .footer-links {
        text-align: center;
        font-size: 16px;
        margin-bottom: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .header-bottem h1 {
        font-size: 30px;
        margin-bottom: 20px;
        display: none;
    }

    .header-bottem p {
        font-size: 15px;
        display: none;

    }

    .link {
        width: 100%;
    }

    .search-container {
        width: 75%;
        padding: 10px 15px;
    }

    .logo-container {
        width: 35%;
        position: relative;
        top: 0px;
        right: 10px;
    }

    .link-container {
        display: flex;
        justify-content: center;
        align-items: end;
        gap: 10px;
        height: 17vh;
    }

    .link-container a {
        font-size: 15px;
        width: 100%;
    }

}