* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "67";
    src: url(./fonts/PPMonumentNormal-Regular.woff2);
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: "67";
    color: #00A82D;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}
.grid{
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    padding: 0 2rem;
    gap: 0 1.25rem;
}


/* -------- HEADER -------- */

header {
    z-index: 20;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    padding: 0 2rem;
}

header nav ul {
    margin-block: 1px;
    display: flex;
    gap: 1rem;
    list-style: none;
}

header nav ul a:hover {
border-bottom: 0.1rem solid rgb(86, 181, 81);
}

@media (max-width: 577px) {
    header {
        padding: 0 1.5rem;
        position: fixed;
    }

}

/* -------- INTRO/MAIN -------- */

.intro{
    padding: 2rem;
    margin-bottom: 4rem;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
}

.intro .intro-logo{
    width: 80%;
}

.intro .intro-logo img{
    width: 100%;
    height: auto;
}

/* -------- WORKS/MAIN -------- */

.work{
    scroll-margin-top: 5rem;
}
.work .card{
    grid-column: span 4;
}

.work .card-image {
    aspect-ratio: 4/2.5;
    transition: transform 0.25s ease-in-out;
}

.work .card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 1rem;
}

.work .card-image:hover {
    width: 100%;
    height: auto;
    transform: rotate(4deg);
    }

.work .card-text {
    display: flex;
    font-size: 1.3rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    justify-content: space-between;
    line-height: 1.5rem;
}

@media (max-width: 577px) {
    .work .grid {
        grid-template-columns: 1fr; 
        padding: 1.5rem; 
    }
    .work .card-title {
        font-size: 1.1rem;
    }
    .work .card-date {
        font-size: 1.1rem;
    }
}

/* -------- ABOUT/MAIN -------- */

.about{
    scroll-behavior: smooth;
    height: 100dvh;
    display: flex;
    align-items: center;
}

.about .card-text{
    font-size: 2rem;
    grid-column: span 9;
} 

@media (max-width: 577px) {
    .about .card-text p {
        font-size: 1.3rem;  
    }
    .work .card-title {
        font-size: 1.1rem;
    }
    .work .card-date {
        font-size: 1.1rem;
    }
    .about .card-text {
        grid-column: span 12;
        margin-bottom: 1.5rem;
    }
    .about .grid{
        grid-template-columns: 1fr;
    }
}

/* -------- PROJECT -------- */

.project .project-logo {
    grid-column: 1;
}

.project .project-logo img {
    width: 4rem;
    height: auto;
}

.project .container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.5rem;
    padding: 2rem;
    margin-top: 3rem;
}

.project .project-text {
    position: sticky;
    top: 5rem;   
    padding-bottom: 2rem;
}

.project .project-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.project .project-date{
    margin-top: 1rem; 
    font-size: 0.8rem; 
}

.project .project-area{
    margin-top: 2rem; 
    font-size: 0.8rem; 
    
}

.project .project-images img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    
}

.project .project-images img~img, 
.project .project-images img~iframe, 
.project .project-images iframe~iframe, 
.project .project-images iframe~img {
    margin-top: 1.5rem;
    background-color: rgb(218, 218, 218);
    
}

.project .project-images iframe {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    border-radius: 1rem;
}


@media (max-width: 577px) {

       .project .container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

}

/* ======== FOOTER ======== */

footer {
    display: flex;
    align-items: center;
    height: 3rem;
    padding: 0 2rem;
}

footer nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

@media (max-width: 577px) {
    footer {
        font-size: .85rem;
        padding: 0 1.5rem;
    }
}
