@font-face {
    font-family: Playfair;
    src: url(../fonts/PlayfairDisplay-VariableFont_wght.ttf);
}

@font-face {
    font-family: Cairo;
    src: url(../fonts/Cairo-VariableFont_wght.ttf);
}

:root{
    --primary-color: #ffffff;
    --secondary-color: #103786;
    --accent-color: #ffd700;
    --side-color: #04060d;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* General Classes */
.site-btn{
    padding: 15px 20px;
    margin: 30px 0 0 0;
    transition: all 0.35s cubic-bezier(0, 0.82, 0.36, 1);
    position: relative;
    z-index: 1;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.site-btn::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    z-index: -1;
    transition: transform 0.35s cubic-bezier(0, 0.82, 0.36, 1);
}
.site-btn:hover::before{
    transform: scaleX(1);
}
.site-btn.main-site-btn{
    background-color: var(--secondary-color);
    color: var(--primary-color);
}
.site-btn.main-site-btn::before{
    background-color: var(--accent-color);
}
.site-btn.main-site-btn:hover{
    color: var(--secondary-color);
}

.site-btn.sec-site-btn{
    background-color: var(--primary-color);
    color: var(--secondary-color);
}
.site-btn.sec-site-btn::before{
    background-color: var(--accent-color);
}
.site-btn.sec-site-btn:hover{
    color: var(--side-color);
}

.emphasized{
   color: var(--accent-color);
}

.link-appear{
    visibility: visible;
    animation: link-appear 0.5s ease-out 0.35s forwards;
}

.site-tooltip{
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.site-tooltip .site-tooltip-text{
    opacity: 0;
    pointer-events: none;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px;
    text-align: center;
    position: absolute;
    z-index: 1;
    top: 115%;
    left: 50%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -10px);
    transition: all 0.35s cubic-bezier(0, 0.82, 0.36, 1);
}

.site-tooltip .site-tooltip-text.site-tooltip-text-appear{
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: all;
  }

.site-tooltip .site-tooltip-text::after{
    content: " ";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent var(--secondary-color) transparent;
}

.limited-section{
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.fixed-bkg{
    background-attachment: fixed;
}

.prev, .next{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 5px;
    padding: 0;
    width: 50px;
    height: 50px;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-out;
}
.prev:hover, .next:hover{
    color: var(--secondary-color);
    background-color: var(--accent-color);
}
.prev{
    left: 0;
}
.next{
    right: 0;
}

.heading{
    margin-bottom: 30px;
    text-shadow: 4px 6px 4px rgba(0, 0, 0, 0.6);
    font-size: 50px;
    font-weight: 800;
}

.subheading{
    font-size: 35px;
    text-align: center;
    width: fit-content;
    padding-bottom: 20px;
    position: relative;
    font-weight: 600;
}
.subheading::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background-color: var(--accent-color);
    width: 30%;
}

.colored-bkg{
    background-color: var(--primary-color);
    color: var(--side-color);
}

.sliding-underline{
    position: relative;
}

.sliding-underline::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0, 0.82, 0.356, 1);
}
.sliding-underline.active-page::after{
    transform: scaleX(1);
}
.sliding-underline:hover::after{
    transform: scaleX(1);
}
.sliding-underline:active::after{
    transform: none;
}

.sublist{
    margin-left: 30px;
}

.flex-card{
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin: 20px 0;
}

/* Universal Styles */
html{
    scroll-behavior: smooth;
}

body{
    background-color: var(--primary-color);
    font-family: "Playfair", serif;
}

button{
    font-family: 'Playfair', serif;
}

input::placeholder{
    font-family: 'Playfair', serif;
}

textarea::placeholder{
    font-family: 'Playfair', serif; 
}

ul, ol{
    list-style: none;
    margin: 0;
    padding: 0;
}

a{
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}
a:hover{
    color: currentColor;
}

header{
    padding: 5px;
    width: 100%;
    max-width: 1400px;
    background-color: transparent;
    color: var(--primary-color);
    z-index: 3;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    transition: background-color 0.35s ease-out;
}

