@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins',sans-serif;
    text-decoration: none;
    scroll-behavior: smooth;
}
body{
    width: 100%;
    height:auto ;
    background-color:#000;
    overflow-x: hidden;
}
/*custom scroll Bar CSS*/
::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-track{
    background:#f1f1f1;  
}
::-webkit-scrollbar-thumb{
    background:#1e90ff;
    border-radius:12px;
    transition: all 0.3s ease;
}
::-webkit-scrollbar-thumb:hover{
    background:#1e90ff;
}
/*navbar styling*/
nav{
    width: 100%;
    height: 10vh;
}
.nav-container{
    width:100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;  
}
.logo{
    color: #fff;
    font-size: 2rem;
    font-weight: bold;  
}
.logo span{
    color: #1e90ff;
    text-shadow: 0 0 10px #1e90ff;
}
.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: #fff;
    opacity: 0;
    pointer-events:none;
    font-size: clamp(1.9rem , 0.5rem + 5vw , 1rem);
}
.nav-container .links{
    display: flex;
}
.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}
.nav-container .links a::before{
    content: '';
    position: absolute;
    background-color: #1e90ff;
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    transition: 0.2s linear;
}
.nav-container .links a:hover::before{
    width: 100%;
}
.nav-container .links a:hover{
    color: #1e90ff;
}

.dropdown{
    z-index:100 ;
    position: absolute;
    top: 0;
    transform: translateY(-550px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0 20px rgb(0, 0, 0);
    transition: 0.2s linear;
}
.dropdown .links a{
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    transition: 0.2s linear;
}
.dropdown .links a:hover{
    background-color: #1e90ff;
}



section{
    width: 100%;
    min-height: 90vh;
}
section .main-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 100px;
}
.main-container .image{
    width: 378px;
    height: 60vh;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px #1e90ff;
    margin:50px 0 0 50px;
}
.main-container .image img{
    width:100%;
}
  
.main-container .image img:hover{
    animation: animate 1.5s ease-in-out;
}




@keyframes animate{
    0%{ scale: 1; }
    50% { scale: 1.05; }
    100%{ scale: 1; }
}
.main-container .content{
    color: white;
    width: 40%;
}
.content h1{
    font-size: clamp(1rem,1rem + 5vw ,1.8rem);
}
.content h1 span{
    color:#1e90ff;
    text-shadow: 0 0 10px #1e90ff;
}
.content .typewriter {
    font-size: clamp(1rem , 1rem + 5vw , 1.9rem);
    font-weight: 600;
}
.content .typewriter-text{
    color: #1e90ff;
    text-shadow: 0 0 10px #1e90ff;
}
.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw ,1rem);
    margin: 10px;
}
.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border-radius: 50%;
    color: #1e90ff;
    margin: 5px 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}
.social-links i:hover{
    scale: 1.3;
    color: #000;
    background-color: #1e90ff;
    filter: drop-shadow(0 0 10px #1e90ff);
}
.content button{
    width: 50%;
    height: 6vh;
    margin: 30px;
    background-color: #1e90ff;
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}
.content button:hover{
    scale: 1.1;
    color: #1e90ff;
    border: 2px solid #1e90ff;
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px #1e90ff;
}

/* About section style */
section .content{
    width: 80%;
    margin: 0px auto;
    font-family: 'poppins',sans-serif;
}
.about .about-details{
    display: flex;
    justify-content:space-between;
    align-items: center;
}
section .title{
    display: flex;
    justify-content: center;
    margin-bottom:40px ;
}
section .title span{
    color: #fff;
    font-weight: 600;
    font-size: 30px;
    position: relative;
    padding-bottom: 8px;
}
section .title span::before,
section .title span::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #1e90ff;
}
section .title span::after{
    bottom:-7px ;
    width: 70%;
    left: 50%;
    transform: translate(-50px);
}
.about .about-details .left{
    width: 45%;
}
.about .left img{
    height: 400px;
    width: 400px;
    object-fit: cover;
    border-radius:12px ;
}
.about-details .right{
    width: 55%;
}
section .topic{
    color: #fff;
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 10px;
}
.about-details .right p{
    color: #fff;
    text-align: justify;
}
section .button{
    margin: 16px 0;
}
section .button button{
    outline: none;
    font-size: 25px;
    padding: 2px 16px;
    border-radius: 4px;
    font-weight: 400;
    background: #1e90ff;
    color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}
section .button button:hover{
    border-color: #1e90ff;
    color:#1e90ff;
    background-color:#fff;
}

