html{
    scroll-behavior: smooth;
}
body{
    text-align: right;
    font-family: 'Vazir', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items:center;
    padding: 0 20px;
    margin: 0;
    height: 110px;
    background: linear-gradient(to top, #b8c6d0 0%, #dce3e9 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Tahoma', sans-serif;
}


.logo {
    height: 120px;
    width: 100px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    transition: color 0.3s;
}

.menu a:hover {
    color: gray;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    min-width: 160px;
    border-radius: 5px;
    overflow: hidden;
    list-style: none;
    z-index: 1000;
}

.dropdown-content li {
    border-bottom: 0px solid white;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li a {
    display: block;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: rgba(159,182,193,0.61);
}

.dropdown:hover .dropdown-content {
    display: block;
}
/* search */
.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    outline: none;

}
.dropdown .dropdown-content {
    display: none;
}

/* وقتی کلاس active گرفته منو نمایش داده شود */
.dropdown.active .dropdown-content {
    display: block;
}
/* responsive */
@media (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        flex-direction: row;
        height: auto;
        gap: 10px;
    }

    .logo {
        width: 45px; /* سایز لوگو کوچیک‌تر و مناسب */
        height: auto;
        order: 2; /* لوگو وسط */
    }

    nav {
        order: 1; /* منو سمت راست */
    }

    .search-box {
        order:0; /* سرچ سمت چپ */
        width: auto;
    }

    .search-box input {
        width: 90px; /* کوچیک برای موبایل */
        height: 30px;
        font-size: 12px;
        border-radius: 6px;
    }

    .menu {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .menu li a {
        font-size: 12px;
        padding: 4px 6px;
    }

    /* دراپ‌داون‌ها روی موبایل بهتر دیده بشن */
    .dropdown-content {
        position: absolute;
        right: 0;
        background: #fff;
        border-radius: 6px;
        padding: 5px 0;
        top: 35px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/*body*/
.hero {
    position: relative;
    height: 100vh;
    background-image: url('img/main.png');
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
    animation: fadeIn 2s ease;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

#scroll-down {
    background: #ffd400;
    border: none;
    color: #000;
    font-size: 1rem;
    font-weight: bold;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s ease;
}

#scroll-down:hover {
    background: #ffb300;
    transform: translateY(5px);
}
.info {
    position: relative;
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(to bottom right, #e8ecf1, #f9fafb);
    color: #2d3748;
    border-radius: 40px;
    overflow: hidden;
    animation: fadeInUp 1.2s ease-out;
}

.info::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50px;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: glow 6s infinite alternate;
    z-index: 0;
}

.info h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #1e3a8a;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.info p {
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
    color: #374151;
}

.info strong {
    color: #1d4ed8;
}

.info em {
    color: #2563eb;
    font-style: normal;
    font-weight: 500;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50px);
    }
}


/*responsive*/
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    #scroll-down {
        padding: 0.7rem 1.2rem;
    }
}
    .container {
        text-align: center;
    }

    .container img.img {
        width: 250px;
        height: auto;
        margin-bottom: 15px;
    }

    .advertisement {
        font-size: 15px;
        line-height: 1.6;
        padding: 0 10px;
    }

    .btn-grad, .btn-grad1 {
        width: 90%;
        margin: 10px 0;
        display: block;
    }

    .btn-grad a, .btn-grad1 a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-decoration: none;
    }



