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

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

html{
    scroll-behavior:smooth;
}

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

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

body::before{

    content:"";

    position:fixed;

    width:900px;

    height:900px;

    background:radial-gradient(circle,#2563eb55,transparent 70%);

    top:-300px;

    left:-300px;

    z-index:-2;

}

body::after{

    content:"";

    position:fixed;

    width:900px;

    height:900px;

    background:radial-gradient(circle,#7c3aed55,transparent 70%);

    bottom:-350px;

    right:-300px;

    z-index:-2;

}

/*==========================================
  NAVBAR
==========================================*/

header{

    position:fixed;

    top:20px;

    left:50%;

    transform:translateX(-50%);

    width:92%;

    max-width:1200px;

    z-index:999;

    backdrop-filter:blur(18px);

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.12);

    border-radius:18px;

    padding:18px 35px;

    box-shadow:0 15px 35px rgba(0,0,0,.3);

}

nav{

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    font-size:30px;

    font-weight:700;

    color:white;

}

.logo span{

    color:#38bdf8;

}

.nav-links{

    display:flex;

    list-style:none;

    gap:35px;

}

.nav-links a{

    color:white;

    text-decoration:none;

    font-weight:500;

    position:relative;

    transition:.35s;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-7px;

    width:0;

    height:2px;

    background:#38bdf8;

    transition:.35s;

}

.nav-links a:hover{

    color:#38bdf8;

}

.nav-links a:hover::after{

    width:100%;

}

.nav-right{

    display:flex;

    align-items:center;

    gap:15px;

}

#theme-toggle{

    width:45px;

    height:45px;

    border-radius:50%;

    border:none;

    background:#2563eb;

    color:white;

    cursor:pointer;

    font-size:18px;

    transition:.3s;

}

#theme-toggle:hover{

    transform:rotate(20deg);

}

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

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:120px 8% 60px;

}

.hero-content{

    width:100%;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:70px;

    flex-wrap:wrap;

}

.hero-text{

    flex:1;

}

.hello{

    font-size:20px;

    color:#38bdf8;

    margin-bottom:20px;

}

.hero h1{

    font-size:72px;

    line-height:1.1;

    margin-bottom:20px;

}

.hero h1 span{

    color:#38bdf8;

}

.hero h2{

    font-size:32px;

    color:#cbd5e1;

    margin-bottom:25px;

    min-height:45px;

}

.description{

    color:#cbd5e1;

    line-height:1.9;

    max-width:650px;

    margin-bottom:35px;

}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-bottom:35px;

    flex-wrap:wrap;

}

.btn{

    padding:15px 35px;

    border-radius:50px;

    text-decoration:none;

    background:linear-gradient(135deg,#2563eb,#38bdf8);

    color:white;

    font-weight:600;

    transition:.35s;

    box-shadow:0 15px 35px rgba(37,99,235,.4);

    border:none;

    cursor:pointer;

}

.btn:hover{

    transform:translateY(-6px);

}

.secondary{

    background:transparent;

    border:2px solid rgba(255,255,255,.25);

    box-shadow:none;

}

.socials{

    display:flex;

    gap:20px;

}

.socials a{

    width:50px;

    height:50px;

    display:flex;

    justify-content:center;

    align-items:center;

    text-decoration:none;

    color:white;

    background:rgba(255,255,255,.08);

    border-radius:50%;

    transition:.35s;

    font-size:20px;

}

.socials a:hover{

    background:#2563eb;

    transform:translateY(-6px);

}

/*==========================================
 PROFILE IMAGE
==========================================*/

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.hero-image{

    display:flex;
    justify-content:center;
    align-items:center;

    perspective:1000px;

}

.image-circle{

    width:420px;
    height:420px;

    border-radius:50%;

    padding:8px;

    position:relative;

    overflow:hidden;

    cursor:pointer;

    transition:0.4s ease;

    background:linear-gradient(
        45deg,
        #2563eb,
        #38bdf8,
        #8b5cf6,
        #2563eb
    );

    background-size:400% 400%;

    animation:borderFlow 6s linear infinite,
              floating 5s ease-in-out infinite;

    box-shadow:
        0 0 30px rgba(37,99,235,.4),
        0 0 60px rgba(124,58,237,.3);

}

.image-circle img{

    width:100%;
    height:100%;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #0f172a;

    display:block;

}
@keyframes rotate{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}
/*==========================================
 SECTION
==========================================*/

.section{

    padding:100px 8%;

}

.section-title{

    text-align:center;

    font-size:48px;

    margin-bottom:70px;

    position:relative;

}

.section-title::after{

    content:"";

    position:absolute;

    width:90px;

    height:4px;

    background:#38bdf8;

    left:50%;

    transform:translateX(-50%);

    bottom:-15px;

    border-radius:10px;

}

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

.about{

    text-align:center;

}

.about p{

    max-width:900px;

    margin:auto;

    font-size:18px;

    line-height:2;

    color:#cbd5e1;

}

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

.skills-container{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(450px,1fr));

    gap:35px;

}

