html{
    scroll-behavior: smooth;
}

h1{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

h2, h3, p{
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}


#header {
    width: 100%;
    height: 80vh;
    background-image: 
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url("../images/FinalImageRender2.png");
    background-size: cover;
    background-position: center;
    letter-spacing: 3px;
}

.header-text{
    text-align: center;
    margin-top: 18%;
    width: 100%;
}

.header-text h1{
    display: inline-block;
    font-size: 60px;

    padding: 20px;
    border-radius: 20px;
    margin: 0 auto;
    /* font-weight: 700; */
}

/* ----------portfolio---------- */
#portfolio{
    padding: 50px 0;
}

.work-list{
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers horizontally */
    gap: 100px;
    margin-top: 50px;
}

.work-entry{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    scroll-margin-top: 120px;

}

.work-entry h2{
    text-align: center;
}

.work {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-items: center;
}

.work img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s;
}

.work img:hover {
    transform: scale(1.05);
}

.work a {
    position: relative;
    display: block;
    overflow: hidden;
}

.layer {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.layer h3 {
    color: white;
    font-size: 20px;
    letter-spacing: 2px;
}

.work a:hover .layer {
    opacity: 1;
}
/* ----------contact---------- */

.row{
    display: flex;
}

.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: rgb(178, 182, 68);
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 40px;
    margin-right: 15px;
    color: rgb(178, 182, 68);
    display: inline-block;
    transition: 0.5s;
}

.social-icons a:hover {
    color: rgb(181, 185, 77);
    transform: translateY(-5px);
}

.btn{
    display: inline-block;
    margin: 50px auto;
    margin: 15px;
    margin-top: 20px;
    width: fit-content;
    border: 1px solid rgb(178, 182, 68);
    padding: 14px 60px;
    border-radius: 6px;
    cursor: pointer;

    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    background: rgb(142, 145, 41);
    color: white;
    transition: 0.5s;
}

.btn:hover{
    background: white;
    color: rgb(181, 185, 77);
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: white;
    padding: 15px;
    margin: 15px;
    color: gray;
    font-size: 18px;
    border-radius: 6px;
}

/* ----------css for small screen---------- */

@media only screen and (max-width: 600px) {
    #header {
        width: 100%;
        height: 70vh;
        background-image:
            linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
            url("../images/FinalImageRender2.png");
        background-size: cover;
        background-position: center;
    }

    .header-text {
        margin-top: 35%;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        font-size: 16px;
        text-align: center;
    }

    .header-text h1 {
        font-size: 32px;
        line-height: 1.2;
        padding: 10px;
        letter-spacing: 1px;
        text-align: center;
    }

    .header-text h2 {
        font-size: 16px;
        line-height: 1.4;
        letter-spacing: 1px;
        padding: 0 10px;
    }

    nav ul {
        background: rgb(142, 145, 41);
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-xmark {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .work-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-top: 30px;
    }

    .work-entry {
        width: 90%;
        max-width: 400px;
    }

    .work-entry h3 {
        text-align: center;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .work {
        width: 100%;
        height: 220px;
    }

    .work img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .layer {
        padding: 0 20px;
        font-size: 13px;
    }

    .layer h3 {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .layer a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 16px;
    }

    .row {
        display: block;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
        width: 100%;
    }

    .contact-left p {
        font-size: 16px;
    }

    .social-icons a {
        font-size: 32px;
        margin-right: 12px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    form input,
    form textarea {
        width: 100%;
        margin: 10px 0;
        font-size: 16px;
        box-sizing: border-box;
    }
}