/*@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root{
    --bg-color: #191f36;
    --snd-bg-color: #262840;
    --text-color: #fff;
    --main-color: #59b2f4;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

section{
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* or any other high value */
}


.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
    cursor: default;
}

.navbar a{
    font-size: 1.5rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 700;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

/*-- home section start--*/

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #191f36, #2e3237 70%);
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-last-of-type(2){
    margin-bottom: 2rem;
}

span{
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.6rem;
    color: var(--main-color);
    font-weight: 700;
    line-height: 1.3;
}


.home-img img {
    width: 25vw;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
    transform: translateY(0);
    }
    50% {
    transform: translateY(-2.4rem);
    }
    100% {
    transform: translateY(0);
    }
}

.home-content p{
    font-size: 1.6rem;
    padding: 0 2rem 0 0;
}

/*----- for all socaial media start ------*/

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid #0ef;
    border-radius: 20%;
    font-size: 1.7rem;
    color: #0ef;
    margin: 3rem 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-media a:hover{
    background: #0ef;
    color: #081b08;
    box-shadow: 0 0 50px #0ef;
}

/*----- for all socaial media end------*/

.btn-containers button {
    border: .1rem solid #5db9ee;
    font-size: 1.6rem;
    font-weight: 500;
    padding: .8rem 1.5rem;
    border-radius: .5rem;
    cursor: pointer;
}
button:nth-child(1) {
    background: #5db9ee;
}
button:nth-child(2) {
    background: transparent;
    color: #5db9ee;
    margin-left: 2rem;
}
button:nth-child(1):hover {
    background: transparent;
    color: #5db9ee;
    transition: .5s ease;
    box-shadow: 0 0 5px cyan,
                0 0 25px cyan, 
                0 0 50px cyan,
                0 0 100px cyan, 
                0 0 150px cyan;
}
button:nth-child(2):hover {
    transition: .5s ease;
    box-shadow: 0 0 5px cyan,
                0 0 25px cyan, 
                0 0 50px cyan,
                0 0 100px cyan, 
                0 0 150px cyan;
}

/*-- home section end--*/

/*-- Skill section start --*/

.skills-box-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* Reduced gap */
    padding: 0 0 4rem 0; /* Reduced padding */
}

.skills-box {
    flex: 1 1 25rem; /* Changed from 30rem to 25rem */
    background: var(--snd-bg-color);
    padding: .5rem .5rem 3rem; /* Reduced padding */
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
    overflow: hidden; /* Ensure content does not overflow */
    max-width: 500px; /* Added max-width to standardize box size */
    height: 500px; /* Added height to standardize box size */
}

.skills-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.skill-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.headings1 {
    margin-top: 1rem;
    text-align: center;
    font-size: 3.2rem; /* Reduced font size */
    margin-bottom: 1.5rem; /* Reduced margin */
    color: var(--text-color);
}

.professional-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Reduced gap */
    padding: 1.5rem; /* Reduced padding */
    width: 100%;
}

