/* Google Font */

@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;
    scroll-behavior:smooth;
}

body{
    background:#0d1117;
    color:#fff;
    line-height:1.6;
}

/* Header */

header{
    position:fixed;
    top:0;
    width:100%;
    background:#161b22;
    padding:20px 8%;
    z-index:1000;
    box-shadow:0 5px 10px rgba(0,0,0,.3);
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    color:#fff;
    font-size:30px;
}

.logo span{
    color:#00d9ff;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:30px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:.3s;
}

nav ul li a:hover{
    color:#00d9ff;
}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:120px 8% 60px;
    gap:40px;
}

.hero-text{
    flex:1;
}

.hero-text h1{
    font-size:55px;
}

.hero-text span{
    color:#00d9ff;
}

.hero-text h3{
    margin:15px 0;
    color:#ccc;
}

.hero-text p{
    color:#bbb;
    margin-bottom:25px;
}

.btn{
    display:inline-block;
    padding:12px 30px;
    background:#00d9ff;
    color:#111;
    text-decoration:none;
    border-radius:30px;
    font-weight:600;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
}

.hero-image{
    flex:1;
    text-align:center;
}

.hero-image img{
    width:320px;
    height:320px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #00d9ff;
    box-shadow:0 10px 30px rgba(0,217,255,.4);
}

/* Sections */

section{
    padding:80px 8%;
}

section h2{
    text-align:center;
    font-size:38px;
    margin-bottom:40px;
    color:#00d9ff;
}

/* About */

.about p{
    max-width:900px;
    margin:auto;
    text-align:center;
    color:#ccc;
    font-size:18px;
}

/* Skills */

.skill-box{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:25px;
}

.card{
    background:#161b22;
    padding:35px;
    border-radius:15px;
    text-align:center;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
}

.card i{
    font-size:55px;
    color:#00d9ff;
    margin-bottom:15px;
}

/* Projects */

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.project-card{
    background:#161b22;
    border-radius:15px;
    overflow:hidden;
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-card h3{
    margin:20px;
}

.project-card p{
    margin:0 20px 20px;
    color:#ccc;
}

/* Contact */

form{
    max-width:700px;
    margin:auto;
}

form input,
form textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:none;
    border-radius:10px;
    background:#161b22;
    color:white;
}

form button{
    width:100%;
    padding:15px;
    background:#00d9ff;
    border:none;
    border-radius:10px;
    font-size:18px;
    cursor:pointer;
    transition:.3s;
}

form button:hover{
    background:#00b8d4;
}

/* Footer */

footer{
    text-align:center;
    padding:25px;
    background:#161b22;
    color:#aaa;
}

/* Responsive */

@media(max-width:992px){

.hero{
    flex-direction:column-reverse;
    text-align:center;
}

.hero-text h1{
    font-size:42px;
}

.hero-image img{
    width:260px;
    height:260px;
}

nav{
    flex-direction:column;
}

nav ul{
    margin-top:15px;
    flex-wrap:wrap;
    justify-content:center;
}

nav ul li{
    margin:10px;
}

}

@media(max-width:576px){

.hero-text h1{
    font-size:34px;
}

section h2{
    font-size:30px;
}

.hero-image img{
    width:220px;
    height:220px;
}

}