/****************************************
              GENERAL STYLES
****************************************/
@font-face {
    font-family: 'Open Sans';
    src: url('fonts/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}
:root {
    /* --background colors-- */
    --primary-color: #30A3FE;
    --secondary-color: #FFDD5B;
    --tertiary-color: #F3F3F3;
    --dark-color: #26292C;

    /* --text colors-- */
    --text-dark: #333;
    --text-semidark: #797985;
    --text-secondary: #FFDD5B;
    --text-light: #f3f3f3;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 16px;
    color: var(--dark-color);
}

.container {
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}
h2 {
    font-size: 2.25em;
    text-align: center;
    margin-bottom: 50px;
}
h3 { font-size: 1.8em; }
.text-semidark { color: var(--text-semidark)!important; }
.text-light { color: var(--text-light)!important; }
.block { display: block; }
.flex { display: flex; }
.just-center { justify-content: center; }
.just-spbetw { justify-content: space-between; }
.just-sparound { justify-content: space-around; }
.inline-flex { display: inline-flex; }
.d-none { display: none; }
.relative { position: relative; }
.al-start { text-align: start; }
.w-25 { width: 25%; }
.w-75 { width: 75%; }
.w-100 { width: 100%; }
.i-contain { object-fit: contain; }
.col-6 { width: 44%; }
.col-12 {
    flex-wrap: wrap;
    margin: 4em 0 1rem;
}

.wide {
    padding: 100px 0;
    text-align: center;
}

.wide h2.large {
    font-size: 48px;
    margin-bottom: 10px;
}

.text p {
    font-size: 24px;
    margin-bottom: 30px;
}

/****************************************
                HEAD & NAV
****************************************/
header {
    background-color: var(--dark-color);
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 3;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
}

nav .responsive {
    display: none;
}

@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
    }
    nav li {
        padding: 10px;
        text-align: center;
    }
    nav .responsive {
        display: block;
        color: var(--text-light);
        padding: 0 20px;
        text-align: end;
    }
}

    /****************************************
                        HERO
    ****************************************/
.hero {
    background-image: linear-gradient(to bottom right, var(--primary-color), var(--primary-color), var(--dark-color));
    padding: 17vh 0;
    color: var(--text-light);
    text-shadow: 0.2rem 0.2rem 0.1rem #33333333;
}

.hero a {
    color: var(--text-light);
    text-decoration: none;
    align-items: flex-end;
}

.hero .bi-linkedin {
    box-shadow: 0.2rem 0.2rem 0.1rem #33333333;
    margin-right: 5px;
    margin-bottom: 2px;
}
.hero .linkedin {
    text-decoration: underline;
}

.hero .just-spbetw {
    padding: 0 10px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero p:nth-of-type(3) {
    margin-bottom: 0;
}

.hero .img-responsive {
    display: none;
}

.hero .animate-wave {
    animation: wave .8s infinite both;
    display: inline-block;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--text-light);
    text-shadow: 0.2rem 0.2rem 0.1rem #33333333;
}

.hero h1 span {
    color: var(--text-secondary);
}

.hero .img-container {
    width: calc(100% - 450px);
}

.hero img {
    max-height: 100%;
    max-width: 100%;
    border-radius: 50%;
    box-shadow: 0 25px 50px -12px var(--dark-color);
}

.hero .img-container img {
    position: absolute;
    right: 0;
}

@media screen and (min-width: 320px) and (max-width: 768px) {
    .hero {
        padding: 10vh 0;
    }
    .hero .img-responsive {
        display: block;
        text-align: center;
        padding: 0 10vw;
    }
    .hero img {
        width: 100%;
        max-width: 340px;
    }
    .hero .img-container {
        display: none;
    }
    .hero .just-spbetw {
        padding: 0 20px;
    }
    .hero h1 {
        margin-top: 0.5em;
    }
    .hero p {
        margin: 8px;
    }
}
@media screen and (max-width: 1024px) {
    .hero h1 {
        display: flex;
        flex-direction: column;
    }
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px) rotate(30deg); }
}

/****************************************
              TECHNOLOGIES
****************************************/
.technologies {
    background-color: var(--tertiary-color);
}

.tech-list {
    height: 24vh;
}

.tech-list ul {
    list-style-type: none;
    padding: 0;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tech-list ul::-webkit-scrollbar {
    display: none;
}

.tech-list li {
    margin-right: 20px;
    width: 180px;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    letter-spacing: .1rem;
}

.tech-list img {
    height: 18vh;
    object-fit: contain;
}

/**************** slider *****************/
.slider {
    position: relative;
    float: left;
    width: 100%;
    height: 24vh;
    overflow: hidden;
}

.tech-list ul {
    position: absolute;
    left: 0;
    animation: scroll 60s linear 0s infinite;
}

.tech-list ul:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    100% { left: calc( -180px * 21); }
    /* 180px: each li width.
    21 is the <li> qty.
    Multiply times -1 to start from the right */
}