header.sticky{
    position: fixed;
    animation: header-drop 0.35s cubic-bezier(0, 0.82, 0.36, 1) forwards;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
header.home-header{
    background-color: var(--primary-color);
    color: var(--side-color);
}

header .logo{
    width: auto;
    height: 65px;
    margin: 0 10px;
    padding: 5px;
    color: var(--primary-color);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    border-radius: 50%;
}

header.colored-bkg .logo, header.home-header .logo{
    box-shadow: none;
    background-color: transparent;
}

/* 
header .company-info{
    width: 100%;
}

header .company-info .contact-info{
    width: 120px;
    margin-right: 50px;
}

header .company-info .contact-info a{
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 15px;
}
*/

header nav .hamburger{
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    z-index: 2;
}

header nav .hamburger .line{
    background-color: var(--primary-color);
    width: 30px;
    height: 3px;
    margin: 5px;
    transition: background-color 0.35s ease-out, transform 0.35s cubic-bezier(0, 0.82, 0.36, 1);
}
header.colored-bkg nav .hamburger .line, header.home-header nav .hamburger .line{
    background-color: var(--side-color);
}

header nav .nav-links a{
    padding: 20px 0;
    margin: 0 20px;
    display: inline-block;
    position: relative;
    font-weight: 700;
}

header .site-tooltip{
    font-size: 25px;
    margin: 0 20px 0 10px;
}

header .site-tooltip .site-tooltip-text.lang{
    align-items: flex-start;
    padding: 0;
    font-family: "Playfair", Arial;
    font-weight: normal;
}

header .site-tooltip .site-tooltip-text.lang .ar{
    font-family: 'Cairo', serif;
}

header .site-tooltip .site-tooltip-text.lang a{
    font-size: 15px;
    width: 100%;
    padding: 10px;
    transition: all 0.35s ease-out;
}

header .site-tooltip .site-tooltip-text.lang a:hover{
    color: var(--secondary-color);
    background-color: var(--primary-color);
}

main section{
    padding: 50px 30px;
}

main .heading-section{
    padding: 75px 30px 30px 30px;
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: var(--primary-color);
}

main .heading-section h1{
    text-align: center;
}

main .heading-section span{
    font-size: 15px;
    font-weight: bold;
}

footer{
    padding: 50px 30px;
    background-color: var(--secondary-color);
    position: relative;
    color: var(--primary-color);
}

footer .footer-content{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    align-items: flex-start;
}

footer .footer-content nav{
    width: 75%;
}

footer .footer-content nav .footer-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    column-gap: 20px;
}

footer .footer-content nav a{
    display: block;
    width: max-content;
    font-size: 12px;
}
footer .footer-content nav a.main-link{
    margin-bottom: 10px;
    font-size: 20px;
}
footer .footer-content nav a.sliding-underline{
    padding: 10px 0;
}
footer .footer-content nav a.sliding-underline::after{
    height: 0.5px;
}

footer .footer-content .footer-map{
    width: 250px;
    text-align: center;
}

footer .footer-content .footer-map img{
    width: 100%;
}

footer .attribute{
    text-align: center;
    margin-top: 40px;
}

/* End Universal Styles */

/* Home */
main #site-carousel-section{
    padding: 75px 0 0 0;
}

main #site-carousel-section .site-carousel{
    width: 100%;
    max-width: 1400px;
    margin: auto;
    color: var(--primary-color);
    height: calc(100vh - 75px);
    position: relative;
    z-index: 1;
}
main #site-carousel-section .site-carousel::before{
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

main #site-carousel-section .site-carousel .slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: -3;
    transition: opacity 0.2s ease-out;
    transition-delay: 0.2s;
}

main #site-carousel-section .site-carousel .slide[data-active]{
    opacity: 1;
    transition-delay: 0;
    z-index: -2;
}

main #site-carousel-section .site-carousel .slide img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

main #site-carousel-section .site-carousel .site-carousel-content{
    width: 50%;
    color: var(--primary-color);
    text-align: center;
}

main #site-carousel-section .site-carousel .site-carousel-content p{
    font-size: 18px;
}

main #benefits-section .benefits{
    width: 80%;
    margin: auto;
}

main #benefits-section .benefits .benefit-container{
    text-align: center;
    margin: 0 30px;
}

main #benefits-section .benefits .benefit-container i{
    margin-bottom: 20px;
}

main #benefits-section .benefits .benefit-container h3{
    font-size: 22px;
    margin-bottom: 10px;
}

main #benefits-section .benefits .benefit-container p{
    font-size: 18px;
    color: #b7b7bb
}

main #productshook-section{
    background-color: var(--secondary-color);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--primary-color);
}

main #productshook-section img{
    width: 500px;
    margin: auto;
}

main #productshook-section .productshook-content{
    margin-left: 50px;
    align-items: flex-start;
}

main #productshook-section .productshook-content .subheading{
    margin-left: 0;
}
main #productshook-section .productshook-content .subheading::after{
    left: 20px;
    transform: translateX(0);
}

main #productshook-section .productshook-content p{
    font-size: 20px;
}

main #promovideo-section .promovideo-container{
    width: 70%;
    margin: auto;
}
/* End Home */

/* About Us */
main .about-heading-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../images/employee\ \(6\).jpg);
}

main .about-section-big{
    background-color: var(--primary-color);
    width: 100%;
    max-width: 1400px;
    padding: 50px 0 0 0;
    margin: 0 auto 50px auto;
}

main .about-section-big .about-container{
    width: 100%;
    flex-grow: 1;
    height: 500px;
}

