/*======== FONTS ========*/
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

/*======== VARIABLES ========*/
:root{
    --header-height: 3rem;

    /*======== COLORS ========*/
    /* Color mode HSL (Hue, Saturation, Lightness) */
    /*
        change favorite color
        Default: hsl(162, 100%, 40%)
        Orange: hsl(14, 100%, 65%) - Blue: hsl(210,100%,70%)

    */
    --hue: 162;
    --first-color: hsl(var(--hue), 100%, 40%);
    --first-color-alt: hsl(var(--hue), 56%, 35%);
    --title-color: hsl(228, 8%, 95%);
    --text-color: hsl(228, 8%, 65%);
    --body-color: hsl(228, 15%, 20%);
    --container-color: hsl(228, 15%, 15%);

    /*======== FONT AND TYPOGRAPHY ========*/
    /*5rem = 8px   |    1rem=16px ....*/
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2rem;
    --bigger-font-size: 1.25rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;

    /*======== FONT WEIGHT ========*/
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;

    /*======== Z-INDEX ========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*======== RESPONSIVE TYPOGRAPHY ========*/
@media screen and (min-width:1152px){
    :root{
        --biggest-font-size: 4rem;
        --bigger-font-size: 2rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}

/*======== BASE ========*/
*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

input,
textarea,
button,
body{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

body{
    background-color: var(--body-color);
    color: var(--text-color);
}

input,
textarea,
button{
    outline: none;
    border: none;
}

h1,h2,h3,h4{
    color: var(--title-color);
    font-weight: var(--font-medium);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

img,
svg{
    max-width: 100%;
    height: auto;
} 

/*======== REUSABLES ========*/
.container{
    max-width: 1120px;
    margin-inline: 1.5rem;
}

.grid{
    display: grid;
    gap: 1.5rem;
}

.section{
    padding-block: 5rem 2rem;
}

.section__title,
.section__subtitle{
    text-align: center;
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.section__title{
    font-size: var(--h1-font-size);
    margin-bottom: 1.5rem;
}

.section__subtitle{
    font-size: var(--small-font-size);
    margin-bottom: .25rem;
}

.section__subtitle span{
    color: var(--first-color);
}

.main{
    overflow: hidden; /* For animations ScrollReveal */
}

/*======== HEADER & NAV ========*/
.header{
    position: fixed;
    width: 100%;
    background-color: var(--container-color);
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
}

.nav{
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo{
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.nav__logo span{
    color: var(--first-color);
}

.nav__toggle,
.nav__close{
    display: flex;
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
}

/*======== NAVIGATION FOR MOBILES ========*/
@media screen and (max-width:1023px){
    .nav__menu{
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsla(0,0%,10%,.3);
        width: 75%;
        height: 100%;
        padding: 4.5rem 0 0 3rem;
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        transition: right .4s;
    }
}

.nav__list{
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
}

.nav__link{
    color: var(--title-color);
    font-size: var(--font-medium);
    transition: color .4s;
}

.nav__link:hover{
    color: var(--first-color);
}

.naav__close{
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/*======== SHOW MENU ========*/
.show-menu{
    right: 0;
}   