:root {
    /* Setting color variables */
    --color-primary: #3f4e4f;
    --color-accent: #a27b5c;
    --color-secondary: #2c3639;
    --color-dark-accent: #725840;
    --color-text: #dcd7c9;
    --color-onyx: #0f0f0f;
    --color-shadow: #0002;

    /* Standardization */
    --transition: 0.3s;
    --shadow: 0 0.25rem 0.75rem #0004;
    --shadow--large: 0 0.5rem 1.5rem #0004;
    --shadow--subtle: 0 0.125rem 0.5rem #0002;
    --radius: 0.5em;
    --font-primary: Lato;
    --font-mont: Montserrat;
}

/* General CSS */

html {
    background-color: #000;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    width: min(65em, 100%);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

h1 {
    font-family: var(--font-mont);
}

a {
    text-decoration: none;
}

a:focus {
    color: var(--color-text);
}

/*********************
=== Type Hierarchy ===
**********************/

h1 {
    font-size: 2.6rem;
}

/**********************
==== Button Styles ====
**********************/

.btn {
    display: flex;
    justify-content: center;
    padding: 1rem 1.5rem;
    background-color: var(--color-primary);
    border: 0.125rem solid var(--color-primary);
    border-radius: 10px;
    color: var(--color-text);
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-mont);
    font-size: inherit;
    transition: var(--transition);
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

/* Parrallax styles */

.parallax {
    background-image: linear-gradient(
            0deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(120, 120, 120, 0.5) 1%,
            rgba(30, 30, 30, 0.7) 100%
        ),
        url("../images/fuji_tree.svg");
    height: 100%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Icon changes */
#site-icon {
    height: 2.5rem;
}

/* Start of section styling */

/* 
============================
============================
Start of Navbar styles 
============================
============================
*/

/***************************
======= Hamburger Menu =====
***************************/

.nav-container {
    background-color: var(--color-primary);
    border-top: 0.2rem solid var(--color-accent);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    font-family: var(--font-mont);
}

.nav-logo {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    text-decoration: none;
    padding: 0.75rem;

    h1 {
        color: var(--color-accent);
        margin: 0;
    }
}

.menu-toggle .bar {
    display: block;
    width: 2rem;
    height: 0.25rem;
    margin: 0.32rem auto;
    transition: all var(--transition) ease-in-out;
    background: var(--color-text);
    border-radius: 0.55rem;
}

.menu-toggle {
    cursor: pointer;
    transition: all 0.3s ease;
}

#mobile-menu.is-active .bar:nth-child(1) {
    top: -50%;
    transform: translateY(0.55rem) rotate(45deg);
}

#mobile-menu.is-active .bar:nth-child(2) {
    opacity: 0;
}

#mobile-menu.is-active .bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(-0.55rem) rotate(-45deg);
}

.nav__list {
    background-color: var(--color-primary);
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-align: right;
    display: grid;
    width: 100%;
    position: absolute;
    top: 4rem;
    right: -100%;
    opacity: 0;
    transition: all 0.5s ease;
}

.nav__list.active {
    background: var(--color-primary);
    right: 0;
    opacity: 1;
    transition: all 0.5s ease;
}

.nav__link {
    color: var(--color-text);
    text-decoration-thickness: 0.175rem;
    transition: all 0.2s ease;
    display: inline-flex;
    padding: 0.5rem;
    justify-content: center;
    width: 100%;

    li {
        position: relative;
        color: var(--color-text);
        list-style-type: none;
    }
}

.nav__link:hover li {
    color: var(--color-accent);
    border-radius: 0.255rem;
}

.nav__link li::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #dcd7c9;
    transform: scaleX(0);
    transition: transform var(--transition) ease;
}

.nav__link:hover li::before {
    transform: scaleX(1);
}

/*******************************
======= Navbar Media Query =====
*******************************/

