/* ============================================================
   RESET & GLOBAL
   ============================================================ */

* {
    padding: 0;
    margin: 0;
    outline: none;
    font-family: "inter";
    text-decoration: none;
    box-sizing: border-box;
    color: inherit;
    /* list-style: none; */

    scrollbar-width: thin;
    scrollbar-color: var(--accent-color2) transparent;
}

.burger:focus {
    outline-color: var(--accent-color2);
}


/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
    font-size: 20px;

    --font-base: 1rem;
    --font-xs: .6rem;
    --font-s: .7rem;
    --font-m: .8rem;
    --font-l: 1rem;
    --font-xl: 2rem;
    --font-2xl: 2.2rem;
    --font-3xl: 2.5rem;

    --font-wt-ultra-thin: 100;
    --font-wt-thin: 200;
    --font-wt-base: 400;
    --font-wt-bold: 600;
    --font-wt-bolder: 800;

    --space-xs: .3rem;
    --space-s: .5rem;
    --space-m: .8rem;
    --space-l: 1rem;
    --space-xl: 1.3rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-max: 5rem;

    --width-100: 100%;

    --border-color2: hsl(0, 5%, 55%);
    --color-body: #dbd7d7;
    --color-titles: #e3e0e0;
    --a-color: #e7e5e5;
    --accent-color: #d46039;
    --card-bg: #242424;
    --border-color: #353434;

    --accent-color2: #d37144;


    --bg-color-body: #1a1a1a;



    --border-s: 2px solid #353434;

    --border-radius-xs: 4px;
    --border-radius-s: 8px;
    --border-radius-m: 12px;


}


/* ============================================================
   FONTS
   ============================================================ */

@font-face {
    font-family: "inter";
    src: url("./assets/Font/Inter_18pt-Regular.ttf");
}

@font-face {
    font-family: "ibm sans";
    src: url("./assets/Font/IBMPlexSans-Regular.ttf");
}

@font-face {
    font-family: "public sans";
    src: url("./assets/Font/PublicSans-Regular.ttf");
}


/* ============================================================
   UTILITY / CUSTOM CLASSES
   ============================================================ */

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.col {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: flex-end;
}

.underline {
    text-decoration: underline;
}

.center {
    justify-content: space-between;
    align-items: center;
}

.thin-txt {
    font-weight: var(--font-wt-ultra-thin);
}

.s-txt {
    font-size: var(--font-xs);
}

.base-txt {
    font-size: var(--font-s);
}

.txt-justify {
    text-align: justify;
}

.txt-right {
    text-align: right;
}

.a {
    color: var(--a-color);
    margin-top: var(--space-xl);
}

.bordered {
    border: var(--border-s);
    border-radius: var(--space-s);
}

.txt-center {
    text-align: center;
}

.gap-s {
    gap: var(--space-s);
}

.gap-l {
    gap: var(--space-l);
}

.gap-xl {
    gap: var(--space-xl);
}

.display-none {
    display: none;
}

.italic {
    font-style: italic;
}

.disabled {
    border: 3px solid red;
}


/* ============================================================
   BODY
   ============================================================ */

body {
    user-select: none;
    background: var(--bg-color-body) fixed;
    color: var(--color-body);
    position: relative;
}


/* ============================================================
   HEADER
   ============================================================ */

.burger {
    width: 45px;
    height: 45px;
    cursor: pointer;
}

.burger div {
    width: 75%;
    height: 4px;
    background-color: var(--accent-color2);
    margin: 6px 0;
    border-radius: var(--border-radius-xs);
    transition: all 0.3s ease;
}

.burger img {
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    font-size: var(--font-s);
    padding: var(--space-m);
    background-color: var(--bg-color-body);
    z-index: 1;
    border-bottom: 0.5px solid #353434;
}

.navigation-bar {
    right: 0%;
    bottom: -260%;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    font-weight: var(--font-wt-base);
    color: var(--header-txt-color);
    height: 200px;
    width: 100%;
    padding: var(--space-m);
    background-color: inherit;
    text-align: center;
    border-radius: 5px;
}

.nav-links {
    display: block;
    color: var(--accent-color2);
    font-weight: 600;
}

.logo {
    font-size: var(--font-l);
    font-weight: var(--font-wt-bolder);
    padding: var(--space-xs);
    border: var(--border-logo);
    color: var(--accent-color2);
    border: 2px solid var(--accent-color2);
}


/* ============================================================
   MAIN
   ============================================================ */

main {
    backdrop-filter: blur(2px);
    padding: var(--space-s) var(--space-m) var(--space-2xl) var(--space-m);
    width: min(var(--width-100), 768px);
    margin-inline: auto;
}

.page-title {
    font-size: var(--space-l);
}

section {
    gap: var(--space-m);
    margin-bottom: var(--space-3xl);
}