/****************************************
                PORTFOLIO
****************************************/
.portfolio {
    padding-top: 100px;
    padding-bottom: 150px;
}

.portfolio form {
    flex-flow: column;
}

.projects-nav {
    height: 41px;
    border-radius: 5px;
    position: relative;
    background-color: var(--tertiary-color);
    margin: auto auto 0.5em;
}

.projects-nav #all-label { border-radius: 5px 0 0 5px; }
.projects-nav #clients-label { padding-left: 2em; padding-right: 2em; }
.projects-nav #school-label { border-radius: 0 5px 5px 0; padding-left: 1.5em; padding-right: 1.5em; }

.projects-nav label
{
    padding: 10px;
    width: 89px;
    display: inline-flex;
    background-color: var(--tertiary-color);
    cursor: pointer;
    flex-flow: row;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Arrows under navigation menu */
#arrow1, #arrow2, #arrow3, #arrow4
{
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 6px solid var(--primary-color);
    position: absolute;
    opacity: 0;
    bottom:-2px;
    transform: translateY(10%);
    transition: transform 250ms ease-in-out, opacity 500ms;
}

/* Position of arrows depends on being 4 elements */
#arrow1 { left: 10%; }
#arrow2 { left: 35.5%; }
#arrow3 { right: 35.5%; }
#arrow4 { right: 11%; }

#all-label:after, #clients-label:after, #creative-label:after, #school-label:after {
    display:block;
    content: '';
    border-bottom: 3px solid var(--primary-color);
    transform: scaleX(0);
    transition: transform 250ms ease-in-out, opacity 250ms;
    width: 100%;
    position: absolute;
    bottom: 0;
}
#all-label:hover:after, #clients-label:hover:after, #creative-label:hover:after, #school-label:hover:after {
    transform: scaleX(1);
}

#all-label:hover~#arrow1, #clients-label:hover~#arrow2,
#creative-label:hover~#arrow3, #school-label:hover ~ #arrow4 {
    opacity:1;
    transform: translateY(60%);
}

.portfolio .card {
    color: var(--text-dark);
    width: calc(33.33% - 3em);
    margin: 1.5em;
    box-sizing: border-box;
    text-decoration: none;
}

.pocket-card {
    background: linear-gradient(145deg,#e2e8ec50,#fff);
    box-shadow: 5px 5px 15px #d1d9e6, -5px -5px 15px #fff;
    border-radius: 6px;
    border: 0;
    overflow: hidden;
    justify-content: space-between;
}

.pocket-card:hover {
    box-shadow: 5px 5px 15px #1e659d85, -5px -5px 15px #fff;
}

.pocket-card figure {
    margin: 0;
}

.card img {
    height: 90px;
    object-fit: contain;
}

.card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0.3em;
}

.card-body, .card-footer {
    padding: 0.5em;
}

.card-footer {
    border-top: 1px solid rgba(0,0,0,.125);
}

.tags {
    color: var(--text-semidark);
    margin: 0 0 0 1em;
    font-size: 0.8em;
    text-align: end;
}

/* Toggle: All */
#all:checked ~ .projects-nav #all-label
{ background-color: var(--primary-color); color: var(--text-light); }
#all:checked ~ .portfolio .card { display: block; }

/* Toggle State: Clients (.category-clients) */
#clients:checked ~ .projects-nav #clients-label
{ background-color: var(--primary-color); color: var(--text-light); }
#clients:checked ~ #card-holder .category-clients { display: block; }
#clients:checked ~ #card-holder .category-creative,
#clients:checked ~ #card-holder .category-school { display: none; }

/* Toggle State: Creative (.category-creative) */
#creative:checked ~ .projects-nav #creative-label
{ background-color: var(--primary-color); color: var(--text-light); }
#creative:checked ~ #card-holder .category-creative { display: block; }
#creative:checked ~ #card-holder .category-clients,
#creative:checked ~ #card-holder .category-school { display: none; }

/* Toggle State: School (.category-school) */
#school:checked ~ .projects-nav #school-label
{ background-color: var(--primary-color); color: var(--text-light); }
#school:checked ~ #card-holder .category-school { display: block; }
#school:checked ~ #card-holder .category-clients,
#school:checked ~ #card-holder .category-creative { display: none; }

