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

html,
body{
    line-height: 1.4;
    font-weight: 300;  
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
}

.hero_section{
    background-image: url(images/developer.png);
    min-height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.text_container{
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2px;
    padding-left: 16px;
}

.lg_text{
font-size: 72px;
font-weight: 350;
}

.black_box{
    background-color: black;
    padding: 20px;
}

.black_box h2{
    font-size: 72px;
    color: white;
    text-align: center;
    font-weight: 300;
}

.black_box h2 span{
    font-weight: 400;
    font-size: 90px;
}

.work{
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    max-width: 1100px;
    margin: 50px auto;
}

.grid_item{
    display: flex;
    justify-content: center;
    align-items: center;
}

.card{
    max-width: 320px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 3px 5px 5px rgba(1,1,1,0.2);
    transition: 0.2s ease-in-out;
}

.card:hover{
    transform: scale(1.04);
     box-shadow: 3px 5px 5px rgba(1,1,1,0.3);
     transition: 0.2s ease-in-out;
}

.card_content{
    padding: 20px;
}

.card_content h3{
    margin-bottom: 10px;
}

.bottom_section {
    display: flex;
}

.contact,
.about {
    width: 50%;               /* Force equal width */
    min-height: 250px;
    padding: 20px;
    color: white;
}

.contact {
    background-color: #515603;
}

.about {
    background-color: #722300;
}

.about p,
.contact p {
    margin-bottom: 20px;
}

.about h2,
.contact h2 {
    font-size: 64px;
    font-weight: 300;         /* corrected from 300px */
}

footer{
    text-align: center;
    text-transform: uppercase;
    background-color: #000;
    padding: 20px;
    color: white;
}

@media(max-width: 786px){
    .hero_section{
        min-height: 50vh;
    }
    .text_container{
        padding: 10px 0;
        text-align: center;
    }
    .lg_text{
        font-size: 32px;
    }
    .black_box h2{
        font-size: 24px;
    }
    .black_box h2 span{
        font-weight: 400;
        font-size: 32px;
    }
    .bottom_section{
        flex-direction: column;
    }
    h1{
        font-size: 32px;
    }
    .about h2,
    .contact h2{
        font-size: 32px;
    }
    .bottom_section {
        flex-direction: column;
    }

    .contact,
    .about {
        width: 100%;          /* Full width on small screens */
        padding: 15px;
    }

    .about h2,
    .contact h2 {
        font-size: 28px;       /* Smaller heading */
    }

    .about p,
    .contact p {
        font-size: 16px;       /* Smaller paragraph text */
    }


}
