*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
scroll-behavior:smooth;
}

body{
background:#0f172a;
color:#fff;
overflow-x:hidden;
}

header{
position:fixed;
top:0;
left:0;
width:100%;
padding:18px 8%;
display:flex;
justify-content:space-between;
align-items:center;
background:rgba(15,23,42,.9);
backdrop-filter:blur(12px);
z-index:1000;
transition:.3s;
}

header.scrolled{
padding:12px 8%;
box-shadow:0 10px 30px rgba(0,0,0,.4);
}

.logo{
font-size:28px;
font-weight:700;
color:#38bdf8;
}

nav a{
margin-left:30px;
text-decoration:none;
color:white;
transition:.3s;
}

nav a:hover{
color:#38bdf8;
}

section{
min-height:100vh;
padding:120px 10%;
display:flex;
align-items:center;
}

.hero{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:50px;
}

.hero-text{
flex:1;
}

.hero h1{
font-size:58px;
margin-bottom:20px;
}

.hero h2{
font-size:28px;
color:#38bdf8;
height:40px;
margin-bottom:20px;
}

.hero p{
color:#cbd5e1;
line-height:1.8;
max-width:550px;
margin-bottom:35px;
}

.btn{
display:inline-block;
padding:14px 30px;
background:#38bdf8;
border-radius:30px;
color:#000;
font-weight:bold;
text-decoration:none;
transition:.3s;
}

.btn:hover{
transform:translateY(-5px);
box-shadow:0 15px 30px rgba(56,189,248,.35);
}

.hero-image{
flex:1;
display:flex;
justify-content:center;
}

.circle{
width:320px;
height:320px;
border-radius:50%;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(135deg,#38bdf8,#9333ea);
font-size:90px;
font-weight:bold;
}

.about,
.skills,
.projects,
.contact{
display:block;
}

.section-title{
text-align:center;
font-size:40px;
color:#38bdf8;
margin-bottom:40px;
}

.about p{
max-width:900px;
margin:auto;
text-align:center;
line-height:2;
color:#cbd5e1;
}

.skill-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:25px;
margin-top:40px;
}

.skill{
background:#1e293b;
padding:30px;
text-align:center;
border-radius:15px;
transition:.3s;
}

.skill:hover{
transform:translateY(-10px);
}

.projects-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
margin-top:40px;
}

.card{
background:#1e293b;
padding:30px;
border-radius:18px;
transition:.3s;
}

.card:hover{
transform:translateY(-10px);
}

.card h3{
color:#38bdf8;
margin-bottom:15px;
}

.card p{
line-height:1.8;
color:#cbd5e1;
}

.contact-box{
max-width:600px;
margin:auto;
text-align:center;
}

.contact-box p{
margin:15px 0;
color:#cbd5e1;
}

footer{
background:#020617;
padding:30px;
text-align:center;
color:#94a3b8;
}

#topBtn{
position:fixed;
bottom:25px;
right:25px;
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#38bdf8;
font-size:22px;
cursor:pointer;
display:none;
}

@media(max-width:900px){

.hero{
text-align:center;
}

.hero h1{
font-size:42px;
}

.circle{
width:240px;
height:240px;
font-size:70px;
}

nav{
display:none;
}

}