/*
Styles for the entire website, organized by pages and sections.

Duncan Boyd
duncan@wapta.ca
May 1, 2025
*/

/* global document styling */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'FreeMono', monospace;
    overflow-x: hidden;

    --colour-1: #F4F9F9;
    --colour-2: #CCF2F4;
    --colour-3: #A4EBF3;
    --colour-4: #AAAAAA;
    --colour-black: #000000;
    --colour-white: #FFFFFF;
}

.generic-btn {
    padding: 14px 32px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    margin-top: 2rem;
    cursor: pointer;
    outline: none;
    color: var(--colour-black);
    background: var(--colour-3);
    transition: all 0.3s ease;
}

.generic-btn:hover {
    background: var(--colour-2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {

    .generic-btn {
        padding: 1rem 2rem;
        margin: 2.5rem 0;
    }
}

/* navigation bar */

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    height: 5rem;
    padding: 0 2rem;
    background: var(--colour-black);
    z-index: 1000;
    overflow: hidden;
}

#navbar-name {
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--colour-black);
}

.navbar-menu {
    display: flex;
    justify-content: center;
}

.navbar-item {
    height: 5rem;
}

.navbar-link {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--colour-black);
}

.navbar-link:hover {
    color: var(--colour-3);
    transition: all 0.3s ease;
}

.navbar-toggle {
    display: none;
}

#wapta-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

@media screen and (max-width: 968px) {

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--colour-black);
        z-index: 10;
        font-size: 1.75rem;
        border: none;
        background: none;
        cursor: pointer;
        padding: 0;
    }

    .navbar-menu {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100% - 80px);
        opacity: 0;
        transition: all 0.5s ease;
        background: var(--colour-1);
        z-index: 10;
        margin: 0;
    }

    .navbar-menu.active {
        right: 0;
        opacity: 1;
    }

    #navbar-name {
        font-size: 1.5rem;
    }

    .navbar-item {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .navbar-link {
        display: flex;
        justify-content: center;
        text-align: center;
        padding: 1.5rem;
        width: 100%;
    }
}

/* --- home page --- */

/* intro section */

.intro {
    background-color: var(--colour-white);
}

.intro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    margin: 0 auto;
    height: 100vh;
    width: 100%;
    padding: 0 50px;
    max-width: 1300px;
}

.intro-content {
    color: var(--colour-black);
}

.intro-content h1 {
    font-size: 4rem;
}

.intro-content p {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.intro-img-container {
    text-align: center;
}

#intro-img {
    width: 65%;
    height: 65%;
}

@media screen and (max-width: 768px) {

    .intro-container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 120px 0;
    }

    .intro-content {
        text-align: center;
        margin-bottom: 4rem;
        padding: 0 32px;
    }
    
    .intro-content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .intro-content p {
        font-size: 1.5rem;
    }

    #intro-img {
        width: 50%;
        height: 50%;
    }
}

@media screen and (max-width: 480px) {

    .intro-container {
        width: 100vw;
        padding: 60px 0;
    }

    .intro-content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }
}

/* experiences and projects sections */

.overview {
    background-color: var(--colour-1);
}

.overview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    height: 70vh;
    width: 100%;
    padding: 0 3rem;
}

.overview-content {
    color: var(--colour-black);
}

.overview-content h1 {
    font-size: 2rem;
}

.overview-content p {
    margin-top: 1rem;
    font-size: 1rem;
}

.overview-image {
    text-align: center;
}

/* images defined seperately to allow for different scaling */
#exp-img {
    width: 80%;
    height: 80%;
}

#proj-img {
    width: 80%;
    height: 80%;
}

@media screen and (max-width: 768px) {

    /* change order of image in mobile mode (pic above text) */
    .overview-image {
        order: -1;
    }

    .overview-container {
        grid-template-columns: 1fr;
        height: auto;
        padding: 2rem 0;
    }

    .overview-content {
        text-align: center;
        padding: 0 2rem;
    }
    
    .overview-content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .overview-content p {
        font-size: 1.5rem;
    }

    /* images defined seperately to allow for different scaling */
    #exp-img {
        width: 65%;
        height: 65%;
    }

    #proj-img {
        width: 65%;
        height: 65%;
    }
}