.skill{

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    padding:25px;

    border-radius:18px;

    transition:.35s;

}

.skill:hover{

    transform:translateY(-8px);

    box-shadow:0 15px 35px rgba(0,0,0,.35);

}

.skill p{

    margin-bottom:15px;

    font-weight:600;

    font-size:18px;

}

.bar{

    width:100%;

    height:12px;

    border-radius:50px;

    background:#1e293b;

    overflow:hidden;

}

.bar span{

    display:block;

    height:100%;

    border-radius:50px;

    background:linear-gradient(90deg,#2563eb,#38bdf8);

    animation:growBar 2s ease;

}

@keyframes growBar{

    from{

        width:0;

    }

}

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

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

    gap:35px;

}

.project-card{

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(18px);

    border-radius:20px;

    padding:40px;

    transition:.4s;

    text-align:center;

}

.project-card:hover{

    transform:translateY(-15px);

    box-shadow:0 20px 45px rgba(37,99,235,.25);

}

.project-card i{

    font-size:50px;

    color:#38bdf8;

    margin-bottom:25px;

}

.project-card h3{

    margin-bottom:20px;

    font-size:26px;

}

.project-card p{

    color:#cbd5e1;

    line-height:1.8;

}

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

.timeline{

    max-width:900px;

    margin:auto;

    position:relative;

}

.timeline::before{

    content:"";

    position:absolute;

    width:3px;

    background:#38bdf8;

    left:30px;

    top:0;

    bottom:0;

}

.timeline-item{

    position:relative;

    margin-left:80px;

    margin-bottom:50px;

    background:rgba(255,255,255,.05);

    backdrop-filter:blur(12px);

    border-radius:20px;

    padding:30px;

}

.timeline-item::before{

    content:"";

    position:absolute;

    width:18px;

    height:18px;

    background:#38bdf8;

    border-radius:50%;

    left:-59px;

    top:35px;

}

.timeline-item h3{

    margin-bottom:10px;

}

.timeline-item span{

    display:block;

    color:#38bdf8;

    margin-bottom:15px;

    font-weight:600;

}

