:root{
    --primary:#2563EB;
    --secondary:#38BDF8;
    --dark:#0F172A;
    --light:#F8FAFC;
    --text:#CBD5E1;
    --white:#FFFFFF;
}



/* LOADER */
#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#0F172A;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    transition:opacity .8s ease, visibility .8s;
}

.loader-content{
    text-align:center;
}

.loader-content h1{
    font-size:50px;
    color:#2563EB;
    margin-bottom:30px;
}

.loading-bar{
    width:250px;
    height:8px;
    background:#1E293B;
    border-radius:30px;
    overflow:hidden;
    margin:auto;
}

.loading-bar span{
    display:block;
    height:100%;
    width:0;
    background:linear-gradient(90deg,#2563EB,#38BDF8);
    animation:loading 2s linear forwards;
}

.loader-content p{
    margin-top:20px;
    color:#CBD5E1;
}

@keyframes loading{
    from{
        width:0;
    }
    to{
        width:100%;
    }
}

#loader.hide{
    opacity:0;
    visibility:hidden;
}













.menu-btn:hover{
    color:var(--primary);
}
.menu-btn{
    transition:.3s;
}

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

html{
    scroll-behavior: smooth;
}
body{
    font-family:"Poppins", sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
}


main{
    padding-top:90px;
}
nav{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    padding: 20px 1%;

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

    background: rgba(15,23,42,.7);
    backdrop-filter: blur(15px);

    z-index: 1000;
    transition: .3s;
    border-bottom: 1px solid rgba(255,255,255,.08);
}



.logo{
    color: var(--primary);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
    padding-right: 5px;
}
.logo:hover{
    color: white;
}

.nav_link{
    display: flex;
    gap: 35px;
}

.nav_link a{
    position:relative;
    color:white;
    text-decoration:none;
    font-size:17px;
    font-weight:500;
    transition:.3s;
    width:100%;
    text-align:center;
    padding:15px 0;

}

.nav_link a::after{
    content:"";
    position:absolute;

    left:0;
    bottom:-6px;

    width:0;
    height:2px;

    background:var(--primary);

    transition:.3s;
}

.nav_link a:hover::after,
.nav_link a.active::after{
    width:100%;
}

.nav_link a:hover{
    color: var(--primary);
     background:rgba(37,99,235,.15);
}

.active{
    color: var(--primary)!important;
}

.menu-btn{
    display: none;
}
nav.scrolled{
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 5px 20px rgba(0,0,0,.3);
    padding: 15px 6%;
}

.nav_link.show{
    right:0;
}

.theme-btn{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#2563EB;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    font-size:22px;
    transition:.3s;
    margin-left:15px;
}

.theme-btn:hover{
    transform:rotate(180deg);
}

















#home{
    min-height:100vh;
    display:flex;
    align-items:center;
    position:relative;
    overflow:hidden;

    background:linear-gradient(
        -45deg,
        #0F172A,
        #1E3A8A,
        #2563EB,
        #111827
    );

    background-size:400% 400%;

    animation:gradientMove 12s ease infinite;
     
    background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(135deg,#0F172A 0%,#111827 50%,#1E3A8A 100%);

    background-size:40px 40px,40px 40px,cover;
}

@keyframes gradientMove{

0%{
    background-position:0% 50%;
}

50%{
    background-position:100% 50%;
}

100%{
    background-position:0% 50%;
}

}

#home::before{
    content:"";
    position:absolute;

    width:350px;
    height:350px;

    background:#2563EB;

    border-radius:50%;

    filter:blur(180px);

    top:-120px;
    left:-120px;

    opacity:.35;
}
#home::after{
    content:"";
    position:absolute;

    width:300px;
    height:300px;

    background:#38BDF8;

    border-radius:50%;

    filter:blur(180px);

    right:-100px;
    bottom:-100px;

    opacity:.25;
}


.particles{
    position:absolute;
    width:100%;
    height:100%;
    top:0;
    left:0;
    overflow:hidden;
}
.particles span{
    position:absolute;
    display:block;

    width:8px;
    height:8px;

    background:#38BDF8;

    border-radius:50%;

    box-shadow:0 0 15px #38BDF8;

    animation:floatParticle 15s linear infinite;
}

.particles span:nth-child(odd){
    background:#38BDF8;
    box-shadow:0 0 15px #38BDF8;
}

.particles span:nth-child(even){
    background:#FFFFFF;
    box-shadow:0 0 15px #FFFFFF;
}

.particles span:nth-child(1){
    left:10%;
    animation-duration:14s;
}

.particles span:nth-child(2){
    left:25%;
    animation-duration:18s;
    width:14px;
    height:12px;
}

