@font-face {
    font-family: "Roboto";
    src: url("Roboto-Light.ttf");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto-Regular.ttf");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto-Medium.ttf");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("Roboto-Bold.ttf");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Source Code Pro";
    src: url("SourceCodePro-VariableFont_wght.ttf");
    font-style: normal;
}

:root {
    --primary-color: dodgerblue;
    --secondary-color: darkturquoise;
    --tertiary-color: #FF7C57;
    --border-radius: 1rem;
    --white: rgb(252, 252, 252);
    --gray-bg: #e8eaec;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #333;
    font-size: 18px;
    line-height: 1.6;
}

h2 {
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

h2::after, h2::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 35px;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
}

h2.inverted {
    color: var(--white);
}

h2.inverted::after, h2.inverted::before {
    background: var(--secondary-color);
}

h2::before {
    left: -45px;
}

h2::after {
    right: -45px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.container.wider {
    max-width: 1600px;
}

nav {
    padding: 10px 0;
    position: fixed;
    top: 1rem;
    z-index: 1000;
    transition: all 0.5s ease;
    width: 100%;
}

nav.compact {
    background-color: rgba(252, 252, 252, 0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 1260px;
    border-radius: var(--border-radius);
    right: 0;
    left: 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 80px;
    height: auto;
    transition: all 0.5s ease;
}

nav.compact .logo {
    width: 65px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
}

nav i {
    color: var(--white);
}

nav.compact ul li a, nav.compact i {
    color: black;
}

a.link {
    color: #0A7CEB;
    text-decoration: none;
    position: relative;
}

nav ul li a:hover, a.link:hover {
    color: var(--primary-color);
}

nav ul li a::after, a.link::after, .project-card h3>span::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 1px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
    transform-origin: bottom;
    transition: transform 0.25s ease-out;
}

a.link::after {
    left: 0;
}

.project-card h3>span::after {
    height: 2.5px;
    bottom: -4px;
    left: 0;
    background: var(--tertiary-color);
}

nav ul li a:hover::after, a.link:hover::after, .project-card:hover h3>span::after  {
    transform: scaleX(1);
    transform-origin: bottom;
}

header {
    text-align: center;
    padding: 100px 0 60px;
    background-color: rgba(0, 0, 0, 0.6);
}

.content {
    padding: 40px 0;
    background-color: rgba(252, 252, 252, 0.95);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: calc(2 * var(--border-radius));
    font-weight: 500;
    margin: 20px 0 50px 0;
    font-size: 18px;
    position: relative;
    z-index: 10;
}

.cta-button:after, #contact form button:after {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color) 150%);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    z-index: -10;
    transition: opacity 0.6s ease;
    border-radius: calc(2 * var(--border-radius));
}

#contact form button:after {
    border-radius: var(--border-radius);
}

.cta-button:hover:after, #contact form button:hover:after {
    opacity: 1;
}

.work-upper-part {
    height: 100px; background: linear-gradient(to bottom left, rgba(252, 252, 252, 0.95) 50%, var(--gray-bg) 50%); flex: 0.1;
}

#work {
    background-color: var(--gray-bg);
    padding-top: 0;
}

#work > .container {
    position: relative;
}

.text-center {
    text-align: center;
}

.project-slider {
    display: flex;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 10px;
    margin: 0 -10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: auto;
}

.project-slider::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 25px;
    scroll-snap-align: start;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.25s ease;
}

.project-card:hover {
    box-shadow: 0 4px 8px 1px rgba(0, 0, 0, 0.15);
}

.project-card .img-wrapper {
    height: 200px;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
    filter: grayscale(10%);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    padding: 1rem 1rem 1.5rem 1rem;
    margin: 0;
    text-align: center;
}

.project-card h3>span {
    position: relative;
}

.service-item {
    margin-bottom: 40px;
}

.service-item h3 {
    font-family: Source Code Pro, sans-serif;
    font-weight: 600;
}

.service-icon {
    height: 150px;
    background: linear-gradient(135deg, #FF8F1F, var(--tertiary-color) 40%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

#contact form {
    display: grid;
    gap: 20px;
    width: 100%;
    max-width: 600px;
}

#contact form input, #contact form textarea {
    padding: 15px;
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-family: Roboto, sans-serif;
}

#contact form input:focus-within, #contact form textarea:focus-within {
    outline-color: var(--primary-color);
}

#contact form button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    font-family: Roboto, sans-serif;
    position: relative;
    z-index: 10;
}

footer {
    padding: 10px 0 15px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

footer .logo {
    filter: brightness(1.5);
    opacity: 0.9;
    width: 75px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.footer-text {
    padding-left: 30px;
    padding-top: 10px;
    border-left: 1px solid rgba(252, 252, 252, 0.2);
}

.footer-text p {
    margin: 5px 0;
    font-size: 15px;
    opacity: 0.9;
}

:target {
    scroll-margin-top: 80px;
}

#home {
    --home-bg-position: 85%;
    min-height: 100vh;
    position: relative;
    display: flex;
}

#home .container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#home:before, #home:after {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    background-repeat: no-repeat;
    background-position-y: var(--home-bg-position);
    background-size: cover;
    z-index: -10;
    transition: opacity 1s ease;
}

