@font-face {
    font-family: "Montserrat";
    src: url("./assets/fonts/Montserrat.ttf");
}
:root {
    --primary-color: rgb(18, 18, 18);
    --secondary-color: rgb(254, 248, 229);
    --tertiary-color: rgb(204, 191, 150);
    --font-primary-color: rgb(254, 248, 229);
    --font-secondary-color: rgb(18, 18, 18);
    --font-tertiary-color: rgb(204, 191, 150);
    --nav-color: rgba(18, 18, 18, 0.4);
    --nav-link-color: rgb(254, 248, 229);
    --nav-link-active-color: rgb(254, 248, 229);
}
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}
html {
    font-size: min(2vmin, 14px);
    scroll-behavior: smooth;
}
body {
    font-family: "Montserrat", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color:  var(--primary-color);
    color: var(--font-primary-color);
    width: 100%;
    font-size: 2rem;
}
body * {
    font-size: 1em;
}
h1 {
    font-size: 3.5em;
}
h2 {
    font-size: 2.5em;
}
h3 {
    font-size: 1.5em;
}
p {
    margin: 0.7em 0 0.7em 0;
}
img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
section, footer {
    padding-top: 5.5rem;
}
section > h2, footer > h2 {
    text-align: center;
}


.nav {
    position: fixed;
    top: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 2rem 0 2rem 0;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    height: 5.5rem;
    backdrop-filter: blur(10px);
    background-color: var(--nav-color);
    z-index: 10000000;
}
.nav > * {
    text-decoration: none;
}
a:link, a:visited {
    color: var(--nav-link-color);
}
a:hover, a:active {
    color: var(--nav-link-active-color);
}
.nav-horizontal .logo {
    margin-right: 3rem;
}
.nav .logo img {
    height: 4rem;
    width: auto;
}
.nav-vertical {
    display: none;
    height: 100%;
    flex-direction: column;
    font-size: 1.3em;
}
.nav-vertical-wrapper {
    display: none;
    z-index: 10000000;
    position: fixed;
    top: 0;
    left: 0;
}
#nav-open-btn, #nav-close-btn {
    display: none;
    position: fixed;
    top: 3rem;
    right: 2rem;
    height: 4rem;
    width: auto;
}
#nav-close-btn {
    z-index: 10000001;
}


#ctaButtons {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 8%;
    align-self: baseline;
    margin-left: 7%;
    gap: 0.7em;
    user-select: none;
}
#ctaButtons .ctaButton {
    font-size: 1.2em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.3em;
    padding: 0.3em;
    border-radius: 0.3em;
}
#ctaButtons .b2c {
    background-color: rgb(152, 16, 16);
}
#ctaButtons .b2b {
    background-color: rgb(20, 20, 129);
}
#ctaButtons img {
    height: 1em;
    width: auto;
}


#home {
    width: 100%;
    height: 85vh;
    background: url("./assets/images/background.webp") center / cover no-repeat;
    color: var(--font-primary-color);
    font-size: 1em;
}
#hero {
    background-color: rgba(0, 0, 0, 0.65);
    width: 100%;
    height: 100%;
}
#hero > div {
    position: relative;
    top: 30%;
    left: 7%;
    width: 86%;
    overflow : auto;
}
#hero >div > p {
    font-size: 2em;
}


#menu {
    padding: 5.5rem 15% 2.5rem 15%;
    background-color: var(--tertiary-color);
    color: var(--font-secondary-color);
}
#menu .terms {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7em;
}
#menu .term {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#menu .term img {
    width: 2.5em;
    height: auto;
}
#menu .term span {
    max-width: 9em;
    text-align: center;    
}
#menu .menuItems {
    display: flex;
    flex-direction: column;
    margin-top: 1.6em;
    gap: 1.6em;
}
#menu li {
    list-style-type: none;
}
#menu .menuCategory > li {
    display: flex;
    justify-content: space-between;
    padding: 0 2em 0 2em;
}
#menu h3 {
    display: flex;
    font-size: 2em;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}


#specialOffers {
    padding: 5.5rem 6% 5rem 6%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#specialOffers  img {
    max-width: 80%;
    height: auto;
}

#about {
    padding: 5.5rem 15% 5rem 15%;
    background-color: var(--secondary-color);
    color: var(--font-secondary-color);
}
#about .dimmer {
    display: none;
}
#about .history, #about .present {
    margin-top: 2em;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
    text-align: justify;
    font-size: 1.2em;
    overflow-x: hidden;
}
#about .history img, #about .present img {
    width: 35vw;
    height: auto;
}
#about .present {
    flex-direction: row-reverse;
}


#contact {
    width: 100%;
    padding-bottom: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    background-color: var(--primary-color);
    color: var(--font-primary-color);
}
#contact i {
    color: var(--font-primary-color);
}
#contact iframe {
    width: 100%;
    height: 10em;
}
#contact .phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    background-color: var(--secondary-color);
    padding: 1em 4em;
    color: var(--font-secondary-color);
}
#contact .phone p {
    margin: 0;
}
#contact .phone a {
    color: var(--font-secondary-color);
}
#contact .email {
    background-color: var(--secondary-color);
    color: var(--font-secondary-color);
    padding: 1em 4em;
}


#developer {
    width: 100%;
    color: #eaeaea;
    background-color: #000000;
    text-align: center;
    font-size: 1.5rem;
    padding: 1rem 0 1rem 0;
    margin: 0;
}
#developer * {
    font-size: 1em;
}
#developer > a:link, #developer > a:visited {
    color: #dadada;
}
#developer > a:hover, #developer > a:active {
    color: #ffffff;
}


.animatedChildren > *, .animated {
    opacity: 0;
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.fadeIn {
    animation: fadeIn forwards 0.4s ease-in;
}
@keyframes fadeFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.fadeFromLeft {
    animation: fadeFromLeft forwards 0.8s ease-in;
}
@keyframes fadeFromRight {
    from {
        opacity: 0;
        transform: translateX(30%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.fadeFromRight {
    animation: fadeFromRight forwards 0.8s ease-in;
}
@keyframes spin {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


@media (max-aspect-ratio: 1/1) {
    .nav-horizontal {
        display: none;
    }
    .nav-vertical-wrapper {
        display: block;
    }
    #nav-open-btn {
        display: block;
    }


    #services {
        padding: 5.5rem 7% 2.5rem 7%;
    }


    #references .project-large {
        flex-direction: column;
    }
    #references .project-large-reverse {
        flex-direction: column;
    }
    #references .project-large > img, #references .project-small {
        font-size: 1em;
        width: 100%;
    }


    #about {
        padding: 5.5rem 7% 5rem 7%;
    }
    #about {
        padding: 5.5rem 0 5rem 0;
    }
    #about .history, #about .present {
        position: relative;
    }
    #about .history::before, #about .present::before {
        display: block;
        content: "";
        z-index: 1000;
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
    }
    #about .history > p, #about .present > p {
        position: absolute;
        z-index: 10001;
        padding: 0 7%;
        color: var(--font-primary-color);
    }
    #about .history img, #about .present img {
        width: 100%;
        height: auto;
    }



    #contact .phone {
        padding: 1em 2em;
    }
    #contact .address {
        padding: 0 7%;
        text-align: center;
    }
}
