:root {
    --primary-bg: #f2f4f5;
    --secondary-bg: #d8dbdb;

    --primary-clr: #966a2a;

    --font: "Poppins", sans-serif;
    --font-clr: #000;
}

@font-face {
    font-family: "Poppins";
    src: url('../font/Poppins-Regular.ttf') format('truetype');
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    background-color: var(--primary-bg);
    overflow-y: hidden;
}

body.scrollable {
    overflow-y: auto;
}

::-webkit-scrollbar {
    width: 0px;
}

img {
    width: 100%;
}

img::oncontextmenu {
    pointer-events: none;
}

a {
    text-decoration: none;
}

header {
    width: 100vw;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-img {
    margin-top: auto;
}

.mobile-nav {
    position: fixed;
    z-index: 9;
    top: 0px;
    right: 0;
    padding: 25px;
    font-size: 25px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    z-index: 8;
    background-color: var(--primary-bg);
    transition: .3s;
    padding-top: 125px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    font-size: 20px;
}

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

.mobile-menu a {
    text-transform: uppercase;
    color: #000;
}

nav {
    top: 0;
    font-size: 20px;
    background-color: var(--primary-bg);
    border-radius: 12.5px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 50px;
    z-index: 9;
    height: 75px;
}

nav.active {
    position: fixed;
    width: 100%;
    text-align: center;
    box-shadow: 0 0px 10px 0 var(--primary-bg);
}

nav h1 {
    color: var(--primary-clr);
    text-align: center;
    margin: 0px;
    transform: translateY(-2px);
}

nav a {
    text-transform: uppercase;
    font-weight: bold;
    color: var(--font-clr);
    font-size: 18px;
}

nav a::after {
    content: "";
    border-top: 4px solid var(--primary-clr);
    width: 25px;
    display: block;
    opacity: 0;
    transform: translateX(-20px);
    transition: .3s;
}

nav a:hover::after,
nav a.active::after {
    opacity: 1;
    transform: translateX(0px);
}

nav a:hover {
    cursor: pointer;
}

main {
    width: 100%;
    box-sizing: border-box;
    padding: 50px 25px 0px 25px;
}

main h2 {
    font-size: 40px;
    text-align: center;
    margin-top: 0px;
}

main h3 {
    text-align: center;
}

footer {
    margin-top: 100px;
    padding: 50px;
    text-align: center;
}

.portfolio img:hover {
    cursor: pointer;
}

.portfolio .categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.portfolio .category {
    display: flex;
    gap: 25px;
    align-items: center;
    padding: 12.5px;
    flex: 1;
    border: 2px solid var(--secondary-bg);
    border-radius: 12.5px;
    transition: .3s;
}

.portfolio .category:hover {
    border: 2px solid var(--primary-clr);   
    cursor: pointer;
}

.portfolio .category.active {
    border: 2px solid var(--primary-clr);   
}

.portfolio .category img {
    height: 100px;
    width: unset;
    border-radius: 6.25px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.portfolio .category h3 {
    font-size: 22px;
    margin: 0px;
}

.portfolio .section {
    display: none;
    flex-wrap: wrap;
    gap: 12.5px;
}

.portfolio .section.active {
    display: flex;
}

.portfolio .section img {
    width: 40%;
    flex: 40%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.image-preview {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    background-color: rgb(0, 0, 0, .5);
    transition: .3s;
    opacity: 0;
}

.image-preview.active {
    pointer-events: all;
    opacity: 1;
}

.image-preview img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 80vh;
    max-width: 70vw;
    width: unset;
    object-fit: cover;
    border-radius: 12.5px;
}

.image-preview span {
    position: absolute;
    font-size: 50px;
    top: 50%;
    transform: translateY(-50%);
    height: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5vw;
}
.image-preview span:hover {
    cursor: pointer;
}

.image-preview span.left {
    left: 0;
}
.image-preview span.right {
    right: 0;
}

.contact {
    display: flex;
    flex-direction: column;
}

.contact a {
    color: var(--primary-clr);
}
.contact a:hover {
    cursor: pointer;
}

.contact p i {
    font-size: 20px;
    background-color: #000;
    color: #fff;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    transition: .3s;
}

.contact p i:hover {
    transform: scale(1.05);
    cursor: pointer;
}

@media (min-width: 640px) {
    body {
        font-size: 18px;
    }

    .mobile-nav {
        display: none;
    }

    nav {
        display: flex;
    }

    main.active {
        margin-top: 75px;
    }    

    .portfolio .categories {
        flex-direction: row;
    }

    .portfolio .category {
        height: unset;
        flex-direction: column;
        text-align: center;
    }

    .portfolio .category img {
        width: 100%;
        height: unset;
    }

    .portfolio .section img {
        width: 25%;
        flex: 25%;
    }

    .contact {
        flex-direction: row;
    }
    .contact img {
        width: 40%;
    }
}

@media (min-width: 768px) {
    main {
        margin: 0px auto;
        max-width: 768px;
    }

    .header-img {
        margin: 0px;
        width: 90vw;
    }
}

@media (min-width: 1024px) {
    header {
        height: 80vh;
    }
}

@media (min-width: 1536px) {
    header {
        height: 100vh;
    }
}