/* General styling */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
}

html, body {
    height: 100%;
}

img {
    pointer-events: none;
}

body {
    font-family: "Noto Sans Display", "Rubik", sans-serif;
    background-color: white;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    padding-left: 0;
}

.py-7 {
    padding: 7em 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(1fr, 1fr);
    gap: 1rem;
}

.p-style {
    opacity: .8;
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.8;
}

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

/* nav */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
}

.menu {
    background-color: black;
}

.menu-wrapper {
    display: flex;
    font-size: 1em;
    color: white;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: block;
    text-align: center;
}

.nav ul {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.nav ul li{
    list-style: none;
    display: inline-block;
    padding: 0 .5rem;
    font-family: "Rubik", "sans-serif";
}

.nav ul li a {
    font-size: 1.25em;
    text-transform: uppercase;
    transition: .3s;
}
.nav ul li a:hover {
    color: #8affc8;
}

.logo {
    padding: 1rem 0rem;
}

/* hamburger menu */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 100%;
    background-color: black;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.3 ease-in-out;
}

.menu-links li {
    list-style: none;
}

.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}

.hamburger-icon span:first-child {
    opacity: 1;
}

.hamburger-icon span:first-child {
    transform: none;
}

/* homepage */
.container {
    margin: 0 auto;
    max-width: 1170px;
    padding: 0 2rem;
}

.hero {
    position: relative;
}

.hero-wrapper img{
    height: 100vh!important;
    width: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(70%);
}

.hero .prev {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.hero .prev:hover {
    color: #8affc8;
}

.hero .next {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.hero .next:hover {
    color: #8affc8;
}

/* Middle
    .box-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
} */

.box-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translate(0, 0);
    text-align: left;
    padding: 3rem;
    color: white;
}

.box {
    color: white;
}

.box h1{
    font-size: 5rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
    font-family: "Bebas Neue", sans-serif;
}

.box h2 {
    font-size: 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.social {
    display: flex;
    margin-top: 3.5rem;
    list-style: none;
    font-family: "Bebas Neue", sans-serif;
}

.social li a {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    color: black;
    background-color: white;
    margin-right: 1rem;
    box-shadow: 0 0 6px 5px rgba(0, 0, 0, 0.2);
    padding:.5rem 1rem;
    border-radius: .3rem;
}

.social li a:hover {
    opacity: .9;
    background-color: #8affc8;
}

.about-content {
    color: black;
    font-size: 1.5rem;
}

.about-left {
    margin-bottom: 4rem;
    height: 480px;
}

.about-left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-right {
    background-color: white;
    padding: 2rem;
    opacity: .9;
    border-radius: .4rem;
}

.title {
    margin-bottom: 5rem;
}

.title h2 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
}

.title h2::after {
    position: absolute;
    content: "";
    top: 120%;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: black;
}

/* Contact Me */
.contact-container {
    margin: 0 auto;
    max-width: 1170px;
    padding: 0 2rem;
    flex-direction: column;
}

.contact-content img {
    width: 400px;
    height: auto;
}

#contact{
    background-image: url("../img/reichstag-invert.png");
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 7rem;
}

#contact .projects-title {
    text-shadow:
        0 6px 6px rgba(0, 0, 0, 0.6);
}

.contact-content{
    padding-top: 4rem;
    flex-direction: column;
    display: flex;
    justify-content: space-around;
    text-align: center;
    text-shadow:
        0 6px 6px rgba(0, 0, 0, 0.6);
}

.contact-left{
    margin-bottom: 5rem;
}
.contact-left .lead{
    padding: 0.5rem;
    color: white;
}

.contact-left .lead a{
    color: #8affc8;
}

#contact .projects-title {
    color: white;
}

/* Projects */
.projects {
    margin: 0 auto;
}
.project-title-container {
    padding-top: 10rem;
    text-align: center;
}

.projects-title {
    font-size: 36px;
    font-weight: bold;
}

.projects-subtitle {
    font-size: 24;
    color: gray;
}

.cards {
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
}

.cards-item {
    display: flex;
    padding: 1rem;
    width: 33.33333%;
}

.card {
    background-color: white;
    border-radius: .25rem;
    box-shadow: 0 20px 40px -14px rgb(0, 0, 0, .25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 1rem;
}

.card-img {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
    position: relative;
    
}

.card-title {
    color: #525252;
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.card-text {
    flex: 1 1 auto;
    font-size: .85rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: gray;
}

.btn {
    padding: .5rem;
    border: 1px solid #cccccc;
}

.btn:hover {
    background-color: #8affc8;
    color: white;
}

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

/* project pages */
.project-info {
    padding-top: 10rem;
    max-width: 900px;
}

/* Header layout */
.project-header {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
}

.project-image img {
    width: 100%;
    border-radius: .5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

/* Meta text */
.project-meta h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-meta p {
    opacity: .8;
    margin-bottom: .5rem;
    font-size: 1.1rem;
}

/* Content blocks */
.project-block {
    margin-bottom: 4rem;
}

.project-block h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.project-block h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: black;
    margin-top: .5rem;
}

.project-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: .85;
}

/* Photo Gallery */
.construction {
    padding-top: 10rem;
}

/* footer */
footer {
    margin-top: auto;
    position: absolute;
    width: 100%;
    padding-top: 2rem;
    background-color: black;
    color: white;
    padding-bottom: 1rem;
}

.footer-content {
    padding-top: 1rem;
    text-align:center;
}

.footer-content h3 {
    color: white;
    font-size: 5rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-transform: uppercase;
    font-family: "Bebas Neue", sans-serif;
}

.footer-content .social {
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding-bottom: 2rem;
}

@media(min-width: 768px) {
    .about-content {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
        row-gap: 0;
    }
    .contact-content{
        flex-direction: row;
    }
    .contact-right{
        padding-left: 3rem;
        width: 50%;
    }
    .contact-left{
        width: 50%;
    }
}

@media (max-width: 992px) {
    #desktop-nav {
        display: none;
    }

    #hamburger-nav {
        display: flex;
    }
}