/* ...............Universal Selector...............     */
*{
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;
}
body{
    
    padding-top: 70px;
}

section{
    padding: 80px 5%;
    scroll-margin-top: 60px;
}

/* ...................Color define......................... */
:root{
    --text-color:#f5f5f5;
    --hover-color:#12f7ff;
    --bg-color:#250821;
    --secon-bg-color:#292e33;
    --big-font:2.5rem;
    --normal-font:2.5rem;
    --neon-box-shadow:0 0.5rem #12f7ff;
    --h2-font:3rem;
    --font-neon-text-shadow:0 0 10px rgba(18,247,255,0.3),
    0 0 20px rgba(18,247,255,0.3),
    0 0 30px rgba(18,247,255,0.3),
    0 0 40px rgba(18,247,255,0.3),
    0 0 70px rgba(18,247,255,0.3),
    0 0 80px rgba(18,247,255,0.3),
    0 0 100px rgba(18,247,255,0.3),
    0 0 150px rgba(18,247,255,0.3);
}

/* .............Scroll-bar.................. */
::-webkit-scrollbar{
    height: 0;
    width: .5rem;
}
::-webkit-scrollbar-track{
    background:var(--secon-bg-color) ;
}
::-webkit-scrollbar-thumb{
    background: var(--hover-color);
    border-radius: 5rem;
}


/* ..............navbar.............    */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 12px 0;
    z-index: 1030;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    margin-right: 15px;
    transition: 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #fdd835 !important;
    transform: scale(1.1);
}
/* ................Home...........................  */
span{
    color: var(--hover-color);
}
.Home{
    min-height: 60vh;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2 ,1fr);
    align-items: center;
    grid-gap: 4em;
    background-color: var(--bg-color);
    color: var(--text-color);

}
.home-content{
   max-width: 600px;
}
.home-content {
    font-size: larger;
    font-weight: 700;
}
.change-text{
    font-size: 1.5rem;
    font-weight: 600;
}
.change-text h3{
    display: inline-flex;
    margin: 0;
    vertical-align: top;
}
.change-text h3 .word{
    position: absolute;
    display: flex;
    opacity: 0;
}
.change-text h3 .word .letter{
    transform-origin: center center 25px;
}

.change-text h3 .word .letter.out{
    transform: rotateX(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}
.change-text h3 .word .letter.in{
    transition: 0.38s ease;
}
.change-text h3 .word .letter.behind{
    transform: rotateX(-90deg);
}
.info-box{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
    margin: 1rem 0 2rem;
}
.info-box h5{
    font-weight: 600;
    color: var(--text-color);
}
.info-box span{
    font-size: .9rem;
    color: #bdbdbd;
}
.social-icon{
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    width: 220px;
    height: 40px;
}
.social-icon a{
    display: inline-flex;
    width: 150px;
    height: 100%;
    padding: 1rem;
    margin: 3px;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--hover-color);
    border: 2px solid var(--hover-color);
    transition: .6s;
    box-shadow: 0 0 0.3rem;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
 }
 .social-icon a:hover{
    color: var(--bg-color);
 }
.social-icon a::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--hover-color);
    transition: 0.6s;
    z-index: -1;
}
.social-icon a:hover::before{
    width: 100%;
}
.home-content .button .btn{
    padding: 2px;
    background-color: indianred;
    color: white;
    border: 2px solid black;
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
}
.right img{
    /* width: 80%;
    margin: 50px 0; */
    position: relative;
}
.right{
    text-align: center;
}
.right img{
    width: 100%;
    max-width: 350px;
    height: auto;
}

/* ...........about-section.....................  */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 2em;
    background: var(--secon-bg-color);
    color: var(--text-color);
}

.about .img-about{
    text-align: center;
    position: relative;
}
.about .img-about img{
    max-width: 400px;
    height: auto;
}
.about-content span{
    color: #fdfdfd;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.about-content h2{
    color: var(--hover-color);
    font-weight: 700;
    font-size: var(--norma-font);
}
.about-content h3{
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}
.about-content strong {
  color:aqua;
  font-weight: 600;
}



.about-content .highlight-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: aqua;
  border-left: 4px solid aqua;
  padding-left: 10px;
}
.about-content p{
    color: #fdfdfd;
    font-weight: 300;
    margin-bottom: 1.5rem;
}
.info-about3 ,
.info-about2,
.info-about1{
    background: var(--bg-color);
    font-size: 0.5rem;
    position: absolute;
    padding: 10px;
    width: 90px;
    height: 90px;
    border-radius: 69% 31% 66% 24% / 21% 30% 70% 79%;
    display: block;
    box-shadow: var(--neon-box-shadow);
    border: 1px solid var(--hover-color);
    outline: 2px solid var(--bg-color);
    z-index: 100;
    animation: morph 6s linear infinite;
}
.info-about1{
    left: 10%;
    top: 34%;
}
.info-about2{
    left: 66%;
    top: 15%;
}
.info-about3{
    left: 61%;
    top: 70%;
}