@media only screen and (min-width: 45rem) {
    .menu-toggle {
        display: none;
    }

    .nav-container {
        background-color: var(--color-primary);
        border-top: 0.2rem solid var(--color-accent);
    }

    .navbar {
        display: flex;
        justify-content: space-around;
        width: unset;
    }

    .nav-logo {
        justify-content: center;
        align-self: center;
        padding-left: 1.5rem;
    }

    .list-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .nav__list {
        display: flex;
        padding: 0;
        margin: 0;
        opacity: 1;
        list-style-type: none;
        position: unset;
        width: unset;

        .nav__link:where(:hover, :focus) {
            color: var(--color-accent);
            cursor: pointer;
        }
    }

    .nav__link {
        text-decoration: none;
    }

    /* Removing lists default state of displaying vertically using inline-flex */
    li {
        display: inline-flex;
        padding: 0.75rem;
        justify-content: center;
    }
}

@media only screen and (min-width: 65rem) {
    .menu-toggle {
        display: none;
    }

    .nav-container {
        background-color: var(--color-primary);
        border-top: 0.2rem solid var(--color-accent);
    }

    .navbar {
        display: flex;
        justify-content: space-around;
        width: unset;
    }

    .nav-logo {
        justify-content: center;
        align-self: center;
    }

    .list-container {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .nav__list {
        display: flex;
        padding: 0;
        margin: 0;
        opacity: 1;
        list-style-type: none;
        position: unset;
        width: unset;

        .nav__link:where(:hover, :focus) {
            color: var(--color-accent);
            cursor: pointer;
        }
    }

    .nav__link {
        text-decoration: none;
    }

    /* Removing lists default state of displaying vertically using inline-flex */
    li {
        display: inline-flex;
        padding: 0.75rem;
        justify-content: center;
    }
}

/* 
============================
============================
Banner Bird Animation
============================
============================
*/

.bird {
    background: url("../images/birds.svg");
    background-size: auto 100%;
    width: 4.5rem;
    height: 125px;
    will-change: background-position;
    animation-name: fly-cycle;
    animation-timing-function: steps(10);
    animation-iteration-count: infinite;
}

.bird-one {
    animation-duration: 1s;
    animation-delay: -0.5s;
}

.bird-two {
    animation-duration: 0.9s;
    animation-delay: -0.75s;
}

.bird-three {
    animation-duration: 1.25s;
    animation-delay: -0.25s;
}

.bird-four {
    animation-duration: 1.1s;
    animation-delay: -0.5s;
}

.bird-container {
    position: absolute;
    top: 15%;
    left: -10%;
    transform: scale(0) translateX(-10vw);
    will-change: transform;
    animation-name: fly-right-one;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/*******************************
======= Bird Media Query =====
*******************************/

@media only screen and (min-width: 45rem) {
    .bird-container {
        top: 10%;
    }
}

.bird-container-one {
    animation-duration: 15s;
    animation-delay: 0;
}

.bird-container-two {
    animation-duration: 16s;
    animation-delay: 1s;
}

.bird-container-three {
    animation-duration: 14.6s;
    animation-delay: 9.5s;
}

.bird-container-four {
    animation-duration: 16s;
    animation-delay: 10.25s;
}

@keyframes fly-cycle {
    100% {
        background-position: -900px 0;
    }
}

@keyframes fly-right-one {
    0% {
        transform: scale(0.3) translateX(-10vw);
    }

    10% {
        transform: translate(10vw, 2vh) scale(0.4);
    }

    20% {
        transform: translate(30vw, 0) scale(0.5);
    }

    30% {
        transform: translate(50vw, 4vh) scale(0.6);
    }

    40% {
        transform: translate(70vw, 2vh) scale(0.6);
    }

    50% {
        transform: translate(90vw, 0) scale(0.6);
    }

    60% {
        transform: translate(110vw, 0) scale(0.6);
    }

    100% {
        transform: translate(110vw, 0) scale(0.6);
    }
}

/* 
============================
============================
Start of Banner styles 
============================
============================
*/

.banner {
    display: flex;
    text-align: center;
    color: #fff;
}

.banner .container {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 35rem;
    gap: 1.5rem;
    padding: 0.75rem;
    z-index: 1;
}

.selfie {
    height: 25rem;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    z-index: 1;
}

img {
    .selfie {
        max-width: 100%;
        display: block;
    }
}

.banner-content .btn {
    color: var(--color-text);
}

.banner__title {
    line-height: 1.3;
    color: var(--color-text);
}

.banner__text {
    font-size: 1.15rem;
    color: var(--color-text);
}

/*******************************
======= Banner Media Query =====
*******************************/

@media only screen and (min-width: 45rem) {
    .banner .container {
        flex-direction: row-reverse;

        .banner-content {
            text-align: start;

            .btn {
                width: 50%;
            }
        }
    }
}

/* 
============================
============================
Start of Card styles 
============================
============================
*/

.card-group .container {
    padding: 4rem 1.5rem 4rem 1.5rem;
}

.card-grid {
    display: grid;
    list-style-type: none;
    padding-left: 0;
    gap: 1rem;
}

.card-group {
    display: flex;
    background-color: transparent;
}

.card {
    display: flex;
    flex-direction: row;
    background-color: var(--color-dark-accent);
    color: var(--color-text);
    border-radius: 0.55rem;
    box-shadow: 0 0.25rem 0.75rem var(--color-shadow);
    list-style: none;
    transition: transform 0.3s ease;
    text-decoration: none;
    overflow: hidden;
    justify-content: space-around;

    li {
        position: relative;
        color: var(--color-text);
        list-style-type: none;
    }

    .card__title {
        margin-bottom: 0.5rem;
    }

    .card__text {
        margin-bottom: 0;
    }
}

.card__image img {
    width: 64px;
    height: 64px;
}

.card__image {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.card__content {
    padding: 1.5rem;
}

.card:hover,
.card:focus-visible {
    box-shadow: 0 0.55rem 0.55rem var(--color-shadow);
    cursor: pointer;
    transform: translateY(-5px);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0.3rem 1rem #0002;
}

.blank1 {
    height: 40vh;
}

/*******************************
======= Card Media Query =====
*******************************/

@media only screen and (min-width: 45rem) {
    .card-grid {
        grid-template-columns: 1fr 1fr;
    }

    .card {
        flex-direction: column;

        .card__image {
            padding: 0;
            justify-content: center;
        }
    }

    .card__title {
        text-align: center;
    }
}

/* ========== START OF FOOTER =========== */

.footer-container {
    background-color: var(--color-primary);
    color: #000;
    border-bottom: 0.5rem solid var(--color-gold);
    padding: 3rem 1.5rem 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.5rem;
    margin-top: auto;
}

.footer__logo {
    display: flex;
    align-items: center;
}

.social {
    width: 3rem;
}

.footer__list {
    display: flex;
    justify-content: center;
    padding-left: 0;
    margin: 0;
    border-left: 0.125rem solid var(--color-gold);
    list-style-type: none;
    gap: 2rem;
}

.footer__copyright {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: inline-flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    height: 2.5rem;
    text-decoration: none;
    padding: 0.75rem;

    img {
        width: 2.5rem;
    }

    h1 {
        color: var(--color-accent);
        margin: 0;
    }
}

.footer__copyright {
    display: flex;
    justify-content: center;
}

/*******************************
======= Footer Media Query =====
*******************************/

@media only screen and (min-width: 45rem) {
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
    }

    .footer__list {
        display: inline-flex;
        flex-direction: row;
        justify-content: flex-start;
        border-left: none;
        border-bottom: 0.125rem solid var(--color-gold);
    }

    .footer__list li {
        padding: 1rem;
    }
}

@media only screen and (min-width: 65rem) {
    .footer-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        list-style-type: none;
    }

    .footer__list {
        display: inline-flex;
        flex-direction: row;
        justify-content: flex-start;
        border-left: none;
        border-bottom: 0.125rem solid var(--color-gold);
    }

    .footer__list li {
        padding: 1rem;
    }
}

/* 
============================
============================
Start of Portfolio Page
============================
============================
*/

/* Portfolio Cards */

.project-group .container {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.project-group {
    display: flex;

    h1 {
        color: var(--color-text);
    }
}

.project-grid {
    display: grid;
    list-style-type: none;
    padding-left: 0;
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--color-dark-accent);
    color: var(--color-text);
    border-radius: 0.55rem;
    box-shadow: 0 0.25rem 0.75rem var(--color-shadow);
    list-style: none;
    transition: transform 0.3s ease;
    text-decoration: none;
    overflow: hidden;

    li {
        position: relative;
        color: var(--color-text);
        list-style-type: none;
    }

    .project__content {
        display: flex;
        flex-direction: column;
        height: 15rem;
        padding: 1.5rem;
    }

    .project__image img {
        height: 15rem;
        width: 100%;
    }
}

/*   Animated SVG   */

.cls-1,
.cls-2 {
    stroke-width: 0px;
}
.cls-2 {
    fill: #231f20;
}

#load_climber {
    width: 2rem;
    height: 2rem;
    transform-origin: top;
    animation: swing 4s infinite;
    position: absolute;
}

