*, *:before, *:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f4f4f4;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

/* HEADER */
header {
    width: 100%;
    height: 4rem;
    background-color: #333;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
}

.header-container {
    width: 60rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.header-container span,
.click-home {
    margin-left: 20px;
    cursor: pointer;
}

/* MAIN LAYOUT */
main {
    padding-top: 6rem;
}

/* HOME PAGE */
.home-page {
    background-color: #e0e0e0;
    width: 60rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.project-card {
    background-color: #d8d8d8;
    padding: 1rem;
    min-height: 12rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.4;
    transition: 0.2s ease;
}

.project-card:hover {
    background-color: #cfcfcf;
}

/* PROJECT & SHARED SECTION STYLING */
.project-page,
.contact-section,
.skills-section {
    background-color: #ddd;
    width: 60rem;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
}

/* SKILLS BOX */
.box {
    background: #ccc;
    padding: 1.5rem;
    border-radius: 8px;
    margin: auto;
    width: 30rem;
}

.hideAll {
    display: none;
}

/* CONTACT SECTION */
.contact-section h1 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: #333;
}

/* FORM CONTAINER */
.form-container {
    background: #ccc;
    padding: 2rem;
    border-radius: 8px;
    width: 30rem;
    margin: 0 auto;
    text-align: left;
}

/* LABELS */
.form-container label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.4rem;
    color: #333;
}

/* FORM FIELDS */
.form-container input[type="text"],
.form-container input[type="email"],
.form-container textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    background-color: #eee;
    margin-bottom: 1rem;
}

.form-container textarea {
    resize: vertical;
}

/* SEND BUTTON */
#send-form {
    background-color: #333;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

#send-form:hover {
    background-color: #555;
}

/* THANK YOU MESSAGE BOX */
.response-container {
    background: #ccc;
    padding: 1.5rem;
    border-radius: 8px;
    width: 30rem;
    margin: 2rem auto 0;
    text-align: center;
    display: none;
}

/* RESPONSIVE */
@media print, screen and (max-width: 40em) {

    header {
        height: auto;
        padding: 1rem 0;
    }

    .header-container {
        width: 95%;
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
    }

    .home-page,
    .project-page,
    .contact-section,
    .skills-section {
        width: 95%;
    }

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

    .form-container,
    .response-container {
        width: 90%;
        padding: 1.2rem;
    }

    #send-form {
        width: 100%;
    }
}
