/* Google Font */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#0d1117;
    color:#f5f5f5;
    line-height:1.6;
}
/* Particle Background */

#particles-js{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:-2;
}

body{
    background:#0d1117;
    overflow-x:hidden;
}

/* ===========================
        Navigation
=========================== */

#navbar{

position:fixed;

top:20px;

left:50%;

transform:translateX(-50%);

width:90%;

max-width:1200px;

padding:15px 35px;

display:flex;

justify-content:space-between;

align-items:center;

background:rgba(22,27,34,.7);

backdrop-filter:blur(15px);

border:1px solid rgba(255,255,255,.08);

border-radius:18px;

z-index:999;

transition:.3s;

}

.logo{

font-size:28px;

font-weight:bold;

color:white;

}

.logo span{

color:#58A6FF;

}

.nav-links{

display:flex;

gap:35px;

align-items:center;

list-style:none;

}

.nav-links a{

color:white;

text-decoration:none;

font-weight:500;

position:relative;

transition:.3s;

}

.nav-links a::after{

content:"";

position:absolute;

left:0;

bottom:-6px;

width:0;

height:2px;

background:#58A6FF;

transition:.3s;

}

.nav-links a:hover::after{

width:100%;

}

#theme-toggle{

background:none;

border:none;

font-size:22px;

cursor:pointer;

color:white;

}

.menu-toggle{

display:none;

font-size:28px;

cursor:pointer;

color:white;

}
/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 20px 40px;
}

.hero h1{
    font-size:70px;
    font-weight:700;
}

.hero h2{
    margin-top:15px;
    color:#58a6ff;
    font-weight:500;
}

.hero p{
    margin-top:20px;
    max-width:700px;
    color:#b0b8c0;
    font-size:18px;
}

.buttons{
    margin-top:40px;
    display:flex;
    gap:20px;
}

.btn{
    background:#58a6ff;
    color:white;
    padding:14px 32px;
    border-radius:10px;
    text-decoration:none;
    transition:.3s;
    font-weight:600;
}

.btn:hover{

    transform:translateY(-6px) scale(1.03);

    box-shadow:0 0 25px rgba(88,166,255,.5);

}


.secondary{
    background:transparent;
    border:2px solid #58a6ff;
}

/* Sections */

section{
    padding:100px 10%;
}

section h2{
    text-align:center;
    font-size:38px;
    margin-bottom:50px;
    color:#58a6ff;
}

/* About */

#about p{
    max-width:900px;
    margin:auto;
    text-align:center;
    color:#c9d1d9;
    font-size:18px;
}
/* Skills */

.skills{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:25px;
}

/* Projects */

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

/* =========================
   Premium Project Cards
========================= */

.card{

    position:relative;

    background:rgba(22,27,34,.85);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:40px;

    text-align:center;

    color:white;

    text-decoration:none;

    overflow:hidden;

    transform-style:preserve-3d;

    transition:
    transform .15s ease,
    box-shadow .3s ease,
    border .3s ease;

}

.card img{

    width:85px;

    margin-bottom:20px;

    transition:.3s;

}

.card h3{

    margin-bottom:15px;

    color:#58A6FF;

}

.card p{

    color:#b8c1cc;

    font-size:15px;

}

.card:hover{

    box-shadow:
    0 20px 45px rgba(88,166,255,.25);

    border-color:#58A6FF;

}

.card:hover img{

    transform:scale(1.08);

}
.card::before{

content:"";

position:absolute;

top:-100%;

left:-100%;

width:220%;

height:220%;

background:

linear-gradient(
120deg,
transparent,
rgba(255,255,255,.12),
transparent
);

transform:rotate(25deg);

transition:.6s;

}

.card:hover::before{

left:100%;

top:100%;

}
/* AI */

.ai-card{
    background:#161b22;
    padding:30px;
    border-radius:15px;
    margin-bottom:30px;
}

.ai-card h3{
    color:#58a6ff;
    margin-bottom:15px;
}

/* Contact */

#contact{
    text-align:center;
}

#contact p{
    margin:15px 0;
}

/* Footer */

footer{
    text-align:center;
    padding:30px;
    color:#888;
}

/* Responsive */

