@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/*--------------
 Global CSS
----------------*/

:root {
    --main-color: #7857fe;
    --color-1: #e91e63;
    --color-2: #f5ae10;
    --color-3: #09d69c;
    --bg-dark: #2b2c2f;
    --main-to-dark-color: var(--main-color);
    --main-to-dark-color2: #3309dd;
    --dark-to-main-color: var(--bg-dark);
    --shadow-black-100: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-black-300: 0 5px 15px rgba(0, 0, 0, 0.3);
    --black-900: #000000;
    --black-700: #2b2c2e;
    --black-400: #666666;
    --black-300: rgb(225, 230, 241);
    --black-100: #f7f7f7;
    --black-000: #ffffff;
    --black-alpha-50: rgba(225, 230, 241, .5);
    --black-alpha-100: rgba(0, 0, 0, 0.05);
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    background-color: white;
    line-height: 1.5;
    max-width: 1700px;
    margin: 0 auto;
}

body::-webkit-scrollbar {
    display: none;
}

body.dark {
    background-color: var(--bg-dark);
    --black-100: #2a2a2f;
    --black-000: var(--bg-dark);
    --main-to-dark-color: var(--bg-dark);
    --main-to-dark-color2: #151515;
    --dark-to-main-color: var(--main-color);
    --shadow-black-100: var(--shadow-black-300);
    --black-alpha-100: rgba(255, 255, 255, 0.05);
    --black-900: #eff5ff;
    --black-700: #eceff3;
    --black-400: #bbbbbb;
    --black-300: rgba(40, 44, 52, 1);
    --black-alpha-50: rgba(17, 0, 32, .5);
}

* {
    margin: 0;
    padding: 0;
    outline: none !important;
    transition: ease 0.2s background, ease 0.1s color;
}

/*-------------------
 Global UI
---------------------*/
img {
    max-width: 100%;
    vertical-align: middle;
}

ul {
    list-style: none;
}

.btn-1 {
    background-color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    color: var(--main-color);
    font-size: 16px;
    text-transform: capitalize;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-black-300);
    font-weight: 500;

    &:hover {
        color: white;
        background-color: var(--main-color) !important;
    }

    &:focus {
        box-shadow: var(--shadow-black-300);
    }
}

.btn-2 {
    background-color: var(--main-color);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    color: #ffffff;
    font-size: 16px;
    text-transform: capitalize;
    transition: all 0.5s ease;
    box-shadow: var(--shadow-black-100);
    font-weight: 500;

    &:focus {
        box-shadow: var(--shadow-black-100);
    }

    &:hover {
        color: var(--main-color);
        background-color: #ffffff;
    }
}

/*------------------------
 Animation Section
--------------------------*/
@keyframes spin_01 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes bounceTop_01 {
    0%,
    100% {
        transform: translateY(-30px);
    }
    50% {
        transform: translateY(0px);
    }
}

