* {
    font-family: Yekan !important;
}

html {
    scroll-behavior: smooth;
    --primary-color: #ffffff;
    --hover-color: #0620a3;
    --secondary-color: #0128ec;
    scrollbar-color: var(--hover-color) var(--primary-color);
    scrollbar-track-color: #4862e66b;

}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 50px;
    border: 3px solid #ffffff;
}

.welcome-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px 0;
    z-index: 1001; /* Ensure it stays above the consult section */
}

.welcome-banner a {
    color: white;
    margin-left: 10px;
}

.consult {
    background-color: var(--hover-color);
    color: white;
    height: 40px;
    z-index: 9999999;
}

.social-media a {
    color: azure;
}

.food {
    opacity: 0;
    animation: rotate-element 0.5s 0.5s 1 forwards;
}

.drink {
    opacity: 0;

    animation: rotate-element 0.5s 1s 1 forwards;
}

.dairy {
    opacity: 0;

    animation: rotate-element 0.5s 1.5s 1 forwards;
}

.livestock {
    opacity: 0;

    animation: rotate-element 0.5s 2s 1 forwards;
}

.agriculture {
    opacity: 0;

    animation: rotate-element 0.5s 2.5s 1 forwards;
}

.sewage {
    opacity: 0;

    animation: rotate-element 0.5s 3s 1 forwards;
}

.text {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -37%);
}

.logo {
    overflow: hidden;
}

.logo-img {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 90%;
    left: 50%;
    transform: translate(-50%, -37%);
    z-index: 10;
    filter: contrast(1) drop-shadow(0px 0px 2000px #ffffff);
    transition: all 0.3s ease-in-out;
}

.logo-img:hover {
    filter: contrast(2) drop-shadow(0px 0px 2000px #ffffff);
    scale: 1.1;
    left: 51%;
    transform: translate(-50%, -50%);

    transition: all 0.3s ease-in-out;

}

.headphone {
    width: 30px;
    height: 30px;
}

.slider-img {
    height: 50vh;
    object-fit: cover;
}

.request {
    transition: box-shadow 0.3s ease-in-out;
    border-bottom: 1px solid #e3e3e3;
    color: var(--primary-color);
}

.bg-custom-primary {
    background-color: var(--hover-color);
}

.carousel-section {
    box-shadow: 0px 33px 27px 25px var(--hover-color);
}

.request_element {
    padding: 10px 15px;
    border-radius: 5px;
    transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.request_element p {
    margin: 0;
}

.request_element:hover {
    background-color: var(--primary-color) !important;
    color: var(--hover-color) !important;
    cursor: pointer;
    transform: scale(1.05);
}

.navbar .nav-link {
    position: relative;
    transition: all 0.3s ease-in-out;

}

.request_element p:hover, .request_element svg:hover {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    padding: 10px;
    min-width: 150px;
}

.dropdown-menu.show {
    display: block;
}

.btn a {
    color: white !important;
    text-decoration: None;
}

.navbar .nav-link:hover::after {
    width: auto !important;
}

.navbar .nav-link:hover {
    color: var(--hover-color) !important;
    transform: scale(1.1);

}

.navbar .nav-link:hover::after {
    width: 100%;
}

.logo-img {
    animation: logo-bounce 3s infinite;
}


.headphone {
    transition: transform 0.3s ease-in-out;
}

.headphone:hover {
    transform: rotate(15deg) scale(1.2);
}


.req-text {
    margin: 0;
    font-weight: bold;
}

.w33 {
    width: 33.333333% !important;
}

.industry {
    overflow: hidden;
    border: 3px solid var(--hover-color);
    border-radius: 100%;
    transition: all 0.3s ease-in-out;

}

.industry img {
    border-radius: 100%;
    border: 1px solid #e3e3e3;

    width: 6em;
    height: 6em;
    object-fit: cover;
    transition: all 0.3s ease-in-out;
}

.industry:hover img {
    transform: scale(1.5);
}

.food:hover, .drink:hover, .agriculture:hover, .dairy:hover, .livestock:hover, .sewage:hover .industry-text {
    color: var(--hover-color) !important;
}

.industry:hover {
    border: 5px solid var(--hover-color);
    margin: -1px !important;
    /* padding: -100px !important; */
    /* transform: scale(1.05); */
}

.call-us-text p {
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 0;
}

.why-us {
    background-color: var(--hover-color);
    height: 60em;
}

.why-us-text {
    position: absolute;
    top: 50%;
    right: 13%;
    transform: translate(0, -50%);
}

.why-us-text p {
    margin: 0;
    padding: 0;
}

.why-pic {
    width: 25vw;
    /* height: 25%; */
    object-fit: cover;
    aspect-ratio: 2.2/1;
    border-radius: 3em;
}

#why-pic-1 {
    position: absolute;
    top: 10%;
    right: 35%;
}

#why-pic-2 {
    position: absolute;
    top: 38%;
    right: 70%;
}

#why-pic-3 {
    position: absolute;
    top: 66%;
    right: 35%;
}

