@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
}

:root {
    --primary-color: rgb(232, 69, 69);
    --clients-bg: rgb(83, 53, 74);
    --text-color: rgb(255, 255, 255);
    --sec-text-color: rgb(0, 0, 0);
    --facebook-color: rgb(8 102 255);
    --youtube-color: rgb(255, 0, 0);
    --instagram-color: rgb(247, 108, 48);
    --footer-color: rgb(58, 62, 100);
    --copyright-color: rgb(48, 51, 82);
    --short-transition: all 0.2s;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: auto;
}

a,
a > *,
button {
    cursor: pointer;
}

section {
    background: url(../img/Background.jpg) center/cover;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: auto;
    padding: 2% 10%;
}

header img {
    width: 200px;
    cursor: pointer;
}

#nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    text-wrap: nowrap;
}

#nav a,
#nav-mobile a {
    color: rgba(from var(--text-color) r g b / 0.5);
    font-size: 15px;
    font-weight: bolder;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--short-transition);

    &:hover {
        color: var(--text-color);
    }
}

#nav-mobile,
#nav-open-button {
    display: none;
}

#home-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10%;
    text-align: center;
}

#home-section h1 {
    color: var(--text-color);
    font-size: 60px;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

#home-section p {
    color: var(--text-color);
    font-size: 22px;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 100px;
}

#find-button,
#download-section button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    padding-inline: 5%;
    font-size: 15px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
    background: transparent;
    border-radius: 3px;
    border: 1px solid var(--text-color);
    outline: none;
    transition: var(--short-transition);
    letter-spacing: 1px;

    &:hover {
        color: var(--text-color);
        background-color: var(--primary-color);
        scale: 1.08;
        border: 1px solid var(--primary-color);
    }
}

#feature-section {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-items: center;
    align-items: center;
    width: 100%;
    background-color: var(--text-color);
    padding: 5% 0;
}

#feature-section .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10%;
}

#feature-section .feature img {
    height: 60px;
    margin-bottom: 20px;
}

#feature-section .feature h3 {
    color: var(--sec-text-color);
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    margin-block: 20px;
}

#feature-section .feature p {
    color: rgba(from var(--sec-text-color) r g b / 0.5);
    text-align: center;
    line-height: 1.5;
    font-size: 14px;
}

#feature-section .feature:hover.feature img {
    animation: rotateImg 1s;
}

@keyframes rotateImg {
    0% {
        transform: rotateY(360deg);
    }
    100% {
        transform: rotateY(0);
    }
}

#works-section {
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: 100%;
}

#works-section .work-img {
    position: relative;
}

#works-section img {
    width: 100%;
    height: 100%;
}

#works-section .work-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--text-color);
    background-color: rgba(from var(--primary-color) r g b / 0.9);
    opacity: 0;
    transition: all 0.5s;
}

#works-section .work-details > * {
    letter-spacing: 1px;
    cursor: context-menu;
}

#works-section .work-img:hover .work-details {
    opacity: 1;
}

#team-section {
    display: grid;
    grid-template-columns: auto auto auto auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7% 5%;
    gap: 5%;
}

#team-section .team-member-details {
    border-radius: 10px;
    padding: 15px;
    background: rgba(from var(--sec-text-color) r g b / 0.15);
    transition: var(--short-transition);

    &:hover {
        scale: 1.05;
    }
}

#team-section .team-member-details img {
    margin-bottom: 20px;
    width: 100%;
    border-radius: 5px 5px 0 0;
}

#team-section .team-member-details .team-member-names {
    color: var(--sec-text-color);
    font-size: 22px;
    font-weight: 400;
}

#team-section .team-member-details .team-member-job-post {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 400;
    margin-top: 6px;
    margin-bottom: 20px;
}

#team-section .team-member-details p {
    color: rgba(from var(--sec-text-color) r g b / 0.5);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

#team-section .team-member-details .team-member-social-profiles {
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-size: 25px;
}

