*,
*::after,
*::before {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    text-decoration: none;
}

body {
    padding: 0;
    margin: 0;
    min-width: 310px;
    background-color: var(--body-bg-color);
    font-family: "Trebuchet MS", Helvetica, Arial, sans-serif;
}

:root {
    /*Body*/
    --body-bg-color: #F2F2F2;
    --item-bg-color: #ffffff;
    --text-color: #0e0e0e;
    --slider-text-color: #ffffff;
    /*Btn*/
    --button-border-color: #ec8718;
    --button-bg-color: #ec8718;
    --button-text-color: #ffffff;
    /*Btn Hover*/
    --button-hover-border-color: #ec8718;
    --button-hover-text: #ec8718;
    --button-hover-bg-color: #ffffff;
    /*Navbar*/
    --nav-text-color: #ffffff;
    --nav-background: #1a2a3a;
    --nav-hambuger-color: #ffffff;
    /*Navbar Hover*/
    --nav-hover-color: #ec8718;
    --back-line-color: #1a2a3a;
    --logo-text-color: #FF0000;
    /*Catalog Products*/
    --catalog-bg: #FFFFFF;
    --catalog-text-color: #0e0e0e;
    --catalog-catagory-color: #6b7280;
    --catalog-button-text-color: #ffffff;
    --catalog-button-bg-color: #ec8718;
    --catalog-button-border-color: #ec8718;
    --catalog-toolbar-bg-color: #FFFFFF;
    /*Catalog Hover*/
    --catalog-button-bg-hover-color: #ffffff;
    --catalog-button-text-hover-color: #ec8718;
    --catalog-button-border-hover-color: #ec8718;

    /*Shadow*/
    --shadow: 0 10px 40px rgba(159, 162, 177, .8);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.black-line {
    height: 1px;
    width: 75%;
    background-color: var(--back-line-color);
    margin: 1.5rem auto;
}

/*NavBar*/

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    text-align: center;
    z-index: 5;
    transition: all 250ms ease-in-out;
    background-color: var(--nav-background);
    color: var(--nav-text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.scroll-down nav {
    transform: translateY(-100%);
    transition: transform 300ms ease-in-out;
}

.scroll-down .open {
    transform: translateY(-100%);
    transition: transform 300ms ease-in-out;
}

.scroll-up nav {
    transform: translateY(0);
}

.logo {
    height: 50px;
    order: 1;
    display: flex;
    transition: transform 0.3s;
}

.logo img {
    width: 60px;
    height: 40px;
    margin: auto;
    padding-right: 10px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo_text {
    width: 100%;
    height: auto;
    margin: auto;
    order: 2;
}

.logo p {
    font-size: 2rem;
    color: var(--nav-text-color);
}

.logo_text span {
    color: var(--logo-text-color);
}

.nav-links {
    display: flex;
    order: 2;
    list-style: none;
    width: auto;
    transition: all 0.3s ease;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
    padding: 0.5rem 0;
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--nav-hover-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--nav-hover-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    order: 3;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--nav-hambuger-color);
    margin: 5px;
    transition: all 300ms ease;
}

@media screen and (max-width: 900px) {
    nav {
        padding: 1rem 5%;
        justify-content: space-between;
    }

    .logo {
        order: 2;
        position: relative;
        margin: auto;
    }

    .nav-links {
        width: 100%;
        top: 79px;
        right: 0;
        max-height: 0;
        padding: 0;
        z-index: 5;
        border-radius: 0 0 10px 10px;
        position: absolute;
        flex-direction: column;
        text-align: center;
        overflow: hidden;
        transition: all 250ms ease-in-out;
        background-color: var(--nav-background);
    }

    .nav-links.open {
        max-height: 500px;
        padding: 1rem 0;
    }

    .nav-links li {
        margin: 1rem 0;
        transition: 0.5s ease;
    }

    .hamburger {
        display: block;
        order: 1;
        z-index: 10;
    }

    .hamburger.open .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.open .line2 {
        opacity: 0;
    }

    .hamburger.open .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/*Slider*/

.slider_container {
    position: relative;
    margin: 90px auto 3rem;
    max-width: 1200px;
    width: 95%;
    height: 600px;
    background: var(--body-bg-color);
    border-radius: 20px;
    overflow: hidden;
}

.slider_container .slide .slider_item {
    width: 200px;
    height: 300px;
    position: absolute;
    top: 50%;
    transform: translate(50%, -50%);
    border-radius: 20px;
    background-position: 50% 50%;
    background-size: cover;
    display: block;
    transition: 0.5s;
}

.slide .slider_item:nth-child(1),
.slide .slider_item:nth-child(2) {
    top: 0;
    left: 0;
    transform: translate(0, 0);
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.slide .slider_item:nth-child(3) {
    left: 50%;
}

.slide .slider_item:nth-child(4) {
    left: calc(50% + 220px);
}

.slide .slider_item:nth-child(5) {
    left: calc(50% + 440px);
}

.slide .slider_item:nth-child(n + 6) {
    left: calc(50% + 660px);
    opacity: 0;
}

.slider_item .slider_content {
    position: absolute;
    top: 50%;
    left: 85px;
    min-width: 300px;
    max-width: 350px;
    color: var(--slider-text-color);
    transform: translate(0, -50%);
    font-family: system-ui;
    display: none;
    overflow-wrap: break-word;
}

.slide .slider_item:nth-child(2) .slider_content {
    display: block;
}

.slider_content .name {
    font-size: 40px;
    text-transform: uppercase;
    font-weight: bold;
    opacity: 0;
    animation: animate 1s ease-in-out 1 forwards;
}

.slider_content .des {
    margin-top: 10px;
    margin-bottom: 20px;
    opacity: 0;
    animation: animate 1s ease-in-out 0.3s 1 forwards;
    display: -webkit-box;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 250px;
    text-align: justify;
}

.slider_content .btn {
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.6s;
    color: var(--button-text-color);
    background: var(--button-bg-color);
    border: 1px solid var(--button-border-color);
}

.slider_content .btn:hover {
    color: var(--button-hover-text);
    background-color: var(--button-hover-bg-color);
    border: 1px solid var(--button-hover-border-color);
}

.slider_content .btn {
    color: var(--button-text-color);
}

@keyframes animate {
    from {
        opacity: 0;
        transform: translate(0, 100px);
        filter: blur(33px);
    }

    to {
        opacity: 1;
        transform: translate(0);
        filter: blur(0);
    }
}

.slider_button {
    width: 100%;
    height: auto;
    text-align: center;
    position: absolute;
    bottom: 20px;
}

.slider_button button {
    width: 40px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    margin: auto 0;
    border: 1px solid var(--button-border-color);
    transition: 0.3s;
}


.slider_button .prev,
.next{
    color: var(--button-text-color);
    background-color: var(--button-bg-color);
}

.slider_button button:hover {
    color: var(--button-hover-text);
    background-color: var(--button-hover-bg-color);
}

@media (max-width: 600px) {

    .slider_container {
        height: 450px;
    }

    .slide .slider_item:nth-child(3),
    .slide .slider_item:nth-child(4),
    .slide .slider_item:nth-child(5),
    .slide .slider_item:nth-child(n + 6) {
        display: none;
    }

    .slider_item .slider_content {
        top: 70%;
        left: 30px;
        width: 300px;
        text-align: left;
        color: var(--slider-text-color);
        transform: translate(0, -70%);
    }


    .slider_button {
        display: none;
    }
}

/*Router*/

.catalog_router {
    width: 90%;
    max-width: 1100px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.catalog_router_card {
    height: 300px;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background-color: var(--catalog-bg);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.catalog_router_card:hover {
    transform: translateY(-5px);
}

.catalog_router_card:nth-child(even) {
    flex-direction: row-reverse;
}

.catalog_router_img {
    flex: 1 1 50%;
    display: flex;
}

.catalog_router_img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.catalog_router_content {
    flex: 1 1 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.router_title_content {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.router_text_content {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    text-align: justify;
    overflow: hidden;
}

.catalog_router_buttons {
    display: flex;
    width: 100%;
}

.catalog_router_buttons .button {
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.6s;
    color: var(--button-text-color);
    background: var(--button-bg-color);
    border: 1px solid var(--button-border-color);
    text-decoration: none;
}

.catalog_router_buttons .button:hover {
    background-color: var(--button-hover-bg-color);
    color: var(--button-hover-text);
    border: 1px solid var(--button-border-color, transparent);
}

.catalog_router_card:nth-child(odd) .catalog_router_buttons {
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .catalog_router_card{
        height: auto !important;
    }
    
    .catalog_router_card,
    .catalog_router_card:nth-child(even) {
        flex-direction: column;
        max-height: 800px;

    }

    .catalog_router_content{
        width: 100%;
        padding-top: 1.5rem;
    }

    .catalog_router_buttons .button {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .catalog_router_card{
        height: auto;
    }
}


/*Reference*/

#reference_container {
    overflow: hidden;
    position: relative;
    width: 90%;
    max-width: 1050px;
    margin: 3rem auto;
}

.reference_track {
    display: flex;
    width: max-content;
    padding: 10px 0 30px;
}

.reference {
    flex: 0 0 240px;
    margin: 0 20px;
    background-color: var(--item-bg-color);
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.reference img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 16px;
}

.reference-name {
    font-size: 1rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    max-width: 90%;
}

@media (max-width: 600px) {
    .reference {
        flex: 0 0 180px;
        padding: 20px 10px;
        height: 160px;
        margin: 0 10px;
    }

    .reference img {
        width: 60px;
        height: 60px;
    }

    .reference-name {
        font-size: 0.95rem;
    }
}

/*Customer*/

.costumer_container {
    overflow: hidden;
    width: 90%;
    max-width: 1050px;
    margin: 3rem auto;
    height: auto;
    position: relative;
}

.costumer_track {
    margin: 10px;
    display: flex;
    width: max-content;
}

.costumer_testimonial {
    flex: 0 0 250px;
    margin: 0 15px;
    background-color: var(--item-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}

.costumer_testimonial img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.costumer_testimonial h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.costumer_testimonial p {
    font-size: 0.95rem;
    color: var(--text-color);
}

@media (max-width: 600px) {
    .costumer_testimonial {
        flex: 0 0 200px;
        padding: 15px;
    }

    .costumer_testimonial h4 {
        font-size: 1rem;
    }

    .costumer_testimonial p {
        font-size: 0.9rem;
    }
}

/*Footer*/

.footer {
    max-width: 1100px;
    width: 100%;
    height: auto;
    margin: 3rem auto;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 1rem;
}

.footer_communication {
    width: 98%;
    height: 100%;
    margin: 0;
    text-align: left;
}

.hour_title {
    color: var(--text-color);
    margin: auto;
    font-size: 1.2em;
    font-weight: bold;
}

table {
    max-width: 100%;
    width: auto;
    border-collapse: collapse;
    margin: 0;
}

td {
    padding: 4px 0;
    text-align: left;
    border: none;
}

.contact-info{
    margin: 1.5rem 0 0 0;
}

.contact-info .contact_number{
    color: var(--text-color);
}

.contact-info .contact_text {
    padding-top: 10px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin: 1.5rem 0 0 0;
}

.social-icon img{
    width: 35px;
    height: 35px;
    background-color: var(--item-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: var(--text-color);
    font-size: 18px;
    text-decoration: none;
}

.social-icon img:hover {
    transform: scale(0.9);
}

.footer_location {
    width: 98%;
    height: 100%;
    margin: 0;
}

.footer_location iframe {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
}

@media (max-width: 600px) {

    .footer {
        margin: 0;
        height: auto;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }

    .footer_communication {
        width: 98%;
        height: auto;
        border-right: none;
        padding-bottom: 1.5rem;
    }

    .footer_location {
        width: 98%;
        height: 500px;
    }
}





