/* 🔥 Remove .about-section flex so h2 doesn’t get affected */
.about-section {
    display: block; 
    text-align: center;
    padding: 50px; 
}


/* 🔥 Ensure h2 Title is Centered */
.about-title {
    text-align: center; 
    width: 100%; 
    margin: 30px; 
    text-transform: uppercase;
}


/* 🔥 Keep the about-container flexible */
.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 80%;
    gap: 20px;
    margin: auto;
}





.about-image {
    flex: 1;
    max-width: 35%;
    overflow: hidden; /* Hides overflow if the image is larger */
    position: relative;
    height: 850px; /* Set a fixed height for the container */
}

/* Ensure the image stays within the container */
.about-image img {
    width: 100%; /* Ensure it stretches to the container width */
    height: 100%; /* Ensure it fills the height */
    object-fit: cover; /* 🔥 This keeps the image centered and cropped */
    object-position: center; /* Adjust position if needed */
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 25px;
    object-position: center top; 
}







/* Right Column: Text Layout */
.about-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: #555;
}

/* Text Columns */
.about-text-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px; 
    flex-wrap: wrap; 
}

/* Each Text Column */
.about-text,
.about-extra {
    flex: 1;
    text-align: left;
    font-size: 20px;
}


.about-text p,
.about-extra p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400; 
    font-size: 18px; 
    color: #333; 
    line-height: 1.6; 
}


.about-text p,
.about-extra p {
    transition: all 0.3s ease-in-out;
}

.fas, .far {
    margin-bottom: 30px;
}

.stat-number,
.stat p {
    font-family: 'Raleway', sans-serif;
    font-size: 22px; 
    color: #222; 
}



@media (max-width: 900px) {

    .about-title {
        text-align: center; 
        margin: 0 auto; 
        padding-top: 10px;
    }

    .about-section {
        padding: 0px; 
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        width: 90%;

    }

    .about-image, 
    .about-content {
        max-width: 100%;
    }

    .about-text-columns {
        flex-direction: column;
        gap: 10px; /* Reduce gap on mobile */
    }
}


















/* Stats Section: 2x2 Grid Layout */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    text-align: left;
}

/* Individual Stat Block */
.stat {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon & text */
}

/* Stat Icons: Circular Design */
.stat i {
    font-size: 3rem;
    color: #555;
    background: #f4f4f4;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stat Number */
.stat-number {
    font-size: 38px;
    font-weight: bold;
    color: #222;
}

/* Small Description */
.stat p {
    font-size: 14px;
    margin: 0;
    color: #666;
}

.skill {
    text-transform: uppercase;
    color: #555;
}



/* Progress Bars */
.skills-content {
    margin-top: 40px;
    width: 100%;
}

/* Align Skill Label & Percentage */
.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: bold;
}

/* Progress Bar Wrapper */
.progress-bar-wrap {
    width: 100%;
    background: #e0e0e0;
    overflow: hidden;
    height: 10px;
    margin: 20px 0px;
}

/* Progress Bars - Default State */
.progress-bar {
    height: 10px;
    width: 0%; /* Start hidden */
    background: #f39c12;
/*    transition: width 1.5s ease-in-out;*/
    transition: width 1.5s ease-in-out 0.2s; /* 🔥 Delay start */
}

/* Different Colors for Progress Bars */
.progress:nth-child(1) .progress-bar { background: #f39c12; } /* Orange */
.progress:nth-child(2) .progress-bar { background: #f39c12; } /* Blue */
.progress:nth-child(3) .progress-bar { background: #f39c12; } /* Green */



.stat:nth-child(1) i { color: #f39c12; } /* Orange */
.stat:nth-child(2) i { color: #2980b9; } /* Blue */
.stat:nth-child(3) i { color: #27ae60; } /* Green */
.stat:nth-child(4) i { color: #ffb727; } /* Gold */












