static/css/project.css

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Poppins', sans-serif;
}

.portfolio-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    background-color:#262525;
	color: white;

}

.navlist {
    display: flex;
    gap: 3.5rem;
    height: 15vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0px;
}


.navlist li {
    list-style: none;
}

.navlist li a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    color: #fff;
    position: relative;

}

.navlist li a::after,
.navlist .active::after {
    content: "";
    position: absolute;
    background: #fff;
    width: 100%;
    height: .1rem;
    left: 0;
    bottom: -1px;
    transform: scaleX(0);
    transition: transform .5s;
}


.navlist li a:hover::after,
.navlist .active::after {
    transform: scaleX(1);
}

.hamburger {
    display:none;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.navlist {
    display: flex;
    gap: 3.5rem;
}

.project-section{
    width:100%;
}

.main-text{
    padding-top: 140px;

}

.main-text h2{
    font-size:60px;
    line-height: 1;
    text-align: center;
    margin-bottom: 20px;

}

.main-text h2 span{
    color:aqua;


}

.project-content{
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap */
    justify-content: center; /* Centers items */
    gap: 20px;
    
}

.row {
    width: 350px; /* Fixed width for each item */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    border:#0ef solid;
    cursor: pointer;
    height: 245px;
    box-shadow: 0 0 20px rgba(38, 209, 228, 0.4);
}

.row img {
    width: 400px;
    height: 250px;
    border-radius: 8px;
    display: block;
    transition: transform 0.5s;
    padding-bottom: 10px;
}

.layer{
    width: 350px;
    height: 200px;
    background: linear-gradient(rgba(0,0,0,0,1),#0ef);
    position:absolute;
    border-radius: 8px;
    left:0;
    bottom:0;
    overflow: hidden;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 40px;
    transition: height 0.5s;

}

.layer h5{
    color:#fff;
    font-size: 15px;
    font-weight:500;
    margin-bottom: 8px;

}

.layer p{
    color:#fff;
    font-size:12px;
    line-height: 1.2;

}

.layer i{
    color: #e47908;
    margin-top:14px;
    font-size:15px;
    background:#0ef;
    width: 50px;
    height:50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.row:hover img{
    transform: scale(1.1);
}

.row:hover .layer{
    height:100%;
}


@media(max-width: 600px){

	.navlist {
        display: flex;
        flex-direction: column;
        position: absolute;
        background-color: #262525;
        top: 0;
        left: -100%; 
        width: 100%;
        height: 100vh; 
        z-index: 1000;
        justify-content: center; 
        align-items: center; 
        transition: left 0.5s ease;
    }

    
    .navlist.active {
        left: 0; 
    }

    
    .hamburger {
        display: block;
        font-size: 2rem;
        color: cyan;
        margin-top: 10px;
		margin-left: 20px;
        position: absolute;
        top: 1rem;
        left: 1rem;
        cursor: pointer;
        z-index: 1001; 
    }

    
    .navlist li {
        list-style: none;
        margin: 1.rem 0;
    }

    .navlist li a {
        color: #ffffff;
        font-size: 1.5rem;
        text-decoration: none;
        text-align: center;
    }

    .main-text{
        padding-top:80px;
        padding-bottom: 20px;
    
    }
    .main-text h2{
        font-size:40px;
        line-height: 1;
        text-align: center;
        margin-bottom: 20px;
    
    }
}    


@media(max-width: 1047px){

	.navlist {
        display: flex;
        flex-direction: column; 
        position: absolute;
        background-color: #262525;
        top: 0;
        left: -100%; 
        width: 100%;
        height: 100vh; 
        z-index: 1000;
        justify-content: center; 
        align-items: center; 
        transition: left 0.5s ease;
    }

    
    .navlist.active {
        left: 0; 
    }

    
    .hamburger {
        display: block;
        font-size: 2rem;
        color: cyan;
        margin-top: 10px;
		margin-left: 20px;
        position: absolute;
        top: 1rem;
        left: 1rem;
        cursor: pointer;
        z-index: 1001; 
    }

    
}    