main .about-section-big .side-headings{
    height: 100%;
    width: 25%;
}

main .about-section-big .side-headings h3{
    color: var(--secondary-color);
    padding: 20px;
    font-size: 22px;
    cursor: pointer;
    position: relative;
    transition: all 0.35s ease-out;
    font-weight: 400;
}
main .about-section-big .side-headings h3.current-heading{
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

main .about-section-big .about-content{
    height: 100%;
    width: 75%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
    font-size: 20px;
}

main .about-section-big .about-content .content-page{
    position: absolute;
    inset: 50px;
    opacity: 0;
    align-items: flex-start;
}
main .about-section-big .about-content .content-page.current-page{
    opacity: 1;
    z-index: 1;
    transition: opacity 0.35s ease-out;
}

main .about-section-big .about-content .content-title{
    margin-bottom: 30px;
}

main .about-section-big .about-content .content-title h3{
    margin-left: 20px;
    font-size: 35px;
}

main .about-section-small{
    width: 100%;
    max-width: 1400px;
    display: none;
}

main .about-section-small .about-small-container{
    width: 100%;
}

main .about-section-small .about-small-container .about-small-heading{
    cursor: pointer;
    color: var(--secondary-color);
    padding: 20px;
    transition: all 0.35s cubic-bezier(0, 0.82, 0.356, 1);
}
main .about-section-small .about-small-container .about-small-heading.current-small-heading{
    color: var(--primary-color);
    background-color: var(--secondary-color);
    margin-bottom: 1px;
}

main .about-section-small .about-small-container .about-small-heading h2{
    margin-right: 10px;
}

main .about-section-small .about-small-container .about-small-heading i:not(.fa-plus){
    width: 0;
    opacity: 0;
    margin-right: 20px;
    transform: scale(0);
    transition: all 0.35s cubic-bezier(0, 0.82, 0.356, 1), opacity 0.35s ease-out;
}
main .about-section-small .about-small-container .about-small-heading.current-small-heading i:not(.fa-plus){
    width: 20px;
    opacity: 1;
    transform: scale(1);
}

main .about-section-small .about-small-container .about-small-heading i.fa-plus{
    transition: transform 0.35s cubic-bezier(0, 0.82, 0.356, 1);
}
main .about-section-small .about-small-container .about-small-heading.current-small-heading i.fa-plus{
    transform: rotate(45deg);
}

main .about-section-small .about-small-container .about-small-page{
    color: var(--primary-color);
    background-color: var(--secondary-color);
    height: 0;
    transition: height 0.35s cubic-bezier(0, 0.82, 0.356, 1);
    overflow: hidden;
}
main .about-section-small .about-small-container .about-small-page.current-small-page{
    height: 250px;
    overflow: scroll;
}

main .about-section-small .about-small-container .about-small-page .about-small-content{
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease-out;
}

main .about-section-small .about-small-container .about-small-page.current-small-page .about-small-content{
    opacity: 1;
}
/* End About Us */

/* Gallery */
main .gallery-heading-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../images/production\ \(7\).jpg);
}

main #gallery-section .gallery-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    row-gap: 20px;
    column-gap: 20px;
}

main #gallery-section .gallery-grid .img-container{
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
}

main #gallery-section .gallery-grid .img-container img{
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0, 0.82, 0.36, 1);
    cursor: pointer;
}
main #gallery-section .gallery-grid img:hover{
    transform: scale(1.5);
}

.fancybox-container .fancybox-button--thumbs{
    display: none;
}

/* End Gallery */

/* Products */
main .products-heading-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../images/production\ \(6\).jpg);
}

main #products-section .products-grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    justify-content: center;
}

main #products-section .products-grid .product-container{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color);
    padding: 30px;
}

main #products-section .products-grid .product-container img{
    width: 100%;
    margin-bottom: 10px;
    height: 200px;
    object-fit: contain;
}

main #products-section .products-grid .product-container h3{
    text-align: center;
    font-size: 20px;
}
/* End Products */

/* Career */
main .career-heading-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../images/employee\ \(1\).jpg);
}
/* End Career */

/* Contact */
main .contact-heading-section{
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url(../images/site\ \(6\).jpg);
}

main #contact-section .contact-content{
    width: 100%;
}

main #contact-section .contact-content form{
    width: 47.5%;
}

main #contact-section .contact-content form .textfield{
    border: solid 1px var(--side-color);
    padding: 8px 12px;
    font-size: 14px;
    width: 100%;
    background-color: var(--primary-color);
}

main #contact-section .contact-content form .textfield::placeholder{
    color: #b7b7bb;
}

main #contact-section .contact-content form input{
    height: 50px;
    margin-bottom: 10px;
}

main #contact-section .contact-content .location{
    width: 47.5%;
}
/* End Contact */

/* Individual Product Pages */
.product-details{
    padding: 75px 0 0 0;
}

