@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500;700;900&display=swap");

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

:root {
    --text: #0b1311;
    --background: #f6faf9;
    --primary: #57aa91;
    --secondary: #9acfbf;
    --accent: #7cc5af;
    
}

body.dark {
    --text: #ecf4f2;
    --background: #050a09;
    --primary: #55aa90;
    --secondary: #2f6555;
    --accent: #3a836d;
}


body {
    width: 80%;
    margin: auto;
    font-family: "Inter", sans-serif;
    background-color: var(--background);
    color: var(--text);
}

.loader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #ecebf2;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 2s;
}

.progress {
    width: 120px;
    height: 8px;
    background: #d1d1e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 1s;
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s;
}

/* TOP */
.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin-top: 1em;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.heading-text {
    color: var(--accent);
    margin-top: 1em;
    width: 50px;
    height: 50px;
}

.toggle-button {
    background-color: var(--primary);
    border: none;
    margin-top: 1em;
    padding: 1em 2em;
    border-radius: 6px;
    color: #ffff;
    transition: transform ease 0.2s, box-shadow ease 0.2s;
}

.toggle-button:hover {
    cursor: pointer;
    transform: translate(0, -2px);
    box-shadow: 0px 5px 5px -5px var(--primary);
}

/* CONTENT */

.top-main {
    width: 50%;
    font-size: 2rem;
    font-weight: 900 !important;
}

.accent {
    color: var(--primary);
}

.middle-main {
    margin-top: 1em;
}

.content {
    position: fixed;
    bottom: 30%;
}

.bottom-main {
    margin-top: 1em;
    display: flex;
    align-items: center;
}

.color-effect {
    background: linear-gradient(120deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.tagline {
    margin: 1em;
}

.social {
    margin-top: 5px;
}

.social a {
    color: var(--text);
}

.tool-used {
    margin-top: 20px;
    margin-bottom: 200px;
    padding: 10px;
}

.toolsets {
    display: flex;
    gap: 1rem;
}

.toolsettitle {
    display: block;
}

.tooltitle {
    padding: 10px;
    background-color: var(--accent);
    border-radius: 10px;
    color: #fff;
    margin-right: 10px;
}

.toolset {
    flex: 1 0 200px;
    display: grid;
    padding: 1rem;
    gap: 5px;
}

.toolset ul {
    margin: 10px 0px;
    font-size: 18px;
    gap: 10px;
}

.tool {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding-left: 10px;
    align-items: center;
}

.toolicon {
    width: 30px;
    color: var(--text);
}

ul {
    font-size: 1rem;
}


.fa-brands {
    font-size: 20px;
}

/* Bottom */
.floating-bar {
    width: 60%;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    position: fixed;
    display: flex;
    justify-content: space-around;
    background-color: var(--secondary);
    padding: 2em 1em;
    border-radius: 10px;
    align-items: center;
    z-index: 999;
}

.floating-bar a {
    color: var(--text);
    text-decoration: none;
}

.floating-bar a::after {
    content: '';
    display: block;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: var(--primary);
    transition: transform 0.2s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.floating-bar a:hover::after {
    font-weight: bold;
    transform: scaleX(1);
    width: 100%;
}

.active {
    font-weight: bold;
}

.active a {
    color: var(--primary);
}

/* WORK */
.worktitle {
    margin: 25px 10px;
}

.work-content {
    margin-top: 20px;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    pointer-events: all;
}

.box-container {
    width: 80%;
    height: 40vh;
    margin: auto;
    gap: 1rem;
    /* background: linear-gradient(120deg, var(--primary), var(--accent)); */
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 2px solid;
    border-color: linear-gradient(120deg, var(--primary), var(--accent));
    transition: transform 0.3s, box-shadow 0.3s;
}


.box-container:hover {
    transform: translate(0, 4px);
    box-shadow: 0 10px 40px -10px var(--primary);
}

.thumbnail {
    width: 200px;
    height: 100px;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.right {
    margin: 10px 0px;
}

.work-title {
    color: var(--text);
}

.work-title a {
    color: var(--text);
    text-decoration: none;
}

.work-title a:hover {
    text-decoration: underline;
}

.work-desc {
    margin: 10px 0px 0px 0px;
    color: var(--text);
}


/* EXPERIENCE */
.expecontainer {
    width: 90%;
    margin: auto;
    overflow-x: auto;
    border-left: 10px solid var(--accent);
    border-radius: 10px;
    overflow-y: auto;
    margin-bottom: 150px;
}

.exptitle p {
    color: var(--text);
    font-weight: bolder;
}

.expdetails {
    margin: 10px;
    padding: 10px;
    position: relative;
    transition: transform ease 0.2s, box-shadow ease 0.2s;
    border-radius: 10px;
}

.expdetails:before {
    content: " ";
    display: flex;
    justify-content: space-between;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    position: absolute;
    top: 10px;
    left: -25px;
}


.expdetails:hover {
    transform: translate(0, -3px);
    box-shadow: 0 10px 40px -10px var(--primary);
}

.expdesc {
    display: flex;
    justify-content: space-between;
}

.left p {
    width: 900px;
    gap: 10px;
    padding: auto;
}

.right p {
    margin: 5px 10px;
    text-align: left;
    color: var(--primary);

}



/* RESPONSIVE */

@media only screen and (max-width: 1000px) {
    .toolset {
        flex: 1 0 50px;
    }

    .expecontainer {
        width: 100%;
        margin: auto;
    }
}

@media only screen and (max-width: 800px) {
    .toolsets {
        display: block;
    }

    .expecontainer {
        width: 100%;
        margin: auto;
    }

    .top {
        align-items: center;
    }


}

@media only screen and (max-width: 600px) {
    body {
        width: 100%;
        margin: auto;
        padding: 10px;
    }

    /* TOP */

    .heading-text {
        text-align: center;
        margin-right: 70px;
    }

    .toggle-button {
        width: 20px;
        height: 40px;
        border: none;
        background-color: var(--primary);
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .toggle-button-text {
        font-size: 0.5rem;
        color: var(--text);
    }

    /* CONTAINER */
    .top-main {
        font-size: 1em;
    }

    .floating-bar {
        z-index: 999;
    }

    .work-content {
        display: block;
        position: relative;
        left: 0;
        right: 0;
        transform: translate(-0, -0);
        border-top: 0px solid var(--accent);
        border-left: 10px solid var(--accent);
        border-radius: 10px;
    }

    .thumbnail {
        display: none;
    }

    /* EXPERIENCE */
    .expecontainer {
        width: 100%;
        margin-bottom: 100px;
    }

    .expdesc {
        display: block;
    }

    .left p {
        width: auto;
    }

    .right p {
        margin: 10px 0px;
    }


    /* BOTTOM */
    .floating-bar {
        width: 105%;
        bottom: 0;
    }

    .box-container {
        width: 95%;
        margin: auto;
        margin-bottom: 0px;
        height: auto;
        border: 0px solid;
        padding: 5px;
        position: relative;
    }


    .toolsets {
        display: block;
    }
}