:root{
    --dark-bg: #020303;
    --light-bg: #4A575D;
    --cadet: #566574;
    --yellow: #F4D995;
    --fire-red: #E07451;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html{
    font-size: 16px;
}

body{
    min-height: 100dvh;
    width: 100%;
    font-family: "Roboto", sans-serif;
    background-color: var(--dark-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

header{
    height:50dvh;
    width: 100%;
    background-color: var(--fire-red);
    color: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    margin-bottom: 20px;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 80ch; /* gör textblock lättläst */
}

a{
    color:#fff;
    text-decoration: none;

}

a:hover{
    color: var(--fire-red);
}

.btn{
    background: linear-gradient(45deg, #E07451, #F4D995);
    color: rgb(0, 0, 0);
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 200ms;
    font-weight: bold;
    text-decoration: none;
    
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.25);
    background: linear-gradient(45deg, #F4D995, #E07451);
}

.home-btn{
    margin-top: 20px;
}

.home{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about{
    display: flex;
    justify-content: space-evenly;
    padding: 4rem;
    height: 50dvh;

}

#recent-projects, #upcoming-projects, #all-projects{
    padding: 4rem;
    display: flex;
    justify-content: space-evenly;
}

#projects-link{
    margin-bottom: 40px;
}

.text-wrapper{
    flex: 3;
}

.icons-wrapper{
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: end;
    align-items: flex-start;
}

.icons-wrapper img{
    width: 40px;
}

.card-wrapper{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 5px;
}

.card{
    width: 25%;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(86, 101, 116, 0.5);
    transition: all 500ms ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-bottom: 10px;
}

.card img{
    width: 100%;
    border-radius: 10px;
}

.card:hover{
    box-shadow: 0 0 30px rgba(244, 217, 149, 0.251), 0 0 60px rgba(224, 116, 81, 0.15);
    transform: perspective(2000px) translateY(-2px) rotateX(5deg) translateZ(0);
}

.button-card-wrapper{
    display: flex;
    gap: 10px;
}

footer{
    margin-top: 40px;
    min-height: 20dvh;
    width: 100%;
    background: var(--light-bg);
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
}

.socials{
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.apc{
    width: 70%;
    padding: 1rem;
}

.apc a{
    padding: .3rem 1rem;
    font-size: 12px;
}

@media(max-width: 768px){

    .card-wrapper{
        flex-direction: column;
        gap: 10px;
    }

    .card{
        width: 100%;
    }

    header{
        text-align: center;
    }

    #about{
        flex-direction: column;
        gap: 10px;
        padding: 2rem 1rem;
        text-align: center;
    }

    #recent-projects, #upcoming-projects, #all-projects{
        padding: 1rem;
    }

    .icons-wrapper{
        justify-content: center;
    }

    .apc{
        width: 100%;
    }
} 