/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#0b0f1a;
    color:#fff;
    overflow-x:hidden;
    line-height:1.7;
}

/* =========================
   BACKGROUND
========================= */

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top left,#00c6ff22,transparent 35%),
    radial-gradient(circle at bottom right,#8a2be222,transparent 35%);
    z-index:-2;
}

body::after{
    content:"";
    position:fixed;
    inset:0;
    backdrop-filter:blur(2px);
    z-index:-1;
}

/* =========================
   HEADER
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    padding:20px 10%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:rgba(255,255,255,.05);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.1);
    z-index:1000;
}

.logo{
    font-size:28px;
    font-weight:700;
    color:#00c6ff;
    letter-spacing:2px;
}

nav{
    display:flex;
    gap:30px;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-weight:500;
    transition:.3s;
}

nav a:hover{
    color:#00c6ff;
}

/* =========================
   HERO
========================= */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:120px 10%;
    gap:60px;
}

.hero-text{
    flex:1;
}

.hero-text h3{
    font-size:24px;
    color:#00c6ff;
}

.hero-text h1{
    font-size:60px;
    margin:10px 0;
}

.hero-text h2{
    font-size:32px;
    color:#9ddcff;
    margin-bottom:20px;
}

.hero-text p{
    max-width:600px;
    color:#d6d6d6;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:14px 35px;
    background:#00c6ff;
    color:#000;
    text-decoration:none;
    border-radius:40px;
    font-weight:700;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-5px);
    box-shadow:0 0 25px #00c6ff;
}

.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.hero-image img{
    width:350px;
    border-radius:50%;
    border:5px solid #00c6ff;
    box-shadow:0 0 40px #00c6ff55;
    animation:float 4s ease-in-out infinite;
}

@keyframes float{
    0%,100%{
        transform:translateY(0);
    }
    50%{
        transform:translateY(-15px);
    }
}
/* =========================
   COMMON SECTIONS
========================= */

section{
    padding:100px 10%;
}

.title{
    text-align:center;
    margin-bottom:50px;
}

.title h1{
    font-size:42px;
    color:#00c6ff;
}

/* =========================
   CARD
========================= */

.card{
    background:rgba(255,255,255,.06);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.1);
    border-radius:20px;
    padding:30px;
    transition:.35s;
}

.card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 30px rgba(0,198,255,.35);
}

.card p{
    color:#d8d8d8;
    font-size:17px;
}

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

.skills-container{
    display:flex;
    flex-direction:column;
    gap:25px;
}

.skill p{
    margin-bottom:10px;
    font-weight:600;
}

.bar{
    width:100%;
    height:12px;
    background:#1b2235;
    border-radius:50px;
    overflow:hidden;
}

.fill{
    height:100%;
    border-radius:50px;
    background:linear-gradient(90deg,#00c6ff,#0072ff);
}

.fill.c{
    width:90%;
}

.fill.cpp{
    width:85%;
}

.fill.java{
    width:75%;
}

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

.projects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.projects .card h2{
    margin-bottom:15px;
    color:#00c6ff;
}

/* =========================
   EDUCATION
========================= */

#education .card h2{
    color:#00c6ff;
    margin-bottom:15px;
}

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

#contact .card{
    text-align:center;
}

#contact p{
    margin:12px 0;
    font-size:18px;
}

.social-links{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:30px;
}

.social-links a{
    width:55px;
    height:55px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:2px solid #00c6ff;
    color:#fff;
    font-size:22px;
    text-decoration:none;
    transition:.3s;
}

.social-links a:hover{
    background:#00c6ff;
    color:#000;
    transform:translateY(-6px) scale(1.1);
    box-shadow:0 0 25px #00c6ff;
}
/* =========================
   FOOTER
========================= */

footer{
    padding:30px 10%;
    text-align:center;
    background:rgba(255,255,255,.05);
    border-top:1px solid rgba(255,255,255,.1);
    color:#bfbfbf;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#0b0f1a;
}

::-webkit-scrollbar-thumb{
    background:#00c6ff;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#0099ff;
}

/* =========================
   SECTION ANIMATION
========================= */

section{
    animation:fadeUp .8s ease;
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
   GLOW EFFECT
========================= */

.title h1,
.logo{
    text-shadow:0 0 12px rgba(0,198,255,.5);
}

.card:hover{
    border-color:#00c6ff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width:991px){

    header{
        padding:18px 6%;
        flex-direction:column;
        gap:15px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:18px;
    }

    .hero{
        flex-direction:column-reverse;
        text-align:center;
        padding-top:160px;
    }

    .hero-text h1{
        font-size:48px;
    }

    .hero-text h2{
        font-size:28px;
    }

    .hero-image img{
        width:280px;
    }

    .hero-text p{
        margin:auto;
        margin-bottom:30px;
    }

    .social-links{
        justify-content:center;
    }
}

@media (max-width:600px){

    .hero-text h1{
        font-size:38px;
    }

    .hero-text h2{
        font-size:22px;
    }

    .title h1{
        font-size:34px;
    }

    .hero-image img{
        width:220px;
    }

    section{
        padding:80px 7%;
    }

    .btn{
        padding:12px 28px;
    }
}