@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

body{
background:#050816;
color:white;
}

.projects{
padding:100px 10%;
}

.page-header{
text-align:center;
margin-bottom:40px;
}

.page-header h1{
font-size:3rem;
}

.page-header p{
color:#9f9f9f;
margin-top:10px;
}

.filters{
display:flex;
justify-content:center;
gap:15px;
margin-bottom:50px;
flex-wrap:wrap;
}

.filters button{
padding:12px 25px;
background:#10172e;
border:none;
color:white;
border-radius:50px;
cursor:pointer;
transition:.4s;
}

.filters button.active,
.filters button:hover{
background:#8a4fff;
}

.projects-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
gap:30px;
}

.project-card{
background:#0c1126;
border-radius:20px;
overflow:hidden;
border:1px solid rgba(255,255,255,.05);
transition:.4s;
}

.project-card:hover{
transform:translateY(-10px);
box-shadow:0 0 25px rgba(138,79,255,.4);
}

.project-card img{
width:100%;
height:220px;
object-fit:cover;
}

.project-content{
padding:25px;
}

.project-content h3{
margin-bottom:12px;
}

.project-content p{
color:#bdbdbd;
font-size:14px;
line-height:1.7;
}

.tech{
margin-top:20px;
display:flex;
flex-wrap:wrap;
gap:10px;
}

.tech span{
background:#171f39;
padding:8px 14px;
border-radius:50px;
font-size:12px;
color:#b38fff;
}

.buttons{
display:flex;
gap:15px;
margin-top:25px;
}

.buttons a{
text-decoration:none;
padding:12px 20px;
border-radius:50px;
font-size:14px;
transition:.4s;
}

.demo{
background:#8a4fff;
color:white;
}

.github{
border:1px solid #8a4fff;
color:#8a4fff;
}

.github:hover{
background:#8a4fff;
color:white;
}

.demo:hover{
transform:translateY(-3px);
}


nav ul{

display:flex;
list-style:none;
gap:30px;

}

nav ul li a{

text-decoration:none;
color:white;
transition:.3s;

}

nav ul li a:hover{

color:#7c5cff;

}

header{

position:fixed;
top:0;
left:0;
width:100%;
padding:25px 8%;
display:flex;
justify-content:space-between;
align-items:center;
background:rgba(5,8,22,.6);
backdrop-filter:blur(20px);
z-index:1000;

}

/* ==============================
   Mobile Responsive Navbar
============================== */

.menu-toggle{
    display:none;
    font-size:30px;
    color:#fff;
    cursor:pointer;
}

@media (max-width:768px){

header{
    padding:20px;
}

.menu-toggle{
    display:block;
    z-index:1001;
}

nav{
    position:fixed;
    top:80px;
    left:-100%;
    width:100%;
    background:#050816;
    transition:.4s ease;
    z-index:1000;
}

nav.active{
    left:0;
}

nav ul{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:30px 0;
}

.projects{
    padding:140px 20px 60px;
}

.page-header h1{
    font-size:2.2rem;
}

.projects-grid{
    grid-template-columns:1fr;
}

.project-card img{
    height:200px;
}

.buttons{
    flex-direction:column;
}

.buttons a{
    text-align:center;
}

}