@media screen and (max-width: 768px) {
    #arrow1, #arrow2, #arrow3, #arrow4 {
        bottom: 0;
    }
    .projects-nav {
        font-size: 14px;
    }
    .portfolio .card {
        width: calc(50% - 3em);
    }
}
@media screen and (max-width: 570px) {
    .projects-nav label {
        width: 40px;
    }
    .portfolio .card {
        width: calc(100% - 3em);
        max-width: 350px;
    }
}


/****************************************
                  ABOUT
****************************************/
.about {
    background-color: var(--tertiary-color);
}

.about .container {
    padding: 0 10px;
}

/****************************************
                  CAREER
****************************************/
.career h3 {
    margin-top: 0;
    margin-bottom: 1.4em;
}

.career .pocket-card {
    margin-bottom: 2.8em;
    text-align: start;
}

.career .card-body {
    padding: 10px;
}

.career .date-holder {
    width: 100%;
    display: block;
    text-align: end;
    margin-bottom: -7px;
}

.career .pocket-card .dates {
    color: var(--primary-color);
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 2px;
}

.career .pocket-card h4 {
    font-size: 1.1em;
    margin-top: 0.2em;
    margin-bottom: 0;
    text-align: start;
}

.brand-name {
    display: block;
    justify-content: center;
}

.flag-icon {
    width: 10px;
    display: inline-block;
}

@media screen and (max-width: 580px) {
    .career .col-12 {
        flex-direction: column-reverse;
    }
    .career .col-6 {
        width: calc(100% - 3em);
        margin: auto;
    }
}


/****************************************
                  CONTACT
****************************************/
.cta {
    background-color: var(--secondary-color);
}

#contact a {
    background-color: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

#contact a:hover {
    background-color: var(--dark-color);
}

/****************************************
                  FOOTER
****************************************/
footer {
    background-color: var(--dark-color);
    color: var(--text-semidark);
    padding: 10px;
    text-align: center;
}

/****************************************
                   MODAL
****************************************/
.modal-container {
    position: fixed;
    top: 0; bottom: 0;
    left: 0; right: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
}

.modal-container.modal-active {
    display: block;
}

.modal-content {
    width: 60vw;
    background: var(--tertiary-color);
    max-height: calc(100vh - 7vh);
    max-width: 64rem;
    margin: 4vh auto auto;
    border-radius: 5px;
    overflow-y: auto;
    overflow-x: hidden;
}

@media screen and (min-width: 768px) and (max-width: 1200px) {
    .modal-content {
        width: 70vw;
    }
}
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95vw;
    }
}

.thumbnail {
    width: 100%;
    height: 40vh;
    background-size: cover;
    border-radius: 5px 5px 0 0;
    background-image: linear-gradient(to bottom, #fff0, var(--dark-color)), url(proj_logos/arnaga.png);
    color: var(--text-light);
    position: relative;
}

.thumbnail .close {
    text-align: end;
    position: sticky;
    top: 0;
    width: 100%;
}

.thumbnail .close span {
    background-color: var(--tertiary-color);
    color: var(--text-dark);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 2px 1px 2px #33333320;
    cursor: pointer;
}

.thumbnail .close span:hover {
    background-color: var(--text-dark);
    color: var(--tertiary-color);
}

.thumbnail h4 {
    text-align: center;
    position: absolute;
    bottom: 0;
    margin-bottom: 0.3em;
    width: 100%;
    font-size: 2.5em;
}

.modal-body {
    padding: 1em 3em 4em;
}

.modal-content .goto {
    color: var(--text-light);
    background-color: var(--primary-color);
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 20px;
}

.modal-content .goto:hover {
    background-color: var(--dark-color);
}

.modal-content ul.techlist {
    list-style-type: none;
    display: flex;
    padding: 0;
    overflow-x: auto;
}

.modal-content .techlist li {
    margin-right: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.modal-content .techlist li img {
    height: 70px;
    object-fit: contain;
}

.loading {
    text-align: center;
    display: none;
}
.loading.first {
    display: block;
}

.chatgpt-logo {
    width: 25px;
    height: 25px;
    float: left;
    margin-right: 20px;
}

.chart li span {
    display: inline-block;
    width: 10px;
    height: 10px;
}
.chart span.c30A3FE { background-color: #30A3FE; }
.chart span.cFFDD5B { background-color: #FFDD5B; }
.chart span.cF3F3F3 { background-color: #F3F3F3; border: 1px solid #797985; }
.chart span.c26292C { background-color: #26292C; }
.chart span.c797985 { background-color: #797985; }