.particles span:nth-child(3){
    left:40%;
    animation-duration:20s;
}

.particles span:nth-child(4){
    left:55%;
    animation-duration:16s;
}

.particles span:nth-child(5){
    left:70%;
    width: 12px;
    height: 12px;
    animation-duration:22s;
}

.particles span:nth-child(6){
    left:82%;
    animation-duration:15s;
}

.particles span:nth-child(7){
    left:90%;
    width: 5px;
    height: 5px;
    animation-duration:19s;
}

.particles span:nth-child(8){
    left:97%;
    animation-duration:24s;
}

@keyframes floatParticle{

0%{
    transform:translate(0,100vh) scale(0);
    opacity:0;
}

20%{
    opacity:1;
}

50%{
    transform:translate(30px,50vh) scale(1);
}

80%{
    opacity:1;
}

100%{
    transform:translate(-20px,-100px) scale(1.5);
    opacity:0;
}

}

.cursor{
    color: #d06c2e;
    animation: blink .8s infinite;
}
@keyframes blink{

0%,100%{
    opacity:1;
}

50%{
    opacity:0;
}

}

.hero-container{
    width:90%;
    max-width:1200px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
    position: relative;
    z-index: 2;
}
.hero-text{
    flex:1;
}
.hero-image{
    flex:1;
    display:flex;
    justify-content:center;
}
.hero-text h1{
    font-size:60px;
    margin:15px 0;
    letter-spacing: 2px;
}
.hero-text h2{
    font-size:34px;
    color:var(--secondary);
    margin-bottom:20px;
}

.description{
    color: var(--text);
    line-height: 1.8;
    max-width: 600px;
}

.hero-btn{
    margin-top: 35px;
    display: flex;
    gap: 20px;
}

.intro{
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 10px;
}

.image-box{
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow-x: hidden;
    border: 6px solid var(--primary);
    box-shadow:
0 0 20px #2563EB,
0 0 50px rgba(37,99,235,.5);
}

.image-box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-btn a{
    display:inline-block;
    padding:15px 35px;
    text-decoration:none;
    border-radius:50px;
    font-size:16px;
    font-weight:600;
    transition:.3s;
    cursor:pointer;
}

.hire-btn{
    background:#2563EB;
    color:#fff;
}

.project-btn{
    background:transparent;
    color:#fff;
    border:2px solid #2563EB;
}

.hero-btn a:hover{
    transform:translateY(-8px) scale(1.05);
    box-shadow:0 15px 35px rgba(37,99,235,.5);
}








.hire-btn{
    background:var(--primary);
    color:white;
}

.project-btn{
    background:transparent;
    color:white;
    border:2px solid var(--primary);
}

.hero-btn button:hover{
    transform:translateY(-8px) scale(1.05);
    box-shadow:0 15px 35px rgba(37,99,235,.5);
}

.socials{
    margin-top:40px;
    display:flex;
    gap:20px;
}
.socials a{
    color:var(--text);
    text-decoration:none;
    font-weight: 600;
    margin-right: 20px;
    transition:.3s;
}

.socials a:hover{
    color:var(--primary);
}
.hero-text h1{
    font-size:60px;
    font-weight:700;
    line-height:1.2;

    background:linear-gradient(90deg,#2563EB,#38BDF8);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.hero-text h2{
    margin:20px 0;
    line-height:1.4;
}

.hero-container{
    padding-top:70px;
}
   .image-box{
    background:#2563EB;
}
.image-box{
 
    box-shadow:
0 0 30px rgba(37,99,235,.6),
0 0 80px rgba(37,99,235,.4),
0 0 120px rgba(37,99,235,.2);


    animation:float 4s ease-in-out infinite;
}



@keyframes float{

0%{
transform:translateY(0);
}

50%{
transform:translateY(-15px);
}

100%{
transform:translateY(0);
}

}

@media(max-width:900px){

.hero-container{
width: 100%;
flex-direction:column-reverse;

text-align:center;

}

.menu-btn{
    display:block;
    font-size:30px;
    cursor:pointer;
    color:white;
}
.nav_link{
    position:fixed;
    top:80px;
    right:-100%;
    width:250px;
    height:100vh;
    background:#0F172A;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding-top:40px;
    gap:30px;
    transition:.4s;
}



.hero-btn{

justify-content:center;

}

.socials{

justify-content:center;

display:flex;

}

.hero-text h1{

font-size:45px;

}

.image-box{

width:300px;
height:300px;

}



/* ABOUT SECTION */

.about-container{
    flex-direction: column;
    text-align: center;
    gap: 40px;
}

.about-image img{
    width: 250px;
    max-width: 100%;
}

.about-content h2{
    font-size: 32px;
}

.about-content p{
    font-size: 16px;
    line-height: 1.8;
}

.about-cards{
    grid-template-columns:repeat(2,1fr);
    gap:15px;
}

.contact-container{

    grid-template-columns:1fr;

}


.cv-btn{
    width: 100%;
    max-width: 250px;
}

.card{
    padding:18px;
}

.card h3{
    font-size:24px;
}

.card p{
    font-size:14px;
}

.services-container{
    grid-template-columns:1fr;
}

.projects-container{
    grid-template-columns:1fr;
}

}

/*about section*/
#about{
    padding:100px 8%;
    background:#111827;
}

