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

/* FONTS */
@font-face {
    font-family: Poppins;
    src: url('./assets/Font/Poppins/Poppins-Light.ttf');
    font-weight: lighter;
}
@font-face {
    font-family: Poppins;
    src: url('./assets/Font/Poppins/Poppins-Medium.ttf');
    font-weight: normal;
}
@font-face {
    font-family: Poppins;
    src: url('./assets/Font/Poppins/Poppins-Bold.ttf');
    font-weight: bold;
}

:root {
    --primary-color: #ff9800;
    --secondary-color: #ffc340;
    --accent-color: #e74c3c;
    --hover-color: #343434;
    --background-color: #303030;
    --text-color: #FFFFFF;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Poppins;
    font-weight: normal;
}

/* ----------------------------------------------------------------------------
                            NAVBAR
---------------------------------------------------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    position: -webkit-sticky; /* browser compatibility */
    position: sticky;
    top: 0;
    padding: 1em;
    z-index: 1;
    background-image: linear-gradient(#202020, transparent);
}

.navbar {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: end;
}

.menu-toggle {
    cursor: pointer;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: none;
}

.show {
    display: block;
}

.menu li {
    padding-top: 0.5em;
    text-align: end;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-family: monospace;
}

.menu-toggle:hover,
.menu li a:hover {
    color: var(--primary-color);
}

/* ----------------------------------------------------------------------------
                    SECCIONS GENERALS
---------------------------------------------------------------------------- */
main {
    /* padding-left: 1.5em;
    padding-right: 1.5em; */
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.section {
    min-height: calc(100vh - 3.5em);
    padding-left: 1.5em;
    padding-right: 1.5em;

    display: flex;
    flex-flow: column;
    align-items: center;
}

.section > h2 {
    text-align: center;
    margin-bottom: 1em;
    margin-top: 1em;

    font-family: monospace;
}

.highlight {
    color: var(--primary-color);
}

/* ----------------------------------------------------------------------------
                            HOME
 --------------------------------------------------------------------------- */


.home--italic {
    font-style: italic;
    font-weight: bold;
}

.home__profile {
    width: 10em;
    border-radius: 50%;
    box-shadow: 2px 4px 15px -2px rgba(0,0,0,0.49);
    -webkit-box-shadow: 2px 4px 15px -2px rgba(0,0,0,0.49);
    -moz-box-shadow: 2px 4px 15px -2px rgba(0,0,0,0.49);
    margin: 1.5em;
}

.home__contacts p {
    margin: 0.3em;

}

.container--center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home__contacts a {
    text-decoration: none;
    color: #FFFFFF;
}

.home__btn {
    background-color: transparent;
    border-radius: 1em;
    padding: 0.5em;
    border: 2px solid var(--primary-color);
    color: var(--text-color);
}
.home__btn:hover, 
.container__item > button:hover {
    border-color: var(--secondary-color);
    cursor: pointer;
    background-color: rgba(150,150,150,0.1);
    box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
    -webkit-box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
    -moz-box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
}

/* ----------------------------------------------------------------------------
                            ABOUT ME 
 --------------------------------------------------------------------------- */
.section__aboutMe{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1em;
    width: 100%;
}

.container {
    width: 80%;
    min-width: 20em;
    max-width: 28em;
    padding: 1em;
}
.container h3{
    margin-bottom: 0.5em;
}

.container__item {
    /* height: 4em; */
    position: relative;
    display: flex;
    flex-flow: column;
    justify-content: end;
    align-items: end;
}
.container__item::before {
    content: "";
    width: calc(100% - 2em);
    height: 1px;
    background-color: var(--primary-color);

    position: absolute;
    bottom: 1em;
    left: 0;
}

.container__item h4 {
    width: 100%;
    font-family: monospace;
    font-size: 15px;
}

.container__item button {
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    height: 2.5em;
    width: 2.5em;
    border-radius: 50%;
}

.container__item__content {
    display: none;
    font-family: monospace;
    font-size: 12px;
    margin-top: 0.5em;
}

.container__item__content a {
    color: var(--primary-color);
}

.container__item__content-active {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

.container__item__content img {
    display: block;
    margin: auto;
    margin-top: 1em;
}

.aboutMe_info {
    font-size: 12px;
    font-family: monospace;
    max-width: 80em;
    margin: 0.5em
}

/* ----------------------------------------------------------------------------
                            card 
 --------------------------------------------------------------------------- */
.card {
    background-color: var(--hover-color);
    border-radius: 1em;
    padding: 1em;
    box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
    -webkit-box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
    -moz-box-shadow: 2px 2px 5px -2px rgba(0,0,0,0.49);
    min-width: 20em;
    margin: 0.5em;
}

.underLine {
    border-bottom: 1px solid var(--primary-color);
    margin-top: 0.4em;
    margin-bottom: 0.5em;
}

.card p {
    font-size: 14px;
    margin-bottom: 0.3em;
}

.card ul {
    list-style-type: none;
    margin-left: 1em;
}

.card li {
    font-weight: 200;
    font-size: 13px;
    font-style: italic;
}

.card a {
    color: var(--secondary-color);
}

/* ---------------------------------------------------------------------------- 
                            contact 
---------------------------------------------------------------------------- */
.section__contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* align-items: center; */
}
.contacts {
    border-left: 1px solid var(--primary-color);
    padding: 0.75em;
    margin-bottom: 1em;

    display: flex;
    flex-flow: column;
    justify-content: space-around;
}

.contact {
    margin-bottom: 0.3em;
}
.contact a {
    text-decoration: none;
    color: var(--text-color);
}

.contact p {
    font-family: monospace;
    padding-left: 0.75em;
}

.contacts, .contact__form{
    min-width: 20em;
}

.contact__form input, textarea {
    background-color: #606060;
    border: none;
    display: block;
    width: 100%;
    color: var(--text-color);
    border-radius: 10px;
    padding: 0.5em 0.75em;
    margin-bottom: 0.5em;
    box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);
    -webkit-box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);
    -moz-box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);
    margin-top: 0.4em;
    margin-bottom: 1em;
}