.img-about span{
    color: var(--hover-color);
    font-size: 1rem;
    font-weight: 600;
}

/* ........Skill-Section............. */
.Skill{
    background-color: #250821;
    padding-top: 56px;
}
.main-text{
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    color:white;
    font-size: large;
}
.skill-main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    color: white;
    grid-row-gap: 30px;
    grid-column-gap: 50px;
}
.skill-bar{
    margin-bottom: 2.3rem;
}
.skill-main h3{
    margin-bottom: 3rem;
    /* font-size: var(--normal-font); */
    text-align: center;
}
.skill-left .skill-bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}
.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color:#250821;
    border-radius: 25px;
    margin-top: 10px;
    position: relative;
}
.skill-bar .bar span{
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background:#12f7ff;
    border-radius: 25px;
    /* box-shadow:0 0.5rem #12f7ff; */
}
.skill-bar .bar .html{
    width: 72%;
    animation: html 2s;
}
.skill-bar .bar .CSS{
    width: 62%;
    animation: CSS 2s;
}
.skill-bar .bar .javascript{
    width: 82%;
    animation:javascript 3s;
}
.skill-bar .bar .Python{
    width: 72%;
    animation: Python 5s;
}
.skill-bar .bar .Python{
    width: 60%;
    animation: Python 6s;
}
.skill-bar .bar .dsa{
    width: 55%;
    animation: dsa 7s;
}
.professional{
    display: grid;

    grid-template-columns: 1fr 1fr;
}
.box{
    margin: 10px 0;
    flex:1 1 15rem;
    position: relative;
}
.box .text{
    text-align: center;
    color: white;
    font-size: 1rem;
}
.box .text big{
    font:400;
    letter-spacing: 1px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.box .text small{
    display: block;
    font-weight: 600;
}
.circle{
    width: 100%;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #151414;
}
.circle .points{
    width: 2px;
    height: 10px;
    background-color:#250821 ;
    position:absolute;
    border-radius: 3px;
    transform: rotate(calc(var(--i)*var(--rot))) translateY(-45px);
   
}
.points.marked{
    animation: glow 0.04s linear forwards;
    animation-delay: calc(var(--i)*0.05s);

}
/* ................Keyframe.................  */
@keyframes morph{
    0%,100%{
        border-radius: 40% 60% 70% 30% /40% 40% 60% 50%;
    }
    30%{
        border-radius: 70% 30% 50% 50%/ 30% 30% 70% 70%;
    }
    60%{
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
    80%{
        border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
    }
}
@keyframes html{
    0%{
        width: 0%;
    }
    100%{
        width: 72%;
    }
}
@keyframes CSS{
    0%{
        width: 0%;
    }
    100%{
        width: 62%;
    }
}
@keyframes javascript{
    0%{
        width: 0%;
    }
    100%{
        width: 82%;
    }
}
@keyframes Python{
    0%{
        width: 0%;
    }
    100%{
        width: 60%;
    }
}
@keyframes dsa{
    0%{
        width: 0%;
    }
    100%{
        width: 50%;
    }
}
@keyframes glow{
    0%{
        background: #250821;
        box-shadow: none;
}
    100%{
        background:#12f7ff ;
        box-shadow:#12f7ff ;
    }
}
/* ........Portfolio.............. */
.portfolio{
    background-color:#292e33;
    padding-top: 56px;
}
.fillter-buttons{
    margin: 2rem;
    text-align: center;
}
.fillter-buttons .btn{
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .4px;
    margin-left: 1.3rem;
    color:#f5f5f5 ;
}
.fillter-buttons .btn:hover{
    color:#12f7ff ;
}
.portfolio-gallery{
    display: grid;
    grid-template-columns: repeat(auto-fill , minmax(270px , 1fr));
    gap : 2rem;
    color:#f5f5f5;
    
}
.port-box{
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #292e33;
    display: flex;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 2px solid #12f7ff;
    box-shadow:#12f7ff;
    object-fit: contain;
      
}
 .port-image{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.port-image img{
    width: 100%;
    opacity: .5s;
    height: 100%;
    transition: .5s;
}
.port-content{
    position: absolute;
    bottom:0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(rgba(0,0,0.2),#12f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: .5s;
    padding: 0.2rem;
}
.port-box:hover .port-content{
    opacity: 1;
}
.port-box:hover .port-image img{
    transform: scale(1.1);
}
.port-content h3{
    font-size: 1.5rem;
    font-weight: 600;
}
.port-content p{
    font-size: .8rem;
    margin: 5px 0 15px 0;
} 
.port-content a img{
    height: 50%;
    font-size: 1.3rem;
    color:#250821 ;
}
.port-content a{
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50%;
    height: 50px;
    border: 1px solid #12f7ff;
    outline: 2px solid #fff;
}

/* ................certificate.............  */
.certificate {
    text-align: center;
    padding: 50px 20px;
    background: var(--bg-color);
    color: #12f7ff;
}

.certificate h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.certificate-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.certificate-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.certificate-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.certificate-card p {
    margin-top: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #444;
}

/* --- MODAL STYLES --- */
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1055 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: flex;
    opacity: 1;
}

/* Modal Content */
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease-in-out;
}

/* Image Container for Proper Scaling */
.image-container {
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* Close Button (Always Visible) */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close:hover {
    background: rgba(255, 0, 0, 0.8);
}

/* Attractive Download Button */
.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #007bff;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease-in-out;
}

.download-btn:hover {
    background: #0056b3;
}

/* Fade In Animation */
@keyframes fadeIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}
/* ..............Contact us.............................. */
.btn-box{
    display: flex;
    justify-content: space-between;
    width: 320px;
    height: 45px;
}
.contact{
    padding-top: 56px;
    background-color: #292e33;
    width: 100%;
    /* height: 100%; */
}
.contact form{
    text-align: center;
    max-width: 50rem;
    margin: 1rem auto;
    margin-bottom: 0;
}
.contact form input,
.contact form textarea{
    width: 100%;
    color:#070707 ;
    background-color: --font-neon-text-shadow;
    margin-bottom: .8rem;
    border: none;
    border-radius: 5px;
    padding: .7rem;
}
.contact form input::placeholder{
    color: #070707;
}
.contact form textarea::placeholder{
    color: #070707;
}
.contact form textarea{
    resize: none;
}
.formBtn{
    display: flex;
    justify-content: center;
    width: 100%;
}
.formBtn .btn{
    cursor: pointer;
    font-size: 1rem;
}

.btn-box .btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 60%;
    background:#12f7ff ;
    color:#250821 ;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: .6s;
    box-shadow:0 0.5rem #12f7ff ;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid #12f7ff;
}
.btn-box .btn:hover{
    color: #12f7ff;
}
.btn-box .btn::before{
    content: "";
    position: absolute;
    top:0;
    left: 0;
    background:#250821 ;
    width: 0;
    height: 100%;
    z-index: -1;
    transition: .4s;
}
.btn-box .btn:hover::before{
    width: 100%;
}
.btn-box .btn:nth-child(2){
    background:#250821 ;
    color: #12f7ff;
}
.btn-box .btn:nth-child(2):hover{
    color: #250821;
}
.btn-box .btn:nth-child(2)::before{
    background: #12f7ff;
}
/* ..........Footer..............  */
footer{
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    background: var(--bg-color);
}
footer p{
    color: #bdbdbd;
    
    
}
footer a{
    display: inline-flex;
    justify-content: center;
    color: #f5f5f5;
    background: #12f7ff;
    padding: .6rem;
    border-radius: 5px;
}
footer a{
    font-size: 1rem;
    color:292e33 ;
}