.about-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:70px;
    max-width:1200px;
    margin:auto;
}

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

.about-image img{
    width:380px;
    border-radius:20px;
    box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.about-content{
    flex:1;
}

.about-content h4{
    color:var(--primary);
    letter-spacing:3px;
    margin-bottom:10px;
}

.about-content h2{
    font-size:40px;
    margin-bottom:20px;
}

.about-content p{
    color:var(--text);
    line-height:1.8;
    margin-bottom:20px;
}





.about-cards{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin:40px 0;
}

.card{
    background:#1E293B;
    padding:25px;
    border-radius:15px;
    text-align:center;
    transition:.4s;
}

.card:hover{
    transform:translateY(-10px);
    background:var(--primary);
}

.card h3{
    font-size:30px;
}

.card p{
    margin-top:10px;
}





.cv-btn{
    padding:15px 35px;
    border:none;
    border-radius:50px;
    background:var(--primary);
    color:white;
    cursor:pointer;
    font-size:17px;
    transition:.3s;
    text-decoration: none;
}

.cv-btn:hover{
    transform:translateY(-5px);
      transform:translateY(-8px) scale(1.05);
    box-shadow:0 15px 35px rgba(37,99,235,.5);
}





#services{
    background:#111827;
}

.services-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:30px;
    max-width:1200px;
    margin:auto;
}
@media (max-width: 900px) {
    .services-container{
        gap: 30px;
        max-width: 90%;
        padding: 5%;
        grid-template-columns: repeat(1,1fr);
    }

}



.service-card{
    background:#1E293B;
    padding:30px;
    border-radius:20px;
    transition:.4s;
    text-align:center;
    border:1px solid rgba(255,255,255,.08);
}

.service-card:hover{
    transform:translateY(-12px);
    background:#2563EB;
}

.icon{
    font-size:55px;
    margin-bottom:20px;
}


.service-card h3{
    margin-bottom:15px;
    font-size:24px;
}

.service-card p{
    color:var(--text);
    line-height:1.8;
}

.service-card:hover p{
    color:white;
}



.section-title{
    text-align:center;
    font-size:42px;
    margin-bottom:60px;
    color:white;
    position:relative;
}

.section-title::after{
    content:"";
    width:80px;
    height:4px;
    background:var(--primary);
    display:block;
    margin:15px auto;
    border-radius:5px;
}





#projects{
    padding:100px 8%;
    background:#0F172A;
}

.projects-container{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:35px;
}


.project-card{
    background:#1E293B;
    border-radius:20px;
    overflow:hidden;
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
}


.project-card img{
    width:100%;
    height:250px;
    object-fit:cover;
}


.project-info{
    padding:25px;
}

.project-info h3{
    margin-bottom:15px;
}

.project-info p{
    color:var(--text);
    line-height:1.7;
}



.tech{
    display:flex;
    gap:10px;
    margin:20px 0;
    flex-wrap:wrap;
}

.tech span{
    background:#2563EB;
    padding:8px 15px;
    border-radius:30px;
    font-size:14px;
}


.project-btns{
    display:flex;
    gap:20px;
}

.project-btns a{
    text-decoration:none;
    background:#2563EB;
    color:white;
    padding:12px 22px;
    border-radius:30px;
    transition:.3s;
}

.project-btns a:hover{
    background:#38BDF8;
}






#contact{
    padding:100px 8%;
    background:#111827;
}

.contact-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    max-width:1200px;
    margin:auto;
}

.contact-info h3{
    font-size:32px;
    margin-bottom:20px;
}

.contact-info p{
    color:var(--text);
    line-height:1.8;
}

.info{
    margin-top:30px;
}

.info p{
    margin-bottom:15px;
}

.contact-form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.contact-form input,
.contact-form textarea{

    width:100%;
    padding:18px;

    background:#1E293B;

    color:white;

    border:1px solid #334155;

    border-radius:10px;

    outline:none;

    font-size:16px;
}