.bar {
    font-size: 20px; /* Reduced font size */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.professional-bars .bar {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.professional-bars .bar .info {
    margin-top: 8px; /* Reduced margin */
}

.professional-bars .bar .info span {
    font-size: 15px; /* Reduced font size */
    font-weight: 500;
    color: var(--text-color);
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}

.professional-bars .bar .progress-line {
    position: relative;
    border-radius: 10px;
    width: 100%;
    max-width: 65%; /* Reduced max-width */
    height: 4px; /* Reduced height */
    background-color: #ffffff; 
    animation: animate 1s cubic-bezier(1, 0, 0, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
    margin-bottom: 8px; /* Reduced margin */
    overflow: hidden; /* Ensure inner content does not overflow */
}

@keyframes animate {
    100% {
        transform: scaleX(1);
    }
}

.professional-bars .bar .progress-line span {
    display: block;
    height: 100%;
    background-color: var(--main-color);
    position: absolute;
    border-radius: 10px;
    animation: animate-width 1s 1s cubic-bezier(1, 0, 0, 1) forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes animate-width {
    100% {
        transform: scaleX(1);
    }
}

.progress-line.creativity span {
    width: 90%;
}

.progress-line.communication span {
    width: 60%;
}

.progress-line.problemsolving span {
    width: 85%;
}

.progress-line.teamwork span {
    width: 50%;
}

.progress-line span::after {
    content: attr(data-percentage);
    position: absolute;
    padding: 0.5px 6px; /* Reduced padding */
    background-color: #000;
    color: #fff;
    font-size: 10px; /* Reduced font size */
    border-radius: 3px;
    top: -24px; /* Adjusted position */
    right: 0;
    transform: translateX(50%);
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 1;
    animation-delay: 1.5s; /* Ensure visibility */
    animation-fill-mode: forwards; /* Ensure visibility */
}

.progress-line span::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 5px solid transparent; /* Adjusted size */
    border-bottom-width: 0;
    border-right-width: 0;
    border-top-color: #000;
    top: -10px;
    right: -10px;
    animation: showText 0.5s 1.5s linear forwards;
    opacity: 1; /* Ensure visibility */
    animation-delay: 1.5s; /* Ensure visibility */
    animation-fill-mode: forwards; /* Ensure visibility */
}

@keyframes showText {
    100% {
        opacity: 1;
    }
}


/*------------radial bar--------------*/

.radial-bars {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem;
    padding: 1.5rem; /* Reduced padding */
}
.radial-bars .radial-bar {
    display: flex; 
    justify-content: center; 
    align-items: center;
    position: relative;
    width: 100%;
    height: 180px; /* Reduced height */
}
.radial-bars .radial-bar svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    width: 100px; /* Reduced size */
    height: 100px; /* Reduced size */
}
.radial-bars .radial-bar .progress-bar {
    stroke-width: 8; /* Reduced stroke width */
    stroke: black;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
    animation: animate-bar 1.5s linear forwards;
}
@keyframes animate-bar {
    100% {
        stroke-dashoffset: 0;
    }
}
.path {
    stroke-width: 8; /* Reduced stroke width */
    stroke: #0ef;
    fill: transparent;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    stroke-linecap: round;
}
.path-1 {
    animation: animate-path1 1.5s 1s linear forwards;
}
.path-2 {
    animation: animate-path2 1.5s 1s linear forwards;
}
.path-3 {
    animation: animate-path3 1.5s 1s linear forwards;
}
.path-4 {
    animation: animate-path4 1.5s 1s linear forwards;
}
@keyframes animate-path1 {
    100% {
        stroke-dashoffset: 80;
    }
}
@keyframes animate-path2 {
    100% {
        stroke-dashoffset: 175;
    }
}
@keyframes animate-path3 {
    100% {
        stroke-dashoffset: 250;
    }
}
@keyframes animate-path4 {
    100% {
        stroke-dashoffset: 375;
    }
}

.radial-bar .percentage {
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15px; /* Reduced font size */
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.radial-bar .text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    position: absolute;
    text-align: center;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    font-size: 15px; /* Reduced font size */
    font-weight: 500;
    animation: showText 0.5s 1s linear forwards;
    opacity: 0;
}
.radial-bar .text i {
    font-size: 1.8rem; /* Reduced icon size */
}

/*------------education bar--------------*/

.education-bars {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from center to flex-start for left alignment */
    gap: 2rem;
    padding: 2rem;
    width: 100%;
}

.education {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-color);
    width: 100%;
    max-width: 600px;
    text-align: left; /* Ensure left alignment */
}

.education i {
    font-size: 2rem;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.education .info {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    text-align: left;
    width: 100%;
}

.education .info span {
    font-size: 1.6rem;
    font-weight: bold;
    text-align: left;
}

.education .info p {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: .5rem;
    text-align: left;
}

/* Center align for mobile view */
@media (max-width: 768px) {
    .education {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .education .info {
        align-items: center; /* Center align for mobile */
    }
}



/*-- Skill section end --*/



/*-- project section start--*/

.project {
    background: var(--snd-bg-color);
}

.project h2 {
    margin-bottom: 4rem;
    font-size: 4rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}

.projects-container .project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 1rem var(--bg-color);
    overflow: hidden;
    display: flex;
}

.project-box a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.project-box img {
    width: 100%;
    transition: .5s ease;
    opacity: 0.7;
}

.project-box:hover img {
    transform: scale(1.1);
}

.project-box .project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-box:hover .project-layer {
    transform: translateY(0);
}

.project-layer h4 {
    font-size: 3rem;
    color: var(--text-color); /* Add color style */
}

.project-layer p {
    font-size: 1.6rem;
    margin: 3rem 0 1rem;
    color: var(--text-color); /* Add color style */
}

.project-layer i {
    font-size: 2rem;
    color: var(--snd-bg-color); /* Ensure icon color is applied */
}


/*-- project section end--*/


/*-- service section start--*/


.services h2 {
    margin-bottom: 5rem;
    font-size: 4rem;
    }

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-container .services-box{
    flex: 1 1 30rem;
    background: var(--snd-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.services-container .services-box:hover{
    border-color: var(--main-color);
    transform: scale(1.02);
}

.services-box i{
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3{
    font-size: 2.6rem;
}

.services-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}

/*-- service section end--*/


/*-- contact section start--*/

.container {
    width: 80%; /* Adjust the width to make the container bigger */
    display: flex;
    justify-content: space-between;
    padding: 5rem 0 0;
    gap: 2rem; /* Add gap between the left and right containers */
}

.contact-left {
    flex-basis: 100%; /* Increase the size of the left container */
    padding-left: 2rem;
    font-size: 3.6rem; /* Match the project heading size */
    color: var(--main-color); /* Match the project heading color */
}

.contact-left .sub-title {
    margin-bottom: 2rem; /* Match the project heading margin */
    white-space: nowrap;
}

.contact-left .sub-title span{
    color: var(--text-color); /* Match the project heading color */
    white-space: nowrap;
}

.contact-left p {
    color: var(--text-color);
    margin-bottom: .5rem;
    font-size: 1.6rem;
}

.contact-right {
    flex-basis: 100%; /* Increase the size of the right container */
    padding-right: 2rem;
    margin-bottom: 80px;
}

.captcha-box {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.captcha-box label {
    color: white;
    font-size: 1.6rem;
}

/*-------- for all button end-----*/

.button {
    border: .1rem solid #5db9ee;
    font-size: 1.6rem;
    color: rgb(0, 0, 0);
    font-weight: 500;
    padding: .8rem 1.5rem;
    border-radius: .5rem;
    cursor: pointer;
    background: #5db9ee;
}

.button:hover {
    background: transparent;
    color: #5db9ee;
    transition: .5s ease;
    box-shadow: 0 0 5px cyan,
                0 0 25px cyan, 
                0 0 50px cyan,
                0 0 100px cyan, 
                0 0 150px cyan;
}

/*-------- for all button end-----*/

#contact form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
}

form .input-box {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

form .input-box label {
    color: white;
    font-size: 1.6rem;
}

form .input-box input,
form .input-box textarea {
    padding: .5rem;
    border: 1px solid #5db9ee;
    border-radius: .5rem;
    background: transparent;
    color: white;
}

form .input-box input:focus,
form .input-box textarea:focus {
    outline: none;
    border-color: cyan;
}

form button {
    border: .1rem solid #5db9ee;
    font-size: 1.6rem;
    color: rgb(0, 0, 0);
    font-weight: 500;
    padding: .8rem 1.5rem;
    border-radius: .5rem;
    cursor: pointer;
    background: #5db9ee;
}

form button:hover {
    background: transparent;
    color: #5db9ee;
    transition: .5s ease;
    box-shadow: 0 0 5px cyan,
                0 0 25px cyan, 
                0 0 50px cyan,
                0 0 100px cyan, 
                0 0 150px cyan;
}

/* Media query for responsiveness */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center; /* Center align the content */
        gap: 1rem;
        margin-left: 2rem;
    }

    .contact-left {
        flex-basis: 100%; /* Full width on mobile */
        padding: 0;
        margin: 0;
        padding-bottom: 2rem; /* Add spacing between sections */
        margin-left: 6rem;
    }

    .contact-right {
        flex-basis: 100%; /* Full width on mobile */
        padding: 0;
        margin: 0;
    }

}
/*-- contact section end--*/





/* ---------WhatsApp button styles--------- */
a.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

a.whatsapp-button i {
    display: inline-block;
    vertical-align: middle;
}

a.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
}




/* ---------Footer styles ---------*/

.footer {
    display: flex;
    justify-content: space-between; align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--snd-bg-color);
}

.footer-text {
    font-size: 1.6rem;
}
    

.footer-iconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1rem;
    background: var (--main-color);
    border-radius: .8rem;
    transition: .5s ease;
    
} I
    

