*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}
body{
    margin: 0;
    padding: 0;
    background-color: #f1f2f4;
    color: #202020;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

body > header{
    width: 100%;
    height: 4.0rem;
    background-color: #2b2d42;
    position: fixed;
    color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.header-container{
    width: min(60rem, 92vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-container > div{
    height: 4rem;
    line-height: 4rem;
    display: flex;
    gap: 1.5rem;
}

main{
    padding-top: 5.5rem;
}

.project-page{
    background-color: #d6d9de;
    color: #1f1f1f;
    border-radius: 0.75rem;
    width: min(60rem, 94vw);
    margin: 0 auto 2.5rem auto;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    box-shadow: 0 8px 24px rgba(32, 34, 44, 0.12);
}

.project-page__content{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.project-page__header{
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-page__header h2{
    margin: 0;
    font-size: 1.75rem;
    color: #1f2127;
}

.project-page__summary{
    margin: 0;
    color: #43464f;
    max-width: 42rem;
    line-height: 1.5;
}

.project-placeholder{
    border-radius: 0.75rem;
    border: 1px solid #b7bcc6;
    background-color: #c0c4cc;
    box-shadow: 0 10px 26px rgba(24, 26, 36, 0.12);
}

.project-placeholder--hero{
    height: 14rem;
}

.project-page__tiles{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1.25rem;
}

.project-placeholder--tile{
    height: 10rem;
}

.project-placeholder--muted{
    background-color:  #c9cdd4;
}

.project-placeholder--accent{
    background-color:  #b1b6bf;
}

.home-page{
    background-color: #eef0f3;
    height: fit-content;
    width: min(60rem, 94vw);
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(23, 27, 44, 0.08);
}

.hero-section, .contact-me, .skills-section{
    margin-top: 2rem;
}
.hero-section{
    height: 30rem;
    background: linear-gradient(135deg, #f4f5f7, #e1e3e8);
    border-radius: 1rem;
    margin: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30333b;
    box-shadow: 0 12px 30px rgba(41, 46, 56, 0.1);
}
.contact-me{
    background: linear-gradient(135deg, #dfe4ee, #c6cddc);
    border-radius: 1rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 45px rgba(23, 25, 34, 0.16);
}

.contact-card{
    width: 100%;
    max-width: 52rem;
    background-color: transparent;
    border-radius: 1rem;
    padding: 2.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.contact-card__intro{
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    color: #2d3038;
}

.contact-card__intro h2{
    margin: 0;
    font-size: 1.75rem;
}

.contact-card__intro p{
    margin: 0;
    color: #5c5f68;
}

.contact-image__placeholder{
    width: 100%;
    height: 9rem;
    border-radius: 0.85rem;
    border: 1px solid #babec5;
    background-color: #cfd3d9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #394053;
    box-shadow: 0 12px 26px rgba(32, 34, 44, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.contact-form{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.25rem 1.5rem;
}

.contact-form__group{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.contact-form__group label{
    font-weight: 600;
    font-size: 0.95rem;
    color: #353845;
}

.contact-form__group input,
.contact-form__group textarea{
    border-radius: 0.65rem;
    border: 1px solid #cfd4de;
    padding: 0.75rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    background-color: #fdfdff;
    color: #1f2127;
    box-shadow: 0 6px 16px rgba(27, 30, 36, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus{
    outline: none;
    border-color: #7581ff;
    box-shadow: 0 12px 28px rgba(90, 109, 255, 0.18);
}

.contact-form__group textarea{
    resize: vertical;
    min-height: 7rem;
}

.contact-form__group--full{
    grid-column: 1 / -1;
}

.contact-form button{
    grid-column: 1 / -1;
    border: none;
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    background-color: #5c7cfa;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 30px rgba(93, 124, 250, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form button:hover{
    transform: translateY(-1px);
    box-shadow: 0 24px 36px rgba(93, 124, 250, 0.4);
}

.contact-form button:active{
    transform: translateY(1px);
    box-shadow: 0 12px 20px rgba(93, 124, 250, 0.32);
}

.response-container{
    margin-top: 1.5rem;
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    width: min(36rem, 90vw);
    margin-left: auto;
    margin-right: auto;
    color: #394053;
    box-shadow: 0 12px 28px rgba(23, 27, 44, 0.08);
}

.skills-section{
    height: 18rem;
    background-color: #dfe2e8;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d3038;
    box-shadow: 0 6px 22px rgba(29, 30, 34, 0.08);
}

.project-container{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-card{
    background-color: #cfd3d9;
    padding: 1.25rem;
    height: 16rem;
    margin-top: 2rem;
    flex: 1 1 18rem;
    min-width: 14rem;
    max-width: 19rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: #1f2127;
    border: 1px solid #babec5;
    box-shadow: 0 8px 18px rgba(32, 34, 44, 0.08);
}

.hideAll, .response-container{
    display: none;
}

.pointer{
    cursor: pointer;
}

.hero-section>h1{
    color: #000;
}

h1{
    color: #2b2d42;
}

/* Responsive Design */

@media (max-width: 992px){
    .project-card{
        flex: 1 1 15rem;
        max-width: 100%;
    }
    .project-page{
        padding: 2.25rem 1.75rem;
    }
}

@media (max-width: 768px){
    body > header{
        height: auto;
        padding: 0.75rem 0;
    }
    main{
        padding-top: 7.5rem;
    }
    .header-container{
        width: min(60rem, 100vw);
        padding: 0 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.75rem;
    }
    .header-container > div{
        height: auto;
        line-height: 1.5;
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: flex-start;
    }
    .home-page, 
    .project-page{
        padding: 2rem 1.5rem;
    }
    .project-container{
        flex-direction: column;
        align-items: stretch;
    }
    .project-card{
        min-width: unset;
        width: 100%;
    }
    .hero-section{
        height: auto;
        padding: 4rem 1rem;
        margin: 0;
    }
    .contact-me{
        padding: 2.25rem 1.5rem;
    }
    .contact-card{
        grid-template-columns: 1fr;
        padding: 1.75rem;
    }
    .contact-form{
        gap: 1rem;
    }
    .skills-section{
        height: auto;
        padding: 3rem 1rem;
    }
    .project-placeholder--hero{
        height: 12rem;
    }
    .project-placeholder--tile{
        height: 8rem;
    }
}

@media (max-width: 480px){
    .header-container{
        padding: 0 1rem;
    }
    .project-page{
        padding: 1.75rem 1.25rem;
    }
    .project-page__tiles{
        gap: 1rem;
    }
    .project-card{
        padding: 1rem;
        height: auto;
    }
    .contact-me{
        padding: 2rem 1rem;
    }
    .contact-card{
        padding: 1.5rem;
    }
    .skills-section{
        padding: 2.5rem 1rem;
    }
}