#team-section .team-member-details .team-member-social-profiles a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: rgba(from var(--sec-text-color) r g b / 0.5);
    text-decoration: none;
    border: 2px solid rgba(from var(--sec-text-color) r g b / 0.5);
    border-radius: 10px;
    transition: var(--short-transition);

    &:hover {
        scale: 1.1;
    }

    &:first-child:hover {
        color: var(--facebook-color);
        border-color: var(--facebook-color);
    }

    &:nth-child(2):hover {
        color: var(--youtube-color);
        border-color: var(--youtube-color);
    }

    &:last-child:hover {
        color: var(--instagram-color);
        border-color: var(--instagram-color);
    }
}

#clients-section {
    display: flex;
    align-items: center;
    overflow: hidden;
}

#clients-section .clients-details {
    display: flex;
    width: 100vw;
    height: 100%;
    background: var(--clients-bg);
    animation: clients-slide 40s cubic-bezier(0.5, -0.42, 0.3, 1.42) infinite 3s;
}

#clients-section img {
    height: 100%;
    width: 50vw;
}

#clients-section .clients-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10%;
    color: var(--text-color);
    padding-inline: 5%;
    width: 50vw;
}

#clients-section .clients-message h3 {
    font-size: 2.5vw;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    font-family: "Cardo", serif;
    letter-spacing: 1px;
}

#clients-section .clients-message p {
    font-size: 1vw;
    text-transform: uppercase;
    font-weight: bolder;
    letter-spacing: 1px;
}

@keyframes clients-slide {
    0% {
        transform: translateX(0);
    }
    5% {
        transform: translateX(-100%);
    }
    10% {
        transform: translateX(-100%);
    }
    15% {
        transform: translateX(-200%);
    }
    20% {
        transform: translateX(-200%);
    }
    25% {
        transform: translateX(-300%);
    }
    30% {
        transform: translateX(-300%);
    }
    35% {
        transform: translateX(-400%);
    }
    40% {
        transform: translateX(-400%);
    }
    45% {
        transform: translateX(-500%);
    }
    50% {
        transform: translateX(-500%);
    }
    55% {
        transform: translateX(-400%);
    }
    60% {
        transform: translateX(-400%);
    }
    65% {
        transform: translateX(-300%);
    }
    70% {
        transform: translateX(-300%);
    }
    75% {
        transform: translateX(-200%);
    }
    80% {
        transform: translateX(-200%);
    }
    85% {
        transform: translateX(-100%);
    }
    90% {
        transform: translateX(-100%);
    }
    95% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(0);
    }
}

#download-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5%;
    text-align: center;
}

#download-section h2 {
    font-size: 2vw;
    font-weight: 300;
    line-height: 2;
    margin-bottom: 7px;
}

#download-section span {
    font-size: 1vw;
    font-weight: bolder;
    text-transform: uppercase;
    margin-bottom: 45px;
}

#download-section button {
    color: var(--sec-text-color);
    border: 1px solid var(--sec-text-color);
}

#footer-section {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: var(--footer-color);
    padding: 5% 10%;
    gap: 10%;
}

#footer-section h5 {
    color: var(--text-color);
    font-size: 13px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 15px;
}

#footer-section p {
    color: #a9a9a9;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

#footer-section #location,
#footer-section #share-in-socials,
#footer-section #about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#footer-section #company-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
    font-size: 20px;
}

#footer-section #company-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 23px;
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid var(--text-color);
    border-radius: 50%;
    transition: var(--short-transition);

    &:hover {
        scale: 1.1;
    }

    &:first-child:hover {
        color: var(--facebook-color);
        border-color: var(--facebook-color);
    }

    &:nth-child(2):hover {
        color: var(--youtube-color);
        border-color: var(--youtube-color);
    }

    &:last-child:hover {
        color: var(--instagram-color);
        border-color: var(--instagram-color);
    }
}

#copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 2%;
    background-color: var(--copyright-color);
    text-align: center;
}

#copyright p {
    color: rgba(from var(--text-color) r g b / 0.5);
}

#copyright p span {
    color: var(--text-color);
}

#copyright p a {
    color: var(--text-color);
    padding-left: 10px;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: bolder;
}

.bounce-in {
    animation: bounceIn 0.2s ease-in-out;
}
.bounce-out {
    animation: bounceOut 0.2s ease-in-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounceOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
