* {
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Sans Variable', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: lowercase;
    padding: 1rem 2rem; /* top and bot, left right */
    margin: 0rem;
}

@media (max-width: 500px) {
    body {
        padding: 1rem 1.5rem;
    }
}

h1{
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: grey;
}

/* focus on links using tab, important for accesibility */
a:focus{
    outline: 2px solid black;
    outline-offset: 2px;
}

/* header section*/

    ul.header {
        display: flex;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 1rem 0;
        gap: 2rem;
    }

    header .logo img {
        height: 6vh;               
        width: auto;
        transition: transform .6s ease-in-out;          
    }

    .logo img:hover{
        transform: rotate(360deg);
    }

    .header .right {
        margin-left: auto;
        display: none;
    }

    .header li a {
        display: inline-block;
        color: grey;
        text-decoration: none;
        font-weight: 700;
        transition: color .2s ease, transform 0.2s ease;
    }

    .header li a:hover,
    .header li a:focus {
        color: black;
        transform: scale(1.1);
    }

    @media (min-width: 400px) {
        .header .right{
            display: block;
        }
    }

    @media (max-width: 399px) {
        .header .left{
            margin-left: auto;
        }
    }

/* size of hero section always fll viewport?*/
section.hero {
    height: 100vh;
}

/* hero graphic, video */
    .bird{
        display: flex;
        max-width: 100%;
    }

/* darkmode-toggle, half circle changes while hovering */
    .half-circle{
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        border: 1.5px solid black;
        bottom: 50%;
        right: 1rem;
        z-index: 1;
        position: fixed;
    &.half-fill {
        background-image:
        linear-gradient(-90deg, black 50%, transparent 50%),
        linear-gradient(90deg, white 50%, transparent 50%);
    }
    }
    .half-circle:hover{
        width: 1.5rem;
        height: 1.5rem;
        border-radius: 50%;
        border: 1.5px solid black;
        bottom: 50%;
        right: 1rem;
        z-index: 1;
        position: fixed;
        cursor: pointer;
    &.half-fill {
        background-image:
        linear-gradient(-90deg, white 50%, transparent 50%),
        linear-gradient(90deg, black 50%, transparent 50%);
    }
    }

/* arrow-down to signalize scroll */
    .arrow{
        border: solid black;
        border-width: 0 3px 3px 0;
        display: inline-block;
        margin: 1rem;
        padding: 3px;
            &.down{
                transform: rotate(45deg);
                -webkit-transform: rotate(45deg);
            }
    }

/* grid for work overview */
.works{
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    list-style: none;
    margin: 0;
    padding: 1rem;
    justify-content: center; /* centers items horizontally */
    align-items: center; /* centers items vertically */
}

@media (min-width: 430px), (max-width: 1023) {
    .works{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .works{
    grid-template-columns: repeat(4, 1fr);
    }
}

.works .work {
    position: relative; 
    overflow: hidden;   
    border-radius: 8px;
    cursor: pointer;
}

/* image look*/
.works .work img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    transition: transform 0.3s ease; 
}

/* zoom when hover */
.works .work:hover img {
    transform: scale(1.05); 
}

/* overlay */
.works .work .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.8), rgba(255,255,255,0));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* overlay animation */
.works .work:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

ul.contact{
    list-style: none;
    margin: 20px 0 0 0; /* top, right, bottom, left */
    padding: 1rem 0;
}

.contact li a:hover,
.contact li a:focus{
    color: black;
}

/* look footer */
ul.footer{
    font-size: 0.75rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 1rem 0;
    gap: 1rem;
}

footer li a{
    color: grey;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

footer li a:hover,
footer li a:focus{
    color: black;
}