.about-section {
    background: var(--bg-color);
    color: white;
    padding: 80px 20px;
    min-height: 100vh;
    justify-content: center;
    overflow-y: auto;  /* Allow scrolling in the Y-axis */
    overflow-x: hidden;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 40px;
}

.personal-info {
    padding: 20px;
    font-family: Arial, sans-serif;

    margin-left: auto;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.personal-info > p {
    text-align: left;
    font-size: 20px;
    font-weight: 900;
    margin:0 0 20px 0;
}

.about-detail-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates two columns */
    gap: 20px;
    /*margin-left: 50px;*/
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.about-sub-detail {
    display: flex;
    align-items: center;
}

.about-icon {
    font-size: 24px;
    margin-right: 10px;
    color: var(--main-color);
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.about-detail {
    font-size: 16px;
}

/*
.about-detail div:last-child {
    width: fit-content;
    height: 40px;
    border: 1px solid crimson;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    font-size: 15px;
}*/

.about-detail div:last-child {
    width: 250px;
    height: 32px;
    border-radius: 8px;
    background-color: var(--box-color);
    display: flex;
    justify-content: start;
    align-items: center;     /* Vertically centers the text */
    padding: 0 10px;         /* Adds some space around the text */
    font-size: 12px;
    font-weight: 200;

    /* Neumorphism effect */
    box-shadow: 3px 3px 3px var(--btn-shadow-3);
    transition: all 0.3s ease;
}

.about-detail div:last-child:hover {
    background-color: var(--bg-color);
    transform: translateX(10px);
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.about-detail div:first-child {
    font-weight: 400;
    padding-bottom: 5px;
}

.btn-cv {
    display: inline-block;
    background-color: var(--box-color);
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 3px 3px 3px var(--btn-shadow-3);
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.btn-cv i {
    margin-left: 10px;
}

.btn-cv:hover {
    background: #2DD4BF;
}

.stats {
    flex: 1;
    width: 90%;
    /*min-width: 300px;*/
    max-width: 600px;          /* Optional: keeps it from stretching too wide */
    /*margin: 0 auto;*/
    margin: 0 auto 10px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;   /* Ensures items inside stay centered */
}


.stat-box {
    /*
    width: 100%;
    max-width: 250px;*/
    max-width: 100%;
    height: fit-content;
    background-color: var(--box-color-2);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.7),
    -6px -6px 10px -1px rgba(67, 64, 64, 0.1); /* Softer for dark mode */
    /*
    text-align: justify;
    */
    text-wrap: auto;
    color: white;
    border: 1px solid #2e2e2e;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.stat-box:hover {
    box-shadow: inset 4px 4px 6px -1px rgba(0,0,0,0.6),
    inset -4px -4px 6px -1px rgba(255,255,255,0.1),
    -0.5px -0.5px 0px rgba(255,255,255,0.05),
    0.5px 0.5px 0px rgba(0,0,0,0.2),
    0px 12px 10px -10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0.5px);
}

.stat-box span {
    font-size: 50px;
    color: var(--main-color);
    font-weight: 900;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.stat-box p {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-color);
}

/* Adding styles for skill section */

.skills-section {
    background: var(--bg-color);
}

/*.sub-section-title {
    position: relative;
    font-size: 35px;
    text-align: center;
    font-weight: 700;
    color: var(--main-color);
    margin: 40px 0; !* Add top and bottom space *!
    !*z-index: 1;*!
}*/

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns layout */
    gap: 50px; /* Gap between columns and rows */
    /*
    margin: 40px 0; !* Add top and bottom space *!
    */
    margin: 40px 30px; /* Add top and bottom space */
    place-content: center;
    place-items: center;
}

.skill-box {
    background-color: var(--box-color-2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 3px 3px 3px var(--btn-shadow-1);
    /*border: 1px solid red;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    width: 100%;
}

.skill-box p {
    font-size: 15px;
    margin-bottom: 10px;
    text-wrap: balance;
    text-align: justify;
    display: flex;
    align-items: flex-start;
}

.skill-icons {
    list-style-type: none;
    padding-right: 10px;
    display: flex;
    justify-content: flex-end; /* Align icons to the right */
    flex-wrap: wrap; /* Ensure icons wrap in a responsive manner */
    align-items: flex-end;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.skill-icons li {
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    text-align: center;
    width: 70px;
    height: 80px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.skill-icons li:hover img{
    transform: scale(1.2);
    animation: blink 0.6s steps(2, start) infinite;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.skill-icons img {
    max-width: 40px;
    margin-bottom: 5px;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.skill-icons span {
    display: block;
    font-size: 10px;
    font-weight: 200;
    color: var(--text-color);
    opacity: 0.5;
}

/* Styles for timeline - Resume */
.resume-section {
    position: relative;
    background: var(--bg-color);
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.timeline-container {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    /*background: rgba(0, 0, 0, 0.3);
    box-shadow: 3px 3px 3px black;*/
    z-index: 2;
    animation: move-down 1s linear forwards;
    opacity: 0;
}

@keyframes move-down {
    0% {
        opacity: 1;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.timeline-container:nth-child(1){
    animation-delay: 0s;
}

.timeline-container:nth-child(2){
    animation-delay: 1s;
}

.timeline-container:nth-child(3){
    animation-delay: 2s;
}

.timeline-container:nth-child(4){
    animation-delay: 3s;
}

.timeline-container:nth-child(5){
    animation-delay: 4s;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.text-box {
    padding: 20px 30px;
    background: var(--btn-shadow-3);
    position: relative;
    font-size: 15px;
    border-radius: 10px;
    box-shadow: 6px 6px 10px -1px rgba(0,0,0,0.7),
    -6px -6px 10px -1px rgba(67, 64, 64, 0.1); /* Softer for dark mode */
    border: 1px solid rgba(0,0,0,0);
    color: var(--text-color);
}

.text-box:hover {
    box-shadow: inset 4px 4px 6px -1px rgba(0,0,0,0.6),
    inset -4px -4px 6px -1px rgba(255,255,255,0.1),
    -0.5px -0.5px 0px rgba(255,255,255,0.05),
    0.5px 0.5px 0px rgba(0,0,0,0.2),
    0px 12px 10px -10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transform: translateY(0.5px);
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


.timeline-span {
    color: var(--main-color);
    font-size: 19px;
    font-weight: 600;
}

.text-box h4 {
    color: var(--main-color);
}

.left-container {
    left: 0;
}

.right-container {
    left: 50%;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

.timeline-container i {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    right: -20px;
    top: 32px;
    background: var(--main-color);
    display: flex;
    justify-content: center;
    font-size: 20px;
    align-items: center;
    z-index: 3;
}

.right-container i {
    left: -20px;
}

.timeline {
    position: relative;
    z-index: 1;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 100%;
    background: #fff;
    top: 0;
    left: 50%;
    margin-left: -3px;
    /*
    z-index: 0;
    */
    z-index: -1;
    animation: move-line 5s linear forwards;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

@keyframes move-line {
    0% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}

.text-box h2 {
    font-weight: 600;
}

.text-box h4{
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 400;
    font-size: 12px;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


.text-box p {
    font-size: 14px;
    font-weight: 300;
}

.left-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid var(--btn-shadow-3);
    right: -14px;
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


.right-container-arrow {
    height: 0;
    width: 0;
    position: absolute;
    top: 28px;
    z-index: 1;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-right: 15px solid var(--btn-shadow-3);
    left: -14px;
}

/* Responsive layout for screens less than 600px */
@media all and (max-width: 600px) {
    .timeline {
        margin: 50px auto;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-container {
        width: 100%;
        padding-left: 80px;
        padding-right: 25px;
    }

    /*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

    .text-box {
        font-size: 13px;
    }

    .text-box h4 {
        margin-bottom: 10px;
    }

    .right-container {
        left: 0;
    }

    .left-container i, .right-container i{
        left: 10px;
    }

    .left-container-arrow, .right-container-arrow {
        border-right: 15px solid var(--btn-shadow-3);
        border-left: 0;
        left: -14px;
    }

    /*.section-title {
        font-size: 25px !important;
        font-weight: 700 !important;
    }

    .section-title .bg-text {
        font-size: 60px !important;
    }*/

    .about-content {
        flex-direction: column;
    }

    .about-detail {
        width: 100%;
    }

    /*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

    .about-detail-box {
        grid-template-columns: 1fr; /* Switch to a single column */
        margin: 0; /* Remove left margin on small devices */
        width: 100%;
    }

    .personal-info {
        margin-left: 0;
    }

    .personal-info > p {
        margin-left: 0;
        text-align: center;
    }

    .about-detail div:last-child {
        width: 100%;
    }

    /*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

    .stats {
        gap: 10px;
    }

    .stat-box p {
        font-size: 14px;
    }

    .stat-box span {
        font-size: 40px;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Switch to one column */
    }

    .btn-cv {
        color: var(--main-color);
    }
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

/* Responsive layout for screens less than 768px */
@media (min-width: 601px) and (max-width: 768px) {
    /*.section-title {
        font-size: 30px !important;
        font-weight: 700 !important;
    }

    .section-title .bg-text {
        font-size: 70px !important;
    }*/

    .about-content {
        flex-direction: column;
    }

    .personal-info {
        margin-left: 0;
    }

    .about-detail {
        flex-direction: row;
        width: 100%;
    }

    /*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

    .about-detail-box {
        grid-template-columns: 1fr; /* Switch to a single column */
        margin: 0; /* Remove left margin on small devices */
        width: 100%;
    }

    .personal-info > p {
        margin-left: 0;
        text-align: center;
    }

    .about-detail div:last-child {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Switch to one column */
    }

    .btn-cv {
        color: var(--main-color);
    }
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


@media (min-width: 769px) and (max-width: 1024px){
    /*.section-title {
        font-size: 48px !important;
        margin-bottom: 40px !important;
    }

    .section-title .bg-text {
        font-size: 90px !important;
    }*/

    .about-detail-box {
        gap: 15px;
    }

    .about-icon {
        font-size: 20px;
    }

    .personal-info {
        margin-left: 0;
    }

    /*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */

    .stats {
        gap: 15px;
        max-width: 500px;
    }

    .stat-box {
        padding: 20px;
        max-width: 220px;
    }

    .stat-box span {
        font-size: 40px;
    }

    .stat-box p {
        font-size: 18px;
    }

    .btn-cv {
        padding: 8px 16px;
        font-size: 14px;
        grid-column: span 2;
    }
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */


@media all and (min-width: 1025px){
    .btn-cv {
        grid-column: span 2;
    }
}

/*    Created by Virdha Musawwir     GitHub: https://github.com/mmsvirdha    Year: 2025    */
