:root {
    --primary: #0b54a6ff;
    --secondary: #ff861bff;
    --text-light: white;
    --text-dark: black;
    --text-highlight: --secondary;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Roboto", monospace;
    letter-spacing: 3px;
    background-image: linear-gradient(to bottom, hsl(0 0 90), hsl(0 0 70));
}

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

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

.cta-button-outline {
    text-decoration: none;
    font-weight: bold;
    font-size: large;
    padding: calc(1rem - 4px);
    border-radius: 1rem;
    border: 4px solid var(--primary);
    transition: color 0.2s;
    color: var(--text-light);
}

.cta-button-outline:hover {
    color: var(--secondary);
    opacity: 0.8;
}

.section-header {
    text-align: center;
    text-decoration: underline solid 4px var(--secondary);
    text-underline-offset: 1rem;
}

.text-light {
    text-align: start;
    color: hsl(0 0 80);
    font-weight: 500;
    letter-spacing: 2px;
}

.text-dark {
    text-align: start;
    color: hsl(0 0 20);
    font-weight: 500;
    letter-spacing: 2px;
}

/* Header */
.header {
    position: absolute;
    width: 100%;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1rem 0;
}

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

.menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: hsl(0 0 100 / 20%);
    backdrop-filter: blur(24px);
    padding: 2rem;
    border-radius: 2rem;
    outline-style: solid;
    outline-color: hsl(0 0 100 / 40%);
    outline-width: 2px;
    list-style: none;
}

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

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

.logo-menu {
    display: none;
}

.hamburger {
    display: none;
}

.toggle {
    display: none;
}

@media screen and (max-width: 800px) {
    .logo {
        display: none;
    }

    .logo-menu {
        height: 24px;
        display: block;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding-top: 2rem;
        align-items: start;
        z-index: 100;
    }

    .menu {
        flex-direction: column;
        border-radius: 1rem;
        justify-content: flex-start;
        margin-top: 0;
        width: 50vw;
    }

    .hamburger {
        display: flex;
        font-size: 2rem;
        cursor: pointer;
        color: var(--secondary);
    }

    .toggle {
        display: none;
    }

    .menu-item:first-of-type {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        width: 100%;
    }

    .menu-item:not(:first-of-type) {
        margin: 1rem 0;
    }

    .toggle:checked~.menu-item {
        display: none;
    }
}

/* Hero */
.hero-background {
    display: flex;
    flex-direction: column-reverse;
    background-image:
        linear-gradient(to bottom, hsl(0 0 100 / 10%), hsl(0 0 10 / 100%)),
        url("images/caliper.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    height: max(800px, 100vh);
    width: 100%;
    margin-bottom: 4rem;
}

.hero-wrapper {
    display: flex;
    justify-content: space-between;
    margin: 0 2rem;
    width: 80%;
}

.hero {
    width: 100%;
    align-self: center;
}

.hero-logo {
    height: 128px;
}

.hero h1 {
    padding: 1rem 0;
    margin: 0;
    font-size: 6rem;
    color: var(--text-light);
    font-weight: bold;
    line-height: 1;
    color: var(--text-light);
}

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

.hero-highlight {
    color: var(--secondary);
}

.hero-cta {
    display: flex;
    justify-content: start;
    align-items: center;
    margin: 3rem 0;
    gap: 5rem;
}

@media screen and (max-width: 800px) {
    .hero-logo {
        height: 64px;
    }

    .hero h1 {
        font-size: 4rem;
        line-height: 1;
    }

    .hero-cta {
        flex-direction: column;
        gap: 2rem;
    }
}

/* About */
.about-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 6rem;
}

.about-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(text-light);
    border-radius: 24px;
    width: 33%;
}

.about-image {
    background-size: cover;
    width: 100%;
    border-radius: 2rem;
}

.about-image-smaller {
    background-size: cover;
    width: 80%;
    border-radius: 2rem;
}

.about-portofolio {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.about-stack {
    h1 {
        color: var(--primary);
        font-size: xxx-large;
        margin: 0.5rem 0;
        text-decoration: underline 4px hsl(0 0 0 / 0%);
        text-underline-offset: 4px;
        transition:
            text-decoration-color 300ms,
            text-underline-offset 300ms;
    }

    h1:hover {
        text-decoration-color: var(--primary);
        text-underline-offset: 10px;
    }

    p {
        margin: 0;
        font-weight: 600;
    }
}


.about-cta {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

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

@media screen and (max-width: 800px) {
    .about-section {
        align-items: center;
        flex-direction: column-reverse;
        padding: 0 1rem;
    }

    .about-wrapper {
        width: 100%;
    }

    .about-image-smaller {
        width: 100%;
    }

    .about-portofolio {
        margin-top: 1rem;
        margin-bottom: 3rem;
        flex-direction: column;
    }

    .about-stack {
        h1 {
            text-align: center;

        }

        p {
            text-align: center;
        }
    }
}

@media screen and (max-width: 1250px) {
    .about-cta {
        width: 80%;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/*Storitve*/
.services-section {
    background-image: linear-gradient(hsl(0 0 20), hsl(0 0 10));
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.services-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0 0rem;
    padding: 2rem;
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem;
    width: 800px;
    height: 400px;
    background-color: hsl(0 0 100 / 20%);
    backdrop-filter: blur(24px);
    border-radius: 2rem;
    box-shadow: 1px 1px 20px hsl(0 0 10);
    transition: box-shadow 0.5s;
}

.card:hover {
    box-shadow: 5px 5px 20px hsl(0 0 0);

    .card-text>h2 {
        text-decoration-color: var(--primary);
        text-underline-offset: 10px;
    }
}

.card-text {
    padding: 1rem 1rem;
    display: flex;
    flex-direction: column;

    h2 {
        color: var(--text-light);
        margin: 0.5rem 0;
        text-decoration: underline 4px hsl(0 0 0 / 0%);
        text-underline-offset: 4px;
        transition:
            text-decoration-color 300ms,
            text-underline-offset 300ms;
    }

    p {
        text-align: start;
        color: hsl(0 0 80);
        font-weight: 500;
        letter-spacing: 2px;
    }
}

.card-image {
    width: 400px;
    object-fit: cover;
    border-radius: 1rem;
}

@media screen and (max-width: 800px) {
    .services-cards {
        width: 100%;
        padding: 0;
    }

    .card {
        flex-direction: column-reverse;
        height: 100%;
        width: 100%;
        border-radius: 0;
    }

    .card-image {
        width: 100%;
    }
}

/* Galery */
.galery-section {
    color: var(--text-dark);
    padding: 4rem 0;
    text-align: center;
}

.gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 4rem;
}

.gallery-image {
    width: min(600px, 100%);
    object-fit: cover;
}

/* CTA */
.cta-section {
    background-image: linear-gradient(hsl(0 0 20), hsl(0 0 10));
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.cta-columns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.cta-text {
    text-align: justify;
    color: hsl(0 0 80);
    font-weight: 500;
    font-size: larger;
    letter-spacing: 2px;
}

.cta-link {
    text-decoration: none;
    color: var(--secondary);
}

@media screen and (max-width: 550px) {
    .cta-columns {
        flex-direction: column;
        gap: 0;
    }
}
