/* ================================================================= */
/* ===================== Setup global variables ==================== */
/* ================================================================= */
:root {
    --white: #fff;
    --orange: #f28e51;
    --darkerOrange: #c3703c;
    --black: #1b1b1b;

    /* Headline (h1, h2) */
    --titleFamily: CostaRica;
    --titleSize: 22px;

    /* h3, h4 */
    --subtitleSize: 18px;

    /* Classic text (p...) */
    --textFamily: Montserrat;
    --textSize: 14px;

    --borderRadius: 15px;

    --thumbnailSpacing: 20px;
}

/* ================================================================= */
/* =========================== Setup font ========================== */
/* ================================================================= */
@font-face {
    font-family: CostaRica;
    src: url("/fonts/CostaRica.otf");
}

@font-face {
    font-family: Montserrat;
    src: url("/fonts/Montserrat-Regular.ttf");
}

@font-face {
    font-family: Montserrat;
    font-weight: bolder;
    src: url("/fonts/Montserrat-Bold.ttf");
}

@font-face {
    font-family: Montserrat;
    font-weight: bold;
    src: url("/fonts/Montserrat-SemiBold.ttf");
}

@font-face {
    font-family: Montserrat;
    font-weight: lighter;
    src: url("/fonts/Montserrat-Light.ttf");
}

@font-face {
    font-family: Montserrat;
    font-style: italic;
    src: url("/fonts/Montserrat-Italic.ttf");
}

h1,
h2 {
    font-family: var(--titleFamily);
    font-size: 36px;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.thumbnailTitle {
    font-family: var(--titleFamily);
    font-size: var(--titleSize);
}

h3 {
    font-family: var(--textFamily);
    font-size: var(--subtitleSize);
    font-weight: bolder;
}

h4 {
    font-family: var(--textFamily);
    font-size: var(--subtitleSize);
    font-style: italic;
}

p {
    text-align: justify;
    font-family: var(--textFamily);
    font-size: var(--textSize);
    font-weight: lighter;
}

.label {
    color: var(--orange);
}

.keywords {
    font-weight: bold;
}

iframe {
    border: none;
}

/* ================================================================= */
/* ========================== Setup Colors ========================= */
/* ================================================================= */
body {
    background-color: var(--white);
}

.orange-text {
    color: var(--orange);
}

.white-text {
    color: var(--white);
}

.black-text {
    color: var(--black);
}

.bkg-orange {
    background-color: var(--orange);
}

.bkg-white {
    background-color: var(--white);
}

.bkg-black {
    background-color: var(--black);
}

.border-orange {
    border-width: 0.125rem;
    border-color: var(orange);
    border-radius: var(--borderRadius);
}

.outline-text {
    text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black),
        -1px 1px 0 var(--black), 1px 1px 0 var(--black);
}

.italic-text {
    font-style: italic;
}

/* =========================== Scrollbar ========================== */
/* width */
::-webkit-scrollbar {
    width: 12px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #b8b3b38f;
    border-radius: var(--borderRadius);
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--darkerOrange);
    border-radius: var(--borderRadius);
}

/* =========================== Smooth Scroll ========================== */
html {
    scroll-behavior: smooth;
}

/* =========================== Back To Top Arrow ========================== */
.to-top {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translate(-50%, 0);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    display: none;
}

@media screen and (max-width: 992px) {
    .to-top {
        display: initial;
    }
}

.to-top.active {
    pointer-events: all;
    opacity: 1;
}

/* Arrows from : https: //www.youtube.com/watch?v=PX9nJaVOtlc */
.arrow {
    position: relative;
    background: white;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    transition: 0.4s ease;
}

.arrow:hover {
    box-shadow: 0 0 15px 15px rgba(0, 0, 0, 0.1);
}

.arrow div {
    position: absolute;
    height: 18px;
    width: 18px;
    border-radius: 1px;
    border-top: 3px solid #202020;
    border-left: 3px solid #202020;
    transform: rotate(45deg);
    left: 9.5px;
    top: 12px;
}

/* ================================================================= */
/* ============================ Library ============================ */
/* ================================================================= */

