:root {
    --maincolor: #ffbd39;
}

body {
    width: 100%;
    overflow-x: hidden;
}

.projects {
    margin-top: -90px;

    .section {
        padding: 30px 0px;
        display: flex;
        flex-wrap: wrap;
        /* height: 300px; */

        .bor {
            position: absolute;
            top: 0;
            left: 50%;
            width: 0;
            height: 100%;
            border: 1px solid white;
        }

        .left {

            .highlights {
                width: 100%;
                /* border: 1px solid red; */
                display: flex;
                flex-wrap: wrap;
                gap: 10px;

                .tech {
                    font-size: 12px;
                    letter-spacing: 0.4px;
                    border: 1px solid grey;
                    padding: 4px 8px;
                    border-radius: 30px;
                }
            }

            h2 {
                font-weight: 700;
                letter-spacing: 1px;
            }

            i {
                font-weight: 500;
            }
        }

        .right {

            img {
                transition: 0.2s;
                width: 400px;
                /* border: 1px solid red; */

                &:hover {
                    transform: scale(1.01);
                }
            }
        }

    }



    .section.sidha {
        width: 100%;
        overflow-x: hidden;
        position: relative;
        top: 60px;
        /* border: 1px solid red; */
        display: flex;


        .left {
            width: 50%;
            display: grid;
            place-items: center;
            padding: 10px;
            padding-right: 20px;
        }

        .right {
            width: 50%;
            display: grid;
            place-items: center;
            /* border: 1px solid yellow; */

            img {
                border-radius: 10px;
                /* box-shadow: 7px 10px 30px var(--maincolor); */
            }
        }

        &::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            width: 40%;
            height: 0px;
            transform: translateY(-50%);
            z-index: -1;
        }

        &::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
        }
    }

    .section.ulta {
        width: 100%;
        overflow-x: hidden;
        position: relative;
        top: 60px;
        /* border: 1px solid red; */
        display: flex;


        .left {
            width: 50%;
            display: grid;
            place-items: center;
            padding: 10px;
            padding-left: 20px;
        }

        .right {
            /* border: 2px solid yellow; */
            width: 50%;
            display: grid;
            place-items: center;

            img {
                border-radius: 10px;
                /* margin-left: 10px; */
                /* box-shadow: 7px 10px 30px rgb(7, 123, 136); */
            }
        }

        &::before {
            content: "";
            position: absolute;
            top: 50%;
            right: 50%;
            width: 40%;
            height: 0px;

            transform: translateY(-50%);
            z-index: -1;
        }

        &::after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 50%;
        }
    }

    .section:nth-child(1),
    .section:nth-child(3) {

        &::before {
            border: 2px solid var(--maincolor);
        }

        &::after {
            border: 5px solid var(--maincolor);
            width: 30px;
            height: 30px;
            background: black;
        }

        .left {

            h2,
            i {
                color: var(--maincolor);
            }
        }

        .right {
            img {
                border: 2px solid var(--maincolor);
            }
        }
    }

    .section:nth-child(2) {

        &::before {
            border: 2px solid rgb(7, 123, 136);
        }

        &::after {
            border: 5px solid rgb(7, 123, 136);
            width: 30px;
            height: 30px;
            background: black;
        }

        .left {

            h2,
            i {
                color: rgb(7, 123, 136);
            }
        }

        .right {
            img {
                border: 2px solid rgb(7, 123, 136);
            }
        }
    }
}

.about-img {
    /* border: 2px solid yellow; */
    background: var(--maincolor);
    border-radius: 50%;
    overflow: hidden;
    width: 160px;
    height: 160px;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.demo {
    margin-top: 10px;

    p {
        margin: 0;
        font-size: 12px;
    }

    i {
        color: white !important;
        /* blue */
        font-size: 16px;
        margin-left: 5px;
        cursor: pointer;
        transition: 0.2s;

        &:hover {
            scale: 1.06 !important;
            color: var(--maincolor) !important;
        }
    }

}
h2 i{
    font-size: 24px !important;
    margin-left: 10px;
    cursor: pointer;
}

/* Modal overlay */
.modale {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;

    .modal-content {
        background-color: #1e1e2f;
        color: #fff;
        margin: 5% auto;
        padding: 30px 25px;
        border-radius: 12px;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
        position: relative;
        font-family: 'Poppins', sans-serif;

        h2 {
            margin-bottom: 20px;
            font-size: 24px;
            color: #ffbd39;
        }

        form {
            display: flex;
            flex-direction: column;
            gap: 15px;

            input,
            textarea {
                padding: 12px 15px;
                border-radius: 8px;
                border: none;
                background-color: #2c2c3c;
                color: #fff;
                font-size: 16px;
                resize: none;

                &:focus {
                    outline: 2px solid #ffbd39;
                }
            }

            button {
                padding: 12px;
                background-color: #ffbd39;
                color: #1e1e2f;
                border: none;
                border-radius: 8px;
                font-size: 16px;
                cursor: pointer;
                transition: background 0.2s;

                &:hover {
                    background-color: #ffaa00;
                }
            }
        }
    }

    .close {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 28px;
        font-weight: bold;
        color: #ffbd39;
        cursor: pointer;
        transition: color 0.2s;

        &:hover {
            color: #ffaa00;
        }
    }
}

.modale.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 250px;
    max-width: 350px;
    padding: 10px 20px;
    padding-top: 15px;
    background-color: #1e1e2f;
    background-color: rgb(4, 146, 89);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    font-family: sans-serif;
    font-size: 14px;
    /* display: none;  */
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;

    &.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .close-btn {
        position: absolute;
        top: -3px;
        right: 5px;
        background: none;
        border: none;
        color: #fff;
        font-size: 18px;
        cursor: pointer;
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}





@media only screen and (max-width: 600px) {
    .about-img {
        margin: 0 auto;
        width: 150px;
    }

    .projects {
        margin-top: -90px;
        /* border: 3px solid red; */

        .section {
            padding: 10px 0px;
            /* border: 1px solid yellow; */
            margin: 10px 0px;
            /* height: 300px; */

            .bor {
                display: none;
            }

            .left {

                .highlights {
                    width: 100%;
                    gap: 5px;
                }

                h2 {
                    font-weight: 700;
                    letter-spacing: 1px;
                }

                i {
                    font-weight: 500;
                }
            }

            .right {

                margin: 0 auto;

                img {
                    transition: 0.2s;
                    width: 400px;
                    /* border: 1px solid red; */

                    &:hover {
                        transform: scale(1.01);
                    }
                }
            }

        }


        .section.sidha {
            width: 100%;
            overflow-x: hidden;
            position: relative;
            top: 60px;
            /* border: 1px solid red; */
            display: flex;


            .left {
                width: 100%;
            }

            .right {
                width: 100%;


                img {
                    border: none;
                    margin-left: 0%;
                }
            }

        }

        .section.ulta {
            width: 100%;

            .left {
                width: 100%;
            }

            .right {
                width: 100%;
                justify-content: center;

                img {
                    border: none;
                    margin-right: 0%;
                }
            }


        }

        .section:nth-child(1),
        .section:nth-child(3) {
            border: 1px dotted var(--maincolor);
            border-radius: 10px;

            &::before {
                display: none;
            }

            &::after {
                display: none;
            }
        }

        .section:nth-child(2) {
            border: 1px dotted rgb(7, 123, 136);
            border-radius: 10px;

            &::before {
                display: none;
            }

            &::after {
                display: none;
            }

        }
    }

}