/* ===========================
   GOOGLE FONT & RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0d1117;
    color:#f5f5f5;
    line-height:1.6;
}

img{
    width:100%;
    display:block;
}

a{
    text-decoration:none;
    color:white;
}

ul{
    list-style:none;
}

/* ===========================
   NAVBAR
=========================== */

header{
    position:sticky;
    top:0;
    z-index:1000;
    background:#111827;
    border-bottom:1px solid #222;
}

.navbar{
    width:90%;
    max-width:1200px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 0;
}

.logo{
    color:#ff4d4d;
    font-size:28px;
    font-weight:700;
}

.nav-links{
    display:flex;
    gap:30px;
}

.nav-links a{
    transition:.3s;
}

.nav-links a:hover{
    color:#ff4d4d;
}

/* ===========================
   HERO SECTION
=========================== */

.hero{

    width:90%;
    max-width:1200px;

    margin:70px auto;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;

}

.hero-content{
    flex:1;
}

.hero-content h1{
    font-size:55px;
    margin-bottom:10px;
}

.hero-content h1 span{
    color:#ff4d4d;
}

.hero-content h2{
    font-size:32px;
    color:#bbbbbb;
    margin-bottom:20px;
}

.hero-content p{
    font-size:18px;
    margin-bottom:30px;
    color:#d6d6d6;
}

.hero-buttons{
    display:flex;
    gap:20px;
}

.btn{

    background:#ff4d4d;
    color:white;

    padding:14px 28px;

    border-radius:8px;

    transition:.3s;

    font-weight:600;
}

.btn:hover{

    background:white;
    color:#111827;

}

.secondary{

    background:transparent;

    border:2px solid #ff4d4d;

}

.secondary:hover{

    background:#ff4d4d;
    color:white;

}

.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{

    width:350px;
    height:350px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #ff4d4d;

    box-shadow:0 0 30px rgba(255,77,77,0.5);

    transition:all 0.4s ease;
}

.hero-image img:hover{

    transform:scale(1.05);

    box-shadow:0 0 45px rgba(255,77,77,0.8);

}

/* ===========================
   SECTIONS
=========================== */

section{

    width:90%;
    max-width:1200px;

    margin:80px auto;

}

section h2{

    text-align:center;

    font-size:40px;

    margin-bottom:40px;

    color:#ff4d4d;

}

/* ===========================
   ABOUT
=========================== */

#about p{

    max-width:900px;

    margin:auto;

    text-align:center;

    font-size:18px;

}

/* ===========================
   SKILLS
=========================== */

.skills-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:30px;

}

.skill-card{

    background:#161b22;

    padding:30px;

    border-radius:12px;

    transition:.4s;

    border:1px solid #222;

}

.skill-card:hover{

    transform:translateY(-10px);

    border-color:#ff4d4d;

}

.skill-card h3{

    margin-bottom:20px;

    color:#ff4d4d;

}

.skill-card li{

    margin-bottom:12px;

}

/* ===========================
   CERTIFICATES
=========================== */

.certificate-btn{
    margin-top:20px;
}

.certificate-btn .btn{
    display:inline-block;
}


/* ===========================
   PROJECTS
=========================== */

.projects{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:30px;

}

.project-card{

    background:#161b22;

    padding:30px;

    border-radius:12px;

    transition:.4s;

    border:1px solid #222;

}

.project-card:hover{

    transform:translateY(-10px);

    border-color:#ff4d4d;

}

.project-card h3{

    color:#ff4d4d;

    margin-bottom:15px;

}

/* ===========================
   EDUCATION
=========================== */

.education-card{

    background:#161b22;

    max-width:700px;

    margin:auto;

    padding:30px;

    border-radius:12px;

    text-align:center;

}

/* ===========================
   CONTACT
=========================== */

#contact{

    text-align:center;

}

#contact p{

    margin:10px 0;

}

.social-links{

    margin-top:30px;

    display:flex;

    justify-content:center;

    gap:25px;

}

.social-links a{

    background:#ff4d4d;

    padding:12px 20px;

    border-radius:8px;

    transition:.3s;

}

.social-links a:hover{

    background:white;

    color:#111827;

}

/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:80px;

    background:#111827;

    text-align:center;

    padding:25px;

    color:#999;

}

/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#111827;

}

::-webkit-scrollbar-thumb{

    background:#ff4d4d;

    border-radius:20px;

}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:900px){

    .hero{

        flex-direction:column-reverse;

        text-align:center;

    }

    .hero-buttons{

        justify-content:center;

    }

    .hero-content h1{

        font-size:42px;

    }

    .hero-content h2{

        font-size:24px;

    }

    .hero-image img{

        width:250px;
        height:250px;

    }

}

@media(max-width:700px){

    .navbar{

        flex-direction:column;

        gap:20px;

    }

    .nav-links{

        flex-wrap:wrap;

        justify-content:center;

        gap:15px;

    }

    section h2{

        font-size:32px;

    }

    .hero-content h1{

        font-size:34px;

    }

    .hero-content p{

        font-size:16px;

    }

}

@media(max-width:500px){

    .hero-buttons{

        flex-direction:column;

    }

    .btn{

        width:100%;

        text-align:center;

    }

    .social-links{

        flex-direction:column;

    }

}