/* =========================== Custom Buttons ========================== */
.custom-btn {
    border: none;
    padding: 8px 10px;
    margin: 0 3px 10px 3px;
    border-radius: var(--borderRadius);
    box-shadow: 0 5px 0 var(--orange);
    background-color: var(--black);
    color: var(--white);
    font-family: var(--textFamily);
    font-size: var(--textSize);
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    vertical-align: middle;
}

.custom-btn:hover,
.custom-btn.active {
    box-shadow: none;
    transform: translateY(5px);
    color: var(--white);
    background-color: var(--orange);
}

/* =========================== Zoom Effect ========================== */
/* Start Zoom Animation */
.zoom-container .zoomable {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease-in-out;
    top: 15px;
    bottom: 15px;
    right: 30px;
    left: 30px;
}

/* End Zoom Animation */
.zoom-container:hover .zoomable,
.zoom-container:focus .zoomable {
    opacity: 0.9;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

/* =========================== Commons effects on all carousel (Blur animation, img size...) ========================== */
.carousel-cell {
    /* Blur animation on adjacent carousel */
    /* Remove when a cell is selected */
    filter: blur(2px);
    transition: filter 0.3s ease-in-out;
}

.carousel-cell.is-selected {
    filter: none;
}

.carousel-cell > img,
.carousel-cell > iframe {
    width: 100%;
    height: 100%;
}

/* ================================================================= */
/* ============================= Header ============================ */
/* ================================================================= */
header .website-logos h2 {
    text-transform: unset;
    font-size: var(--titleSize);
}

header .website-logos h2,
header .website-logos p {
    color: var(--white);
}

header .website-logos:hover h2,
header .website-logos:hover p {
    color: var(--orange);
}

/* ================== Navigation arrangement ==================*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Nav icons (Social networks...) */
nav .icons-section {
    display: none;
}

nav .icon-big {
    width: 50px;
    height: auto;
    border-radius: var(--borderRadius);
}

.icon-big {
    width: 50px;
    height: auto;
}

nav .nav-links ul {
    display: flex;
}

nav .menu-hamburger {
    display: none;
    z-index: 1;
    position: fixed;
    top: 40px;
    right: 30px;
    padding: 5px;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: var(--borderRadius);
    transition: all 0.5s ease-in-out;
    cursor: pointer;
}

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

@media screen and (max-width: 992px) {
    nav .menu-hamburger {
        display: block;
    }

    nav .icons-section {
        display: initial;
    }

    .nav-links {
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
    }

    .nav-links.mobile-menu {
        margin-left: 0;
    }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav .nav-links ul li {
        margin: 50px 0;
    }

    nav .nav-links ul li a,
    nav .nav-links ul li span {
        font-size: 2em;
    }
}

/* ================== Navigation style ================== */
nav ul {
    list-style: none;
}

nav li {
    margin: 0 50px;
    font-weight: bold;
}

nav a {
    text-decoration: none;
}

.nav-links a,
nav span {
    color: rgba(243, 236, 236, 0.848);
    text-transform: uppercase;
    font-size: var(--subtitleSize);
    font-family: var(--textFamily);
    letter-spacing: 1px;
    padding: 0 5px;

    position: relative;
}

nav a:hover {
    color: var(--orange);
}

nav a.active {
    color: var(--orange);
}

nav .link:after {
    content: "";
    height: 4px;
    border-radius: 5px;
    width: 0;
    background-color: var(--orange);

    position: absolute;
    left: 0;
    bottom: -10px;

    transition: width 0.3s ease-in-out;
}

nav .link:hover::after {
    width: 100%;
}

/* ================== Hamburger animation ================== */
/* https: //www.youtube.com/watch?v=dIyVTjJAkLw */
.burger,
.burger::before,
.burger::after {
    width: 35px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--darkerOrange);
    transition: all 0.5s ease-in-out;
}

.burger::before,
.burger::after {
    content: "";
    position: absolute;
    transition: all 0.5s ease-in-out;
}

.burger::before {
    transform: translateY(-12px);
}

.burger::after {
    transform: translateY(12px);
}

/* ANIMATION */
.nav-links.mobile-menu + .menu-hamburger .burger {
    transform: translateX(-50px);
    background: transparent;
    box-shadow: none;
}

