/* GENERAL */

body{
font-family:'Poppins', sans-serif;
margin:0;
background:#0f172a;
color:white;
line-height:1.6;
overflow-x:hidden;
}

/* HEADER */

header{
background:#020617;
padding:10px 8%;
position:sticky;
top:0;
z-index:1000;
box-shadow:0 2px 10px rgba(0,0,0,0.4);
}

nav{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:22px;
font-weight:bold;
}

nav ul{
display:flex;
gap:25px;
list-style:none;
margin:0;
padding:0;
}

nav a{
color:white;
text-decoration:none;
font-weight:500;
transition:0.3s;
}

nav a:hover{
color:#38bdf8;
}

/* HERO SECTION */

.hero{
text-align:center;
padding:150px 20px;
background:linear-gradient(135deg,#0f172a,#1e293b);
}

.hero h1{
font-size:48px;
margin-bottom:10px;
}

.hero h3{
font-weight:400;
color:#cbd5f5;
margin-bottom:15px;
}

.hero p{
max-width:600px;
margin:auto;
color:#cbd5e1;
}

/* BUTTONS */

.btn{
display:inline-block;
margin-top:25px;
margin-right:10px;
background:#38bdf8;
padding:12px 24px;
border-radius:6px;
color:black;
font-weight:600;
text-decoration:none;
transition:0.3s;
}

.btn:hover{
background:#0ea5e9;
transform:translateY(-3px);
}

/* SECTIONS */

section{
padding:90px 10%;
text-align:center;
}

section h2{
font-size:32px;
margin-bottom:20px;
}

/* SKILLS */

.skill-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
margin-top:40px;
}

.skill{
background:#1e293b;
padding:25px;
border-radius:10px;
transition:0.3s;
box-shadow:0 4px 10px rgba(0,0,0,0.3);
}

.skill:hover{
transform:translateY(-6px);
background:#334155;
}

/* PROJECTS */

.project-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:30px;
margin-top:40px;
}

.project{
background:#1e293b;
padding:20px;
border-radius:10px;
box-shadow:0 5px 15px rgba(0,0,0,0.3);
transition:0.3s;
}

.project:hover{
transform:translateY(-8px);
background:#334155;
}

.project img{
width:100%;
border-radius:8px;
margin-bottom:15px;
}

.project a{
display:inline-block;
margin-top:10px;
color:#0f172a;
font-weight:600;
text-decoration:none;
}

.project a:hover{
text-decoration:underline;
color:#cbd5e1;
}

/* CONTACT */

#contact a{
color:#38bdf8;
text-decoration:none;
}

#contact a:visited{
color:#38bdf8;
}

#contact a:hover{
text-decoration:underline;
}

#contact a:active{
color:#38bdf8;
}

#contact p{
margin:10px 0;
color:#cbd5e1;
}

/* FOOTER */

footer{
text-align:center;
padding:25px;
background:#020617;
margin-top:40px;
color:#94a3b8;
font-size:14px;
}

/* MOBILE MENU BUTTON */

.menu-toggle{
display:none;
font-size:26px;
cursor:pointer;
}

/* MOBILE RESPONSIVE DESIGN */

@media (max-width:768px){

header{
position:relative;
padding:8px 5%;
}

nav{
flex-direction:row;
}

.logo{
font-size:18px;
}

.menu-toggle{
display:block;
}

nav ul{
display:none;
flex-direction:column;
background:#020617;
position:absolute;
top:60px;
right:0;
width:100%;
text-align:center;
padding:20px 0;
}

nav ul.active{
display:flex;
}

.hero{
padding:80px 20px;
}

.hero h1{
font-size:28px;
}

.hero h3{
font-size:18px;
}

.hero p{
font-size:15px;
padding:0 10px;
}

section{
padding:60px 20px;
}

.skill-grid{
grid-template-columns:1fr;
}

.project-grid{
grid-template-columns:1fr;
}

.project{
padding:18px;
}

}
