
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Inter,sans-serif;
scroll-behavior:smooth;
}

body{
background:#020617;
color:#e5e7eb;
overflow-x:hidden;
}



.bg-orbs{
position:fixed;
inset:0;
overflow:hidden;
z-index:-2;
}

.bg-orbs span{
position:absolute;
width:420px;
height:420px;
border-radius:50%;
filter:blur(130px);
opacity:0.45;
animation:floatOrb 25s infinite alternate ease-in-out;
}

.bg-orbs span:nth-child(1){
background:#38bdf8;
top:10%;
left:10%;
}

.bg-orbs span:nth-child(2){
background:#6366f1;
bottom:10%;
right:10%;
animation-duration:30s;
}

.bg-orbs span:nth-child(3){
background:#22d3ee;
top:40%;
right:20%;
animation-duration:35s;
}

@keyframes floatOrb{
0%{transform:translate(0,0);}
100%{transform:translate(140px,90px);}
}



body::after{
content:"";
position:fixed;
inset:0;
background:url("https://grainy-gradients.vercel.app/noise.svg");
opacity:0.04;
pointer-events:none;
z-index:-1;
}


#cursor-canvas{
position:fixed;
inset:0;
pointer-events:none;
z-index:999;
}



header{
position:sticky;
top:0;
background:rgba(2,6,23,0.85);
backdrop-filter:blur(12px);
z-index:100;
}

