*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#0f172a;
    color:white;
    line-height:1.6;
}

/* ================= NAVBAR ================= */

header{
    position:fixed;
    width:100%;
    top:0;
    background:#111827;
    box-shadow:0 2px 10px rgba(0,0,0,.3);
    z-index:1000;
}

nav{
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
}

nav h2{
    color:#38bdf8;
}

nav ul{
    display:flex;
    list-style:none;
}

nav ul li{
    margin-left:25px;
}

nav a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

nav a:hover{
    color:#38bdf8;
}

/* ================= HERO ================= */

.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:20px;
}

.hero img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:5px solid #38bdf8;
    margin-bottom:20px;
}

.hero h1{
    font-size:48px;
}

.hero h3{
    color:#38bdf8;
    margin:10px 0;
}

.hero p{
    width:70%;
    max-width:700px;
}

.btn{
    margin-top:30px;
    padding:12px 30px;
    background:#38bdf8;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}

.btn:hover{
    background:#0284c7;
    transform:translateY(-3px);
}

/* ================= SECTION ================= */

section{
    padding:100px 10%;
}

section h2{
    text-align:center;
    margin-bottom:40px;
    color:#38bdf8;
}

/* ================= SKILLS ================= */

.card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.card{
    background:#1e293b;
    padding:30px;
    border-radius:10px;
    text-align:center;
    transition:.3s;
}

.card:hover{
    transform:translateY(-10px);
    background:#334155;
}

/* ================= PROJECT ================= */

.project{
    background:#1e293b;
    padding:25px;
    margin-bottom:20px;
    border-radius:10px;
    transition:.3s;
}

.project:hover{
    transform:scale(1.02);
}

/* ================= CONTACT ================= */

#contact p{
    text-align:center;
    margin:10px;
}

/* ================= FOOTER ================= */

footer{
    background:#111827;
    text-align:center;
    padding:25px;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

.hero h1{
    font-size:34px;
}

.hero p{
    width:95%;
}

nav{
    flex-direction:column;
}

nav ul{
    margin-top:15px;
    flex-wrap:wrap;
    justify-content:center;
}

nav ul li{
    margin:10px;
}

}

/* Fade Animation */

section{

    opacity:0;

    transform:translateY(50px);

    transition:1s;

}

section.show{

    opacity:1;

    transform:translateY(0);

}

/* Active Navbar */

.active{

    color:#38bdf8;

    font-weight:bold;

}

.skill{
    max-width:700px;
    margin:auto;
}

.progress{
    background:#334155;
    border-radius:30px;
    margin-bottom:20px;
    overflow:hidden;
}

.fill{
    padding:8px;
    color:white;
    text-align:right;
    font-size:14px;
}

.java{width:90%;background:#2563eb;}
.html{width:85%;background:#0ea5e9;}
.css{width:80%;background:#06b6d4;}
.js{width:75%;background:#0891b2;}
.net{width:85%;background:#0284c7;}

.social{

display:flex;

justify-content:center;

gap:20px;

margin-top:20px;

}

.social a{

text-decoration:none;

color:#38bdf8;

font-weight:bold;

}

.social a:hover{

color:white;

}

#topBtn{

position:fixed;

bottom:30px;

right:30px;

padding:12px 16px;

font-size:20px;

border:none;

border-radius:50%;

cursor:pointer;

display:none;

background:#38bdf8;

color:white;

}