.contact__form input:focus, textarea:focus {
    outline: 1px solid var(--primary-color);
}

.contact__form label {
    font-size: 12px;
}

/* ----------------------------------------------------------------------------
                            CARRUSEL
 --------------------------------------------------------------------------- */
.carousel {
    max-width: 50em;
    width: 95vw;
    overflow: hidden;
}

.carousel .elements {
    width: 400%;
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    transition: all 0.4s ease;
}

.carousel .elements__item {
    width: calc(100% / 4);
    background-color: var(--hover-color);
    padding: 1em;
    margin: 1em;
    border-radius: 1em;

    box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);
    -webkit-box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);
    -moz-box-shadow: 2px 2px 10px -2px rgba(0,0,0,0.2);

    font-family: monospace;
}

.carousel .elements__item a {
    color: var(--secondary-color);
}

.carousel .points {
    width: 100%;
    list-style-type: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel .point {
    width: 0.7em;
    height: 0.7em;
    margin: 0.5em;
    color: var(--secondary-color);
    transition: all 0.4s ease;
    border-radius: 50%;
    background-color: hsl(41, 24%, 35%);
}

.carousel .point:hover {
    cursor: pointer;
}

.carousel .point-active {
    background-color: var(--primary-color);
    width: 0.8em;
    height: 0.8em;
}

.elements__img {
    display: block;
    width: 100%;
    height: 10em;
    overflow: hidden;
    margin-top: 1em;
    position: relative;
}

.elements__img img {
    width: 100%;
    opacity: 0.6;
}

.elements__img .visit-text {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;    
    display: block;
    width: 100%;
    text-align: center;
}
/* ----------------------------------------------------------------------------
                            RESPONSIVE 
 --------------------------------------------------------------------------- */
.wrapper, 
.services { 
    max-width: 120em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5em;
}

@media (min-width: 992px) {
    body {
        display: flex;
    }

    .card {
        max-width: 25em;
    }

    .services {
        max-width: 60em;
    }

    .section {
        min-height: 100vh;
        width: 100%;
    }
    .section h2 {
        margin-top: 2em;
    }

    .menu_select {
        color: var(--primary-color) !important;
        font-size: 20px !important;
    }

    /* -------------------- NAVBAR ----------------------------------------- */
    .header {
        /* height: 5em; */
        width: 20vw;
        max-width: 25em;
        height: 100vh;
        background-image: linear-gradient(90deg,#222, transparent);
        display: block;
    }

    .logo {
        height: 2em;
    }
    .navbar {
        height: calc(100% - 2em);
        display: flex;
        justify-content: center;
        align-content: center;
    }

    .menu-toggle {
        display: none;
    }
    
    .menu {
        width: 100%;
        padding-left: 1.5em;
        display: block;
        margin-top: -2em;
        border-left: 1px solid var(--primary-color);
    }
    
    .show {
        display: block;
    }
    
    .menu li {
        /* padding-top: 0; */
        text-align: left;
        margin-bottom: 1em;
    }
    
    .menu li a {
        color: #fff;
        text-decoration: none;
        font-family: monospace;
        font-size: 18px;
    }
    
    /* .menu-toggle:hover, */
    .menu li a:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }

    /* ---------------------- HOME ----------------------------------------- */
    .home {
        display: flex;
        flex-flow: row;
        justify-content: center;
        align-items: center;
        padding-left: 4em;
    }
    .home__profile {
        width: 20em;
        margin-right: 3em;
    }

    .home__contacts {
        display: flex;
        flex-flow: row;
        justify-content: left;
        padding: 1em 0.5em;
    }

    .home__contacts p {
        margin-right: 1em;
        
    }

    .contacts {
        margin-right: 0.5em;
    }

    /* ------------------- CARRUSEL ---------------------------------------- */
    .elements__img img {
        transition: all 0.4s ease, opacity 0.4s ease;
        opacity: 0.9;
    }
    .elements__img:hover img {
        transform: scale(1.05);
        transform-origin: center;
        opacity: 0.5;
    }
    
    .elements__img .visit-text {
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .elements__img:hover .visit-text {
        opacity: 1; /* Show text on hover */
    }
}