/* ******************************************************************************** */
/* GLOBAL */
/* ******************************************************************************** */

:root {
    --bg-primary: rgb(10, 11, 12);

    --border-primary: rgb(158, 162, 176);
    --border-secondary: rgb(87, 90, 99);
    --border-tertiary: rgb(52, 52, 57);

    --text-p: #e8edf9;
    --text-s: #9a9ca4;
    --text-s-alt: #5e5e64;
    --text-t: rgb(38, 38, 42);
    --text-t-alt: #434347;

    --card-bg-2: #1e2024;

    --green: #10b981;
    --blue: #3b82f6;
    --red: rgb(245, 55, 90);
    --orange: #f86931;

    --font-ss-gen: 'Uncut Sans Variable, Regular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", "Inter", sans-serif;
    --font-ss-hero: "Squada One", sans-serif;
}

*,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
    list-style-type: none;
    font-family: var(--font-ss-gen);
}

*::selection {
    background-color: var(--text-p);
    color: var(--bg-primary);
}

*:focus-visible {
    outline: var(--orange) solid .2rem;
}

*::placeholder {
    color: var(--text-s);
}

html {
    font-size: 62.5%;
    -webkit-tap-highlight-color: transparent;
    background-color: var(--bg-primary);
}

/* 30% - 40%  60% - 70% */

body {
    --grad: rgba(154, 156, 164, .1);
    background: linear-gradient(to right, var(--bg-primary) 25%, var(--grad) 25%, var(--grad) 40%, var(--bg-primary) 40%, var(--bg-primary) 60%, var(--grad) 60%, var(--grad) 75%, var(--bg-primary) 75%);
    color: var(--text-p);
}

svg {
    color: inherit !important;
}

/* ******************************************************************************** */
/* LOADER STYLE */
/* ******************************************************************************** */

#logo-container {
    width: 4rem;
    height: 5rem;
    margin-left: .6rem;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    color: var(--text-s);
}

#header-logo {
    width: 2.6rem;
    height: auto;
    z-index: 100;
}

#footer-sec {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}


/* ******************************************************************************** */
/* MAIN SECTION STYLE */
/* ******************************************************************************** */

#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10rem;
    scroll-snap-type: none;
}

/* ****************************************** */
/* home section style */
/* ****************************************** */
#home {
    width: 100%;
    max-width: 1200px;
    min-height: 60rem;
    height: 100vh;
    /* height: 100dvh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.stop1 {
    stop-color: var(--red);
}

.stop2 {
    stop-color: var(--green);
}

.stop3 {
    stop-color: var(--blue);
}

#home-logo {
    position: absolute;
    right: 6rem;
    height: 74%;
    /* opacity: 50%; */
    stroke-width: .3;
    fill: rgb(10, 11, 12);
    stroke: var(--text-t-alt);
    transform: rotateY(180deg);
    isolation: isolate;
    /* filter: blur(8px); */
    will-change: opacity, stroke-dashoffset;
}

#path845 {
    stroke-dasharray: 239;
    stroke-dashoffset: 239;
    animation: animate-logo 1.5s ease-in-out forwards;
}

#path847 {
    stroke-dasharray: 214;
    stroke-dashoffset: 214;
    animation: animate-logo 2s ease-in-out forwards;
}

#path849 {
    stroke-dasharray: 93;
    stroke-dashoffset: 93;
    animation: animate-logo 2s ease-in-out forwards;
}

@keyframes animate-logo {
    from {
        opacity: 100%;
        stroke-dashoffset: 0;
    }

    to {
        opacity: 100%;
        stroke-dashoffset: 0;
    }
}

#home-item {
    width: 80%;
    display: flex;
    height: fit-content;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    padding-block: 2rem 6rem;
    padding-left: 6rem;
    border-radius: 1rem;
    transform-origin: left;
    z-index: 1;
}

#home-name {
    letter-spacing: 4px;
    font-family: var(--font-ss-hero);
    font-size: 14rem;
    font-weight: bolder;
    margin-bottom: 1rem;
    color: var(--text-p);
    transform-origin: center;
}

#home-desc,
#home-desc>* {
    font-size: 2.2rem;
    color: var(--text-p);
}

#home-desc2 {
    font-size: 1.6rem;
    color: var(--text-s);
    margin-top: 1rem;
}

.home-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 5.6rem;
}

.home-ctrl-item {
    box-sizing: content-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-size: 1.6rem;
    font-weight: 500;
    padding: .8rem 1.6rem;
    color: var(--bg-primary);
    border: 3px solid var(--bg-primary);
    background-color: var(--text-p);
    border-radius: 4rem;
}