.sect-head-txt {
    color: var(--color-titles);
    font-size: var(--font-l);
    margin-left: var(--space-s);
}

.sect-label-container {
    margin-bottom: 4rem;
}

.sect-description {
    margin-left: var(--space-m);
    line-height: 1.3;
    margin-bottom: var(--space-s);
    width: 90%;
}

.page-description {
    width: 85%;
    align-self: center;
}

li {
    margin-left: var(--space-l);
    margin-top: var(--space-xs);
}


/* ============================================================
   INDEX
   ============================================================ */

.index-main {
    padding-bottom: 0;
}

.intro-txt {
    color: var(--accent-color2);
    font-size: var(--font-3xl);
    font-weight: var(--font-wt-bold);
    margin-bottom: var(--space-xs)
}

.intro-paragraph {
    width: 85%;
    line-height: 1.3;
}

.call-to-action {
    cursor: pointer;
    margin-top: var(--space-l);
    color: var(--accent-color2);
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--accent-color2);
}

.first-sect {
    height: 80vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-max);
}

.demo-reel-container {
    width: var(--width-100);
    height: fit-content;
    margin: var(--space-3xl) 0;
    border-radius: var(--border-radius-m);
}

.demo-reel-container video {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-m);
    border: 2px solid #3d3c3c;
    margin: var(--space-l) 0;
}

/* --- Skills Carousel --- */

.skill-container {
    overflow-x: hidden;
    scrollbar-width: none;
    position: relative;
    margin-top: var(--space-2xl);
    justify-self: center;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-max);
}

.skill-container:hover .skill-wrapper {
    animation-play-state: paused;
}

.skill-container ::-webkit-scrollbar {
    display: none;
}

.skill-container::before, .skill-container::after {
    content: "";
    position: absolute;
    width: 25px;
    top: 0;
    bottom: 0;
    z-index: 2;

}

.skill-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color-body), transparent);
}

.skill-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color-body), transparent);
}

.skill-wrapper {
    gap: var(--space-l);
    animation: carousel 7s linear infinite;
    padding-right: var(--space-m);
}

.skill {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    padding: var(--space-m);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-m);
}

.skill img {
    width: 80px;
}

/* --- Index Projects --- */

.index-project-container {
    width: 95%;
    height: max(420px, fit-content);
    align-self: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    overflow-x: scroll;
    scrollbar-width: none;
    border-radius: var(--border-radius-m);
}

.index-project-container::-webkit-scrollbar {
    display: none;
}

.proj-wrapper {
    transition: all 0.3s ease;
    height: 100%;
}

.project-container {
    width: 100%;
    padding: var(--space-m);
    gap: var(--space-2xl);
}

.project {
    flex: 1 0 100%;
    padding: var(--space-l) var(--space-m);
    height: 100%;
    scroll-snap-align: start;
}

.view-project-container {
    padding: 0 var(--space-s);
}

.proj-navigation {
    justify-self: end;
}

.project-title {
    font-size: var(--font-m);
    font-weight: var(--font-wt-bold);
    margin-top: var(--space-l);
    margin-bottom: var(--space-xs);
}

.project img {
    aspect-ratio: 16 / 10;
    width: 100%;
    object-fit: cover;
    object-position: left;
    margin-bottom: var(--space-m);
    border-top-left-radius: var(--border-radius-m);
    border-top-right-radius: var(--border-radius-m);
}

.tech-wrapper {
    flex-flow: row wrap;
}

.tech-used {
    font-size: var(--font-xs);
    color: var(--accent-color2);
    border: 1px solid var(--accent-color2);
    width: fit-content;
    padding: var(--space-xs) var(--space-m);
    border-radius: var(--border-radius-m);
}

.view-project {
    justify-self: self-end;
    display: block;
    justify-self: flex-end;
    margin-top: var(--space-xl);
    border-radius: var(--border-radius-m);
    padding: var(--space-s) var(--space-m);
    border: 2px solid var(--accent-color2);
    color: var(--accent-color2);
    cursor: pointer;
    width: fit-content;
}

.proj-circles-wrapper {
    align-self: center;
    margin-top: var(--space-m);
    margin-bottom: var(--space-m);
}

.active-circle {
    border: 4px solid var(--a-color);
}

.proj-circles {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--border-color2);
    cursor: pointer;
}

.proj-footer {
    padding: 0 var(--space-m);
}

.proj-btn {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color2);
    font-weight: var(--font-wt-bold);
}

.contact-btn {
    margin-top: var(--space-s);
    padding: 0 var(--space-s);
}


/* ============================================================
   PROJECTS PAGE
   ============================================================ */

.project-main {
    gap: var(--space-xl);
}