.nav-links.mobile-menu + .menu-hamburger .burger::before {
    transform: rotate(45deg) translate(35px, -35px);
}

.nav-links.mobile-menu + .menu-hamburger .burger::after {
    transform: rotate(-45deg) translate(35px, 35px);
}

/* ================================================================= */
/* =========================== Portfolio =========================== */
/* ================================================================= */

/* ================== Main Content ================== */
.main-carousel .carousel-cell .box-infos {
    position: absolute;
    bottom: 10px;
    left: 20px;
}

.main-carousel .carousel-cell {
    width: auto;
    height: 75vh;
}

.main-carousel .carousel-cell > img,
.main-carousel .carousel-cell > iframe {
    object-fit: cover;
}

@media screen and (max-width: 992px) {
    .main-carousel .carousel-cell {
        height: 55vh;
    }
}

@media screen and (max-width: 600px) {
    .main-carousel .carousel-cell {
        height: 30vh;
    }
}

/* ================== Portfolio Filters ================== */
.portfolio .portfolio-filters .filter-container {
    margin-top: 2vh;
}

/* ================== Portfolio Thumbnails ================== */
.portfolio .portfolio-thumbnail {
    border: none;
    background: none;
}

/* Click feedback */
.portfolio .portfolio-thumbnail .bi-link-45deg {
    position: absolute;
    top: var(--thumbnailSpacing);
    right: var(--thumbnailSpacing);
}

.portfolio .portfolio-thumbnail .metadata {
    position: absolute;
    bottom: var(--thumbnailSpacing);
    left: var(--thumbnailSpacing);
}

.portfolio .portfolio-thumbnail img {
    width: 100%;
}

.portfolio .portfolio-thumbnail img,
.portfolio .portfolio-thumbnail .portfolio-info {
    border-radius: var(--borderRadius);
}

/* ================== Portfolio Modals ================== */
.portfolio .modal.show:hover {
    cursor: pointer;
}

.portfolio .modal.show .modal-dialog:hover {
    cursor: auto;
}

.portfolio .modal-content {
    border-radius: var(--borderRadius);
}

/* ================== Modals Header ================== */
.portfolio .modal.show .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ================== Modals Carousel ================== */
.portfolio .modal-carousel .carousel-cell {
    height: 45vh;
}

/* Video takes all screen space */
.portfolio .modal-carousel .carousel-cell.full-width {
    width: 100%;
}

@media screen and (max-width: 992px) {
    .portfolio .modal-carousel .carousel-cell {
        height: 30vh;
    }
}

.portfolio .modal-carousel img,
.portfolio .modal-carousel iframe {
    padding: 0.5vw;
    object-fit: contain;
    border-radius: var(--borderRadius);
}

/* ================== Caroussel Arrows ================== */
.flickity-prev-next-button {
    background: none;
    color: var(--white);
    opacity: 0.5;
    transition: all 0.3s ease-in;
}

.flickity-prev-next-button:hover {
    background: var(--orange);
    opacity: 0.75;
}

.flickity-prev-next-button.previous {
    margin-left: 3vw;
}

.flickity-prev-next-button.next {
    margin-right: 3vw;
}

.flickity-page-dots .is-selected {
    background: var(--orange);
}

/* ================== Modals Links Section ================== */
.icons-section {
    display: flex;
}

.icons-section .icon-container {
    display: block;
    margin: 0 10px;
    width: 100%;
}

.icon {
    width: auto;
    height: 24px;
}

/* ================== Modal Share Links ================== */
.icon-share-container {
    text-align: right;
}

.icon-share-container .icon:hover {
    cursor: pointer;
    color: var(--orange);
}

@media screen and (max-width: 992px) {
    .icon-share-container {
        text-align: center;
    }
}

/* ================================================================= */
/* ============================= Footer ============================ */
/* ================================================================= */
footer div {
    align-items: center;
}

footer .icons-section {
    display: flex;
    justify-content: center;
}

footer .icon {
    width: 36px;
    height: 36px;
    margin: 10px;
    border-radius: var(--borderRadius);
    color: var(--white);
}

footer a:hover .icon,
footer .legal-right-link:hover {
    color: var(--black);
}
