*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background-color: rgb(0, 0, 33);
    color: #fff;
}

body, html {
    overflow-x: hidden;
}


/* ----------Header Section---------- */
#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/portfolio_bg-ff.png);
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10% 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo{
    width: 140px;
}

nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

/* Animated Hover Effect --next 2 blocks */
nav ul li a::after{
    content: '';
    width: 0;
    height: 3px;
    background: #1F75FE;
    position: absolute;
    left: 0;
    bottom: -6px; 
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 15%;
    font-size: 30px;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span{
    color:#1F75FE;
}

.sub-title span{
    color:#1F75FE;
}



/* ----------About Section---------- */

#about{
    padding: 80px 0;
    color: #d6d6d6;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 52px;
    font-weight: 600;
    color: #fff;
}

.about-text{
    text-align: justify;
    margin-top: 10px;
    font-size: 18px;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
} 

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #1F75FE;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 70%;
}

/* ----------tab-contents---------- */
.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
    padding: 5px 0 5px 0;

}

.tab-contents ul li span{
    color: #71a5fa;
    font-size: 15px;
}

.tab-contents ul li p{
    padding: 3px 0 3px 0;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* ---------------Services--------------- */

#services{
    padding: 30px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div{
    text-align: justify;
    background: rgb(1, 1, 70);
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
    border: 2px solid #1e4ff0; 
    box-shadow: 0 0 20px #1e4ff0;
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;

}

.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div p{
    font-size: 14px;
}

.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover{
    background: #1e4ff0;
    transform: translateY(-10px);
}



/* ---------------Certifications--------------- */

#certifications{
    padding: 30px 0;
}

.certifications-list{
    margin-top: 50px;
}

.certifications-list div {
    text-align: justify;
    background: rgb(1, 1, 70); /* Dark blue card */
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 20px;
    transition: background 0.5s, transform 0.5s;
    padding-left: 80px;
    position: relative;
    overflow: hidden;
}

/* Glowing Animated Border */
.certifications-list div::before {
    content: "";
    position: absolute;
    inset: -3px; /* Extends slightly outside */
    border-radius: 30px;
    padding: 10px;
    
    /* Neon gradient (Electric Blue, Cyan, Purple, Magenta) */
    background: linear-gradient(90deg, 
        #00f7ff, /* Neon Cyan */
        #1e4ff0, /* Electric Blue */
        #8f00ff, /* Vibrant Purple */
        #ff0080, /* Hot Pink */
        #00f7ff  /* Loop back to Neon Cyan */
    );

    background-size: 400% 400%;
    filter: blur(10px); /* Stronger glow effect */
    
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask-composite: exclude;
    
    z-index: 1;
    animation: flowingBorder 5s linear infinite;
}

/* Flowing Animation */
@keyframes flowingBorder {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}



/* ---------------------TECHNOLOGY SKILLS---------------------- */

#tech-skills{
    padding: 50px 0;
    margin-top: 50px;
}

.skills-container{
    text-align: center;
}

.skills-row{
    display: inline-flex;
    justify-content: space-around;
    margin-top: 80px;
}

.skills-row-1{
    width: 90%;
}


.skills-row-2{
    width: 70%;
}

.skill-items{
    background-color: white;
    border-radius: 50%;
    text-align: center;
    height: 100px;
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    transition: transform 0.4s;
}

.skill-items:hover{
    transform: translateY(-25px);
    border: 3px solid #1e4ff0; 
    box-shadow: 0 0 30px #1e4ff0;
}

.skill-items img{
    max-height: 65%;

}





/* ---------------Portfolio--------------- */

#portfolio{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.work-title{
    text-align: center;
    padding-top: 10px;
    font-family: "Arsenal SC", serif;
    font-weight: 500;
    font-size: 30px;
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #1e4ff0);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 15px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: #1F75FE;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img{
    transform: scale(1.2);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #1F75FE;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #1F75FE;
}



/* ---------------------CERTIFICATIONS---------------------- */

.certifications-list div dt{
    margin-bottom: 10px;
    margin-right: 40px;
}

.certificate-title {
    font-family: "Arsenal SC", serif;
    font-size: 28px;
    font-weight: bolder;
}

.certifications-list div dd{
    font-size: 15px;
    margin-bottom: 25px;
    padding-left: 45px;
    margin-right: 40px;
}

.certifications-list div dl{
    font-size: 16px;
    list-style-type: none;
    font-size: 25px;
}

.certifications-list div dl i{
    padding-right: 15px;
}

.certifications-list div:hover{
    transform: scale(1.05);
}



