*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI,Arial;
}

body{

background:#5FA0BB;
color:white;
overflow-x:hidden;

}

/* animated background canvas */

#network{
position:fixed;
top:0;
left:0;
z-index:-1;
}

/* header */

header{
text-align:center;
padding:60px 20px;
}

.header-top{
display:flex;
justify-content:space-between;
align-items:center;
max-width:1000px;
margin:auto;
}

.logo{
font-size:22px;
font-weight:bold;
}

#themeToggle{

background:white;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;

}

header h1{
font-size:40px;
margin-top:20px;
}

header p{
opacity:0.9;
margin-top:10px;
}

/* projects */

.projects{

display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
padding:40px;
max-width:1000px;
margin:auto;

}

.card{

background:white;
color:#333;
padding:30px;
border-radius:12px;
box-shadow:0 10px 25px rgba(0,0,0,0.25);
transition:0.35s;

}

.card:hover{

transform:translateY(-10px) scale(1.03);
box-shadow:0 18px 35px rgba(0,0,0,0.35);

}

.card h2{
margin-bottom:10px;
}

.card button{

margin-top:15px;
padding:10px 18px;
border:none;
background:#5FA0BB;
color:white;
border-radius:6px;
cursor:pointer;

}

footer{

text-align:center;
padding:30px;
opacity:0.8;

}

/* dark theme */

.dark{

background:#0f172a;
color:white;

}

.dark .card{

background:#1e293b;
color:white;

}

.dark .card button{

background:#38bdf8;

}