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

html{
    scroll-behavior:smooth;
}

body{
    background:#0d1117;
    color:#e6edf3;
    line-height:1.7;
}

/* Navigation */

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:#161b22;
    border-bottom:1px solid #30363d;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    font-size:28px;
    font-weight:bold;
    color:#58a6ff;
}

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

nav ul li{
    margin-left:30px;
}

nav ul li a{
    text-decoration:none;
    color:#e6edf3;
    transition:.3s;
}

nav ul li a:hover{
    color:#58a6ff;
}

/* Hero */

.hero{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:80px 8%;
    gap:60px;
    flex-wrap:wrap;
}

.hero-text{
    flex:1;
    min-width:300px;
}

.hero-text h1{
    font-size:50px;
    margin-bottom:10px;
}

.hero-text span{
    color:#58a6ff;
}

.hero-text h3{
    color:#8b949e;
    margin-bottom:20px;
}

.hero-text p{
    margin-bottom:30px;
    color:#c9d1d9;
}

.btn{
    display:inline-block;
    background:#238636;
    color:white;
    padding:12px 28px;
    border-radius:8px;
    text-decoration:none;
    transition:.3s;
}

.btn:hover{
    background:#2ea043;
    transform:translateY(-3px);
}

/* Profile Card */

.profile-card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:12px;
    padding:30px;
    text-align:center;
    width:300px;
    transition:.3s;
}

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

.avatar{
    width:120px;
    height:120px;
    border-radius:50%;
    background:#58a6ff;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    font-weight:bold;
    margin:0 auto 20px;
}

/* Sections */

section{
    padding:70px 8%;
}

section h2{
    text-align:center;
    margin-bottom:35px;
    color:#58a6ff;
    font-size:34px;
}

/* Card */

.card{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:10px;
    padding:30px;
}

/* Skills */

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

.skills div{
    background:#161b22;
    border:1px solid #30363d;
    padding:18px;
    text-align:center;
    border-radius:8px;
    transition:.3s;
}

.skills div:hover{
    background:#21262d;
    color:#58a6ff;
    transform:translateY(-5px);
}

/* Projects */

.projects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.project{
    background:#161b22;
    border:1px solid #30363d;
    border-radius:10px;
    padding:25px;
    transition:.3s;
}

.project:hover{
    transform:translateY(-8px);
    border-color:#58a6ff;
}

.project h3{
    color:#58a6ff;
    margin-bottom:15px;
}

/* Contact */

#contact p{
    margin:12px 0;
}

/* Footer */

footer{
    margin-top:50px;
    padding:30px;
    text-align:center;
    border-top:1px solid #30363d;
    color:#8b949e;
}

/* Responsive */

@media(max-width:900px){

nav{
    flex-direction:column;
}

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

nav ul li{
    margin:10px;
}

.hero{
    flex-direction:column;
    text-align:center;
}

.hero-text h1{
    font-size:40px;
}

.profile-card{
    width:100%;
    max-width:320px;
}

}