@keyframes pulse_01 {
    0% {
        transform: scale(0.94);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(0.94);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes animate {
    0% {
        transform: rotateX(-30deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(-30deg) rotateY(360deg);
    }
}

@keyframes slide {
    100% {
        top: -150px;
    }
}

@keyframes typing {
    80%,
    90% {
        left: 100%;
        margin: 0 -12px 0 12px;
    }
}

/*---------------------
 Global Effect
-----------------------*/
.effect-wrap {
    .effect {
        position: absolute;
        z-index: 1;
    }

    .effect-1 {
        top: 20%;
        left: 20%;
        font-size: 20px;
        color: var(--color-2);
        animation: spin_01 5s linear infinite;
    }

    .effect-2 {
        top: 10%;
        right: 5%;
        font-size: 25px;
        color: rgba(255, 255, 255, 0.5);
        animation: spin_01 7s linear infinite;
    }

    .effect-3 {
        bottom: 30%;
        left: 5%;
        font-size: 25px;
        color: var(--color-3);
        animation: bounceTop_01 3s linear infinite;
    }
}

/*--------------------
 Section Global
---------------------*/
.section-padding {
    padding: 80px 0;

    .section-title {
        margin-bottom: 60px;

        h2 {
            font-size: 40px;
            color: var(--black-900);
            font-weight: 700;
            text-transform: capitalize;
            text-align: center;
            margin: 0;

            span {
                color: var(--main-color);
            }
        }
    }
}

/*---------------------
 Owl Carousel
-----------------------*/
.owl-carousel {
    .owl-dots {
        padding: 0 15px;
        text-align: center;
        margin-top: 20px;
    }

    button.owl-dot {
        height: 6px;
        width: 24px;
        background-color: #dddddd;
        display: inline-block;
        margin: 0 4px;
        border-radius: 5px;

        &.active {
            background-color: var(--main-color);
        }
    }
}

/*-----------------
 Preloader Section
 -------------------*/
.preloader {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: 2100;
    background-color: var(--main-to-dark-color);

    div {
        display: block;
        position: relative;
        left: 50%;
        top: 50%;
        height: 150px;
        width: 150px;
        margin: -75px 0 0 -75px;
        border-radius: 50%;
        border: 3px solid transparent;
        border-top-color: #ffffff;
        animation: spin 2s linear infinite;

        &::before {
            content: '';
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border: 3px solid transparent;
            border-radius: 50%;
            border-top-color: var(--color-1);
            animation: spin 3s linear infinite;
        }

        &::after {
            content: '';
            position: absolute;
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            border: 3px solid transparent;
            border-radius: 50%;
            border-top-color: var(--color-3);
            animation: spin 1.5s linear infinite;
        }
    }
}

/*-----------------
 Navbar Section
-------------------*/
.navbar {
    max-width: 1700px;
    margin: auto;
    background-color: transparent;
    padding: 20px 0;
    transition: all 0.5s ease;

    &.navbar-shrink {
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        background-color: var(--main-to-dark-color);
        padding: 10px 0;
    }

    .container {
        padding: 0 15px;

        .navbar-brand {
            font-size: 30px;
            font-family: "Luckiest Guy", cursive;
            background-image: linear-gradient(
                    45deg,
                    #ff0000,
                    #ff02ea,
                    rgb(255, 208, 0),
                    rgb(255, 208, 0)
            );
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            -moz-text-fill-color: transparent;

            .cube {
                position: relative;
                width: 24px;
                height: 24px;
                transform-style: preserve-3d;
                transform: rotateX(-30deg);
                animation: animate 4s linear infinite;

                div {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    transform-style: preserve-3d;

                    &.top {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 24px;
                        height: 24px;
                        background: var(--main-to-dark-color2);
                        transform: rotateX(90deg) translateZ(12px);

                        &::before {
                            content: "";
                            position: absolute;
                            top: 0;
                            left: 0;
                            width: 24px;
                            height: 24px;
                            background: #0f0;
                            transform: translateZ(-24px);
                            filter: blur(10px);
                            box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), 0 0 24px rgba(0, 255, 0, 0.4),
                            0 0 28px rgba(0, 255, 0, 0.6), 0 0 32px rgba(0, 255, 0, 0.8),
                            0 0 36px rgba(0, 255, 0, 1);
                        }
                    }

                    span {
                        position: absolute;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        background: linear-gradient(var(--main-to-dark-color2), #00ec00);
                        transform: rotateY(calc(90deg * var(--i))) translateZ(11.8px);
                    }
                }
            }
        }

        .nav-item {
            margin-left: 40px;

            .nav-link {
                display: flex;
                gap: 5px;
                align-items: center;
                font-size: 16px;
                color: #ffffff;
                text-transform: capitalize;
                font-weight: 400;
                padding: 5px 0;
                position: relative;


                &::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    height: 1px;
                    background-color: #ffffff;
                    transition: all 0.5s ease;
                    transform: scale(0);
                }

                &.active::before,
                &:hover::before {
                    transform: scale(1);
                }

                i {
                    font-size: 17px;
                    margin-top: -3px;
                }
            }
        }
    }
}

/*-----------------
 Home Section
-------------------*/
.home {
    position: relative;
    height: 104vh;
    min-height: 500px;
    max-height: 800px;
    padding: 100px 0 100px;
    background: linear-gradient(rgba(7, 7, 7, 0.7), rgba(0, 0, 0, 0.4)),
    url("../resources/bg.jpg") no-repeat left top;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    overflow: hidden;
    z-index: 1;
    background-size: cover;

    .container {
        p {
            margin-left: 10px;
            font-size: 24px;
            font-weight: 400;
            color: #ffffff;
            text-shadow: var(--main-color) 0 0 6px;
        }

        h1 {
            font-size: 50px;
            font-weight: 600;
            color: #eee;
            margin-top: 0;
            text-shadow: var(--main-color) 0 0 6px;
        }

        .home-link-container {
            .resume-btn {
                animation: pulse_01 2s ease infinite;

                &:hover {
                    animation: none;
                    box-shadow: var(--shadow-black-300);
                }
            }

            .download-resume {
                align-items: center;
                align-content: center;
                height: 48px;
                aspect-ratio: 1;
                padding: 0;
                margin-left: 5px;

                i {
                    font-size: 18px;
                    margin-top: 3px;
                }
            }
        }
    }

    svg {
        position: absolute;
        bottom: -45px;
        left: 0;
        right: 0;
        height: 100px;
        width: 100%;

        .path {
            fill: var(--black-000);
        }
    }
}

body.dark .home {
    background-color: var(--black-100);
}

/*-----------------------
 About Me
-------------------------*/
.about-me {
    .row-2 {
        display: flex;
        gap: 40px;
    }

    .profile {
        height: 240px;
        width: 240px;
        margin: auto;
        border: 4px var(--main-to-dark-color) solid;
        border-radius: 50%;
    }

    .about-text {
        display: flex;
        flex-direction: column;

        h2 {
            margin-top: auto;
            color: var(--main-color);
        }

        p {
            margin-bottom: auto;
            color: var(--black-400);
        }

        .wrapper {
            display: inline-flex;

            .static-text {
                color: var(--black-900);
                font-size: 20px;
                font-weight: 400;
                line-height: 30px;
            }

            .skills {
                margin-left: 10px;
                height: 30px;
                line-height: 30px;
                overflow: hidden;

                li {
                    position: relative;
                    color: var(--color-3);
                    font-size: 20px;
                    font-weight: 400;
                    top: 0;
                    animation: slide 25s steps(5) infinite;

                    span {
                        position: relative;

                        &::after {
                            position: absolute;
                            left: 0;
                            top: 0;
                            content: "";
                            height: 29px;
                            width: 100%;
                            background: var(--black-000);
                            border-left: 2px solid var(--color-3);
                            animation: typing 5s ease infinite;
                        }
                    }
                }
            }
        }
    }
}

body.dark .about-me .profile {
    border-color: var(--black-900);
}

/*-----------------------
 Work Experience
 -------------------------*/
.work-experience {
    background-color: var(--black-100);

    .experience-container {
        position: relative;

        .line {
            position: absolute;
            width: 10px;
            height: 95%;
            top: 5px;
            left: -20px;
            background: linear-gradient(var(--black-700), var(--black-100));
            border-radius: 10px;
            z-index: 1;
        }

        .work {
            display: flex;
            flex-direction: column;
            gap: 15px;

            .work-details-container {
                display: flex;
                gap: 15px;
                color: var(--black-900);

                .org-icon {
                    width: 80px;
                    height: 80px;
                    border-radius: 8px;
                    object-fit: contain;
                    margin-top: 5px;
                    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 1px rgba(0, 0, 0, 0.527);
                    z-index: 100;

                    &:hover {
                        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 0, 0, 0.527);
                    }

                    &.prospecta {
                        background: white;
                        padding: 5px;
                        transition: all 0.4s cubic-bezier(0.38, 0.37, 0.17, 0.83);
                    }
                }

                .work-header {
                    display: flex;
                    flex-direction: column;

                    .role {
                        font-weight: 500;
                        margin-bottom: 4px;
                    }

                    .org-name,
                    .working-years {
                        font-size: 20px;
                        margin-bottom: 2px;

                        a {
                            color: var(--black-900);
                            transition: all 0.3s ease;
                            text-decoration: underline;
                            text-decoration-color: transparent;
                            -webkit-text-decoration-color: transparent;
                            -moz-text-decoration-color: transparent;

                            &:hover {
                                color: var(--black-700);
                                text-decoration-color: var(--black-700);
                                -webkit-text-decoration-color: var(--black-700);
                                -moz-text-decoration-color: var(--black-700);
                            }
                        }
                    }

                    .org-name {
                        font-weight: 500;

                        .product-name {
                            font-weight: 400;
                            font-size: 18px;
                        }
                    }

                    .working-years {
                        font-weight: 400;
                        color: var(--black-400);
                    }
                }
            }

            .work-contribution-container {
                margin-left: 95px;
                color: var(--black-900);

                .work-contribution-list {
                    display: flex;
                    flex-direction: column;
                    gap: 8px;
                    margin-left: 18px;
                    list-style: square;

                    li {
                        text-align: justify;
                    }
                }
            }
        }
    }
}

/*----------------------- 
 Tech Skills
 -------------------------*/
.skills {
    .section-title {
        margin-bottom: 30px;
    }

    .techs_and_tools {
        display: flex;
        column-gap: 10px;

        h3 {
            color: var(--black-400);
            margin-bottom: 30px;
            font-size: 24px;
        }

        & > div > .skill-list {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
            width: 95%;
        }
    }
}

.skills .skill-list img,
.tech-stacks img {
    min-width: 100px;
    max-width: 100px;
    min-height: 100px;
    max-height: 100px;
    padding: 10px;
    object-fit: contain;
    border: 1px solid #ffffff22;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.38, 0.37, 0.17, 0.83);
    background: linear-gradient(0deg, var(--black-300) 0%, var(--black-alpha-50) 100%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    overflow: hidden;
}

.skills .skill-list img:hover,
.tech-stacks img:hover {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 5px rgba(0, 0, 0, 0.527);
}

body.dark .skills .skill-list img {
    background-color: rgb(32, 32, 46);
}

body.dark .skills .skill-list img:hover,
body.dark .tech-stacks img:hover {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 5px rgba(255, 255, 255, 0.527);
}

/*----------------------- 
 Projects
 -------------------------*/
.projects {
    background-color: var(--black-100);
}

.projects-container {
    display: grid;
    gap: 15px;

    .project-item {
        display: flex;
        margin: 8px;
        background-color: var(--black-000);
        border-radius: 12px;
        box-shadow: rgba(0, 0, 0, 0.4) 0 0 5px;
        overflow: hidden;

        .image-section {
            padding: 10px;
            width: 55%;

            img {
                width: 100%;
                border-radius: 8px;
                box-shadow: rgba(0, 0, 0, 0.3) 0 0 3px;
            }
        }

        .project-info {
            width: 45%;
            padding: 12px;
            color: var(--black-900);

            &.w-100-percent {
                width: 100%;
            }

            .links {
                display: flex;
                gap: 10px;
                margin-bottom: 10px;

                a {
                    text-decoration: none;
                    color: var(--black-400);
                    display: flex;
                    align-items: center;
                    gap: 5px;
                    font-size: 15px;
                    transition: all 0.3s ease;

                    i {
                        color: var(--black-900);
                        font-size: 20px;
                    }

                    &.highlight > i {
                        color: var(--color-2);
                    }

                    &.highlight {
                        span {
                            font-weight: 500;
                            transition: all 0.3s ease;
                        }

                        &:hover {
                            cursor: cell;

                            span {
                                font-size: 16px;
                                color: var(--color-2);
                            }
                        }
                    }

                    &.github-repo:hover {
                        color: var(--black-900);
                    }

                    &.play-store > i,
                    &.play-store:hover {
                        color: #01875F;
                    }

                    &.open-solutions:hover {
                        color: var(--main-color);
                    }
                }
            }

            p {
                .highlight {
                    font-weight: 500;
                    background: var(--black-300);
                    padding: 2px 6px;
                    border-radius: 8px;
                }
            }

            .tech-stacks {
                margin-top: 10px;

                h4 {
                    color: var(--black-700);
                    font-size: 20px;
                }

                div {
                    display: flex;
                    gap: 10px;
                }

                img {
                    max-width: 45px;
                    max-height: 45px;
                    min-width: 45px;
                    min-height: 45px;
                    border-radius: 4px;
                    padding: 4px;
                }
            }
        }
    }
}

body.dark #projects .project-item .tech-stacks img {
    background-color: rgb(32, 32, 46);
}

/*----------------------
 Contact Section
------------------------*/
.contact {
    min-height: calc(100vh - 110px);

    .contact-info {
        h3 {
            font-size: 22px;
            color: var(--black-900);
            font-weight: 500;
            margin: 0 0 20px;
        }

        .resume-btn {
            margin: 0 0 30px;

            a {
                padding: 10px 30px;
                background-color: var(--black-000);
            }
        }

        .contact-info-item {
            position: relative;
            padding-left: 55px;
            margin-bottom: 30px;

            i {
                position: absolute;
                height: 40px;
                width: 40px;
                left: 0;
                top: 0;
                border-radius: 50%;
                font-size: 18px;
                color: var(--main-color);
                border: 1px solid var(--main-color);
                text-align: center;
                line-height: 38px;
            }

            h4 {
                font-size: 18px;
                font-weight: 400;
                margin: 0 0 10px;
                color: var(--black-900);
            }

            p {
                font-size: 16px;
                font-weight: 300;
                margin: 0;
                line-height: 26px;
                color: var(--black-400);

                a {
                    font-size: 16px;
                    font-weight: 300;
                    margin: 0;
                    line-height: 26px;
                    color: var(--black-400);
                    text-decoration: none;
                }
            }
        }
    }

    .contact-form {
        .form-group {
            margin-bottom: 25px;
        }

        .form-control {
            height: 52px;
            border: 2px solid transparent;
            box-shadow: var(--shadow-black-100);
            border-radius: 10px;
            padding: 0 24px;
            color: var(--black-900);
            background-color: var(--black-000);
            transition: all 0.5s ease;

            &:focus {
                border-color: var(--main-color);
            }
        }

        textarea.form-control {
            height: 120px;
            padding-top: 12px;
            resize: none;
        }
    }
}

/*----------------------
 Footer Section
------------------------*/
.footer {
    background-color: var(--main-to-dark-color);

    .copyright-text {
        padding: 20px 0;
        text-align: center;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.9);
        font-weight: 300;
        margin: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);

        a {
            color: white;
        }
    }
}

