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

html {
    font-size: 16px;
    color: white;
}

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

body>header {
    margin: 0;
    width: 100%;
    height: 6rem;
    position: fixed;
    color: aliceblues;
}

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

}

.header-container>div {
    margin: 1rem 0;
    height: 4rem;
    line-height: 4rem;
}

.click-home {
    width: 150px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.navigation span {
    width: 100px;
}

.navigation span:hover {
    border:solid 2px #4cc6ff;
    box-shadow: 0 4px 8px rgba(4, 27, 46, 0.523), 0 6px 20px rgba(3, 32, 80, 0.727);

    border-radius: 10px;
    width: 100px;
}

main {
    background-image: url(../assets/images/bodybg.jpg);
    background-size: cover;
    padding-top: 6rem;
    background-attachment: fixed;
}

.home-page {
    /* background-color: #49a3f728; */
    height: 165rem;
    width: 60rem;
    margin: 0 auto;
}

.hero-page {
    padding: 1rem;
    height: 42rem;
    width: 100%;
    background-image: url(../assets/images/heroImg.jpg);
    background-size: cover;
    border:solid 1px #4cc6ff32;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(4, 27, 46, 0.523), 0 6px 20px rgba(3, 32, 80, 0.727);
}

.project-container {
    margin: 1rem auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 58rem;
}

.section-header {
    height: 3rem;
    line-height: 3rem;
    margin-top: 1rem;
    text-align: left;
    padding: 0 0 0 2rem;
    background-color: #72b7f752;
}

.project-card {
    height: 16rem;
    width: 31%;
    border-radius: 5px;
    background-size: cover;
    overflow: hidden;
}

/* ABOUT SECTION */
.about-container {
    margin: 1rem auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem 0 2rem;
}

.about-card-img {
    padding: 1rem;
    height: 21rem;
    width: 28rem;
}

.about-card-txt {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 1rem;
}

.about-txt {
    height: 16rem;
    width: 27rem;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: left;
    line-height: 1.8rem;
}

.skill-icon {
    height: 5rem;
    width: 27rem;
    overflow: hidden;
}


/* Contact Section */
.contact-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    color: #fff;
}

/* Intro Text */
.contact-card-txt {
    flex: 1 1 300px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 20px;
    border-radius: 6px;
}

/* Form Container */
.form-container {
    flex: 1 1 300px;
}

form p {
    margin-bottom: 15px;
}

label {
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    text-align: left;
    color: #4cc6ff;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px;
    background: #0c0c0c;
    border: 1px solid #4cc6ff50;
    border-radius: 4px;
    color: #fff;
    font-size: 0.9rem;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #4cc6ff;
    box-shadow: 0 0 5px #4cc6ff80;
}

/* Button */
#send-form {
    background: #4cc6ff;
    border: none;
    padding: 10px 18px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.3s;
}

#send-form:hover {
    background: #32b4eb;
}

/* Response Message */
.response-container {
    width: 100%;
    background: #4cc6ff10;
    padding: 15px;
    border-left: 3px solid #4cc6ff;
    border-radius: 4px;
    margin-top: 20px;
}

.project-page {
    margin: 0 auto;
    height: 40rem;
    width: 60rem;
    padding: 1rem;
    background-color: #424242;
}


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


@media (max-width: 40em) {

    /* Header */
    body > header {
        height: 4rem;
    }

    .header-container {
        width: 100%;
        flex-direction: row; 
        display: flex;
        justify-content: space-between;
        gap:20px;
    }

    .header-container>div {
        margin: 1rem 0;
        height: 2rem;
        line-height: 2rem;
        font-size: 10px;
    }


    .navigation {
        width: 60%;
        justify-content: flex-end;
    }
    
    .hero-page {
        margin-top: -30px;
        height: 30rem;   
    }

    .home-page,
    .project-page {
        width: 100%;
        height: 187rem;
    }

    .section-header {
        padding-left: 1rem;
        font-size: 3.5rem;
        color: #4cc6ff;
    }

    .project-container {
        width: 100%;
        padding: 0 1rem; 
    }

    .project-container {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 1rem;
    }
    
    .project-card {
        width: auto;
        border-radius: 5px; 
        background-size: cover;
        overflow: hidden;
    }

    .about-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        flex-direction: unset;
        align-items: unset;
        padding: 0 1rem;
    }

    .about-card-img {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        width: 100%; 
        height: auto; 
        min-height: 10rem;
    }

    .about-txt {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
        width: 100%; 
    }
    
    .skill-icon {
        grid-column: 1 / -1; 
        grid-row: 2 / 3;
        width: 100%; 
    }
    
    .contact-container {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }
    
    .contact-card-txt,
    .contact-card-lable {
        width: 100%;
    }

    .contact-card-txt {
        height: 15rem;
    }

    .name-lable {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        width: 100%; 
        flex-direction: row;
    }
    
    .name-lable .fist-name,
    .name-lable .last-name {
        width: 50%;
        width: calc(50% - 0.5rem); 
    }

    .email-msg-lable {
        width: 100%;
    }
    
    .email,
    .message,
    .submit {
        width: 100%;
    }
}

/* SCROLL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}