:root {
    --primary: #258bfaff;
    --secondary: #ff9a30ff;
    --text: white;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto Mono", monospace;
    letter-spacing: 2px;
    background-image: linear-gradient(to bottom, rgb(231, 231, 231), rgb(223, 223, 223));
}

/* Header + navigation */

.header {
    position: fixed;
    width: 100vw;
    z-index: 10;
}

.header-wrapper {
    background-color: rgba(251, 251, 251, 0.6);
    backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 0 0 12px 12px;
    max-width: 600px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: bold;
    font-size: larger;
    text-decoration: none;
    padding: 1em;
}

.logo {
    width: 36px;
    height: 36px;
    margin-right: 0.5rem;
}

.header-nav {
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-nav-item a {
    padding: 1em;
    color: var(--primary);
    font-weight: bold;
    font-size: larger;
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav-item a:hover {
    color: var(--secondary);
}

@media screen and (max-width: 600px) {
    .header-wrapper {
        border-radius: 0;
    }
}

@media screen and (max-width: 400px) {
    .header-wrapper {
        flex-direction: column;
    }

}

/* Hero */

.hero-background {
    width: 100%;
    background-image: linear-gradient(to bottom right, #12f2f5ff, #0399f4ff);
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 0 25vw;
    padding: 20vh 0;
}

.hero {
    align-self: center;
}

.hero h1 {
    padding: 1rem 0;
    margin: 0;
    font-size: 6rem;
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(135deg, var(--text), var(--secondary) 180%);
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text);
    font-weight: bold;
    font-size: large;
}

.hero-cta {
    margin: 3rem 0;
}

.hero-cta-button {
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    padding: 1rem;
    background-color: var(--primary);
    border-radius: 2rem;
    transition: color 0.2s;
    color: var(--text);
}

.hero-cta-button:hover {
    color: var(--secondary);
}

.hero-cta-link {
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    transition: color 0.2s;
    color: var(--text);
}

.hero-cta-link:hover {
    color: var(--secondary)
}

.hero-demo-wrapper {
    border-radius: 48px;
    border: 12px double white;
    box-shadow: 24px 64px 64px rgba(0, 43, 128, 0.5);
    height: 600px;
    max-width: 400px;
    overflow: hidden;
}

.hero-demo {
    border: 0;
    height: 100%;
    z-index: 1;
}

@media screen and (max-width: 1800px) {
    .hero-wrapper {
        margin: 0 15vw;
    }
}

@media screen and (max-width: 1300px) {
    .hero-wrapper {
        padding: 10vh 0;
        flex-direction: column;
        align-items: center;
    }

    .hero {
        margin-bottom: 4rem;
    }
}

@media screen and (max-width: 650px) {
    .hero {
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .hero-demo-wrapper {
        height: 500px;
    }
}

@media screen and (max-width: 400px) {
    .hero-wrapper {
        padding-top: 20vh;
        padding-bottom: 10vh;
    }
}

/* Services */
.services-wrapper {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    margin: 10vh 15vw;
}

.services-title {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 5rem;
}

.services-card {
    display: flex;
    flex-direction: column-reverse;
    border-radius: 1rem;
    min-height: 400px;
    max-width: 30vw;
    width: 100%;
    color: white;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.services-card-caption {
    background: linear-gradient(180deg, transparent 0%, #000 100%);
    padding: 1rem 2rem;
}

#avtomatizacija-doma {
    background-image: url("images/avtomatizacija-doma.jpg");
}

#nadzorni-sistemi {
    background-image: url("images/nadzorni-sistemi.jpg");
}

@media screen and (max-width: 1000px) {
    .services-title {
        margin-bottom: 0;
    }

    .services-wrapper {
        flex-direction: column;
        gap: 4rem;
    }

    .services-card {
        width: 100%;
        max-width: none;
    }
}

@media screen and (max-width: 600px) {
    .services-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    .services-card {
        border-radius: 0;
    }
}

/* Footer */
.footer {
    margin: 0 20vw;
    padding: 2rem;
    background-color: gray;
    border-radius: 2rem 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
}

.footer-title {
    flex-basis: 100%;
    text-align: center;
}

.footer-info {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.footer-kontakt p {
    margin: 3rem 0;
}

.footer-kontakt a {
    padding: 1rem;
    color: white;
    background-color: var(--primary);
    text-decoration: none;
    border-radius: 2rem;
    font-weight: bold;
    transition: color 0.2s;
}

.footer-kontakt a:hover {
    color: var(--secondary);
}

.footer-info img {
    height: 96px;
    margin-right: 2rem;
}

@media screen and (max-width: 1500px) {
    .footer {
        margin: 0 10vw;
    }
}

@media screen and (max-width: 1100px) {
    .footer {
        margin: 0 0;
        border-radius: 0;
    }
}

@media screen and (max-width: 550px) {
    .footer-title {
        font-size: larger;
    }

    .footer-info {
        flex-direction: column;
        font-size: smaller;
    }

    .footer-kontakt {
        font-size: smaller
    }
}