.btn-grad {background-image: linear-gradient(to right, #314755 0%, #26a0da  51%, #314755  100%)}
.btn-grad {
    margin: 10px 10px;
    padding: 15px 45px;
    text-align:center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;

}
.btn-grad:hover {
    background-position: right center;
    color: #fff;
    text-decoration: none;
}
.btn-grad1{background-image: linear-gradient(to right, #77A1D3 0%, #79CBCA  51%, #77A1D3  100%)}
.btn-grad1{
    margin: 10px;
    padding: 15px 45px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.5s;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 0 20px #eee;
    border-radius: 10px;
}
.btn-grad1:hover {
    background-position: right center; /* change the direction of the change here */
    color: #fff;
    text-decoration: none;
}
.btn{
    text-decoration: none;
    color: white;
    font-size: 17px;
}
.product-text{
    display:inline-flex;
    align-items: center;
    gap: 15px;
    margin-top:40px;
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    line-height: 1;
}
.logo-img{
    width: 60px;
    height: 60px;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.product-text-main{
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
}
@media (max-width: 480px){
    .product-text{
        font-size: 1rem;
        gap: 8px;
    }
    .logo-img{
        width: 44px;
        height: 44px;
    }
}
.product-text {
    direction: rtl;
}
.logo-img{
    flex-direction: row-reverse;
    gap: 12px;
}
.product-container{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;

}
.product-item{
    background-color: rgba(162,185,196,0.61);
    border-radius: 12px;
    width: 210px;
    height: 210px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    box-shadow: 5px 4px 10px rgba(0,3,4,1);
    transition: transform 0.2s ease;

}

.product-item:hover {
    transform: translateY(-5px);
}
.product-item img {
    width: 180px;
    height: 120px;
}
.product-item a{
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;

}
/*  About Layout  */
.about{
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
    max-width: 1100px;
    margin: 150px auto;
    padding: 24px 16px;
}
.about__image{
    width: 100%;
}
.about__image img{
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}
.about__text{
    text-align: right;
    line-height: 1.9;
}
.about__text h2{
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
}
.about__text p{
    margin: 0;
    font-size: 20px;
    color: #333;
}

@media (max-width: 768px) {
    .about {
        display: flex !important;        /* Grid را غیرفعال می‌کند */
        flex-direction: column !important; /* تصویر بالا، متن پایین */
        align-items: center !important;
        gap: 20px !important;
        padding: 20px 10px !important;
        margin: 50px auto !important;
        grid-template-columns: unset !important; /* حذف Grid قبلی */
    }

    .about__image {
        width: 100% !important;
        max-width: 350px !important;
        order: 0;
    }

    .about__image img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px;
        object-fit: cover;
    }

    .about__text {
        width: 100% !important;
        text-align: justify;
        order: 1;
    }

    .about__text h2 {
        font-size: 22px;
        text-align: center;
        margin-bottom: 10px;
    }

    .about__text p {
        font-size: 14px;
        line-height: 1.6;
    }
}

@media (max-width: 375px) {
    .about__image img {
        max-width: 250px !important;
    }

    .about__text h2 {
        font-size: 20px;
    }

    .about__text p {
        font-size: 13px;
        line-height: 1.5;
    }
}






/*footer*/
.footer {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    color: #333;
    padding: 30px 20px;
    font-family: "IRANSans", sans-serif;
    border-top: 1px solid #ddd;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.footer-brand h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 500px;
}


.footer-menus {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.footer-menus h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #111;
}

.footer-menus ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menus li {
    margin-bottom: 8px;
}

.footer-menus a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menus a:hover {
    color: #e74c3c;
}


.footer-contact {
    text-align: center ;
    font-size: 14px;
    color: #444;
}
@media (min-width: 992px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer-brand {
        width: 35%;
        text-align: right;
    }
    .footer-menus {
        width: 40%;
        justify-content: center;
    }
    .footer-contact {
        width: 25%;
        text-align: right;
    }
    ul,li{
        margin-top: 10px;
        list-style-type: none;
    }
}


























/*.header-footer,.footer-container{*/
/*    border: 1px solid;*/

/*}*/
/*.header-footer{*/
/*    padding: 20px;*/
/*    margin-top: 50px;*/
/*}*/
/*.text-footer{*/
/*    margin-top: 0;*/
/*    line-height: 25px;*/
/*    font-size: 18px;*/
/*}*/
/*.footer-container{*/
/*    display: flex;*/
/*    justify-content: space-evenly;*/
/*    padding: 25px;*/
/*    height: 150px;*/
/*}*/
/*.services{*/
/*    text-align: right;*/
/*}*/
/*.services-1{*/
/*    margin-top: 0;*/
/*    text-align: right;*/
/*    line-height: 25px;*/
/*    padding: 10px;*/
/*}*/