.nav{
max-width:1200px;
margin:auto;
padding:20px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:24px;
font-weight:700;
background:linear-gradient(90deg,#38bdf8,#818cf8);
-webkit-background-clip:text;
color:transparent;
}

.nav ul{
display:flex;
gap:30px;
list-style:none;
}

.nav a{
color:#cbd5f5;
text-decoration:none;
position:relative;
}

.nav a::after{
content:"";
position:absolute;
left:0;
bottom:-6px;
width:0%;
height:2px;
background:#38bdf8;
transition:.3s;
}

.nav a:hover{
color:#38bdf8;
}

.nav a:hover::after{
width:100%;
}



.hero{
min-height:90vh;
max-width:1200px;
margin:auto;
padding:80px 20px;
display:grid;
grid-template-columns:1.2fr 1fr;
align-items:center;
gap:60px;
}

.hero-text h1{
font-size:64px;
line-height:1.1;
letter-spacing:-1px;
}

.hero-text span{
background:linear-gradient(90deg,#38bdf8,#818cf8);
-webkit-background-clip:text;
color:transparent;
}

.hero-text p{
margin-top:25px;
font-size:18px;
line-height:1.7;
color:#94a3b8;
max-width:520px;
}

.hero-actions{
margin-top:40px;
display:flex;
gap:20px;
}
/* HERO IMAGE RING GLOW */

.hero-img{
  position:relative;
}

.hero-img img{
  position:relative;
  z-index:2;
}

/* Outer neon ring */
.hero-img::before{
  content:"";
  position:absolute;
  width:340px;
  height:340px;
  border-radius:50%;
  background:conic-gradient(
    from 0deg,
    #22c55e,
    #4ade80,
    #22c55e
  );
  filter:blur(12px);
  opacity:0;
  transition:.4s;
  animation:spin 6s linear infinite;
}


/* Soft halo */
.hero-img::after{
  content:"";
  position:absolute;
  width:360px;
  height:360px;
  border-radius:50%;
  background:#22c55e;
  opacity:0;
  transition:.4s;
  filter:blur(28px);
}
.hero-img:hover::before,
.hero-img:hover::after{
  opacity:1;
}
/* HERO IMAGE POP OUT */

.hero-img{
  transition:transform .4s ease;
}

.hero-img:hover{
  transform:scale(1.06);
}


@keyframes spin{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

.btn{
padding:14px 36px;
border-radius:10px;
font-weight:600;
text-decoration:none;
transition:.3s;
position:relative;
overflow:hidden;
}

.primary{
background:linear-gradient(90deg,#38bdf8,#6366f1);
color:#020617;
animation:pulse 3s infinite;
}

@keyframes pulse{
0%{box-shadow:0 0 0 rgba(56,189,248,0);}
50%{box-shadow:0 0 30px rgba(56,189,248,.6);}
100%{box-shadow:0 0 0 rgba(56,189,248,0);}
}

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

.ghost{
border:2px solid #38bdf8;
color:#38bdf8;
}

.ghost:hover{
background:#38bdf8;
color:#020617;
}

.btn::after{
content:"";
position:absolute;
inset:0;
background:radial-gradient(circle,
rgba(255,255,255,0.4),
transparent 60%);
opacity:0;
transition:.3s;
}

.btn:hover::after{
opacity:1;
}

.hero-img{
display:flex;
justify-content:center;
align-items:center;
}

.hero-img img{
width:320px;
height:320px;
border-radius:50%;
object-fit:cover;
box-shadow:0 0 90px rgba(56,189,248,0.7);
animation:float 6s ease-in-out infinite;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-12px);}
100%{transform:translateY(0);}
}

/* ================= SECTIONS ================= */

section{
max-width:1200px;
margin:auto;
padding:110px 20px;
}

section h2{
font-size:38px;
margin-bottom:30px;
}

/* Divider FIXED */
section:not(.hero)::before{
content:"";
display:block;
width:120px;
height:1px;
background:linear-gradient(90deg,transparent,#38bdf8,transparent);
margin:0 auto 80px;
opacity:0.5;
}

/* ================= ABOUT ================= */

#about p{
max-width:700px;
color:#94a3b8;
}

/* ================= SKILLS ================= */

.skill-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
gap:25px;
}

.skill-card{
background:rgba(15,23,42,0.75);
backdrop-filter:blur(14px);
padding:30px;
border-radius:18px;
border:1px solid rgba(255,255,255,0.06);
transition:.35s;
}

.skill-card:hover{
transform:translateY(-8px);
box-shadow:0 0 30px rgba(56,189,248,.45);
}

/* ================= PROJECTS ================= */

.project-grid{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:40px;
max-width:1040px;
margin:auto;
}

.project-card{
background:rgba(15,23,42,0.75);
backdrop-filter:blur(14px);
border:1px solid rgba(255,255,255,0.06);
border-radius:18px;
overflow:hidden;
width:320px;
display:flex;
flex-direction:column;
position:relative;
transition:.4s;
}

.project-card:hover{
transform:translateY(-12px) scale(1.02);
box-shadow:0 0 45px rgba(129,140,248,.7);
}

.project-card img{
width:100%;
height:200px;
object-fit:cover;
transition:.6s ease;
}

.project-card:hover img{
transform:scale(1.08);
}

.project-content{
padding:22px;
display:flex;
flex-direction:column;
flex-grow:1;
}

.project-content p{
color:#94a3b8;
margin:10px 0;
flex-grow:1;
}

.project-content span{
color:#7dd3fc;
font-size:13px;
margin-bottom:10px;
}

.project-links{
display:flex;
gap:14px;
}

.project-links a{
color:#38bdf8;
font-weight:600;
text-decoration:none;
}

/* Hover overlay */

.project-card::before{
content:"";
position:absolute;
inset:0;
background:linear-gradient(120deg,transparent,rgba(56,189,248,.25),transparent);
opacity:0;
transition:.4s;
}

.project-card:hover::before{
opacity:1;
}

/* ================= CONTACT ================= */

.contact-section{
text-align:center;
}

.contact-text{
color:#94a3b8;
margin-bottom:35px;
font-size:20px;
}

.contact-text span{
color:#e5e7eb;
font-weight:600;
}

.social-icons{
display:flex;
justify-content:center;
gap:28px;
margin-top:25px;
}

.social-icons a{
width:55px;
height:55px;
border-radius:50%;
border:1px solid rgba(255,255,255,0.2);
display:flex;
align-items:center;
justify-content:center;
color:#cbd5f5;
font-size:22px;
transition:.35s;
}

.social-icons a:hover{
color:#020617;
background:#38bdf8;
box-shadow:0 0 25px rgba(56,189,248,0.8);
transform:translateY(-6px) scale(1.1);
}

/* ================= REVEAL ================= */

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

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

/* ================= MOBILE ================= */

@media(max-width:768px){
.hero{
grid-template-columns:1fr;
text-align:center;
}
.hero-actions{
justify-content:center;
}
}
/* ================================================= */
/* PREMIUM PROJECT CARDS (FOR .pro-card SYSTEM) */
/* ================================================= */

.pro-card{
width:340px;
border-radius:22px;
background:linear-gradient(145deg,#0b1222,#0f172a);
padding:1px;
position:relative;
transition:.4s;
}

.pro-card::before{
content:"";
position:absolute;
inset:0;
border-radius:22px;
background:linear-gradient(120deg,#38bdf8,#6366f1,#22d3ee);
opacity:0;
filter:blur(20px);
transition:.4s;
z-index:-1;
}

.pro-card:hover::before{
opacity:1;
}

.pro-card:hover{
transform:translateY(-14px) scale(1.02);
}

/* IMAGE */

.pro-image{
height:190px;
overflow:hidden;
border-radius:22px 22px 0 0;
}

.pro-image img{
width:100%;
height:100%;
object-fit:cover;
transition:.6s;
}

.pro-card:hover .pro-image img{
transform:scale(1.1);
}

/* BODY */

.pro-body{
background:rgba(15,23,42,0.9);
backdrop-filter:blur(14px);
padding:22px;
border-radius:0 0 22px 22px;
display:flex;
flex-direction:column;
gap:12px;
}

.pro-body h3{
font-size:20px;
}

.pro-body p{
color:#94a3b8;
font-size:14px;
line-height:1.5;
}

/* TAGS */

.pro-tags{
display:flex;
flex-wrap:wrap;
gap:8px;
}

.pro-tags span{
font-size:12px;
padding:5px 10px;
border-radius:20px;
background:rgba(56,189,248,0.15);
color:#7dd3fc;
}

/* ACTION ICONS */

.pro-actions{
display:flex;
gap:18px;
margin-top:10px;
}

.pro-actions a{
width:40px;
height:40px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
background:rgba(255,255,255,0.05);
color:#cbd5f5;
font-size:16px;
transition:.3s;
}

.pro-actions a:hover{
background:#38bdf8;
color:#020617;
box-shadow:0 0 18px rgba(56,189,248,.8);
transform:scale(1.15);
}

/* GRID FIX */

.project-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(340px,1fr));
gap:40px;
justify-items:center;
max-width:1100px;
margin:auto;
}

/* ================= SKILL PILLS ================= */

.skill-pills{
display:flex;
flex-wrap:wrap;
gap:10px;
margin-top:12px;
}

.skill-pills span{
padding:6px 14px;
border-radius:20px;
background:rgba(56,189,248,0.15);
color:#7dd3fc;
font-size:13px;
animation:floatPill 4s ease-in-out infinite;
}

/* stagger effect */

.skill-pills span:nth-child(1){animation-delay:0s}
.skill-pills span:nth-child(2){animation-delay:.4s}
.skill-pills span:nth-child(3){animation-delay:.8s}
.skill-pills span:nth-child(4){animation-delay:1.2s}

@keyframes floatPill{
0%{transform:translateY(0)}
50%{transform:translateY(-6px)}
100%{transform:translateY(0)}
}

.skill-pills span:hover{
background:#38bdf8;
color:#020617;
transform:scale(1.15);
box-shadow:0 0 20px rgba(56,189,248,.8);
}
/* ================= LOADER ================= */

#loader{
position:fixed;
inset:0;
background:#020617;
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

#loader h1{
font-size:48px;
background:linear-gradient(90deg,#38bdf8,#6366f1);
-webkit-background-clip:text;
color:transparent;
animation:pulse 1.5s infinite;
}
section{
  position:relative;
}

section::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(255,255,255,0.02);
  border-radius:28px;
  z-index:-1;
  box-shadow:0 0 40px rgba(56,189,248,0.04);
}
.pro-card{
  --x:50%;
  --y:50%;
}

.pro-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at var(--x) var(--y),
    rgba(56,189,248,0.15),
    transparent 55%);
  opacity:0;
  transition:.3s;
  pointer-events:none;
}

.pro-card:hover::after{
  opacity:1;
}