@media(max-width:768px){

nav{
    flex-direction:column;
    gap:20px;
}

nav ul{
    gap:18px;
    flex-wrap:wrap;
    justify-content:center;
}

.hero h1{
    font-size:42px;
}

.hero h2{
    font-size:22px;
}

.hero p{
    font-size:16px;
}

.buttons{
    flex-direction:column;
}

section{
    padding:80px 7%;
}

}
/* Scroll Animation */

.hidden{
    opacity:0;
    transform:translateY(60px);
    transition:all .8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Animated Background */

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at 20% 20%, rgba(88,166,255,.08), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(0,255,255,.05), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(88,166,255,.08), transparent 40%);
    z-index:-1;
}
/* Contact Section */

#contact{
    text-align:center;
}

.contact-links{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:25px;
    margin-top:40px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:20px;
    background:#161b22;
    padding:20px;
    border-radius:16px;
    text-decoration:none;
    color:white;
    transition:.35s ease;
    border:1px solid rgba(255,255,255,.08);
}

.contact-item:hover{
    transform:translateY(-8px);
    box-shadow:0 0 25px rgba(88,166,255,.35);
}

.contact-item img{
    width:45px;
    height:45px;
}

.contact-item h3{
    margin:0;
    color:#58a6ff;
    font-size:20px;
}

.contact-item p{
    margin:4px 0 0;
    color:#b8c1cc;
    font-size:15px;
}

.location{
    margin-top:40px;
    font-size:18px;
    color:#9ca3af;
}
.tech-stack{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.tech-stack span{
    background:#58a6ff;
    color:white;
    padding:8px 15px;
    border-radius:20px;
    font-size:14px;
    transition:.3s;
}

.tech-stack span:hover{
    transform:scale(1.08);
}
.hi{
    color:#58A6FF;
    font-size:22px;
    margin-bottom:15px;
}

.hero-text{

    max-width:750px;
    font-size:20px;
    color:#B8C1CC;
    margin-top:25px;
}
.divider{

width:80%;

margin:auto;

border:none;

height:1px;

background:rgba(255,255,255,.08);

}
@media(max-width:768px){

.menu-toggle{

display:block;

}

.nav-links{

position:absolute;

top:80px;

left:0;

width:100%;

background:#161B22;

flex-direction:column;

padding:30px;

display:none;

border-radius:15px;

}

.nav-links.active{

display:flex;

}

}
/* ===========================
       Light Theme
=========================== */

body.light{

background:#F5F7FA;

color:#111;

}

body.light .card,
body.light .ai-card,
body.light .skills div,
body.light #navbar{

background:white;

color:#111;

}

body.light a{

color:#111;

}

body.light .logo{

color:#111;

}

/* ==========================
      Skill Cards
========================== */

.skill-card{

    background:#161B22;

    padding:25px;

    border-radius:18px;

    text-align:center;

    transition:.35s;

    height:auto;

}
.skills{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
    gap:25px;

    align-items:start;
}
.skill-card img{

width:70px;
height:70px;

object-fit:contain;

margin-bottom:15px;

}
.skill-card:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(88,166,255,.25);

}

.progress{

    width:100%;

    height:14px;

    background:#2d333b;

    border-radius:20px;

    margin:18px 0;

    overflow:hidden;

}

.progress-bar{

    width:0;

    height:100%;

    background:linear-gradient(90deg,#58A6FF,#00E5FF);

    border-radius:20px;

    transition:width 2s ease;

}

.counter{
    display:block;
    margin-top:15px;
    font-size:22px;
    font-weight:700;
    color:#58A6FF;
}
/* ==========================
Loading Screen
========================== */

#loader{

position:fixed;

top:0;
left:0;

width:100%;
height:100%;

background:#0D1117;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

z-index:99999;

transition:opacity .8s;

}

#loader h1{

font-size:60px;

letter-spacing:6px;

color:#58A6FF;

margin-bottom:30px;

}

.loader-bar{

width:260px;

height:8px;

background:#222;

border-radius:20px;

overflow:hidden;

}

.loader-fill{

width:0%;

height:100%;

background:#58A6FF;

animation:loading 2s forwards;

}

@keyframes loading{

from{

width:0;

}

to{

width:100%;

}

}