:root {
    --font: "Montserrat";
    --text-color: white;
    --top-bar-height: 60px;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #000 0%, #000 50%, #000 60%, #0b0023 100%) no-repeat;
}

* {
    font-family: var(--font), sans-serif;
    box-sizing: border-box;
    color: white
}

/* ---------------------- NAV ---------------------- */
nav.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar-height);
    background-color: rgba(0, 0, 0, 0);
    color: var(--text-color);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-logo {
    height: 40px; /* smaller for mobile */
    width: auto;
}

.nav-title {
    margin: 0;
    font-weight: 500;
    font-size: 1.2rem;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    height: 100%;
}

.nav-button {
    height: 100%;
    border: none;
    padding: 0 15px;
    color: var(--text-color);
    font-size: 14px;
    background-color: transparent;
    transition: 0.15s background-color;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    background: var(--text-color);
    width: 25px;
    height: 3px;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}

.hamburger::before { bottom: 8px; }
.hamburger::after { top: 8px; }

/* Hamburger animation when active */
.nav-toggle.active .hamburger {
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::before {
    opacity: 0;
}

.nav-toggle.active .hamburger::after {
    transform: rotate(90deg) translate(-8px, 0);
}

.nav-button:hover {
    background-color: rgba(51, 51, 51, 0.6);
}

/* ---------------------- BANNER ---------------------- */
div.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(-90deg, #9200ff 0%, #00000000 20%, #00000000 80%, #0071ff 100%);
    width: 100%;
    height: 40vh;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
}

div.banner.scroll-on-active {
    opacity: 1;
}

div.banner img {
    opacity: 0;
    height: 40%;
    max-height: 150px;
    width: auto;
    transform: translateY(-20px);
    transition: transform 1s ease, opacity 1s ease;
}

div.banner.scroll-on-active img {
    transform: translateY(0);
    opacity: 1;
}

div.introduction-box {
    width: calc(100% - 5% - 5%);
    margin: 5%;
    padding: 50px;
    border-radius: 15px;
    background-image: linear-gradient(to top, rgba(85, 0, 255, 0.27), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #5500ff;

    opacity: 0;
    transform: translateY(50px);

    transition: 1s ease;

    display: flex;
    align-items: center;
    gap: 20px;
}

div.introduction-box img {
    height: 150px;
    width: auto;

    opacity: 0;
    transform: translateY(10px) rotate(90deg);
    transition: transform 1s ease, opacity 1s ease;
}

div.introduction-box img.scroll-on-active {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

div.introduction-box.scroll-on-active {
    transform: translateY(0);
    opacity: 1;
}

div.skills-box {
    width: calc(100% - 5% - 5%);
    margin: 5%;
    padding: 50px;
    border-radius: 15px;
    background-image: linear-gradient(to top, rgba(0, 128, 255, 0.27), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #0080ff;

    opacity: 0;
    transform: translateY(50px);

    transition: 1s ease;
}

div.skills-box.scroll-on-active {
    transform: translateY(0);
    opacity: 1;
}

div.find-me-box {
    width: calc(100% - 5% - 5%);
    margin: 5%;
    padding: 50px;
    border-radius: 15px;
    background-image: linear-gradient(to top, rgba(0, 208, 255, 0.29), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #00d0ff;

    opacity: 0;
    transform: translateY(50px);

    transition: 1s ease;
}

div.find-me-box.scroll-on-active {
    transform: translateY(0);
    opacity: 1;
}

p {
    font-size: 17px;
}

hr {
    color: rgba(0, 0, 0, 0.5);
}

div.language-box {
    padding: 20px;
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;

    opacity: 0;
    transform: translateX(-100px);

    transition: transform 1s ease, opacity 1s ease;
}

div.language-box.scroll-on-active {
    opacity: 1;
    transform: translateX(0);
}

div.language-box .internal {
    width: 100%;
}

div.language-box .internal h2 {
    margin-top: 5px;
    margin-bottom: 5px;
}

div.language-box .internal p.description {
    font-size: 15px;
    margin-top: 10px;
    margin-bottom: 10px;
}

div.language-box .internal p.learning {
    font-size: 15px;
    margin-top: 10px;
    background-color: #ef6429;
    width: 10%;
    height: 25px;
    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 10px;
}


div.language-box .progress {
    display: flex;
    width: 100%;
    height: 10px;

    border-radius: 50px;
}

div.language-box img {
    height: 100px;
    width: auto;
}

div.language-box svg {
    height: 100px;
    width: auto;
}

div.language-box .internal .progress .progress-bar {
    border-radius: 50px;

    transition: width 1s ease;
}

div.language-box .internal .progress .progress-bar.scroll-on {
    width: 0;
    transition: width 1s ease-out;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.python {
    background-color: #0080ff;
    width: 100%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.html_css {
    background-image: linear-gradient(to right,#ef6429,#0080ff);
    width: 100%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.javascript {
    background-color: #eed94e;
    width: 90%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.java {
    background-color: #e82d2e;
    width: 80%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.kotlin {
    background-color: #c511df;
    width: 50%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.sql {
    background-color: #4fe4fd;
    width: 50%;
}

div.language-box .internal .progress .progress-bar.scroll-on.scroll-on-active.rust {
    background-color: #ff6e00;
    width: 30%;
}

div.stats-box {
    width: calc(100% - 5% - 5%);
    margin: 5%;
    padding: 50px;
    border-radius: 15px;
    background-image: linear-gradient(to top, rgba(85, 0, 255, 0.27), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #5500ff;

    opacity: 0;
    transform: translateY(50px);

    transition: 1s ease;
}

div.stats-box.scroll-on-active {
    transform: translateY(0);
    opacity: 1;
}

div.stats {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50%;
    margin-top: 3%;
}

div.stats embed {
    height: 50%;
    width: 50%;
}

div.stats embed.scroll-on {
    transform: translateX(-50px);
    opacity: 0;
    transition: 1s ease;
}

div.stats embed.scroll-on-active {
    transform: translateX(0);
    opacity: 1;
}

div.social-links {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

div.social-box {
    width: 150px;
    height: 170px;
    border-radius: 15px;
    border: 1px solid;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    --shadow-color: rgba(0,0,0,0.2);
    box-shadow: 0 10px var(--shadow-color);

    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

div.social-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px var(--shadow-color);
}

div.social-box:active {
    transform: translateY(5px);
    box-shadow: 0 5px var(--shadow-color);
}

div.social-box.github {
    --shadow-color: #cccccc;
    background-image: linear-gradient(to top, rgb(255, 255, 255), #b0b0b0);
    border-color: #ffffff;
}

div.social-box.discord {
    --shadow-color: #5865f2;
    background-image: linear-gradient(to top, #7289da, #5865f2);
    border-color: #5865f2;
}

div.social-box.discord h2 {
    color: white;
}

div.social-box.youtube {
    --shadow-color: #7c0000;
    background-image: linear-gradient(to top, #ff0000, #b20000);
    border-color: #ff0000;
}

div.social-box.youtube h2 {
    color: white;
}

div.social-box h2 {
    margin-top: 5px;
    margin-bottom: 5px;
    color: black;
}

div.social-box img {
    height: 80px;
    width: auto;
}

div.people-links {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 20px;
}

div.people {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    border: 1px solid;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    --shadow-color: rgba(0,0,0,0.2);
    box-shadow: 0 10px var(--shadow-color);

    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

div.people#people-batista {
    --shadow-color: #cb7a00;
    background-image: linear-gradient(to top, rgb(255, 153, 0), #ffb950);
    border-color: #ff9900;
}

div.people#people-batista h2 {
    color: white;
}

div.people#people-st6 {
    --shadow-color: #270081;
    background-image: linear-gradient(to top, rgb(72, 0, 255), #763fff);
    border-color: #4900ff;
}

div.people#people-st6 h2 {
    color: white;
}

div.people#people-malachi196 {
    --shadow-color: #00a5b4;
    background-image: linear-gradient(to top, rgb(63, 210, 255), #a2eaff);
    border-color: #3FD2FFFF;
}

div.people#people-malachi196 h2 {
    color: white;
}

div.people#people-mushy {
    --shadow-color: #383838;
    background-image: linear-gradient(to top, rgb(80, 80, 80), #7a7a7a);
    border-color: #505050FF;
}

div.people#people-mushy h2 {
    color: white;
}

div.people#people-notdef {
    --shadow-color: #363636;
    background-image: linear-gradient(to top, rgb(103, 103, 103), #000000);
    border-color: #363636;
}

div.people#people-notdef img {
    border-color: #ffffff;
}

div.people#people-notdef h2 {
    color: white;
}

div.people:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px var(--shadow-color);
}

div.people:active {
    transform: translateY(5px);
    box-shadow: 0 5px var(--shadow-color);
}

div.people h2 {
    margin-top: 5px;
    margin-bottom: 5px;
    color: black;
}

div.people img {
    border-style: solid;
    border-width: 3px;
    border-radius: 1000px;
    border-color: var(--shadow-color);
    height: 100px;
    width: auto;

    max-height: 100px;
    max-width: 80%;
}

div.people h2 {
    font-size: 1.1rem;
}

div.cool-people-box {
    width: calc(100% - 5% - 5%);
    margin: 5%;
    padding: 50px;
    border-radius: 15px;
    background-image: linear-gradient(to top, rgba(0, 51, 255, 0.27), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #0033ff;

    opacity: 0;
    transform: translateY(50px);

    transition: 1s ease;
}

div.cool-people-box.scroll-on-active {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 1400px) {
    .nav-toggle {
        display: block;
    }

    .nav-buttons {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .nav-buttons.active {
        right: 0;
    }

    .nav-button {
        height: auto;
        padding: 15px 0;
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    nav.nav {
        padding: 0 1rem;
        height: 50px;
    }

    div.banner {
        height: 25vh;
    }

    div.banner img {
        height: 50%;
        max-height: 80px;
    }

    .nav-title {
        display: none;
    }

    div.stats {
        flex-direction: column;
        width: 100%;
        height: 100%;
        margin-top: 3%;
    }

    div.stats embed {
        height: 60%;
        width: 60%;
    }
}

@media (max-width: 800px) {
    div.introduction-box img {
        display: none;
    }

    div.language-box img {
        height: 100px;
        width: auto;
    }

    div.language-box svg {
        height: 100px;
        width: auto;
    }

    div.language-box .progress {
        background-color: rgba(0, 0, 0, 0.34);
    }

    div.language-box {
        flex-direction: column;
    }

    div.banner img {
        height: 30%;
    }
}

@media (max-width: 980px) {
    div.social-box img {
        height: 50%;
        width: auto;
    }

    div.social-box h2 {
        display: none;
    }

    div.people-links {
        flex-direction: column;
    }
}

@media (max-width: 1400px) {
    div.language-box .internal p.learning {
        font-size: 15px;
        margin-top: 10px;
        background-color: #ef6429;
        width: 100px;
        height: 25px;
        border-radius: 15px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-bottom: 10px;
    }
}

@media (max-width: 1000px) {
    div.social-box {
        width: 100px;
        height: 100px;
    }

    div.stats embed {
        height: 100%;
        width: 100%;
    }
}

footer {
    background-color: #000000;
    height: 20vh;
    padding: 25px;
}

.back-to-top-btn {
    width: calc(100% - 5% - 5%);
    margin: 1% 5% 5%;
    height: 5vh;
    border-radius: 15px;
    background-color: #270081;
    background-image: linear-gradient(to top, rgba(85, 0, 255, 0.27), #100017);
    border-width: 1px;
    border-style: solid;
    border-color: #5500ff;

    box-shadow: 0 10px #270081;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px #270081;
}

.back-to-top-btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 #270081;
}