.section-name {
    font-family: var(--font-ss-hero);
    font-size: 2.4rem;
    color: var(--text-s);
    padding: 1rem;
    width: fit-content;
    border-radius: .2rem;
    border: 1px solid transparent;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    position: sticky;
    top: 0;
    /* backdrop-filter: blur(8px); */
    background-color: var(--bg-primary);
    z-index: 1;
}

#profile-links {
    width: fit-content;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.profile-list-item {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid transparent;
}

.social-anchor {
    position: relative;
    width: 4rem;
    height: 4rem;
    padding: .8rem;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-s);
    border: 1px solid var(--text-t-alt);
}

.social-anchor:hover,
.social-anchor:focus {
    color: var(--text-p);
    border-color: var(--text-s-alt);
}


/* ****************************************** */
/* skills sectioin style */
/* ****************************************** */
#skills {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#skills-item {
    width: 100%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#skills-sec-name {
    width: 100%;
}

#skills-container {
    width: 90%;
    max-width: 900px;
    padding: 2.6rem 0;
    border: 1px solid transparent;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 3rem;
    padding-inline: 2rem;
}

.skill-box {
    width: fit-content;
    flex: 1;
    background: transparent;
    border-radius: .6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    padding: 1rem 0;
    gap: 0.8rem;
}

.skill-category {
    width: fit-content;
    font-weight: 500;
    font-size: 1.6rem;
    color: var(--text-s);
    white-space: nowrap;
    padding: 0;
    text-align: left;
}

.skill-list {
    width: 100%;
    gap: 1rem;
    row-gap: .6rem;
    padding-block: 1rem;
    /* border-inline: 1px solid var(--border-tertiary); */
    border-top: 1px solid var(--border-tertiary);
}

.skill-list-item {
    font-size: 1.6rem;
    color: var(--text-p);
    padding: .6rem 0;
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.skill-icon {
    width: 2rem;
    height: 2rem;
}


/* ****************************************** */
/* work section style */
/* ****************************************** */

#work {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#work-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-inline: 2rem;
}

#work-item {
    width: 100%;
}

.work-item {
    max-width: 80rem;
    width: 100%;
    border-radius: .6rem;
    margin-top: 3rem;
}

.link {
    color: var(--blue);
}

.work-item-header {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    align-items: flex-end;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-tertiary);
}

.work-timeline,
.work-role {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-s);
}

.work-place {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.work-item-body {
    margin-top: 1.6rem;
    font-size: 1.6rem;
}

.work-contributions li {
    margin-bottom: 1rem;
    line-height: 1.4;
    word-spacing: .2rem;
}


/* ****************************************** */
/* projects section style */
/* ****************************************** */
#projects {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#projects-item {
    width: 100%;
    margin-top: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#projects-sec-name {
    width: 100%;
}

#projects-container {
    width: 100%;
    max-width: 950px;
    height: 90%;
    padding: 2.6rem 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    padding-inline: 2rem;
}

.project-item {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: .6rem;
}

.project-item-header {
    width: 100%;
    display: flex;
    align-items: center;
    color: var(--text-s);
    justify-content: space-between;
    gap: 1.4rem;
    padding-block: .6rem;
    border-bottom: 1px solid var(--border-tertiary);
}

.project-link {
    padding-block: .6rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-s);
}

.chevron-icon {
    width: 18px;
    height: 18px;
}

.repo-link,
.project-link-icon {
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    flex-shrink: 0;
    background-color: var(--card-bg-2);
}

.repo-link {
    color: var(--text-s);
}

.github-icon {
    width: 2.4rem;
    height: auto;
}

.project-item-name {
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    margin-right: 1rem;
}

.project-link:hover,
.repo-link:hover,
.project-link:focus,
.repo-link:focus {
    color: var(--text-p) !important;
}

.project-item-body {
    width: 100%;
    padding-block: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
    border-radius: .4rem;
}

.project-desc {
    font-size: 1.6rem;
    line-height: 1.4;
    word-spacing: .2rem;
    color: var(--text-p);
}

.project-tech-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1.4rem;
    margin-top: 1.2rem;
}

.tech-list-item {
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--text-s);
    border-radius: 999rem;
}


/* ****************************************** */
/* contact section style */
/* ****************************************** */
#contact {
    width: 100%;
    min-height: 600px;
    height: 100vh;
    display: flex;
    padding-top: 3rem;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#contact-item {
    width: 100%;
    height: 90%;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#form-container {
    width: 60%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
    border-radius: 2rem;
    /* backdrop-filter: blur(10px); */
}