.text-pop {
    position: absolute;

    border: 1px solid white;
    width: 25%;
    padding: 1em;
    border-radius: 2em;
    background-color: var(--secondary-color);
}

#text-1 {
    right: 58%;

}

#text-2 {
    right: 48%;


}

#text-3 {
    right: 58%;

}

.footer {
    background-color: var(--hover-color) !important;
    color: white;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.footer h5 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer .social-icons a {
    font-size: 1.5rem;
    transition: transform 0.3s ease-in-out;
}

.footer .social-icons a:hover {
    transform: scale(1.2);
}

.footer .list-unstyled {
    padding: 0;
    list-style: none;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .row.mt-3 p {
    font-size: 0.85rem;
    margin: 0;
}

.btn-primary {
    background-color: var(--hover-color);
    border-color: var(--hover-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.table {
    margin-top: 20px;
}

.table th, .table td {
    text-align: center;
    vertical-align: middle;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}


@media (max-width: 1024px) {
    .consult {
        font-size: 0.95em !important;
    }
}

@media (max-width: 768px) {
    .why-us {
        height: auto;
        padding: 2em 1em;
        display: flex;
        flex-direction: column;
    }

    .why-us-text {
        position: static;
        transform: none;
        text-align: center;
        margin-bottom: 2em;
    }

    .why-us-text p {
        font-size: 1rem;
    }

    .why-pic {
        width: 90%;
        margin: 1em auto;
        display: block;
        max-width: 100%;
        height: auto;
    }

    #why-pic-1,
    #why-pic-2,
    #why-pic-3 {
        position: static;
        margin: 1em auto;
    }

    #why-pic-1 {
        order: 0;
    }

    #why-pic-2 {
        order: 2;
    }

    #why-pic-3 {
        order: 4;
    }

    .text-pop {
        position: static;
        width: 90%;
        margin: 1em auto;
        text-align: center;
    }

    #text-1,
    #text-2,
    #text-3 {
        right: auto;
    }

    #text-1 {
        order: 1;
    }

    #text-2 {
        order: 3;
    }

    #text-3 {
        order: 5;
    }
}

@media (max-width: 480px) {
    .consult {
        font-size: 0.75em !important;
        height: 45px;
        padding: 0.5em 1em;
    }

    .logo-img {
        width: 90px;
        height: 90px;
        top: 85%;
    }

    .headphone {
        width: 18px;
        height: 18px;
    }

    .slider-img {
        height: 25vh;
    }

    .why-us {
        padding: 1em;
    }

    .why-us-text p {
        font-size: 0.8rem;
    }

    .why-pic {
        width: 100%;
        margin: 0.5em auto;
        border-radius: 1em;
    }

    .text-pop {
        padding: 0.5em;
        font-size: 0.8rem;
    }

    .request_element {
        padding-top: 20px;
    }

    .req-text {
        padding-top: 15px;
        font-size: 9px;
    }

    .footer {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .footer h5 {
        font-size: 0.9rem;
    }

    .footer p {
        font-size: 0.7rem;
    }

    .footer .social-icons a {
        font-size: 1rem;
    }

    .industry {
        width: 68px;
    }

    .industry img {
        width: 3em;
        height: 3em;
    }

    .industry-text {
        font-size: 12px;
    }

    .call-us {
        font-size: 12px;
    }

    .phone {
        font-size: 1rem !important;
    }
}

@keyframes logo-bounce {
    0%, 100% {
        transform: translate(-50%, -37%) scale(1);
    }
    50% {
        transform: translate(-50%, -37%) scale(1.1);
    }
}

@keyframes rotate-element {
    0% {
        transform: rotateY(-180deg);
        opacity: 0;
    }
    50% {
        transform: rotateY(-90deg);
        opacity: 0.5;
    }
    60% {
        transform: rotateY(390deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(360deg) scale(1);
        opacity: 1;
    }
}