#home:before {
    background-image: url('../images/background.webp');
}

#home:after {
    background-image: url('../images/background2.webp');
}

#home.first:after {
    opacity: 0;
}

#home.second:before {
    opacity: 0;
}

header h1 {
    font-size: 5rem;
    font-family: Source Code Pro, sans-serif;
    font-weight: 600;
    color: var(--white);
}

header h3 {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--white);
}

.header {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.6s ease-out;
}

.header.left {
    transform: translateX(-100px) translateY(0);
}

.header.right {
    transform: translateX(100px) translateY(0);
}

.headerVisible {
    opacity: 1;
    transform: translateX(0) translateY(0) !important;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    border: 2px solid var(--white);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--white);
}

#technology {
    background: #343434;
    color: var(--white);
    transition: all .3s ease;
}

#technology .container {
    padding: 20px 0;
}

#technology h2 {
    margin-bottom: 0;
}

.contact-heading {
    background-image: url(../images/page-name.webp);
    background-attachment: fixed;
    background-size: cover;
    padding: 60px 0 40px 0;
    background-position: center;
}

.slider-arrow {
    position: absolute;
    top: 55%;
    background: rgb(52, 52, 52);
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    opacity: 0.7;
}

.slider-arrow:hover {
    opacity: 0.9;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 95%);
}

.slider-arrow.left {
    left: 30px;
}

.slider-arrow.right {
    right: 30px;
}

div.highway-slider {

    div.highway-barrier {
        overflow: hidden;
        position: relative;
    }

    ul.highway-lane {
        display: flex;
        height: 100%;

        li.highway-car {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }
}

@keyframes translateinfinite {
    100% {
        transform: translateX(calc(-180px * 16));
    }
}

.highway-car {
    position: relative;
    cursor: pointer;
    transition: color 0.25s;
}

.highway-car:hover {
    color: var(--secondary-color);
}

.highway-car:hover svg {
    transition: fill 0.25s;
    fill: var(--secondary-color);
}

.highway-car:hover svg.with-stroke {
    transition: fill 0.25s, stroke 0.25s;
    stroke: var(--secondary-color);
}

.highway-car .tooltip {
    visibility: hidden;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    transition: opacity 0.5s;
    font-size: 14px;
}

.highway-car .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.highway-car:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

#infinite div.highway-barrier {
    &::before, &::after {
        content: " ";
        position: absolute;
        z-index: 9;
        width: 180px;
        height: 100%;
    }

    &::before {
        top: 0;
        left: 0;
        background: linear-gradient(to right, rgba(52, 52, 52, 1) 0%, rgba(52, 52, 52, 0) 100%);
    }

    &::after {
        top: 0;
        right: 0;
        background: linear-gradient(to left, rgba(52, 52, 52, 1) 0%, rgba(52, 52, 52, 0) 100%);
    }

    ul.highway-lane {
        margin-top: 2.75em;
        width: calc(180px * 32 + 40px);

        li.highway-car {
            width: 180px;
            animation: translateinfinite 30s linear infinite;
            i.fa-brands {
                font-size: 65px;
            }
        }

        &:hover {
            li.highway-car {
                animation-play-state: paused;
            }
        }
    }
}

.hamburger-menu {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 30px;
    display: none;
}

.hamburger-menu:focus-visible {
    outline: none;
}

#second-heading {
    display: none;
}

.flex {
    display: flex;
}

.half-col {
    flex: 50%;
}

.principles-heading {
    position: sticky;
    top: 15vh;
    margin-bottom: 15vh;
    margin-right: 0;
    margin-left: 45px;
}

.principles-card {
    position: sticky;
    top: 28vh;
    margin-bottom: 10vh;
    border-radius: var(--border-radius);
    padding: 0 20px;
    background-color: var(--gray-bg);
    box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-bg);
}

.principles-card:nth-child(2) {
    margin-bottom: calc(10vh + 180px);
}

.principles-card:nth-child(3) {
    top: calc(28vh + 60px);
    margin-bottom: calc(10vh + 120px);
}

.principles-card:nth-child(4) {
    top: calc(28vh + 120px);
    margin-bottom: calc(10vh + 60px);
}

.principles-card:nth-child(5) {
    top: calc(28vh + 180px);
}

.principles-card h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-family: Source Code Pro, sans-serif;
    font-weight: 600;
}

.principles-card p {
    margin-bottom: 1rem;
}

.principles-image {
    top: 30vh;
    margin-bottom: 12vh;
    margin-top: 50px;
    padding-right: 50px;
}

.principles-image > img {
    width: 100%;
}

.contact-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 40px;
}

.contact-info {
    background: var(--gray-bg);
    padding: 25px 30px 15px;
    border-radius: var(--border-radius);
    min-width: 300px;
    max-width: 300px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin: 10px;
    font-family: Source Code Pro, sans-serif;
    font-weight: 600;
}

.contact-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--white);
}