@media screen and (max-width: 480px) {

    .overview-container {
        width: 100vw;
        padding: 2rem 0;
    }

    .overview-content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }
}

/* --- about page --- */

.blurb {
    background-color: var(--colour-1);
}

.blurb-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: 60px;
    width: 85%;
    max-width: 1500px;
    color: var(--colour-black);
}

.blurb-content h1 {
    font-size: 2.5rem;
}

.blurb-content p {
    margin-top: 1rem;
    font-size: 1.5rem;
}

@media screen and (max-width: 768px) {

    .blurb-content {
        margin-bottom: 4rem;
        height: 100%;
        width: 100%;
        padding-top: 4rem;
        padding-bottom: 1rem;
        margin-top: 3rem;
    }

    .blurb-content h1 {
        margin-top: 1.5rem;
        font-size: 1.5rem;
    }

    .blurb-content p {
        font-size: 1rem;
    }
}

.carousel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 1rem;
    margin: 0 auto;
    min-height: 70vh;
    width: 100%;
    max-width: 1500px;
    color: var(--colour-black);
    text-align: center;
}

.carousel-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 95%;
    max-width: 1000px;
    padding: 0 50px;
    position: relative;
}

.carousel-images {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 50px 0;
}

.carousel img {
    height: 40vh;
    object-fit: contain;
    transition: 0.3s ease;
}

.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.carousel-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--colour-3);
    color: var(--colour-black);
    border: none;
    border-radius: 4px;
    padding: 9px 10px 10px;
    font-size: 20px;
    cursor: pointer;
    outline: none;
    transition: 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--colour-2);
}

@media screen and (max-width: 768px) {
    .carousel img {
        height: 60vh;
    }

    .controls {
        padding: 3rem 0;
    }
}

@media screen and (max-width: 480px) {
    .carousel img {
        height: 30vh;
    }
}

/* --- projects and experiences pages --- */

.item-container {
    padding: 1rem 1rem;
    width: 100%;
    background-color: var(--colour-white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.item-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    width: 50%;
    border-radius: 20px;
    background-color: var(--colour-1);
}

.item-content {
    color: var(--colour-black);
    padding: 1rem 1rem;
}

#item-link {
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--colour-black);
}

.item-content h1 {
    font-size: 2rem;
}

.item-content p {
    margin-top: 1rem;
    font-size: 1rem;
}

.item-image {
    text-align: center;
}

@media screen and (max-width: 768px) {

    .item-box {
        grid-template-columns: 1fr;
        height: auto;
        padding: 2rem 0;
        width: 80%;
    }

    .item-content {
        text-align: center;
        padding: 0 2rem;
    }
    
    .item-content h1 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .item-content p {
        font-size: 1rem;
    }

    .item-img {
        width: 65%;
        height: 65%;
    }
}

@media screen and (max-width: 480px) {

    .item-container {
        width: 100vw;
        padding: 2rem 0;
    }

    .item-content h1 {
        font-size: 1rem;
        margin-top: 3rem;
    }

    .item-content p {
        font-size: 0.75rem;
    }
}

/* --- item page --- */

.item-links {
    padding-top: 2rem;
}

/* footer section */

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--colour-2);
    padding: 2rem 3rem;
}

#footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    color: var(--colour-black);
    text-decoration: none;
}

.website-rights {
    color: var(--colour-black);
}

.social-icons {
    display: flex;
    justify-content: space-between;
    width: 240px;
}

.social-icon-link {
    font-size: 1.5rem;
    color: var(--colour-black);
}

@media screen and (max-width: 820px) {

    .footer-container {
        flex-direction: column;
    }

    #footer-logo, .website-rights {
        margin-bottom: 1rem;
    }

    .footer-container {
        text-align: center;
    }
}

