/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@600;800&family=Poppins&family=Ubuntu:wght@300;400&display=swap');

/* Variables */
:root {
    --primary-shadow: #8b8eaf;
    --secondary-shadow: #a17a69;
}

/* Prevent the page from moving left/right on phones */
html,
body {
    overflow-x: hidden;
}


/* ===== NAVBAR ===== */
.header01 {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: #f1f1f1;
}

nav {
    background: rgb(56, 56, 56);
    position: fixed;
    width: 100%;
    color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbarblock {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: normal;
    justify-content: space-between;
    padding: 0.5rem 3.5rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Navbar turns white after scrolling (set by scriptJQ.js) */
.active {
    background-color: #fff;
}

.logo {
    font-size: x-large;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.navbar {
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    padding: 10px;
}

.navbar .nav-link,
.navbar .nav-link:visited,
.navbar .nav-link:hover {
    color: #fff;
}

/* Burger button (shown on phones in base.css) */
.burger-menu {
    color: orange;
    font-size: 2rem;
    border: 0;
    background-color: transparent;
    cursor: pointer;
    display: none;
}


/* ===== HOME (hero) ===== */
.home {
    max-width: 80%;
    display: grid;
    grid-template-columns: repeat(2, 50%);
    height: calc(100vh - 65px);
    align-items: center;
    justify-content: center;
    margin: auto auto 65px;
}

/* Orange blob */
svg {
    height: 40vw;
}

/* Name on the blob */
.authorDev {
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 11%;
    z-index: 1;
    font-family: 'Noto Sans', sans-serif;
    font-weight: bold;
    font-size: 1.7rem;
    color: rgb(255, 255, 255);
}

.blackName {
    color: rgb(56, 56, 56);
}

/* Small orange line under titles */
.spacer {
    height: 4px;
    width: 7%;
    background-color: orange;
}


/* ===== PROJECTS: decorative blobs ===== */
.projectsImg {
    margin: auto;
    background: white;
    background-image: url(/assets/img/blob.svg);
    background-size: 29%;
    background-repeat: no-repeat;
    background-position: right;
}

.projectImgTop {
    background-image: url(/assets/img/blob.svg);
    background-size: auto 85%;
    background-repeat: no-repeat;
    background-position: left 3% center;
}


/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


/* ===== RESPONSIVE ===== */

/* Tablets (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .home {
        width: fit-content;
        height: 100vh;
        margin: auto;
    }

    .aboutIllus h1 {
        margin-top: -8rem;
        margin-left: 3rem;
    }

    .name {
        font-size: 32px;
        color: #383838;
    }

    .aboutText {
        margin-top: 4rem;
    }
}

/* Small tablets (481px to 767px): smaller menu text */
@media (min-width: 481px) and (max-width: 767px) {
    .navbarblock {
        font-size: x-small;
    }
}

/* Phones & small tablets (up to 767px): clean hero */
@media (max-width: 767px) {
    .navbarblock {
        padding: 0.5rem 1.5rem;
    }

    .home {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        height: auto;
        max-width: 90%;
        width: auto;
        margin: 0 auto;
        padding: 100px 0 2rem;
    }

    /* Blob + name: name centered on the blob */
    .aboutIllus {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .aboutIllus svg {
        width: 80%;
        max-width: 300px;
        height: auto;
    }

    .authorDev {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        pointer-events: none;
    }

    .aboutIllus h1 {
        margin: 0;
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .name {
        color: #383838;
    }

    /* The three lines under the name */
    main .home .aboutText {
        margin-top: 1.5rem;
        width: 100%;
    }

    main .home .aboutText h2 {
        padding-top: 1.2rem;
        font-size: 1.25rem;
    }

    .spacer {
        width: 3rem;
        margin-top: 0.4rem;
    }

    /* Hide decorative blobs behind the project titles */
    .projectsImg,
    .projectImgTop {
        background-image: none;
    }
}