/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family: "Segoe UI", sans-serif;
}

body{
background: linear-gradient(135deg,#020617,#0f172a,#1e1b4b,#312e81);
color:white;
overflow-x:hidden;
scroll-behavior:smooth;
}

/* NAVBAR */
.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding:18px 10%;
position:fixed;
width:100%;
top:0;
z-index:1000;
background:rgba(0,0,0,0.4);
backdrop-filter:blur(12px);
border-bottom:1px solid rgba(255,255,255,0.05);
}
@media(max-width:768px){

.buttons{
flex-direction:column;
align-items:center;
gap:12px;
}

}
.logo{
font-size:22px;
font-weight:600;
letter-spacing:1px;
}

.nav-links a{
margin-left:25px;
text-decoration:none;
color:white;
font-size:15px;
transition:0.3s;
}

.nav-links a:hover{
color:#8b5cf6;
}

.menu-toggle{
display:none;
font-size:24px;
cursor:pointer;
}

/* HERO */
.hero{
display:flex;
justify-content:space-between;
align-items:center;
padding:150px 10% 80px 10%;
flex-wrap:wrap;
gap:40px;
}

.hero-text{
max-width:520px;
}

.hero-text h1{
font-size:32px;
opacity:0.9;
}

.hero-text h2{
font-size:44px;
margin:10px 0;
color:#8b5cf6;
}

.hero-text p{
opacity:0.7;
margin-bottom:25px;
line-height:1.6;
}

.hero-image img{
width:260px;
border-radius:20px;
padding:10px;
background:rgba(255,255,255,0.05);
backdrop-filter:blur(10px);
box-shadow:0 10px 30px rgba(0,0,0,0.4);
}

/* BUTTONS */
.buttons{
display:flex;
flex-direction:column;
align-items:center;
gap:12px;
}

.buttons a{
width:220px;
text-align:center;
}

.btn{
background:linear-gradient(90deg,#8b5cf6,#06b6d4);
padding:12px 24px;
border-radius:10px;
text-decoration:none;
color:white;
margin-right:10px;
transition:0.3s;
}
.btn{
display:inline-block;
text-align:center;
}

.btn:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,0.4);
}

.outline{
background:transparent;
border:1px solid #8b5cf6;
}

/* SOCIAL */
.social-icons a{
margin-right:15px;
font-size:22px;
color:white;
transition:0.3s;
}

.social-icons a:hover{
color:#8b5cf6;
transform:translateY(-3px);
}

/* GLASS SECTION */
.glass{
background:rgba(255,255,255,0.05);
padding:70px 10%;
margin:40px 10%;
border-radius:20px;
backdrop-filter:blur(15px);
text-align:center;
border:1px solid rgba(255,255,255,0.05);
}

/* SKILLS */
#skills{
padding:60px 10%;
}

#skills h2{
margin-bottom:30px;
}

.skill{
margin-bottom:25px;
}

.skill p{
margin-bottom:8px;
font-size:14px;
opacity:0.9;
}

.bar{
height:8px;
background:#111;
border-radius:10px;
overflow:hidden;
}

.bar span{
display:block;
height:100%;
width:0;
background:linear-gradient(90deg,#8b5cf6,#06b6d4);
transition:2s;
}

/* PROJECTS */
.projects{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:25px;
padding:40px 10%;
}

.card{
background:rgba(255,255,255,0.05);
padding:30px;
border-radius:18px;
text-align:center;
transition:0.4s;
border:1px solid rgba(255,255,255,0.05);
backdrop-filter:blur(10px);
}

.card i{
font-size:28px;
margin-bottom:12px;
color:#8b5cf6;
}

.card h3{
margin-bottom:8px;
}

.card p{
opacity:0.7;
font-size:14px;
}

.card:hover{
transform:translateY(-10px) scale(1.02);
box-shadow:0 20px 40px rgba(0,0,0,0.4);
}

/* CONTACT */
form{
display:flex;
flex-direction:column;
gap:15px;
max-width:500px;
margin:auto;
margin-top:20px;
}

input,textarea{
padding:12px;
background:#020617;
border:none;
border-radius:8px;
color:white;
outline:none;
border:1px solid rgba(255,255,255,0.05);
}

textarea{
min-height:120px;
resize:none;
}

button{
background:linear-gradient(90deg,#8b5cf6,#06b6d4);
border:none;
padding:12px;
border-radius:8px;
color:white;
cursor:pointer;
transition:0.3s;
}

button:hover{
transform:translateY(-3px);
}

/* FOOTER */
footer{
text-align:center;
padding:30px;
opacity:0.6;
}

/* SCROLL ANIMATION */
.reveal{
opacity:0;
transform:translateY(40px);
transition:1s;
}

.reveal.active{
opacity:1;
transform:translateY(0);
}

/* PARTICLES */
.particles{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
z-index:-1;
overflow:hidden;
}

.particle{
position:absolute;
width:3px;
height:3px;
background:white;
opacity:0.2;
border-radius:50%;
animation:float linear infinite;
}

@keyframes float{
from{
transform:translateY(100vh);
}
to{
transform:translateY(-10vh);
}
}

/* MOBILE */
@media(max-width:768px){

.navbar{
padding:15px 6%;
}

.menu-toggle{
display:block;
}

.nav-links{
position:absolute;
top:70px;
right:0;
background:#020617;
flex-direction:column;
width:200px;
display:none;
border-radius:10px;
}

.nav-links a{
display:block;
padding:15px;
border-bottom:1px solid rgba(255,255,255,0.05);
}

.nav-links.show{
display:flex;
}

.hero{
text-align:center;
padding-top:130px;
}

.hero-image{
margin-top:30px;
}

.glass{
margin:40px 5%;
padding:50px 6%;
}

.projects{
padding:30px 6%;
}

}