/*-----------------------
 Toggle Theme - light and dark
------------------------*/
.toggle-theme {
    position: fixed;
    right: 5px;
    top: calc(50% - 20px);
    height: 40px;
    width: 40px;
    background-color: var(--dark-to-main-color);
    z-index: 1200;
    color: #ffffff;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: var(--shadow-black-300);
    font-size: 18px;
    text-align: center;

    i {
        line-height: 40px;
    }
}

/*----------------------
 Responsive Section
------------------------*/
@media (max-width: 991px) {
    .navbar {
        .navbar-collapse {
            transition: all 0.4s ease;
            margin-top: 12px;
            z-index: 100;
        }

        .navbar-toggler {
            background-color: var(--main-to-dark-color);
            box-shadow: var(--shadow-black-300);
            height: 34px;
            width: 44px;
            padding: 0;
            font-size: 17px;
            line-height: 34px;
            color: #ffffff;
        }

        .navbar-nav {
            background-color: var(--main-to-dark-color);
            box-shadow: var(--shadow-black-300);

            .nav-item {
                margin: 0;
                padding: 5px 15px;
            }
        }

        &.navbar-shrink {
            .navbar-toggler,
            .navbar-nav {
                background-color: var(--main-to-dark-color);
            }
        }
    }

    .home {
        padding: 100px 0 120px;
    }

    .about-me .row-2 {
        flex-direction: column;
    }

    .projects {
        .projects-container .project-item {
            flex-direction: column;

            > * {
                width: 100%;
            }
        }
    }

    .contact-info-item.email p a {
        font-size: 14px;
    }

    .footer-col {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .home {
        .download-resume {
            display: none;
        }
    }

    .skills .techs_and_tools {
        flex-direction: column;
        row-gap: 45px;
    }

    .contact-form {
        margin-top: 20px;
    }

    .section-title h2 {
        font-size: 35px;
    }

}

@media (max-width: 575px) {
    .cube {
        margin-left: 20px;
    }

    .wrapper .skills li,
    .wrapper .static-text {
        font-size: 20px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .work-experience {
        .experience-container {
            .line {
                display: none;
            }

            .work {
                .work-contribution-container {
                    margin-left: 8px;
                }
            }
        }
    }
}

@media (max-width: 384px) {
    .project-item .project-info .links {
        flex-direction: column;
        gap: 5px;
    }
}
