/*-- about section start --*/
/*-- 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 */
}

/*-- Skill section end --*/

/*------------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 */
    }
}


/*-- About section responsive styles --*/

@media (max-width: 768px) {
    .about {
        flex-direction: column;
    }
    
    .about-img img {
        width: 90vw;
        margin-top: 4rem;
    }
}

@media (max-width: 617px) {
    .about-img img{
        width: 100vw;
        margin-top: 4rem;
    }
}

/*-- about section end --*/