* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    /* outline: 1px red solid; */
}

:root {
    --primary: #FFDDE1;
    --secondary: #EFA8B8;
    --text-dark: #000000;
    --text-light: #ffffff;

    --padding: min(2rem, 4%);

    interpolate-size: allow-keywords;
}

@keyframes fadein {
    to {
        opacity: 1;
    }
}

@keyframes sidebar {
    from{
        transform: scaleX(0%);
    }

    to{
        transform: scaleX(100%);
    }
}

@keyframes onscroll {
    from {
        opacity: 0;
        scale: 1.2;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

@keyframes spinfadein {
    from {
        transform: rotateZ(10deg);
        opacity: 0;
        scale: 0.7;
    }

    to {
        transform: rotateZ(0deg);
        opacity: 1;
        scale: 1;
    }
}

@keyframes procescard {
    to {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
    }
}

@keyframes navbutton {
    to {
        transform: scaleX(1);
    }
}

body {
    font-family: "Manrope", serif;
    overflow-x: hidden;
    background-color: var(--primary);
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

nav {
    position: fixed;
    z-index: 999;
    padding: var(--padding);
}

nav .buttons{
    background-color: #0000004b;
    backdrop-filter: blur(3px);
    padding: 10px;
    border-radius: 999em;
    display: flex;
    gap: 20px;
}

nav .buttons a {
    color: var(--text-light);
    transform: scaleX(0);
    transform-origin: left;
    background: none;
    border: none;
    cursor: pointer;
    animation: navbutton 0.3s 0.5s forwards;
    position: relative;
    text-decoration: none;
}

nav .buttons a::before {
    position: absolute;
    content: "";
    background-color: var(--text-light);
    transform: translate(0%, -50%);
    width: 0%;
    height: 2px;
    bottom: -3px;
    transition: width 0.3s;
}

nav .buttons a:hover::before {
    width: 100%;
}

nav .burger-menu{
    display: none;
}

nav .sidebar {
    position: fixed;
    display: none;
    flex-direction: column;
    gap: 20px;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 25px 30px;
    transform-origin: left;
    border-left: 1px solid white;
    z-index: 999;
    background-color: #0000004b;
    backdrop-filter: blur(3px);
    animation: sidebar 0.5s forwards;
}

nav .sidebar a {
    background: none;
    border: none;
    text-decoration: none;
    text-align: left;
    font-size: 20px;
    margin-left: 10px;
    color: var(--text-light);
    transition: 300ms;
}

nav .sidebar a:hover {
    background-color: var(--secondary);
    color: var(--textdark);
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.hero {
    position: relative;
    height: 90vh;
}

.hero .text {
    position: absolute;
    color: var(--text-light);
    z-index: 1;
    opacity: 0;
    left: 50%;
    top: 50%;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    animation: fadein 1s 0.5s forwards;
}

.hero h1 {
    font-size: 2em;
    font-weight: 500;
}

.hero p {
    font-size: 1.2em;
    font-weight: 200;
}

.hero .img-holder {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero .img-holder img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.8) contrast(.8) saturate(1.4);
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.o-nas {
    padding: var(--padding);
    height: 80vh;
    display: flex;
    align-items: center;
}

.o-nas p {
    max-width: 900px;
    font-size: clamp(1.5em, 3vw, 3em);
    animation: onscroll linear both;
    animation-timeline: view();
    animation-range-start: cover;
    animation-range-end: 60vh;
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.benefiti {
    margin: var(--padding) 10%;
}

.benefiti h1 {
    font-size: 36px;
    margin-bottom: 40px;
}

.benefiti ul{
    list-style-position: inside;
}

.benefiti li h2 {
    display: inline-block;
    font-size: 24px;
}

.benefiti li p {
    font-size: 18px;
    margin-bottom: 10px;
}

.benefiti .benefits_text::before {
    position: absolute;
    content: "";
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
}

.benefiti .benefits_text.observed::before {
    transition: 3s;
    width: 0%;
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.proces {
    padding: min(4rem, 10%);
    margin-top: 3em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    perspective-origin: 100%, 100%;
    gap: 100px;
}

.proces h1 {
    font-size: clamp(2.5em, 3vw, 3em);
}

.proces .card {
    max-width: 350px;
    padding: 30px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(45deg, #EF767A, #EFA8B8);
    border-radius: 20px;
    box-shadow: -10px 10px 30px -10px rgba(0, 0, 0, 0.7);
    transform-style: preserve-3d;
    transform: rotateX(15deg) rotateY(15deg) rotateZ(-15deg) scale(0.6);
    animation: procescard linear forwards;
    animation-timeline: view();
    animation-range-start: 10%;
    animation-range-end: 40%;
}

.proces .card svg {
    width: 30%;
}

.proces .card h2 {
    font-size: 30px;
}

.proces .card p {
    font-size: 20px;
    text-align: center;
    margin-top: 40px;
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.kontakt {
    padding: 10rem var(--padding);
    position: relative;
    display: flex;
    gap: 2rem;
    flex-direction: column;
    align-items: center;
}

.kontakt h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    text-align: center;
}

.kontakt a {
    text-decoration: none;
    border-radius: 50%;
    padding: 0.5rem;
    position: relative;
    z-index: 1;
}

.kontakt a::before {
    position: absolute;
    content: "";
    background-color: var(--secondary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    width: 0%;
    aspect-ratio: 1;
    transition: 0.5s;
    z-index: -1;
}

.kontakt a:hover::before {
    width: 100%;
}

.kontakt svg {
    height: clamp(75px, 5vw, 100px);
}

.kontakt .info {
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    width: 80%;
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.vprasanje {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--padding);
    gap: 1rem;
    margin-bottom: 10rem;
}

.vprasanje h1 {
    font-size: clamp(32px, 5vw, 60px);
}

.vprasanje form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: 100%;
    gap: 1rem;
}

.vprasanje form input {
    height: 50px;
    width: 100%;
    border: none;
    padding: 0 20px;
    border-radius: 999rem;
    font-size: 20px;
    transition: 300ms;
    background-color: var(--primary);
    outline: 2px solid black;
}

.vprasanje form input:focus{
    border: none;
    background-color: var(--secondary);
    outline: 2px solid var(--secondary);
}

.vprasanje form button {
    width: 200px;
    height: 50px;
    border: 3px solid black;
    background: none;
    border-radius: 999rem;
    color: var(--text-dark);
    font-size: 20px;
    transition: 0.3s;
    cursor: pointer;
}

.vprasanje form button:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

.faq {
    padding: var(--padding);
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.faq details {
    width: 700px;
    max-width: 100%;
    border-radius: 1rem;
    padding: var(--padding);
    background-color: var(--secondary);
    margin: 0;
    overflow: hidden;
}

details>p {
    padding-block: 1rem;
}

details::details-content {
    overflow: hidden;
    block-size: 0;
    transition: block-size 1s, content-visibility 1s;
    transition-behavior: allow-discrete;
}

details[open]::details-content {
    block-size: auto;
}

.faq details summary {
    cursor: pointer;
    margin-inline: 1rem;
    list-style-position: outside;
    font-weight: 500;
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
}

/*------------------------------------------------------------------------------------------------------------------------------------------*/

@media(min-width: 1441px) {
    .hero h1{
        font-size: 3em;
    }

    .hero p{
        font-size: 1.4em;
    }
}

@media(max-width: 768px) {

    nav {
        padding: 24px 30px;
    }

    nav h1{
        font-size: 1.5rem;
    }

    nav .buttons{
        display: none;
    }

    nav .buttons svg{
        display: inline-block;
    }

    nav .burger-menu{
        display: inline-block;
    }

    .kontakt .info {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .kontakt .info a{
        width: 280px;
        border: 2px solid var(--secondary);
        text-align: center;
        border-radius: 999em;
        padding: 3px;
        position: relative;
        overflow: hidden;
    }
    
    .kontakt .info a svg{
        height: 40px;
    }
}

@media(max-width: 425px) {
    .proces .card{
        max-width: 300px;
        height: 300px;
    }

    .proces .card h2{
        font-size: 25px;
    }

    .proces .card p{
        font-size: 15px;
    }
}

@media(max-width: 375px) {
    .benefiti li h2{
        font-size: 1.2em;
    }

    .benefiti li p{
        font-size: 1em;
    }

    .proces .card h2{
        font-size: 20px;
    }
}