/* ---------------Contact--------------- */

.contact-left{
    flex-basis: 35%;
    margin-top: 40px;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: #1F75FE;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 45px;
}

.social-icons a{
    text-decoration: none;
    font-size: 35px;
    margin-right: 15px;
    color: whitesmoke;
    display: inline-block;
    transition: transform 0.5s;
    padding-right: 20px;
}

.social-icons a:hover{
    color: #1F75FE;
    transform: translateY(-15px);
}

.btn.btn2{
    display: inline-block;
    background: #1e4ff0;
}


/* -------dont change here----------- */
.btn.btn2:hover{
    background: #163ec0;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #001c3a;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form input::placeholder{
    color: #cfcccc;
}

form textarea::placeholder{
    color: #cfcccc;
}

form .btn2{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: rgb(0, 0, 44);
    font-weight: 300;
    margin-top: 20px;
}

.copyright i{
    color: #1F75FE;
}

#msg{
    color: #61b752;
    margin-top: -35px;
    display: block;
}

/* -------------------------CSS for small screens-------------------- */

nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 600px) {
    #header{
        background-image: url(images/mobile_portfolio_bg-ff.png);
    }

    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1{
        font-size: 30px;
    }

    nav .fa-solid{
        display: block;
        font-size: 25px;
    }

    nav ul{
        background: #1F75FE;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 28px;
    }


    .work-list{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: 40px;
        margin-top: 50px;
    }   

    .work-title{
        font-size: 25px;
    }
    
    .layer{
        font-size: 14px;
    }

    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }

    .about-col-1{
        margin-bottom: 30px;
    }

    .about-col-2{
        font-size: 14px;
    }

    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    .copyright{
        font-size: 12.5px;
    }

    .certifications-list div dt{
        font-size: 18px;
        margin-right: 10px;
    }
    
    .certifications-list div dd{
        font-size: 14px;
        margin-bottom: 25px;
        padding-left: 12px;
        margin-right: 10px;
    }
    
    .certifications-list div ul li{
        font-size: 14px;
        font-size: 20px;
    }


    
    .skills-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px; /* Adjust spacing */
    }

    .skills-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }

    .skills-row-1, .skills-row-2 {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .skill-items {
        width: 80px; /* Adjust width to fit 4 items per row */
        height: 80px;
        max-width: 100px;
    }



    /* ------------Mobile Animations---------- */

    /* Ensure elements stay visible once they appear */
    .slide-in, .slide-left, .slide-right, .slide-right-delayed {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        transition: none !important;
    }

    /* Disable fade-out effects */
    #services .slide-right-delayed.fade-out {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }


}


/* Default hidden state */
.slide-in, .slide-left, .slide-right, .slide-right-delayed {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1.1s ease-out, transform 0.8s ease-out;
}

/* Slide from bottom */
.slide-in {
    transform: translate3d(0, 100px, 0);
}

/* Slide from left */
.slide-left {
    transform: translate3d(-100px, 0, 0);
}

/* Slide from right */
.slide-right {
    transform: translate3d(200px, 0, 0);
}


#services .slide-right-delayed {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 1.1s ease-out, transform 0.8s ease-out;
    /* transition: opacity 0.8s ease-out, transform 0.8s ease-out; */
}


/* Staggered slide-in effect */
#services .slide-right-delayed:nth-child(1) { transition-delay: 0.2s; }
#services .slide-right-delayed:nth-child(2) { transition-delay: 0.4s; }
#services .slide-right-delayed:nth-child(3) { transition-delay: 0.6s; }

/* Fully visible state */
.slide-in.visible, .slide-left.visible, .slide-right.visible, 
#services .slide-right-delayed.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Gradual fade-out */
#services .slide-right-delayed.fade-out {
    opacity: 0;
    transform: translate3d(200px, 0, 0);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}


/* Staggered fade-out animation when elements leave */
#services .slide-right-delayed.fade-out:nth-child(1) { transition-delay: 0.6s; }
#services .slide-right-delayed.fade-out:nth-child(2) { transition-delay: 0.4s; }
#services .slide-right-delayed.fade-out:nth-child(3) { transition-delay: 0.2s; }


/* ---------------------Typing Effect--------------------- */
.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

/* When visible, apply animation */
.typing-animation.visible {
    opacity: 1;
    animation: typing 4s steps(60, end) forwards;
    width: 100%; /* Ensures text becomes fully visible */
}

/* Force reset when leaving viewport */
.typing-animation.reset {
    width: 0 !important; /* Ensure width is reset */
    animation: none; /* Stop animation */
}

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

