html{
    scroll-behavior: smooth;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "poppins", sans-serif;
}
body{
    background: #0f172a;
    color: white;
}
.header{
    width:100%;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    transition:.3s;
}
.header.sticky{
    background:rgba(17,24,39,.95);
    backdrop-filter:blur(10px);
    box-shadow:0 5px 20px rgba(0,0,0,.3);
}
.navbar{
    width: 90%;
    height: 90px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    font-size: 30px;
    color: #38bdf8;
    text-decoration: none;
    font-weight: 700;
}
.nav-menu{
    display: flex;
    list-style: none;
    gap: 35px;
}
.nav-menu a{
    color: white;
    text-decoration: none;
    transition: 3s;
}
.nav-menu a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 3px;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
    transition: 0.2s;
    border-radius: 10px;
}

.nav-menu a:hover::after{
    width: 100%;
}

.nav-menu a:hover{
    color: #38bdf8;
    text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8;
}
.nav-menu a:hover{
    color: #38bdf8;
}
.menu.btn{
    display: none;
    font-size: 28px;
    cursor: pointer;
}
.hero{
    width:90%;
    margin:auto;
    min-height:100vh;
    padding-top:100px ;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.hero-content{
    width:50%;
}

.hero-content h3{
    font-size:28px;
}

.hero-content h1{
    font-size:65px;
    color:#38bdf8;
    margin:10px 0;
}

.hero-content h2{
    font-size:35px;
}

.hero-content span{
    color:#38bdf8;
}

.hero-content p{
    margin:20px 0;
    line-height:1.8;
}

.btn{
    display:inline-block;
    padding:14px 35px;
    background:#38bdf8;
    color:white;
    text-decoration:none;
    border-radius:8px;
    transition:.3s;
}
.btn:hover{
    background:#0ea5e9;
}
.hero-image{
    width: 50%;
    display: flex;
    justify-content: center;
}
.hero-image img{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #38bdf8;
}
.social-icons{
    display:flex;
    gap:20px;
    margin-top:30px;
}
.social-icons a{
    width:50px;
    height:50px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    font-size:22px;
    transition:0.4s;
    color:#fff;
}
/* Facebook */
.social-icons a:nth-child(1){
    background:#1877F2;
}
/* Instagram */
.social-icons a:nth-child(2){
    background:linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888);
}
/* GitHub */
.social-icons a:nth-child(3){
    background:#24292e;
}
/* LinkedIn */
.social-icons a:nth-child(4){
    background:#0A66C2;
}
.social-icons a:hover{
    transform:translateY(-8px) scale(1.1);
    box-shadow:0 0 20px rgba(0,0,0,.3);
}
@media (max-width:768px){
    .menu-btn{
        display:block;
    }
.nav-menu{
        position:absolute;
        top:90px;
        left:0;
        width:100%;
        background:#111827;
        flex-direction:column;
        text-align:center;
        display:none;
        padding:30px 0;
    }
    .nav-menu.active{
        display:flex;
    }
}
@media (max-width:768px){

    .hero{
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 120px;
    }
    .hero-content{
        width:100%;
    }
    .hero-image{
        width:100%;
    }
    .hero-image img{
        width:250px;
        height:250px;
    }
    .social-icons{
        justify-content:center;
    }

}
.nav-menu a.active {
    color: #38bdf8;
}
.nav-menu.active::after{
    width: 100%;
}
.about{
    width:90%;
    min-height:100vh;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:80px;
}
.about-img{
    flex:1;
    display:flex;
    justify-content:center;
}
.about-img img{
    width:350px;
    height:350px;
    object-fit:cover;
    border-radius:20px;
    border:5px solid #38bdf8;
    box-shadow:0 0 30px rgba(56,189,248,.5);
}
.about-content{
    flex:1;
}
.about-content h2{
    font-size:50px;
    margin-bottom:20px;
}
.about-content span{
    color:#38bdf8;
}
.about-content h3{
    font-size:30px;
    margin-bottom:15px;
}
.about-content p{
    line-height:1.8;
    margin-bottom:30px;
}

.services{
    width:90%;
    margin:auto;
    padding:100px 0;
}

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

.section-title span{
    color:#38bdf8;
}

.services-container{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
}

.service-box{
    width:350px;
    background:#1e293b;
    padding:40px 30px;
    border-radius:20px;
    text-align:center;
    transition:.4s;
}

.service-box i{
    font-size:60px;
    color:#38bdf8;
    margin-bottom:20px;
}

.service-box h3{
    font-size:28px;
    margin-bottom:15px;
}

.service-box p{
    line-height:1.8;
    margin-bottom:25px;
}

.service-box:hover{
    transform:translateY(-15px);
    box-shadow:0 0 25px rgba(56,189,248,.5);
}

.portfolio{

    width:90%;
    margin:auto;
    padding:100px 0;

}

.portfolio-container{

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

}

.portfolio-box{

    position:relative;
    overflow:hidden;
    border-radius:20px;

}

.portfolio-box img{

    width:100%;
    display:block;
    transition:.5s;

}

