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

html{
    scroll-behavior:smooth;
}

body{
    background:#f4f4f4;
    color:#333;
    transition:.3s;
}

body.dark{
    background:#222;
    color:white;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:grey;
    color:white;
    position:sticky;
    top:0;
}

nav ul{
    display:flex;
    list-style:none;
}

nav li{
    margin-left:20px;
}

nav a{
    color:white;
    text-decoration:none;
}

#modeBtn{
    border:none;
    background:white;
    padding:8px 12px;
    cursor:pointer;
    border-radius:5px;
}

.hero{
    text-align:center;
    padding:80px 20px;
}

.hero img{
    width:170px;
    height:170px;
    border-radius:50%;
    object-fit:cover;
}

.hero h1{
    margin:20px 0;
}

.btn{
    display:inline-block;
    margin-top:20px;
    background:grey;
    color:white;
    padding:12px 25px;
    text-decoration:none;
    border-radius:5px;
}

section{
    padding:70px 10%;
}

.cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 0 10px rgba(0,0,0,.1);
    transition:.3s;
}

body.dark .card{
    background:#333;
}

.card:hover{
    transform:translateY(-8px);
}

.skill{
    margin:20px 0;
}

.bar{
    background:#ccc;
    height:18px;
    border-radius:20px;
}

.fill{
    height:100%;
    border-radius:20px;
}

.html{
    width:90%;
    background:#ff5722;
}

.css{
    width:80%;
    background:#2196f3;
}

.js{
    width:70%;
    background:#ffc107;
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

input,
textarea{
    padding:15px;
}

button{
    padding:15px;
    background:grey;
    color:white;
    border:none;
    cursor:pointer;
}

footer{
    text-align:center;
    padding:20px;
    background:grey;
    color:white;
}

@media(max-width:768px){

nav{
    flex-direction:column;
}

nav ul{
    margin:15px 0;
    flex-wrap:wrap;
    justify-content:center;
}

}