.proj-2 {
    width: 95%;
    padding: var(--space-m) var(--space-s) var(--space-l) var(--space-m);
    height: fit-content;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.proj-2 img {
    width: 100%;
    aspect-ratio: 16 / 9.5;
    object-fit: cover;
    margin-bottom: var(--space-m);
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-sect {
    gap: var(--space-l);
}

.about-container-wrapper {
    gap: var(--space-l);
}

.about-container {
    padding: var(--space-l) var(--space-s);
    gap: var(--space-s);
    margin-bottom: var(--space-m);
    flex-direction: column-reverse;
    text-align: left;
}

.first-abt {
    border-bottom: 2px solid var(--border-color);
    padding-left: var(--space-s);
    padding-bottom: var(--space-2xl);
}

.first-abt img {
    width: 75%;
    border-radius: 50%;
    margin-bottom: var(--space-l);
}

.about-container img {
    object-fit: cover;
    width: 250px;
    height: 170px;
    border-radius: var(--border-radius-s);
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-m);
}

.reverse {
    flex-direction: column-reverse;
}

.java-comp {
    object-position: right;
}

.programming-img {
    object-position: top;
}


/* ============================================================
   CONTACT PAGE
   ============================================================ */

.contact-main {
    min-height: 0;
}

.contact-socials-container {
    padding-top: var(--space-2xl);
}

.contact-socials {
    height: 100px;
    padding-left: var(--space-s);
    cursor: pointer;
}

.contact-socials img {
    width: 30px;
}

.buymeacoffee {
    margin-top: var(--space-m);
    width: 170px;
}


/* ============================================================
   FOOTER
   ============================================================ */

footer {
    border-top: 0.5px solid var(--border-color);
    padding: var(--space-xl);
    padding-top: 5rem;
    margin-inline: auto;
    width: min(100%, 768px);
    /* background-color: hsl(0, 0%, 12%); */
}

.footer-links {
    border-bottom: 1px solid #3d3c3c;
}

.socials-div {
    gap: var(--space-l);
    justify-content: flex-end;
    padding: var(--space-xl) var(--space-xs);
}

.socials-img {
    background-color: white;
    width: var(--space-l)
}

.copyright-txt {
    font-size: var(--font-xs);
    font-weight: var(--font-wt-thin);
}


/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes carousel {
    from {
        transform: translate(0);
    }

    to {
        transform: translate(-100%);
    }
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translate(-50%);
    }

    to {
        opacity: 1;
        transform: translate(0);
    }
}