.portfolio-layer{

    position:absolute;
    left:0;
    bottom:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(rgba(0,0,0,.2),#38bdf8);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    transition:.5s;

}

.portfolio-box:hover img{

    transform:scale(1.1);

}

.portfolio-box:hover .portfolio-layer{

    bottom:0;

}
.contact{
    width: 90%;
    margin: auto;
    padding: 120px 0;
}

.contact form{
    max-width: 850px;
    margin: auto;
    background: #1e293b;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(56,189,248,.2);
    box-shadow: 0 0 30px rgba(56,189,248,.15);
}

.input-box{
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-box input,
.contact textarea{
    width: 100%;
    padding: 18px;
    background: #0f172a;
    border: 2px solid transparent;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: .3s;
}

.input-box input:focus,
.contact textarea:focus{
    border-color: #38bdf8;
    box-shadow: 0 0 20px rgba(56,189,248,.4);
}

.contact textarea{
    width: 100%;
    resize: none;
    margin-bottom: 25px;
}

.contact .btn{
    width: 100%;
    padding: 18px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(90deg,#38bdf8,#0ea5e9);
    color: white;
    transition: .4s;
}

.contact .btn:hover{
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(56,189,248,.6);
}
.contact-container{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:40px;
}

.contact-cards{
    width:30%;
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.contact-card{
    background:#1e293b;
    padding:25px;
    border-radius:15px;
    text-align:center;
    border:1px solid rgba(56,189,248,.2);
    transition:.4s;
}

.contact-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 25px rgba(56,189,248,.5);
}

.contact-card i{
    font-size:35px;
    color:#38bdf8;
    margin-bottom:15px;
}

.contact-card h3{
    margin-bottom:10px;
}

.contact form{
    width:70%;
}
.contact-card a{
    color: #fff;
    text-decoration: none;
}
@media (max-width:768px){

    .contact-container{
        flex-direction:column;
        gap:30px;
    }

    .contact-cards{
        width:100%;
        grid-template-columns:repeat(2,1fr);
    }

    .contact form{
        width:100%;
    }

    .input-box{
        flex-direction:column;
    }
}
.contact-card{
    grid-template-columns: 1fr;
}
.footer{
    margin-top:100px;
    padding:50px 8%;
    background:#0f172a;
    border-top:1px solid rgba(56,189,248,.2);
    text-align:center;
}

.footer-text h3{
    color:#38bdf8;
    font-size:30px;
    margin-bottom:10px;
}

.footer-text p{
    color:#bfc9d9;
    margin-bottom:30px;
}

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

.footer-social a{
    width:50px;
    height:50px;
    border:2px solid #38bdf8;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#38bdf8;
    font-size:20px;
    text-decoration:none;
    transition:.4s;
}

.footer-social a:hover{
    background:#38bdf8;
    color:#fff;
    transform:translateY(-8px);
    box-shadow:0 0 20px #38bdf8;
}

.footer-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-top:1px solid rgba(255,255,255,.1);
    padding-top:25px;
    margin-top:20px;
}

.footer-bottom p{
    color:#bfc9d9;
}

.top-btn{
    width:45px;
    height:45px;
    background:#38bdf8;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    text-decoration:none;
    transition:.4s;
}

.top-btn:hover{
    transform:translateY(-6px);
    box-shadow:0 0 20px #38bdf8;
}

@media(max-width:768px){

    .footer-bottom{
        flex-direction:column;
        gap:20px;
    }

}
.theme-btn{
    width:45px;
    height:45px;
    border:2px solid #38bdf8;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    color:#38bdf8;
    transition:.4s;
}

.theme-btn:hover{
    background:#38bdf8;
    color:#fff;
    box-shadow:0 0 20px #38bdf8;
}
.light-mode{
    background:#ffffff;
    color:#111827;
}

.light-mode header{
    background:#ffffff;
}

.light-mode .service-box,
.light-mode .contact-card,
.light-mode form,
.light-mode .about,
.light-mode .portfolio-box{
    background:#f3f4f6;
    color:#111827;
}
.skills{
    width:90%;
    margin:auto;
    padding:100px 0;
}

.skills-container{
    max-width:800px;
    margin:auto;
}

.skill{
    margin-bottom:30px;
}

.skill-info{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
}

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

.progress{
    height:100%;
    background:linear-gradient(90deg,#38bdf8,#0ea5e9);
    border-radius:20px;
}

.html{
    width:95%;
}

.css{
    width:90%;
}

.js{
    width:85%;
}

.react{
    width:75%;
}
.counter{
    width:90%;
    margin:100px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:30px;
}

.counter-box{
    background:#1e293b;
    padding:40px;
    text-align:center;
    border-radius:20px;
    transition:.4s;
}

.counter-box:hover{
    transform:translateY(-10px);
    box-shadow:0 0 25px rgba(56,189,248,.5);
}

.counter-box h2{
    font-size:50px;
    color:#38bdf8;
    margin-bottom:10px;
}

.counter-box p{
    font-size:18px;
}
#progress-bar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:5px;
    background:linear-gradient(90deg,#38bdf8,#0ea5e9);
    z-index:99999;
    box-shadow:0 0 15px #38bdf8;
}

.contact-card a{
    text-decoration: none !important;
}

.contact-card a:hover{
    text-decoration: none;
    color: #64b5ff;
}






.privacy-page{
    padding:120px 10%;
    color:#fff;
    min-height:100vh;
}

.privacy-page h1{
    font-size:48px;
    margin-bottom:20px;
}

.privacy-page h2{
    margin-top:35px;
    margin-bottom:15px;
}

.privacy-page p,
.privacy-page li{
    line-height:1.9;
    color:#cfcfcf;
}

.privacy-page ul{
    margin-left:20px;
}

.privacy-page .btn{
    margin-top:35px;
    display:inline-block;
}
.footer-links{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.footer-links a{
    color:#cfcfcf;
    text-decoration:none;
    transition:.3s;
}

.footer-links a:hover{
    color:#00abf0;
}
.footer-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.footer-links a{
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.footer-links a:hover{
    color: #00abf0;
}