.input-field {
    width: 100%;
    padding: 1.6rem 1.2rem;
    font-size: 1.7rem;
    border: none;
    caret-color: var(--text-s);
    color: var(--text-p);
    border: 1px solid var(--border-tertiary);
    border-radius: .6rem;
    background: var(--bg-primary);
}

.input-field:focus {
    border: 1px solid var(--border-primary);
}

textarea {
    resize: none;
    height: 60%;
    text-decoration: none !important;
}

#recaptcha {
    transform: scale(0.9);
    -webkit-transform: scale(0.9);
    cursor: pointer;
}

.submit-btn {
    color: var(--bg-primary);
    font-size: 1.8rem;
    font-weight: 500;
    padding: 1.2rem 6rem;
    margin-bottom: 2rem;
    cursor: pointer;
    border: .3rem solid var(--bg-primary);
    background-color: var(--text-p);
    border-radius: 4rem;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--text-s);
}


/* ******************************************************************************** */
/* RESPONSIVE STYLING */
/* ******************************************************************************** */

/* mobile devices */
@media screen and (max-width:650px) {
    .sec {
        padding-top: 0%;
    }

    #home {
        max-width: 100vw;
        overflow: hidden;
    }

    #home-item {
        width: 90%;
        height: 75vh;
        padding-block: 0 2rem;
        padding-inline: 2rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        background-color: transparent;
    }

    #home-logo {
        right: -2rem;
        padding-top: 0;
        padding-bottom: 2rem;
        padding-right: 2rem;
        width: 120%;
        height: auto;
    }

    #home-name {
        font-size: 8.6rem;
        font-weight: 500;
        letter-spacing: 0px;
    }

    #home-desc,
    #home-desc>* {
        font-size: 2.2rem;
    }

    #home-desc2 {
        font-size: 1.4rem;
    }

    .home-controls {
        margin-top: 3rem;
    }

    .home-ctrl-item {
        font-size: 1.6rem;
        padding: .8rem 1.6rem;
    }

    .section-name {
        text-align: left;
        align-self: flex-start;
        font-size: 2rem;
        justify-content: center;
    }

    #skills {
        padding-top: 6rem !important;
    }

    #projects {
        padding-top: 1rem !important;
    }

    #contact {
        padding-top: 0rem !important;
    }

    #photo-container {
        width: 80%;
        height: 30rem;
    }

    .profile-list-item {
        width: 4.5rem;
        height: 4.5rem;
    }

    .social-anchor {
        width: 4rem;
        height: 4rem;
    }

    #resume {
        margin-top: 0rem;
    }

    #skills-sec-name {
        width: 100%;
    }

    #skills-container {
        width: 100%;
    }

    .skill-box {
        width: 100%;
    }

    .skill-category {
        font-size: 1.6rem;
        width: 100%;
    }

    .skill-list-item {
        font-size: 1.4rem;
    }

    .skill-icon {
        width: 1.6rem;
        height: 1.6rem;
    }

    #projects-container {
        width: 100%;
        grid-template-columns: 1fr;
        row-gap: 3rem;
    }

    .project-item-header-left>img {
        width: 2.8rem;
    }

    .project-item-name {
        font-size: 1.6rem;
        font-weight: 600;
    }

    .project-desc {
        font-size: 1.5rem;
    }

    .project-tech-list {
        gap: .6rem 1rem;
    }

    .tech-list-item {
        font-size: 1.4rem;
    }

    .work-item {
        min-width: 100%;
    }

    .work-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .work-timeline {
        margin-bottom: 1rem;
    }

    .work-item-body {
        font-size: 1.5rem;
    }

    .work-contributions li {
        margin-bottom: 1.2rem;
    }

    #contact-item {
        width: 94%;
    }

    #form-container {
        width: 96%;
    }

    .input-field {
        font-size: 1.6rem;
    }

    #recaptcha {
        transform: scale(0.8);
        -webkit-transform: scale(0.8);
    }
}

/* ipads and tab */
@media screen and (min-width:651px) and (max-width:800px) {
    #home-logo {
        right: 3rem;
    }

    #home-item {
        padding-left: 3rem;
    }

    #about-note {
        padding: 2rem 3rem;
    }

    .note-item {
        font-size: 1.8rem;
    }

    #form-container {
        width: 75%;
    }

    #recaptcha {
        transform: scale(0.75);
        -webkit-transform: scale(0.75);
    }

}