
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: .1% .5% .1% .5%;
    overflow: hidden;
}

.fixed_container {
    position: fixed;
    display: flex;
    box-shadow: rgba(4, 0, 3, 0.12) 0 .25rem .3rem 0;
    z-index: 5;
    width: 99vw;
    flex-flow: row nowrap;
    border: #b3b4b3 1px solid;
}

#background {
    position: absolute;
    top: 135px;
    background-size: 20rem 12rem;
    width: 100%;
    height: 100vh;
    opacity: .05;
    z-index: -10;
}

/*region  *****  Menu ****   */

nav {
    display: flex;
    position: fixed;
    box-shadow: rgba(4, 0, 3, 0.12) 0 .25rem .3rem 0;
    z-index: 5;
    width: 99vw;
    flex-flow: row nowrap;
    border: #b3b4b3 1px solid;
    margin-top: 100px;
    height: 35px;
    background-color: rgba(255, 239, 216, 1);
    margin-bottom: 1vh;
    font-family: mf_vazir;

}

#cm_menu {
    width: 50%;
}

#logo_mini {
    display: flex;
    width: 50%;
    flex-direction: row;
    justify-content: end;
}

/*endregion*/

/*region  ****  Header ****   */
header {
    border-radius: 1rem 1rem 0 0;
    height: 100px;
    background: white no-repeat;
}

/*header img{*/

#header_box {
    width: 100%;
    padding-right: 10px;
    height: 100%;
    z-index: 1;
}

#header_title_top {
    height: 70%;
    font-family: mf_nastaliqh, serif;
    text-decoration: none;
    /*font-size: 8vh;*/
    color: blue;
    text-shadow: rgba(100, 100, 255, .5) 1px 1px;
}

#header_title_bottom {
    height: 30%;
    font-family: mf_nastaliqh, serif;
    /*font-size: 1em;*/
    color: blue;
    white-space: nowrap;
    text-shadow: rgba(100, 100, 255, .5) 1px 1px;

}

/*endregion*/

/*region  ****  Middle Body ****   */
#middle_body {
    height: 81.5vh;
    min-height: 81.5vh;
    position: relative;
    /*flex: 1;*/
    display: flex;
    box-sizing: border-box;
    padding: 0;
    z-index: 3;
    background-color: rgba(255, 255, 255, .2);

    align-items: center;
    flex-flow: column;
    overflow-y: auto;
    overflow-x: hidden;
    bottom: 10px;
    /*right: 240px;*/
    top: 157px;
    /*max-width: 87.5%;*/
    /*تنظیم عرض با استفاده از اسکریپت*/
    /*white-space: nowrap;*/
}

g-slider {
    width: 90%;
    /*height: 40%;*/
    /*min-height: 40%;*/
    border: gray 1px solid;
    border-radius: 10px;
    box-shadow: rgba(213, 214, 213, 0.67) 5px 5px;
    margin-top: 10px;
    font-family: mf_sahel;
    font-size: 16px;
}

pre {
    padding: 15px;
    font-family: mf_vazir;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

#slide_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    color: #ffd868;
    right: 0;
    width: 55%;
    height: 100%;
    background: rgba(0, 0, 0, .8);
    z-index: 999;
    transform: translateX(110%);
    font-family: mf_vazir;
    transform: translateX(110%);
    transition: transform .35s ease-in .2s;

}

/*endregion*/

/*region  ****  Sidebar *****   */
#sidebar {
    height: 81.5vh;
    position: fixed;
    display: flex;
    box-sizing: border-box;
    min-width: 220px;
    padding: 0;
    z-index: 3;
    width: 12%;
    background-color: rgba(0, 0, 0, 0.57);
    border: gray 2px solid;
    border-radius: 10px;
    align-items: center;
    flex-flow: column nowrap;
    overflow: hidden;
    bottom: 10px;
    top: 140px;
    justify-content: flex-start;
    margin-top: 2vh;

}

#sidebar * {
    font-family: mf_vazir, serif;
    font-size: .8rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #ffd868;
    display: flex;
    align-items: center;
    flex-flow: column;
    width: 100%;
}

#sidebar_top, #sidebar_top2 {
    padding-top: 1rem;
    font-family: mf_vazir, serif;
    font-size: .9rem;
    width: 100%;
    flex-flow: column;
    align-items: center;
    color: #ffd868;
}

.dotted_line {
    border-bottom: 1px dotted;
    margin: .5rem !important;

}

#sidebar_logo {
    width: 80%;
    position: absolute;
    bottom: 6.5rem;
}

#address_box {
    /*border:white solid 1px;*/
    width: 95%;
    position: absolute;
    bottom: 1.5rem;
}

#sidebar_top, #sidebar_top2 p {
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
}

.display-date {
    font-weight: 600;
}

.display-time {
    display: flex;
    width: 60% !important;
    font-size: 1.4rem !important;
    font-weight: bold;
    border: 2px solid #ffd868;
    padding: .5rem;
    border-radius: 5px;
}

#info_box_1 {
    width: 100%;
    color: #ffd868;
    display: flex;
    bottom: 0;
    flex-flow: column;
    font-family: mf_vazir, serif;
    font-size: .8rem;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}

.copyright {
    align-items: center;
    font-size: .8rem !important;
    width: 95% !important;
    /*color: cyan !important;*/
    position: absolute;
    bottom: .1rem;
    z-index: 20;
}

/*endregion*/