.delay-0 {
    animation-delay: 0s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.animate {
    animation: dropIn 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.fade-in {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateX(0);
}


/* ============================================================
   MEDIA QUERIES
   ============================================================ */

@media (min-width: 768px) {

    :root {
        font-size: 22px;
    }

    /* HEADER */

    .navigation-bar {
        bottom: -200px;
    }

    /* INDEX */

    .index-main {
        padding: var(--space-m);
    }

    .index-project-container {
        width: 75%;
        height: fit-content;
    }

    .demo-reel-container {
        width: 95%;
        align-self: center;
    }

    .proj-wrapper {
        height: 100%;
    }

    .project {
        height: fit-content;
        padding: var(--space-m);
    }

    .project img,
    .proj-2 img {
        object-position: left;
        width: 100%;
        margin-bottom: var(--space-s);
    }


    /* PROJECT */

    .project-container {
        align-self: center;
        flex-flow: row wrap;
        width: 100%;
        gap: var(--space-xl);
        padding: 0;
    }

    .proj-description {
        font-size: var(--font-xs);
    }

    .numerous-tech>.tech-used {
        padding: var(--space-xs) var(--space-s);
    }

    .proj-2 {
        flex: 1 0 45%;
        padding: var(--space-l) var(--space-m);
        padding-bottom: var(--space-xl);
        height: fit-content;
    }

    .footer-links-container {
        width: 70%;
        justify-content: space-around;
    }

    .footer-links {
        color: var(--a-color);
        border-bottom: 2.5px solid #3d3c3c;
    }


    /* ABOUT */

    .about-container {
        flex-direction: row;
    }

    .about-container img {
        width: 230px;
        height: 230px;
        border-radius: 50%;
    }

    .reverse {
        flex-direction: row-reverse;
    }

    .contact-main {
        height: fit-content;
    }
}

@media (min-width: 1024px) {

    :root {
        font-size: 26px;
    }

    main {
        width: 80%;
    }

    .logo {
        transition: all 0.3s ease;
    }

    .logo:hover {
        border-radius: 50%;
    }

    .navigation-bar {
        position: static;
        display: flex;
        gap: var(--space-xl);
        padding: 0;
        flex-direction: row;
        width: fit-content;
        height: fit-content;
        font-size: var(--font-m);
    }

    .nav-links {
        font-size: var(--font-m);
        position: relative;
        width: max-content;
        margin-right: var(--space-m);
    }

    .nav-links::after {
        content: "";
        position: absolute;
        bottom: -3px;
        left: 0%;
        width: 100%;
        height: 2px;
        background-color: var(--accent-color2);
        transform: scale(0);
        transform-origin: center;
        transition: all 0.2s ease;
    }

    .nav-links:hover::after {
        transform: scale(1);
    }

    .burger {
        display: none;
    }

    .page-title {
        font-size: var(--space-xl);
        margin-bottom: var(--space-xl);
    }

    /* INDEX */


    .intro-txt {
        font-size: 2.5rem;
    }

    .sect-description {
        width: 90%;
    }

    .intro-paragraph {
        width: 50%;
    }

    .arrow {
        transition: all 0.2s ease;
    }

    .arrowed:hover>.arrow {
        transform: translateX(5px);
    }

    .call-to-action:hover {
        background-color: var(--accent-color2);
        color: var(--a-color);
        font-weight: var(--font-wt-bold);
    }

    .index-project-container {
        width: 85%;
        height: fit-content;
        box-shadow: none;
        padding: var(--space-xl) 0;
    }

    .demo-reel-container {
        width: 100%;
        margin-bottom: var(--space-max);
        overflow: hidden;
    }

    .demo-reel-container video {
        width: 100%;
        height: 100%;
    }

    .proj-wrapper {
        width: 100%;
    }

    .project {
        flex: 1 0 49%;
        padding: var(--space-l) var(--space-m);
        height: fit-content;
        margin: 0 var(--space-xs);
        transition: all 0.3s ease;
    }

    /* PROJECT */

    .page-description {
        margin-bottom: var(--space-m);
    }

    .project-container {
        width: 95%;
        padding: var(--space-s);
        justify-content: center;
    }

    .proj-2 {
        cursor: pointer;
        flex: 0 1 30%;
        transition: all 0.3s ease;
        margin: 0 var(--space-xs);
    }

    .proj-2:hover,
    .project:hover {
        transform: translateY(-10px);
    }

    .proj-btn:hover {
        color: var(--accent-color2);
        font-weight: var(--font-wt-bold);
        border: 2px solid var(--accent-color2);
    }

    .view-project {
        transition: all 0.3s ease;
        color: #dbd7d7;
        border: 1px solid hsl(0, 5%, 58%);
    }

    .view-project:hover {
        background-color: #d37144;
        border: none;
    }

    .view-project:hover,
    .arrowed:hover {
        color: var(--a-color);
        font-weight: var(--font-wt-bold);
    }

    /* ABOUT PAGE */

    .about-intro {
        width: 50%;
    }

    .first-abt {
        flex-direction: row;
        margin-left: var(--space-m);
        padding: 0;
        border: none;
        gap: var(--space-2xl);
        justify-content: start;
        height: 85vh;
    }

    .me-container {
        width: 40%;
        padding: 0;
    }

    .me-container img {
        width: 100%;
        border-radius: 50% !important;
        justify-content: baseline;
        margin: 0;
    }

    .about-container-wrapper {
        width: 100%;
        flex-flow: row wrap;
        align-self: center;
    }

    .about-container {
        flex-direction: row-reverse;
        width: 100%;
        padding: 0;
        gap: var(--space-2xl);
        line-height: 1.4;
        height: 75vh;

        animation: slide-in;
        animation-timeline: view();
        animation-range: entry 5% cover 40%;
    }

    .about-container-txt {
        width: 60%;
    }

    .about-container img {
        width: 500px;
        height: 500px;
        border-radius: 50%;
    }

    .about-container img,
    .me-container img {
        transition: all 0.4s ease;
    }

    .about-container img:hover, .me-container img:hover {
        transform: scale(1.05);
    }

    /* CONTACT PAGE */

    .contact-socials {
        transition: all 0.3s ease;
    }

    .contact-socials:hover {
        transform: translateX(20px);
    }

    .buymeacoffee {
        transition: all 0.3s ease;
    }

    .buymeacoffee:hover {
        transform: scale(1.03);
    }

}.contact-form-container {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

.form-input {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-s);
    padding: var(--space-m);
    color: var(--color-body);
    font-size: var(--font-s);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color2);
}

textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

#formStatus {
    min-height: 2rem;
}

.success {
    color: #7fd47f;
}

.error {
    color: #ff8a8a;
}

.call-to-action {
    border-radius: var(--border-radius-m);
    background-color: var(--accent-color2);
    color: var(--a-color);
}

.cv-container {
    cursor: pointer;
    background-color: var(--accent-color2);
    border: 2px solid var(--accent-color2);
    border-radius: var(--border-radius-m);
    padding: var(--space-s) var(--space-m);
    transition: all 0.3s ease;
    width: fit-content;
}

.cv-container:hover {
    background-color: var(--a-color);
    color: var(--accent-color2);
    font-weight: var(--font-wt-bold);
}
