* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    list-style: none;

    --primary-color: #FF6803
}

body {
    background-color: #F0F0F0;
    color: #474747;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 2em;
    padding-left: 10%;
    padding-right: 10%;
}

footer {
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----------------- INDEX SECTION ----------- */

nav ul li {
    list-style-type: none;
    display: inline-block;
    padding: 1em 1.5em;
}

nav ul li a {
    color: white;
    font-weight: bold;
}

nav ul .current {
    border-bottom: 4px solid;
    border-color: var(--primary-color);
}

nav ul li a:hover {
    color: var(--primary-color)
}

header button {
    border: none;
    background-color: var(--primary-color);
    padding: 1em 2em;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    font-size: 15px;
    transition: 0.4s;
}

header button:hover {
    transform: scale(1.1);
    cursor: pointer;
}

main section p {
    color: white;
    font-weight: bold;
    font-size: 4rem;
}

main section #xd {
    color: #474747;
    font-weight: bold;
    font-size: 1rem;
}

.logo-txt {
    display: flex;
    align-items: center;
    color: white;
    font-size: 2em;
}

.logo-img {
    width: 2em;
}

.logo-txt span {
    color: var(--primary-color);
}

#body-index {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,2)), url(resources/background-index.jpg);
    background-size:cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#main-index {
    margin: auto 0;
    margin-left: 6rem;
}

#main-index span {
    color: var(--primary-color);
}

#main-index .container {
    width: 90vw;
    display: flex;
    justify-content: flex-start;
}

#main-index .container .btn {
    margin: 0;
    margin-top: 2rem;
    font-size: 2rem;
    border: 2px solid white;
}

 /* ----------------- PORTFOLIO GALLERY SECTION ----------- */

.container {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */

    flex-wrap: wrap;
    gap: 20px;
    margin: auto;
}

.container figure {
    position: relative;
    height: 250px;
    cursor: pointer;
    width: 350px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.50);
}

.container figure img {
    width: 100%;
    height: 100%;
    transition: all 400ms ease-out;
    will-change: transform;
}

.container figure .capa {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    transition: all 400ms ease-out;
    opacity: 0;
    visibility: hidden;
    text-align: center;
}

.container figure:hover>.capa {
    opacity: 1;
    visibility: visible;
}

.container figure:hover>.capa h3 {
    margin-top: 70px;
    margin-bottom: 15px;
}

.container figure:hover>img {
    transform: scale(1.3);
    filter: blur(3px);
}

.container figure .capa h3 {
    color: #fff;
    font-weight: bold;
    margin-bottom: 120px;
    transition: all 400ms ease-out;
    margin-top: 30px;
}

.container figure .capa p {
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
    width: 100%;
    max-width: 220px;
    margin: auto;
}

#body-portfolio {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,2)), url(resources/background-index.jpg);
    background-size:cover;
    background-position: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container figure .btn {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    width: 6.5em;
    height: 2.3em;
    margin: 0.5em;
    background: black;
    color: white;
    border: none;
    border-radius: 0.625em;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: auto;
}

.container figure .btn:hover {
    color: black;
}

.container figure .btn:after {
    content: "";
    background: white;
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.5s;
}

.container figure .btn:hover:after {
    transform: skewX(-45deg) scale(1, 1);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

 /* ----------------- 404 SECTION ----------- */

#body-404 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#main-404 {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#main-404 h1 {
    font-size: 100px;
}

#main-404 img {
    background-color: #f0f0f0;
}

#main-404 p {
    width: 70%;
    font-size: 0.9rem;
    text-align: center;
    margin: 2rem;
}

#main-404 section {
    display: flex;
    text-decoration: none;
}

#main-404 section .btn {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    width: 6.5em;
    height: 2.3em;
    margin: 0.5em;
    background: black;
    color: white;
    border: none;
    border-radius: 0.625em;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#main-404 section a:hover {
    color: black;
}

#main-404 section a:after {
    content: "";
    background: white;
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    transform: skewX(-45deg) scale(0, 1);
    transition: all 0.5s;
}

#main-404 section a:hover:after {
    transform: skewX(-45deg) scale(1, 1);
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}