@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&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: #1f242d;
    --second-bg-color: #323946;
    --text-color: #fff;
    --main-color: #0ef;
}


body {
    background: var(--bg-color);
    color: var(--text-color);
}

.heading-skills {
    margin: 25px auto;
    font-size: 30px;
    width: fit-content;
}

.heading-skills span {
    color: var(--main-color);
}


.wrapper {
    width: 1080px;
    margin: 50px auto; 
    padding: 0 20px;
    position: relative;
}

.wrapper .center-line {
    position: absolute;
    height: 100%;
    width: 4px;
    background: #fff;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.wrapper .row {
    display: flex;
}

.wrapper .row-1 {
    justify-content: flex-start;
}

.wrapper .row-2 {
    justify-content: flex-end;
}

.wrapper .row section {
    background-color: var(--second-bg-color);
    border-radius: 5px;
    width: calc(50% - 40px);
    padding: 20px;
    position: relative;
    transition: .5s ease;
    border: .2rem solid var(--bg-color);
    border-radius: 10px;
}

.wrapper .row section:hover {
    border-color: var(--text-color);
}


.wrapper .row section::before {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    background: var(--main-color);
    top: 28px;
    z-index: -1;
    transform: rotate(45deg); 
}

.row-1 section::before {
    right: -7px;
}

.row-2 section::before {
    left: -7px;
}

.row section .icon,
.center-line .scroll-icon {
    position: absolute;
    background: var(--second-bg-color);
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    color: var(--main-color);
    font-size: 17px;
    box-shadow: 0 -1px 0 2px #fff;
}

.center-line .scroll-icon {
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 25px;
}

.row-1 section .icon {
    right: -60px;
    top: 13px;
}

.row-2 section .icon {
    left: -60px;
    top: 13px;
}

.row section .details .title {
    font-size: 22px;
    font-weight: 600;
    color: var(--main-color);
}

.row section p {
    margin: 10px 0 17px 0;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    color: var(--main-color);
    font-size: 28px; 
    z-index: 1000;
    background: transparent; 
    padding: 0; 
    border-radius: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
    transform: scale(1.2);
    color: #0ff; 
}

@media(max-width: 790px) {

    .heading-skills {
        margin-left: auto;
        margin-right: auto;
        font-size: 25px;
    }

    .wrapper {
        width: 90vw;
    }

    .wrapper .center-line {
        left: 40px ;
    }

    .wrapper .row section {
        width: 100%;
    }

    .row-1 section::before {
        left: -7px;
    }

    .row-1 section .icon {
        left: -60px;
    }

    .wrapper .row {
        margin: 30px 0 3px 60px;
    }
}

@media(max-width: 440px) {
    .wrapper .center-line,
    .row section::before,
    .row section .icon{
        display: none;
    }

    .wrapper .row {
        margin: 10px 0;
    }
}