* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #3652f0;
    --light-color: #d3daff;
    --dark-color: #4e5db4;
    --darkest-color: #071041;
}

body {
    font-family: 'Merriweather Sans';
    font-size: 16px;
    line-height: 1.5;
    background: #ffffff;
    height: 100%;
}

a {
    text-decoration: none;
    color: #333333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* navigation bar */
.navbar {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1)), url("../images/background-1.png") no-repeat;
    background-size: cover;
    width: 100%;
    height: 170px;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .main-menu ul {
    display: flex;
}

.navbar .space a {
    font-weight: 700;
    font-size: 40px;
}

.navbar ul li a {
    padding: 10px 20px;
    color: #ffffff;
    display: block;
    font-weight: 300;
    transition: 0.25s;
}

.navbar ul li a:hover {
    color: var(--primary-color);
}

.navbar ul li a i {
    margin-right: 10px;
}

.navbar ul li:last-child a {
    margin-left: 10px;
    color: #333333;
    font-weight: 400;
}

.navbar .name {
    padding: 0 20px;
    font-weight: 400;
    color: #ffffff;
    font-size: 3.5rem;
}

.navbar .my-name {
    animation: 1.5s fadeInDown;
}

/* hero */
.hero {
    padding: 20px;
}

.hero .container {
    background: url('../images/hero-collage.png') no-repeat;
    background-size: contain;
    background-position: bottom;
    height: 400px;
    padding: 0;
    animation: 1.5s fadeInUp;
}

.hero .hero-text {
    width: 50%;
    float: left;
    display: flex;
    color: var(--darkest-color);
    font-weight: 300;
    font-size: 1.25rem;
}

.hero .hero-buttons {
    float: right;
}

.hero .hero-buttons ul {
    display: flex;
}

.hero .hero-buttons li a {
    font-weight: 400;
    margin-inline: 5px;
}

.hero .hero-buttons li:last-child a {
    font-size: 2rem;
    padding: 0 13px;
}

/* projects */
.projects {
    padding: 10px;
    padding-bottom: 50px;
}

.projects .container {
    animation: 1.5s fadeInUp;
}