#middle_body > h2 {
    font-family: mf_sahel;
    color: red;
    text-shadow: #888888 1px 1px 5px
}

.quality-route {
    width: 90%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.quality-route img {
    width: 650px;
}

.footer {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    min-height: fit-content;
    /*background: linear-gradient(0deg,#0d47a1, #ffffff);*/
    background: linear-gradient(160deg, #0b1a2e 0%, #3a79b6 50%, #0f1f30 100%);
    /*border-radius: 0 0 25px 25px;*/
    box-sizing: border-box;
    opacity: .85;
    z-index: 10;

    margin-top: 100px;
    padding: 20px 20px 10px 20px;
    color: #d4dee8;
    border-top: 4px solid #c9a84c;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
}

.client-section {
    width: 90%;
    height: fit-content;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-content: center;
    justify-items: center;
    font-family: mf_vazir;
}

.client-box {
    width: 200px;
    height: 200px;
    box-shadow: black 3px 3px 5px;
    border-radius: 15px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    margin: 50px 0;
    transition: .5s ease;
    cursor: pointer;
}

.client-box:hover{
    box-shadow: black 3px 3px 15px;
    transform: translate(-10px,-10px);
}

.client-box img{
    width: 140px;
    height: 140px;
}
.client-box div{
    text-align: center;
    font-size: .95rem;
    color: #ff0000;
    text-shadow: 1px 1px 2px black;
}


.footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(90deg,
    #c9a84c 0px,
    #c9a84c 20px,
    transparent 20px,
    transparent 30px,
    #c9a84c 30px,
    #c9a84c 50px,
    transparent 50px,
    transparent 60px);
    opacity: 0.6;
}

.footer::after {
    content: '⚙ ▐  ENGINEERING  ▐  CONSULTING  ▐  DESIGN  ▐  ⚙';
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: rgba(255, 243, 111, 0.31);
    font-weight: 600;
    pointer-events: none;
    white-space: nowrap;
}

.footer-logos {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    left: 10px;
    bottom: 30px;
}

.footer-logos .badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid rgba(201, 168, 76, 0.25);
    padding: 0.2rem .8rem;
    border-radius: 20px;
    font-size: 0.6rem;
    color: #c9a84c;
    letter-spacing: 1px;
    margin: .1rem;
}

.footer-container {
    max-width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 2.2fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    align-items: start;
    justify-content: right;
    font-family: mf_vazir;
}

/* ===== ستون اول : معرفی شرکت ===== */
.footer-brand h2 {
    color: #f0f4fa;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.footer-brand .sub-title {
    color: #c9a84c;
    font-size: 0.85rem;
    letter-spacing: 3px;
    font-weight: 400;
    border-bottom: 2px solid rgba(201, 168, 76, 0.25);
    padding-bottom: 12px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-brand p {
    line-height: 1.9;
    font-size: 0.92rem;
    color: #b8c9dd;
    max-width: 340px;
    margin-bottom: 1.2rem;
}

/* ===== ستون‌های مشترک ===== */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #f0f4fa;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: #c9a84c 3px solid;
    border-radius: 2px;
    width: fit-content;
}

/*.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: #c9a84c;
    border-radius: 2px;
}*/

.footer-col a {
    margin-bottom: 0.6rem;
    color: #b8c9dd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: #c9a84c;
    transform: translateX(6px);
}

/* ===== اطلاعات تماس ===== */
.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #b8c9dd;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.icon {
    width: 30px;
    height: 30px;
    color: #c9a84c;
    font-size: 1.1rem;
    min-width: 22px;
    text-align: center;
}

/* ===== شبکه‌های اجتماعی (حرفه‌ای) ===== */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    color: #b8c9dd;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    background: #c9a84c;
    color: #0b1a2e;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.25);
    border-color: #c9a84c;
}

/* ===== بخش پایینی فوتر ===== */
.footer-bottom {
    max-width: 50%;
    margin: 0;
    padding-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: #7a8fa5;
}

.footer-bottom .highlight {
    color: #c9a84c;
}

.footer-bottom .separator {
    color: rgba(255, 255, 255, 0.08);
    padding: 0 8px;
}

.footer-bottom .engineer-icon {
    display: inline-block;
    font-size: 1rem;
    margin-left: 4px;
}

.back-to-top {
    color: #7a8fa5;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
}

.back-to-top:hover {
    color: #c9a84c;
}

@media screen and (max-width: 800px) {

    #header_title_top {
        height: 100%;
        color: black;
    }

    #header_title_bottom {
        height: 0%;
        display: none;
    }

    #sidebar {
        display: none;
    }

    #side_of_public {
        writing-mode: vertical-lr;
        font-size: .7rem;
    }

    #middle_body > img {
        width: 60% !important;
        opacity: .6 !important;
    }

    /*
    g-slider {
        min-height: 20%;
    }
    */
    #cm_menu {
        flex-direction: column;
        width: 100%;
        background: #ffd868;
        margin-top: 30px;
        width: 95%;

    }

    .slide-on {
        transform: translateX(0%) !important;
        transition: transform .35s ease-out .2s;
    }

    #logo_mini {
        width: 90%;
    }

    #slide_menu {
        align-items: center;
    }

    #clock_date_box {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .display-date, .display-time {
        width: 90% !important;
        text-align: center;
        justify-content: center;
    }

    #address_box {
        font-size: .6rem;
        text-align: center;
        transform: translateX(10%);
    }

    pre {
        font-size: .85rem !important;
    }

}