/* ..............Parallax..........................................     */
.scroll-scale{
    opacity: 0;
    transform: scale(.9);
    transition: all 2s;
}
.scroll-bottom{
    opacity: 0;
    transform: translateY(300px);
    transition: 3s;
}
.scroll-top{
    opacity: 0;
    transform: translateY(-300px);
    transition: 3s;
}
.show-items{
    opacity: 1;
    transform: translateX(0);
}

/* ...................Responsiveness.........................   */
    @media(max-width:991px){
        header, header.sticky{
            padding: 0px 5%;
        }
        footer{
            padding: 15px 5%;
        }
        section{
            padding: 50px 5%;
        }
        .navlist a{
            padding: 8px 15px;
        }
        :root{
            --big-font:2.2rem;
            --normal-font:1.8rem;
            --neon-box-shadow:0 0.8rem #12f7ff;
            --h2-font:3rem;
        }
        .home-content{
            margin-top: 1rem;
        }
        .social-icon{
            margin-top: 2rem;
        }
    }
    @media(max-width:768px){
        
        
        .Home{
            grid-template-columns: 1fr;
            margin-top: -11px;
        }
        .Home .right img{
            margin-bottom: 5rem;
        }
        .about{
            flex-direction: column-reverse;
            justify-content: center;
            text-align: center;
            align-items: center;
        }

        .skill-main{
            grid-template-columns: 1fr;
        }
        .fillter-buttons{
            margin: 2.5rem 0;
        }
        footer p{
            font-size: .9rem;
        }
    }
    @media(max-width:420px){
        html{
            font-size: 80%;
        }
        footer p{
            font-size: .6rem;
        }
        .fillter-buttons .btn{
            font-size: .8rem;
        }
        
    }