.projects .caramel-mtb-grid .media {
    background: url('../images/caramel-mtb.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.projects .cnn-kernels-grid .media {
    background: url('../images/cnn-kernels.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.projects .bme-450-grid .media {
    background: url('../images/bme-450.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.projects .bme-350-grid .media {
    background: url('../images/bme-350.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.projects .bme-458-grid .media {
    background: url('../images/bme-458.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.projects .caramel-mtb-grid,
.projects .cnn-kernels-grid,
.projects .bme-450-grid,
.projects .bme-350-grid, 
.projects .bme-458-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 10px 0;
}

.projects .cnn-kernels-grid .card,
.projects .bme-350-grid .card {
    margin: 50px 0;
}

.projects .caramel-mtb-grid .card,
.projects .bme-450-grid .card,
.projects .bme-458-grid .card {
    text-align: right;
}

.projects .caramel-mtb-grid p:nth-child(2),
.projects .cnn-kernels-grid p:nth-child(2),
.projects .bme-450-grid p:nth-child(2),
.projects .bme-350-grid p:nth-child(2), 
.projects .bme-458-grid p:nth-child(2) {
    font-style: italic;
}

.projects .caramel-mtb-grid p:nth-child(5),
.projects .cnn-kernels-grid p:nth-child(5),
.projects .bme-450-grid p:nth-child(5),
.projects .bme-350-grid p:nth-child(5), 
.projects .bme-458-grid p:nth-child(5) {
    padding: 10px 15px;
    background: var(--dark-color);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    color: #ffffff;
}

.projects .card .card-buttons {
    margin-top: 25px;
    align-items: center;
}

.projects .card .card-buttons ul {
    display: flex;
    text-align: center;
    justify-content: center;
}

.projects .card .card-buttons ul li a {
    padding: 10px 20px;
    color: #333333;
    font-weight: 300;
    transition: 0.25s;
}

.projects .card .card-buttons ul li a {
    margin: 10px;
}

.projects .footnote {
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* about me */
.about-me {
    padding: 10px;
    padding-bottom: 50px;
}

.about-me .band-grid .media {
    background: url('../images/mmb-saxes.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.about-me .friars-grid .media {
    background: url('../images/friars.png') no-repeat;
    background-size: contain;
    background-position: center;
}

.about-me .bio-grid {
    display: grid;
    gap: 30px;
    height: 600px;
    width: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin-top: 25px;
    background: url('../images/me-cutout.png') no-repeat;
    background-size: contain;
    background-position: bottom right;
    animation: 1.5s fadeInRight;
}

.about-me .bio-grid .card-heading,
.about-me .bio-grid p {
    margin-left: 50px;
    align-items: center;
    width: 60%;
}

.about-me .bio-grid p:nth-child(2) {
    font-style: italic;
}

.about-me .personal-life-heading,
.about-me .personal-statement-heading {
    text-align: center;
}

.about-me .band-grid,
.about-me .friars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 10px 0;
}

.about-me .band-grid .card,
.about-me .friars-grid .card {
    text-align: right;
}

.about-me .band-grid .card p:nth-child(2),
.about-me .friars-grid .card p:nth-child(2),
.about-me .band-grid .card p:last-child,
.about-me .friars-grid .card p:last-child {
    font-style: italic;
}

.about-me .quote {
    font-style: italic;
}

/* contact */
.contact .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
    animation: 1.5s fadeInUp;
}

/* footer */
.footer {
    height: clamp(3vw, 5vw, 10vw);
    position: fixed;
    left: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)), url("../images/background-1.png") no-repeat;
    background-size: cover;
    width: 100%;
}

.footer-scroll {
    height: clamp(3vw, 5vw, 10vw);    
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0)), url("../images/background-1.png") no-repeat;
    background-size: cover;
    width: 100%;
}

/* utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-sm {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* buttons */
.btn {
    display: inline-block;
    padding: 13px 20px;
    background: var(--light-color);
    color: #333333;
    font-weight: 300;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-dark {
    background: var(--dark-color);
    color: #ffffff;
}

.btn-block {
    display: block;
    width: 100%;
}

/* text */
.text-xxl {
    font-size: 4rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 40px 0 20px;
    color: var(--darkest-color);
}

.text-xl {
    font-size: 2.2rem;
    line-height: 1.4;
    font-weight: 300;
    margin: 40px 0 20px;
}

.text-lg {
    font-size: 1.8rem;
    line-height: 1.4;
    font-weight: 300;
    margin: 30px 0 20px;
}

.text-md {
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 300;
    margin: 20px 0 10px;
}

.text-sm {
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 300;
    margin: 10px 0 5px;
}

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

/* background */
.bg-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.bg-light {
    background: var(--light-color);
    color: #ffffff;
}

.bg-dark {
    background: var(--dark-color);
    color: #ffffff;
}

.bg-black {
    background: #333333;
    color: #ffffff;
}

/* mobile menu */
.hamburger-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.25s;
}

.hamburger-button .hamburger-line {
    width: 30px;
    height: 3px;
    background: #ffffff;
    margin: 6px 0;
}

.hamburger-button:focus {
    background-color: #333333;
    z-index: 1001;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 250px;
    height: 100%;
    z-index: 100;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: right 0.5s ease-in-out;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    margin-top: 100px;
    padding-right: 10px;
}

.mobile-menu ul li {
    margin: 10px 0;
}

.mobile-menu ul li a {
    font-size: 20px;
    transition: 0.5s;
    color: #333333;
}

/* media queries */
@media (max-width: 900px) {
    .navbar .name {
        font-size: 2.75rem;
    }

    .text-xxl {
        font-size: 3rem;
        margin: 30px 0 20px;
    }

    .text-xl {
        font-size: 1.8rem;
        margin: 30px 0 20px;
    }

    .text-lg {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }

    .text-md {
        font-size: 0.8rem;
        margin: 10px 0 5px;    
    }

    .text-sm {
        font-size: 0.6rem;
        margin: 10px 0 5px;    
    }

    .about-me .bio-grid {
        height: 425px;
    }

    .about-me .bio-grid .card-heading,
    .about-me .bio-grid p {
        margin-left: 40px;
        width: 60%;
    }   

    .about-me .bio-grid p {
        margin-top: 10px;
    }

    .contact .container {
        display: block;
    }
}    

@media (max-width: 670px) {
    .navbar .main-menu {
        display: none;
    }

    .navbar {
        height: 150px;
    }

    .navbar .hamburger-button {
        display: block;
    }

    .navbar .name {
        font-size: 2rem;
    }

    .hero .container {
        height: 420px;
    }  

    .hero .hero-text {
        width: 100%;
        text-align: center;
        align-items: center;
        padding: 0 0 10px 0;
    }

    .hero .hero-buttons ul {
        display: block;
    }

    .hero .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .hero .hero-buttons {
        text-align: center;
        float: none;
    }

    .text-xxl {
        font-size: 2rem;
        margin: 30px 0 20px;
    }

    .text-xl {
        font-size: 1.2rem;
        margin: 20px 0 10px;
    }

    .text-lg {
        font-size: 0.8rem;
        margin: 10px 0 5px;
    }

    .text-md {
        font-size: 0.6rem;
        margin: 10px 0 5px;
    }

    .text-sm {
        font-size: 0.4rem;
        margin: 5px 0 2.5px;
    }

    .about-me .bio-grid {
        height: 400px;
    }

    .about-me .bio-grid .card-heading,
    .about-me .bio-grid p {
        margin-left: 30px;
        width: 50%;
    }  
    
    .about-me .bio-grid p {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .navbar .name {
        font-size: 1.25rem;
    }

    .hero .hero-text {
        font-size: 1rem;
    }

    .text-xxl {
        font-size: 1.25rem;
        margin: 20px 0 10px;
    }

    .text-xl {
        font-size: 1.5rem;
        margin: 10px 0 5px;
    }

    .text-lg {
        font-size: 1rem;
        margin: 10px 0 5px;
    }

    .text-md {
        font-size: 0.75rem;
        margin: 5px 0 2.5px;
    }

    .text-sm {
        font-size: 0.5rem;
        margin: 5px 0 2.5px;
    }
}

/* keyframes */
@keyframes fadeInDown {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}