.contact-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.contact-item i {
    margin-right: 15px;
    font-size: 20px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.gdpr-consent {
    font-size: 15px;
    margin-top: -5px;
    margin-bottom: -5px;
    color: #666;
}

.notification {
    position: fixed;
    top: 5px;
    right: 0;
    left: 0;
    margin: 0 auto;
    padding: 15px 60px 15px 25px;
    border-radius: calc(var(--border-radius) / 2);
    color: var(--white);
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    width: fit-content;
}

.notification.show {
    opacity: 1;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification .close-btn {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 30px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    position: absolute;
    padding: 0 5px;
    right: 15px;
    top: 0;
    bottom: 0;
}

.notification .close-btn:hover {
    opacity: 1;
}

.grecaptcha-badge {
    visibility: hidden;
}

.project-details {
    font-weight: 500;
    cursor: pointer;
}

.project-details i {
    margin-left: 0.5rem;
    font-size: 90%;
    transition: transform 0.2s ease;
}

.project-details.show i {
    transform: rotate(180deg);
}

@media all and (min-width: 1401px) and (max-width: 1600px) {

    .container.wider {
        padding-left: 50px !important;
        padding-right: 50px !important;
    }

}

@media all and (min-width: 601px) {

    nav.compact {
        padding: 0;
    }

    .service-text {
        flex: 1;
        margin: 0 20px;
    }

    .service-icon {
        flex: 0 0 150px;
        margin: 0 20px;
    }

    .service-item {
        display: flex;
        align-items: center;
    }

    .service-item:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .principles-image {
        position: sticky;
    }

    #principles {
        padding-bottom: 0;
    }

}

@media all and (max-width: 1300px) {

    nav.compact {
        margin: 0 20px;
        width: calc(100% - 40px);
    }

}

@media all and (max-width: 1050px) {

    .principles-image {
        top: 32vh;
        margin-bottom: 14vh;
    }

}

@media all and (max-width: 950px) {

    .principles-image {
        top: 35vh;
        margin-bottom: 16vh;
        padding-right: 25px;
    }

}

@media all and (max-width: 800px) {

    body {
        font-size: 16px;
    }

    .gdpr-consent {
        font-size: 14px;
        margin-top: -9px;
        margin-bottom: -9px;
    }

    .hidden-sm {
        display: none;
    }

    header h1 {
        font-size: 4rem;
    }

    header h3 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .work-upper-part {
        height: 50px;
    }

    #home .container {
        padding: 0 10px;
    }

    .principles-image {
        margin-bottom: 20vh;
    }

    .highway-car .tooltip {
        bottom: 108%;
    }

    @media all and (min-width: 601px) {

        .contact-info {
            min-width: 250px;
            max-width: 250px;
            padding: 25px 26px 15px;
        }

        .contact-container {
            gap: 30px;
        }

    }

}

@media all and (max-width: 600px) {

    nav ul {
        display: none;
        position: absolute;
        top: 77px;
        width: 100%;
        left: 0;
        background-color: rgba(252, 252, 252, 0.96);
        margin: 0;
        padding-bottom: 20px;
        transition: top 0.5s ease;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        border-radius: var(--border-radius);
    }

    nav.compact {
        padding: 4px 0;
    }

    nav.compact ul {
        top: 62px;
    }

    nav ul li {
        margin-top: 1rem;
        width: fit-content;
    }

    nav ul li a {
        color: black;
    }

    .hamburger-menu {
        display: block;
    }

    h2::after, h2::before {
        width: 30px;
    }

    h2::before {
        left: -40px;
    }

    h2::after {
        right: -40px;
    }

    .service-icon {
        width: 150px;
        margin: 0 auto;
    }

    #infinite div.highway-barrier {
        &::before, &::after {
            width: 80px;
        }
    }

    header h1 {
        font-size: 3.5rem;
    }

    header h3 {
        font-size: 1.25rem;
    }

    .flex {
        display: block;
    }

    .principles-heading {
        margin-right: auto;
        margin-left: auto;
        margin-bottom: 12vh;
        top: 12vh;
    }

    .principles-image {
        padding-left: 25px;
        margin-bottom: 40px;
        margin-top: 0;
    }

    .principles-card {
        top: 22vh;
        margin-bottom: 20px;
    }

    .principles-card:nth-child(2) {
        margin-bottom: 180px;
    }

    .principles-card:nth-child(3) {
        top: calc(22vh + 60px);
        margin-bottom: 120px;
    }

    .principles-card:nth-child(4) {
        top: calc(22vh + 120px);
        margin-bottom: 60px;
    }

    .principles-card:nth-child(5) {
        top: calc(22vh + 180px);
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info, #contact form {
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-text {
        padding: 0;
        border-left: none;
        text-align: center;
    }

    .notification {
        margin: 0 5px;
    }

}

@media all and (min-height: 800px) {

    .cta-button {
        margin-bottom: 100px;
    }

    header h3 {
        margin-top: 2em;
        margin-bottom: 2em;
    }

}

@media all and (min-height: 900px) {

    .cta-button {
        margin-bottom: 150px;
    }

}

@media all and (min-height: 1000px) {

    .cta-button {
        margin-bottom: 200px;
    }

    header h3 {
        margin-top: 3em;
        margin-bottom: 3em;
    }

}