.project__image {
    display: flex;
}

#loader {
    display: flex;
    color: #000;
    height: 15rem;
}

svg {
    color: #000;
}

#bottom_rope {
    transform-origin: center;
    animation: swingRope 4s infinite;
}

@keyframes swing {
    0% {
        transform: rotate(20deg);
    }
    50% {
        transform: rotate(-20deg);
    }
    100% {
        transform: rotate(20deg);
    }
}

@keyframes swingRope {
    0% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(20deg);
    }
    100% {
        transform: rotate(-20deg);
    }
}

.project-card:hover,
.project-card:focus-visible {
    box-shadow: 0 0.55rem 0.55rem var(--color-shadow);
    cursor: pointer;
    transform: translateY(-5px);
    color: rgba(255, 255, 255, 1);
    box-shadow: 0 0.3rem 1rem #0002;
}

.project-card:hover {
    color: var(--color-text);
    border-radius: 0.255rem;
}

.project-card::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #dcd7c9;
    transform: scaleX(0);
    transition: transform var(--transition) ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

@media only screen and (min-width: 45rem) {
    .project-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card {
        justify-content: flex-start;
    }
}

/* 
============================
============================
Start of Contact Page
============================
============================
*/

.contact {
    display: flex;
    padding: 1.5rem;
    background-color: transparent;
    padding-top: 9rem;
    padding-bottom: 5rem;
}

.form-container {
    width: min(45rem, 100%);
    margin: 0 auto;
}

form {
    background-color: var(--color-dark-accent);
    box-shadow: var(--shadow--large);
    border-radius: 1.5rem;
    margin-top: auto;
    padding: 3rem;
    color: var(--color-text);
}

form .btn {
    display: block;
    text-align: center;
    width: 100%;
}

fieldset {
    display: contents;
}

.contact__title {
    font-family: var(--font-mont);
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    gap: 2rem;
}

label,
.label {
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    font-family: var(--font-mont);
}

input {
    display: block;
    width: 100%;
    padding: 0.25rem;
    border: 0.0625rem solid #0002;
    border-radius: 0.25rem;
}

input:where([type="text"], [type="email"], [type="tel"], ),
select,
textarea {
    display: block;
    width: 100%;
    font-size: 1rem;
}

.non-cap {
    text-transform: none;
}

@media only screen and (min-width: 45rem) {
    .form-grid {
        --cols: 2;
        grid-template-columns: repeat(var(--cols), 1fr);
    }

    .full {
        grid-column: 1 / -1;
    }
}
