/* Global config */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 62.5%;
}

html {
    --bg1: #232c35;
    --bg2: #34383b;
    --bg3: #262e36;
    --color-texts: #f0f6fc;
}

body {
    background-image:linear-gradient(180deg, var(--bg1), var(--bg2));
    background-attachment: fixed;
}

.container {
    width: 100rem;
    margin: 0 auto;
}

/* menu */

header {
    position: fixed;
    width: 100vw;
    padding: 2rem 0;
    background-image:linear-gradient(180deg, var(--bg1), var(--bg3));
    z-index: 1;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    font-size: 4rem;
    font-weight: 600;
}

ul li {
    display: inline-block;
    
}

ul li:hover {
    border-top: solid #c50294dc;
}

li a {
    text-decoration: none;
    margin: 0 3rem;
    color: var(--color-texts);
    padding-top: 5px;
}

li:hover {
	transform: scale(1.1);
    transition: 0.3s;
}

/* dark theme button*/

.theme {
    display: flex;
    align-items: center;
    padding: 0 2rem;
    margin-top: 0.5rem;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.label {
    background-color: #111111;
    border-radius: 5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 4.2rem;
    width: 8rem;
}

.label .ball {
    background-color: #ffffff;
    border-radius: 2rem;
    position: absolute;
    top: .3rem;
    left: 0.5rem;
    height: 3.5rem;
    width: 3.5rem;

    transform: translateX(0);
    transition: transform 0.2s linear;
}

.checkbox:checked + .label .ball {
    transform: translateX(3.5rem);
}

.dark-mode {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
}

.light-mode  {
    width: 3rem;
    height: 3rem;
}


/* titles and subtitles */

.pageTitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pageSub {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#color {
    color: #c50294dc;
}

p {
    font-size: 2.6rem;
    margin-bottom: 4rem;
    color: var(--color-texts);
}

.page {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* images */

.imgs {
    display: flex;
    justify-content: space-around;
}

/* footer */

footer, span {
    padding: 2rem 0 ;
    font-size: 1.2rem;
    text-align: center;
    color: #757575;
}

/* page items animation */

[data-animation] {
    opacity: 0;
    transition: 0.9s;
}

[data-animation="left"] {
    transform: translate3d(-5rem, 0, 0);
}

[data-animation="right"] {
    transform: translate3d(5rem, 0, 0);
}

[data-animation].animate {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

p.tech {
    font-size: 1rem;
    font-style: italic;
    margin: 0
}


.language-switch {
    margin-top: 0.5rem;
}

.lang-label {
    display: flex;
    gap: 8px;
}

.lang-btn {
    width: 4rem;
    height: 4rem;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    opacity: 0.8;
}

.lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

/*    MEDIA QUERIES    */

/* tablets and desktops */
@media (max-width: 1024px) {
    .container {
        width: 80rem;
    }

    li a {
        margin: 0 2rem;
    }

}

/* medium mobiles and tablets */
@media (max-width: 768px) {
    .container {
        width: 70vw;
    }

    /* titles and subtitles */

    .pageSub {
        font-size: 3.6rem;
    }

    p {
        font-size: 2.2rem;
        margin-bottom: 3rem;
        font-weight: 100;
    }
    
    /* hamburguer menu */
    .menu {
        display: none;
    }

    .menuToggle {
        width: 3.5rem;
        position: absolute;
        right: 0;
        top: 0;
        margin: 1rem 1.5rem 0 0;
        cursor: pointer;
        z-index: 2;  
    }

    #bar1 {
        width: 2rem;
    }

    #bar3 {
        width: 1rem;
    }

    #bar1, #bar2, #bar3 {
        height: 0.5rem;
        background-color: var(--color-texts);
        margin: 0.3rem;
        border-radius: 1rem;
        transition: .4s  cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .menuToggle.on #bar1 {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menuToggle.on #bar2 {
        transform: rotate(-45deg) translate(-2px, 0px);
    }

    .menuToggle.on #bar3 {
        transform: rotate(45deg) translate(10px, -10px);
    }

    header.on {
        background-image:linear-gradient(180deg, var(--bg1), var(--bg2));
        position: fixed;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
        right: 0;
        width: 25rem;
        height: 100vh;
        z-index: 2;
        transition: .2s;
    }
    
    header.on .menu, .menu ul {
        display: flex;
        flex-direction: column;
    }

    header.on .menu li {
        padding: 2rem 0;
        border: none;
        font-size: 2.4rem;
    }

    header.on .menu a:hover{
        color: rgb(117, 117, 117);
    }

    .light-mode, .dark-mode {
        size: 2rem;
    }
}

/* small mobiles */
@media (max-width: 480px) { 
        .container {
        width: 70vw;
    }

    /* titles and subtitles */

    .pageSub {
        font-size: 3rem;
    }

    p {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

