*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f5f7fa;
color:#222;
transition:.4s;
}

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 8%;
background:#0d6efd;
position:sticky;
top:0;
}

.logo{
color:white;
}

nav a{
text-decoration:none;
color:white;
margin:15px;
font-weight:500;
}

nav button{
padding:8px 12px;
border:none;
border-radius:5px;
cursor:pointer;
}

.hero{
display:flex;
justify-content:space-around;
align-items:center;
padding:80px 8%;
flex-wrap:wrap;
}

.hero-text{
max-width:550px;
}

.hero-text h1{
font-size:48px;
}

.hero-text span{
color:#0d6efd;
}

.hero-text h3{
margin:15px 0;
}

.hero-text p{
line-height:1.8;
}

.hero-img img{
width:300px;
border-radius:50%;
box-shadow:0 10px 20px rgba(0,0,0,.2);
}

.btn{
display:inline-block;
margin-top:25px;
padding:12px 25px;
background:#0d6efd;
color:white;
text-decoration:none;
border-radius:8px;
}

section{
padding:80px 8%;
}

section h2{
text-align:center;
margin-bottom:40px;
font-size:35px;
}

.cards{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
}

.card,.project,.edu{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,.1);
transition:.4s;
}

.card:hover,
.project:hover{
transform:translateY(-8px);
}

form{
max-width:600px;
margin:auto;
display:flex;
flex-direction:column;
gap:20px;
}

input,textarea{
padding:15px;
border:1px solid #ccc;
border-radius:8px;
}

textarea{
height:140px;
resize:none;
}

form button{
padding:15px;
border:none;
background:#0d6efd;
color:white;
font-size:16px;
border-radius:8px;
cursor:pointer;
}

footer{
padding:20px;
text-align:center;
background:#0d6efd;
color:white;
}

.dark{
background:#121212;
color:white;
}

.dark .card,
.dark .project,
.dark .edu,
.dark input,
.dark textarea{
background:#1f1f1f;
color:white;
}

.dark header{
background:#000;
}

.dark footer{
background:#000;
}

@media(max-width:768px){

.hero{
text-align:center;
}

.hero-text h1{
font-size:36px;
}

.hero-img{
margin-top:30px;
}

nav{
display:flex;
flex-wrap:wrap;
justify-content:center;
}

}