.product-details p{
    margin: 0;
}

.product-details .subheading p{
    font-size: 24px;
}

.product-details .flex-card ul{
    list-style-type: disc;
    margin-left: 25px;
}

.product-details table th{
    text-align: center;
    color: var(--primary-color) !important;
    background-color: var(--secondary-color);
}

.product-details table tbody tr td:nth-last-child(1), .product-details table tbody tr td:nth-last-child(2):not(:first-child){
    text-align: center;
}

/* Responsiveness */
@media screen and (max-width: 1024px){
    footer .footer-content nav .footer-grid{
        grid-template-columns: 1fr 1fr 1fr;
    }

    footer .footer-content nav .footer-grid li{
        margin-bottom: 30px;
    }

    /* Home */
    main #productshook-section{
        flex-direction: column;
    }

    main #productshook-section .productshook-content .subheading{
        margin-left: auto;
    }
    main #productshook-section .productshook-content .subheading::after{
        left: 50%;
        transform: translateX(-50%);
    }

    main #productshook-section .productshook-content{
        margin-left: 0;
        align-items: center;
    }

    main #productshook-section .productshook-content p{
        text-align: center;
    }

    main #promovideo-section .promovideo-container{
        width: 100%;
    }
    /* End Home */

    /* About Us */
    main .about-section-big{
        display: none;
    }

    main .about-section-small{
        display: block;
    }
    /* End About Us*/

    /* Products */
    main #products-section .products-grid{
        grid-template-columns: 325px 325px;
        row-gap: 30px;
        column-gap: 30px;
    }
    /* End Products */
}

@media screen and (max-width: 768px){
    .active-page{
        color: var(--primary-color);
    }
    .active-page::after{
        background-color: var(--accent-color);
    }

    body.no-scroll{
        overflow: hidden;
    }

    /*
    header .company-info .contact-info{
        opacity: 0;
        visibility: none;
        z-index: 2;
        position: fixed;
        left: 50px;
    }

    header .company-info .contact-info a{
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
    */
    
    header nav .hamburger{
        display: block;
    }

    header .hamburger.toggle-icon .line1{
        transform: rotate(-45deg) translate(-5px, 6.5px);
    }

    header .hamburger.toggle-icon .line2{
        opacity: 0;
    }

    header .hamburger.toggle-icon .line3{
        transform: rotate(45deg) translate(-5px, -6.5px);
    }

    header nav .nav-links{
        font-size: 24px;
        position: fixed;
        top: 75px;
        right: -100vw;
        width: 100vw;
        height: calc(100vh - 75px);
        z-index: 1;
        background-color: var(--secondary-color);
        color: var(--primary-color);
        flex-direction: column;
        transition: transform 0.35s cubic-bezier(0, 0.82, 0.36, 1);
    }
    header nav .nav-links.open{
        transform: translateX(-100%);
    }
    
    header nav .nav-links li{
        opacity: 0;
    }

    header nav .nav-links a{
        margin: 5px 20px;
    }

    header .site-tooltip{
        margin-right: 80px;
    }

    footer .footer-content{
        flex-direction: column;
        align-items: center;
    }

    footer .footer-content nav .footer-grid{
        grid-template-columns: 1fr 1fr;
        margin-bottom: 20px;
    }

    footer .footer-content nav a{
        text-align: center;
        margin: auto;
    }

    /* Home */
    main #benefits-section .benefits{
        flex-direction: column;
    }

    main #benefits-section .benefits .benefit-container{
        margin: 0 0 40px 0;
    }

    main #productshook-section{
        padding: 30px;
    }

    main #productshook-section img{
        width: 400px;
    }
    /* End Home */

    /* Products */
    main #products-section .products-grid{
        grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    }
    /* End Products */

    /* Contact */
    main #contact-section .contact-content{
        flex-direction: column;
    }

    main #contact-section .contact-content form{
        width: 100%;
    }

    main #contact-section .contact-content .location{
        width: 100%;
        margin-bottom: 50px;
    }
    /* End Contact */
}

@media screen and (max-width: 480px){
    footer .footer-content nav .footer-grid{
        grid-template-columns: 1fr;
    }

    /* Home */
    main #site-carousel-section .site-carousel .heading{
        font-size: 35px;
    }

    main #productshook-section img{
        width: 300px;
    }
    /* End Home */

    /* About Us*/
    main .about-section-small{
        padding: 50px 0;
    }

    main .about-section-small .about-small-container .about-small-heading h2{
        font-size: 20px;
    }
    /* End About Us*/

    /* Gallery */
    main #gallery-section .gallery-grid{
        display: grid;
        grid-template-columns: 1fr;
    }
    /* End Gallery */
}


/* Animations */
@keyframes link-appear {
    0%{
        transform: translateX(10px);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes header-drop{
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(0);
    }
}