.footer-iconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
    
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--text-color);
    }


/* ---------End Fotter--------- */

/*breakpoint*/

@media (max-width: 1200px) {
    html{
        font-size: 55%;
    }
}

@media (max-width: 911px){
    .header{
        padding: 2rem 3%;
    }

    section {
        padding: 3rem 3%;
    }

    .services{
        padding: 7rem;
    }

    .project{
        padding-bottom: 7rem;
    }

    .conatct{
        min-height: auto;
    }

    .footer{
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {
    #menu-icon {
    display: block;
    }

    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, -2);
        box-shadow: 0 .5rem 1rem rgbargba(0, 0, 0, -2);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

.home {
    flex-direction: column;
}

.home-content h3 {
    font-size: 2.6rem;
}
    
.home-content h1 {
    font-size: 5rem;
}

.home-content{
    order: 2;
}
    
.home-img img {
    width: 70vw;
    margin-top: 4rem;
}

.about {
    flex-direction: column;
}
    
.about-img img {
    width: 90vw;
    margin-top: 4rem;
}

.services h2{
    margin-bottom: 3rem;
    font-size: 4rem;
}

.project h2{
    margin-bottom: 3rem;
}

.projects-container{
    grid-template-columns: repeat(2, 1fr);
}

}


@media (max-width: 617px){
    .projects-container{
        grid-template-columns: 1fr;
    }

    .home-img img{
        width: 80vw;
        margin-top: 8rem;
    }

    .about-img img{
        width: 100vw;
        margin-top: 4rem;
    }
}

@media (max-width: 450px){
    html{
        font-size: 50%;
    }

    .contact form .input-box input{
        width: 100%;
    }
}