/* Skills section style */
.skills{
    background-color: #000;
}
.skills .content{
    padding: 40px 0;
}
.skills .skills-details{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.skills-details .text{
    width: 50%;
}
.skills-details p {
    color: #fff;
    text-align: justify;
}
.skills .skills-details .experience{
    display: flex;
    align-items: center;
    margin: 0 10px;
}
.skills-details .experience .num{
    color: #fff;
    font-size: 80px;
}
.skills-details .experience .exp{
    color: #fff;
    margin-left: 20px;
    font-size: 18px;
    font-weight: 500;
    margin: 0 6px;
}
.skills-details .boxes{
    width: 45%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.skills-details .box{
    width: calc(100% / 2 - 20px);
    margin: 20px 0;
}
.skills-details .boxes .topic{
    color: #1e90ff;
    font-size: 20px;
}
.skills-details .boxes .per{
    font-size: 60px;
    color: #1e90ff;
}

/* services section style */
.services .boxes{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.services .boxes .box {
    margin: 20px 0 ;
    width: calc(100% / 3 - 20px);
    text-align: center;
    border-radius: 12px;
    padding: 30px 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.12);
    cursor: default;
    color: #fff;
    transition: all 0.4s ease;
}
.services .boxes .box:hover{
    background-color: #1e90ff;
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(30,144,255,0.5);
}
.services .boxes .box .icon{
    width: 50px;
    height: 50px;
    background-color: #1e90ff;
    border-radius: 50%;
    text-align: center;
    margin: 0 auto 10px auto;
    color: #fff;
    line-height: 50px;
    font-size: 20px;
    transition: all 0.4s ease;
}
.services .boxes .box .icon:hover{
    background-color: #fff;
    color: #1e90ff;
}
.services .boxes .box:hover .topic,
.services .boxes .box:hover p{
    color:white;
    transition: all 0.4s ease;
}

/* contact me section style */
.contact{
    background: #000;
}
.contact .content{
    margin: 0 auto;
    padding:30px 0 ;
}
.content .text {
    width: 80%;
    margin: auto;
    text-align: center;
}
.contact .text .topic{
    cursor: pointer;
}
footer {
    background: #1e90ff;
    padding: 15px 0 ;
    text-align: center;
    font-family: 'poppins',sans-serif;
}
footer .text span{
    color: #fff;
    font-size: 17px;
    font-weight:400;
}
footer .text span a{
    color:#fff;
    font-weight: 500;
}
footer .text span a:hover{
    text-decoration: underline;
}

/* typewriter animation */
.typewriter span::after{
    content: "";
    background-color: #000;
    position: absolute;
    width: calc(100% + 8px);
    height: 5%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
} 
@keyframes cursor {
    to { border-left:3px solid #1e90ff; }
}
.typewriter span::before{
    content: "software Developer";
    color: #1e90ff;
    animation: words 20s infinite;
} 
@keyframes words{
    0%, 20% { content: "Web Developer"; }
    21%,40%{ content: "Software Developer"; }
    41% , 60% { content: "Web Designer"; }
    61%,80%{ content: "Database developer"; }
    81% , 100%{ content: "Script Writer"; }
}

/* Responsive the pages */
@media(max-width:1000px){
    .about .about-details{ justify-content: center; flex-direction: column; }
    .about .about-details .left{ display: flex; justify-content: center; width: 100%; }
    .about-details .right{ width: 90%; margin:40px 0; }
    .about-details .right p{ text-align: center; }
    .services .boxes .box{ width: calc(100% / 2 - 20px); margin:20px 0; }
}
@media (max-width:900px){
    .about .left img{ height: 350px; width: 350px; }
}
@media (max-width:968px){
    nav .logo{ position: absolute; top :16px; left:15px; font-size: 1.5rem; }
    section .main-container{ padding-left: 0; display: flex; flex-direction: column; }
    .nav-container .links{ display: none; }
    .hamburg, .cancel{ opacity: 1; pointer-events: visible; }
    .main-container .content{ margin-top: 20px; width: 80%; }
    .social-links i{ height: 2.5rem; width: 2.5rem; font-size: 1.5rem; }
    .main-container .image{ z-index: -1; height: 60%; width: 50%; }
    .skills .skills-details{ justify-content: center; align-items: center; flex-direction: column; }
    .skills-details .text{ width: 100%; margin-bottom: 50px; }
    .skills-details .boxes{ justify-content: center; align-items: center; width: 100%; }
    .services .boxes .box{ width: 100%; margin: 20px 0; }
    .contact .text { width: 100%; }
}
@media(max-width:500px){
    .main-container .image{ width: 50%; height: 60%; margin-bottom: 0; }
    .about .button button{ font-size: 18px; }
    .main-container .content{ width: 80%; }
    .main-container button{ margin-top: 15px; }
    .skills-details .boxes .per{ font-size: 50px; color: #1e90ff; }
    .typewriter-text{
        font-size: 20px;
    }

    .content span{
        font-size: 20px;
    }
    .contact h1 {
        font-size: 10px;
    }
}