.timeline-item p{

    color:#cbd5e1;

    line-height:1.8;

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

.contact{

    padding-bottom:120px;

}

.contact form{

    max-width:800px;

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact input,
.contact textarea{

    width:100%;

    padding:18px 22px;

    border:none;

    outline:none;

    border-radius:15px;

    background:rgba(255,255,255,.08);

    border:1px solid rgba(255,255,255,.1);

    backdrop-filter:blur(12px);

    color:white;

    font-size:16px;

}

.contact input::placeholder,
.contact textarea::placeholder{

    color:#94a3b8;

}

.contact textarea{

    resize:none;

}

.contact button{

    align-self:flex-start;

}

/*==========================================
FOOTER
==========================================*/

footer{

    padding:35px;

    text-align:center;

    background:#0b1120;

    border-top:1px solid rgba(255,255,255,.08);

}

footer p{

    color:#94a3b8;

    font-size:15px;

}

/*==========================================
HAMBURGER
==========================================*/

.hamburger{

    display:none;

    flex-direction:column;

    cursor:pointer;

}

.hamburger span{

    width:28px;

    height:3px;

    margin:4px 0;

    background:white;

    border-radius:10px;

    transition:.3s;

}

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

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:50px;

}

::-webkit-scrollbar-thumb:hover{

    background:#38bdf8;

}

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

.section{

    opacity:0;

    transform:translateY(50px);

    transition:all .8s ease;

}

.section.show{

    opacity:1;

    transform:translateY(0);

}

/*==========================================
LIGHT MODE
==========================================*/

body.light{

    background:#f8fafc;

    color:#111827;

}

body.light::before,
body.light::after{

    opacity:.15;

}

body.light header{

    background:rgba(255,255,255,.85);

    border:1px solid rgba(0,0,0,.08);

}

body.light .logo,
body.light .nav-links a{

    color:#111827;

}

body.light .nav-links a:hover{

    color:#2563eb;

}

body.light .description,
body.light .about p,
body.light .timeline-item p,
body.light .project-card p,
body.light .hero h2{

    color:#475569;

}

body.light .skill,
body.light .project-card,
body.light .timeline-item,
body.light input,
body.light textarea{

    background:white;

    color:#111827;

    border:1px solid #e2e8f0;

}

body.light .bar{

    background:#dbeafe;

}

body.light footer{

    background:#e2e8f0;

}

body.light footer p{

    color:#475569;

}

body.light .socials a{

    background:#e2e8f0;

    color:#2563eb;

}

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

@media(max-width:992px){

.hero{

    text-align:center;

}

.hero-content{

    flex-direction:column-reverse;

}

.hero-text{

    display:flex;

    flex-direction:column;

    align-items:center;

}

.image-circle{

    width:320px;

    height:320px;

}
.image-circle::before{

content:"";

position:absolute;

inset:-12px;

border-radius:50%;

background:conic-gradient(

#2563eb,

#38bdf8,

#7c3aed,

#2563eb

);

filter:blur(18px);

opacity:.6;

z-index:-1;

animation:spinGlow 8s linear infinite;

}

.hero h1{

    font-size:55px;

}

.hero h2{

    font-size:26px;

}

.skills-container{

    grid-template-columns:1fr;

}

}

@media(max-width:768px){

header{

    padding:16px 25px;

}

.nav-links{

    position:absolute;

    top:85px;

    left:0;

    width:100%;

    background:#0f172a;

    flex-direction:column;

    align-items:center;

    gap:25px;

    padding:35px 0;

    display:none;

    border-radius:20px;

}

.nav-links.active{

    display:flex;

}

.hamburger{

    display:flex;

}

.hero{

    padding-top:160px;

}

.hero h1{

    font-size:42px;

}

.hero h2{

    font-size:22px;

}

.description{

    font-size:16px;

}

.image-circle{

    width:420px;

    height:420px;

    border-radius:50%;

    padding:8px;

    background:linear-gradient(
        135deg,
        #2563eb,
        #38bdf8,
        #7c3aed,
        #2563eb
    );

    background-size:300% 300%;

    animation:gradientMove 6s ease infinite;

    box-shadow:0 0 45px rgba(37,99,235,.45);

}

.section{

    padding:80px 25px;

}

.section-title{

    font-size:36px;

}

.project-grid{

    grid-template-columns:1fr;

}

.timeline-item{

    margin-left:60px;

}

}

@media(max-width:480px){

.hero-buttons{

    flex-direction:column;

    width:100%;

}

.btn{

    width:100%;

    text-align:center;

}

.socials{

    justify-content:center;

}

.hero h1{

    font-size:36px;

}

.section-title{

    font-size:32px;

}

}
.nav-links a.active{
    color:#38bdf8;
}

.nav-links a.active::after{
    width:100%;
}
@keyframes gradientMove{

0%{

background-position:0% 50%;

}

50%{

background-position:100% 50%;

}

100%{

background-position:0% 50%;

}

}
@keyframes borderFlow{

0%{

background-position:0% 50%;

}

50%{

background-position:100% 50%;

}

100%{

background-position:0% 50%;

}

}

@keyframes floating{

0%{

transform:translateY(0px);

}

50%{

transform:translateY(-10px);

}

100%{

transform:translateY(0px);

}

}
@keyframes spinGlow{

0%{

transform:rotate(0deg);

}

100%{

transform:rotate(360deg);

}