.contact-form button{

    padding:18px;

    border:none;

    border-radius:50px;

    background:var(--primary);

    color:white;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

.contact-form button:hover{

    transform:translateY(-5px);

}

footer{

    background:#0F172A;

    padding:40px;

    text-align:center;

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

}

footer h2{

    color:var(--primary);

    margin-bottom:15px;

}

footer p{

    color:var(--text);

}

.hidden{
    opacity:0;
    transform:translateY(80px);
    transition:all .8s ease;
}

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

.hidden-card{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.hidden-card.show-card{
    opacity:1;
    transform:translateY(0);
}

.nav_link a.active{
    color: var(--primary);
    transform: scale(1.08);
}

.nav_link a.active::after{
    width:100%;
}



#skills{
    padding:100px 8%;
    background:#0F172A;
}

.section-title{
    text-align:center;
    font-size:42px;
    margin-bottom:60px;
}

.skills-container{
    max-width:900px;
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:30px;
}

.skill{
    background:#1E293B;
    padding:25px;
    border-radius:15px;
}

.skill-title{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
    font-weight:600;
}

.progress{
    width:100%;
    height:12px;
    background:#425776;
    border-radius:30px;
    overflow:hidden;
}



.progress-bar{
    height:100%;
    width:0;
    background:linear-gradient(90deg,#2563EB,#ec0404e2);
    border-radius:30px;
    transition:width 2s ease-in-out, ;
}



/* Back To Top Button */
#topBtn{
    position:fixed;
    right:30px;
    bottom:30px;
    width:115px;
    height:55px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,#2563EB,#38BDF8);
    color:white;
    font-size:24px;
    cursor:pointer;
    box-shadow:0 10px 25px rgba(37,99,235,.5);

    opacity:0;
    visibility:hidden;
    transform:translateY(20px);
    transition:.4s;

    z-index:999;
}



/* CONTACT SECTION RESPONSIVE */
@media (max-width: 900px) {
    .contact-container{
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    

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

    .contact-info h3{
        font-size: 28px;
    }

    .contact-info p{
        font-size: 16px;
    }

    .contact-form{
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button{
        width: 100%;
        font-size: 16px;
    }

    .project-card{
    width:100%;
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-info{
    padding:20px;
}

.project-info h3{
    font-size:22px;
}

.project-info p{
    font-size:15px;
    line-height:1.7;
}

.tech{
    gap:8px;
}

.tech span{
    font-size:13px;
    padding:6px 12px;
}

.project-btns{
    flex-direction:column;
    gap:12px;
}

.project-btns a{
    width:100%;
    text-align:center;
}
.projects-container{
    grid-template-columns:1fr;
    gap:25px;
}
}

@media (max-width: 600px){
    #contact{
        padding: 70px 20px;
    }

    .contact-info h3{
        font-size: 24px;
    }

    .contact-info p{
        font-size: 15px;
    }

    .contact-form input,
    .contact-form textarea{
        padding: 15px;
    }

    .contact-form button{
        padding: 15px;
        font-size: 16px;
    }
}









#topBtn.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}

#topBtn:hover{
    transform:translateY(-6px) scale(1.08);
    box-shadow:0 15px 35px rgba(37,99,235,.6);
}
body.light-mode{
    background:#f8fafc;
    color:#0F172A;
}

body.light-mode nav{
    background:rgba(255,255,255,.95);
}

body.light-mode #home{
    background:#f8fafc;
}

body.light-mode #about,
body.light-mode #skills,
body.light-mode #services,
body.light-mode #projects,
body.light-mode #contact{
    background:#ffffff;
}

body.light-mode .card,
body.light-mode .service-card,
body.light-mode .project-card,
body.light-mode .skill,
body.light-mode .contact-form input,
body.light-mode .contact-form textarea{
    background:#ffffff;
    color:#0F172A;
    border:1px solid #d1d5db;
}

body.light-mode .nav_link a,
body.light-mode .description,
body.light-mode .contact-info p,
body.light-mode .project-info p,
body.light-mode .service-card p,
body.light-mode .about-content p,
body.light-mode footer p{
    color:#334155;
}

body.light-mode footer{
    background:#e2e8f0;
}

body.light-mode .project-btn{
    color:#2563EB;
}


.hero-btn a{
    text-decoration:none;
    padding:15px 35px;
    border-radius:50px;
    display:inline-block;
    font-size:16px;
    font-weight:600;
    transition:.3s;
}

.hire-btn{
    background:#2563EB;
    color:white;
}