:root{
    --bg:#090912;
    --bg2:#101020;
    --card:#17172a;
    --card2:#1e1e35;
    --text:#ffffff;
    --text2:#bcbcd6;
    --purple:#8b5cf6;
    --blue:#4f7cff;
    --shadow:0 10px 35px rgba(0,0,0,.35);
    --radius:18px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:"Poppins",sans-serif;
}

html{
    background:#090912;
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    min-height:100vh;
    background:
    radial-gradient(circle at top,#23235a 0%,#11111f 25%,#090912 70%);
    color:var(--text);
    overflow-x:hidden;
}

/* Scrollbar */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0d0d18;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(180deg,#6b5cff,#9b5cff);
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:linear-gradient(180deg,#9b5cff,#5eb6ff);
}

/* Remove default image spacing */

img{
    display:block;
    user-select:none;
}

/* Links */

a{
    color:white;
    text-decoration:none;
}

/* Navigation */

nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:75px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 8%;
    backdrop-filter:blur(18px);
    background:rgba(10,10,22,.55);
    border-bottom:1px solid rgba(255,255,255,.06);
    z-index:1000;
}

.logo{
    font-size:30px;
    font-weight:700;
    letter-spacing:.5px;

    background:linear-gradient(
        90deg,
        #315bb7,
        #cdc7ff,
        #7e4bdd,

        #315bb7,
        #cdc7ff,
        #7e4bdd
    );

    background-size:200% 100%;

    -webkit-background-clip:text;
    background-clip:text;
    -webkit-text-fill-color:transparent;

    animation:logoGradient 8s linear infinite;
}

@keyframes logoGradient{
    from{
        background-position:0% 0%;
    }
    to{
        background-position:-100% 0%;
    }
}

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav li{
    display:flex;
}

nav a{
    padding:9px 18px;
    border-radius:30px;
    color:#d8d8f3;
    transition:.35s;
    font-weight:500;
}

nav a:hover{
    color:white;
    background:rgba(255,255,255,.08);
}

nav .active{
    background:white;
    color:#101020;
    font-weight:600;
}

/* Smooth glowing headings */

.hero-text h1,
.projects h2,
footer h3{
    text-shadow:
    0 0 10px rgba(130,100,255,.18),
    0 0 30px rgba(90,120,255,.15);
}

/* Selection color */

::selection{
    background:#7657ff;
    color:white;
}

/* Responsive */

@media(max-width:1100px){

.hero{
    width:92%;
}

.projects{
    width:92%;
}

.about{
    width:92%;
}

.working-container{
    width:92%;
}

nav{
    padding:0 35px;
}

}

@media(max-width:850px){

.hero{
    flex-direction:column;
    text-align:center;
    margin-top:-70px;
}

.profile-image{
    width:150px;
    height:150px;
}

.hero-text h1{
    font-size:38px;
}

.hero-text p{
    font-size:16px;
}

nav{
    height:70px;
}

.logo{
    font-size:24px;
}

nav ul{
    gap:15px;
}

nav a{
    padding:8px 14px;
    font-size:15px;
}

.project-grid{
    grid-template-columns:1fr;
}

}

@media(max-width:650px){

.banner{
    height:220px;
}

.profile-image{
    width:130px;
    height:130px;
}

.hero-text h1{
    font-size:32px;
}

.projects h2{
    font-size:30px;
}

.working-card h2{
    font-size:28px;
}

.about{
    padding:22px;
}

.about p{
    font-size:16px;
}

.socials{
    gap:15px;
}

.socials a{
    width:52px;
    height:52px;
}

nav{
    flex-direction:column;
    justify-content:center;
    gap:8px;
    height:90px;
}

.logo{
    font-size:22px;
}

nav ul{
    gap:10px;
}

nav a{
    font-size:14px;
    padding:7px 12px;
}

}

@media(max-width:420px){

.hero-text h1{
    font-size:28px;
}

.hero-text p{
    font-size:14px;
}

.project-info h3{
    font-size:20px;
}

footer h3{
    font-size:24px;
}

}

/* Floating animation */

@keyframes float{

0%{
transform:translateY(0px);
}

50%{
transform:translateY(-7px);
}

100%{
transform:translateY(0px);
}

}

.profile-image{
    animation:float 5s ease-in-out infinite;
}

/* Gradient shine */

.logo{
    background-size:250%;
    animation:logoGlow 7s linear infinite;
}

@keyframes logoGlow{

0%{
background-position:0%;
}

100%{
background-position:250%;
}

}

/* Footer */

footer{
    margin-top:90px;
    background:linear-gradient(180deg,#121222,#0b0b15);
    border-top:2px solid rgb(255, 255, 255);
    text-align:center;
    padding:55px 20px;
}

footer h3{
    font-size:28px;
    margin-bottom:22px;
}

.socials{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:22px;
    margin-bottom:25px;
}

.socials a{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#1a1a2f;
    transition:.35s;
    border:1px solid rgba(255,255,255,.06);
}

.socials a:hover{
    transform:translateY(-8px) scale(1.08);
    background:linear-gradient(135deg,#7d5cff,#4e83ff);
    box-shadow:0 0 25px rgba(108,92,255,.45);
}

.socials img{
    width:28px;
    height:28px;
    object-fit:contain;
}

footer p{
    margin-top:10px;
    color:#b9b9d2;
    font-size:15px;
}

.socials a{
    transition:.35s;
}

.fade{
    opacity:0;
    transform:translateY(35px);
    transition:.7s;
}

.fade.show{
    opacity:1;
    transform:none;
}

.nav-scrolled{
    background:rgba(10,10,22,.88);
    box-shadow:0 10px 35px rgba(0,0,0,.35);
}

.pulse{
    box-shadow:
        0 0 30px rgba(255,255,255,.15);
}