@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');

/* colors */
:root{
    --on-background: rgb(66,66,66);
    --background: rgb(255,255,255);
    --letter-spacing-animation: 1em;
}

[data-theme="dark"]{ 
    --on-background: rgba(255,255,255,0.9);
    --background: rgb(18,18,18);
}



/*  General */


html{
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body{
    margin:0;
    min-height: 100vh;
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    color:var(--on-background);
    background-color: var(--background);
    transition: background-color 0.72s ease, color 0.75s ease;
}

main{
    position: relative;
}

a{
    text-decoration: none;
    color:var(--on-background);
}
    a:hover{
        padding-bottom:5px;
        border-bottom:5px solid var(--on-background);
    }

/* sections */
section{
    min-height:100vh;
    position: relative;
    display:grid;
    place-items: center;

}

h2{
    font-size:40px;
}

/* section 1 */
/* dark mode switch */
.theme-switcher{
    display: flex;
    align-items: center;
    z-index: 100;
    position: fixed;
    top:15px;
    right:25px;
    cursor: pointer;
    user-select: none;
    
}
    .theme-switcher > span {
        margin-right:10px;
        font-size: 1rem;
        color:var(--on-background);
    }
.fas{
    font-size:30px;
}
    .fas:hover{
        transform: scale(1.1);
    }

/* navigation */
.menu-icon{
    position: fixed;
    top:15px;
    left:15px;
    width:2rem;
    height:2rem;
    display:flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    z-index: 10;
    
}
.nav-wrapper{
    position: fixed;
    height: 60px;
    top:0;
    left:0;
    width:100%;
    background: var(--background);
    z-index: 10;
}
.menu-icon div{
    height:0.25rem;
    background:var(--on-background);
    border-radius:5px;
    transition: 0.4s;
}


.active .bar1{
    transform: translate(0, 11px) rotate(-45deg);
}


.active .bar2{
    opacity: 0;
}

.active .bar3{
    transform: translate(0, -11px) rotate(45deg);
}

nav{
    height: 90vh;
    transform: translate(-100%);
    transition: transform 0.3s ease-in-out;
    width:100%;
    z-index: 0;
}
nav ul{
    list-style: none;
    display:flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height:85%;
    font-size:2rem;
}

a{
    text-decoration: none;
    color:var(--on-background);
}
nav.active{
    transform: translateX(0);
}

/* Header */
.header{
    
    width:100vw;
}

.header h1 {
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 500;
    font-style: italic;
    text-align: center;
    animation-name: focus-in-contract;
    animation-duration: 3s;
    animation-timing-function: linear;
}

@keyframes focus-in-contract{
    0%{
        letter-spacing:var(--letter-spacing-animation) ;
        filter: blur(12px);
        opacity: 0;
    }
    100%{
        letter-spacing: 0;
        filter: blur(0);
        opacity: 1;
    }
}

.social-media-icons{
    font-size: 70px;
    position: relative;
    top:-80px;
    text-align: center;
}

.social-media-icons i {
    animation: focus-in-contract 3s linear;
    transition: transform 0.5s ease;
    cursor: pointer;
}
.social-media-icons i:hover{
    transform: scale(1.1);
}

/* section 2 */
.main-image{
    height:50%;
    width:auto;
    position: relative;
    top:-25%;
    padding:20px;
    border:10px solid var(--on-background);
}

/* section 3 */
.image-container{
    position: relative;
    top:-25%;
    height:50vh;

}
.small-image{
    height:50%;
    width:auto;
    padding:20px;
    border:10px solid var(--on-background);
}
    .small-image:not(:first-child){
        margin-left:20px;
    }

    /* section 4 */
.blog-container{
    margin:0 auto;
    width:50ch;
}
.blog-item{
    margin-bottom:50px;
}

/* Section 5 */
/* Wave */
.wave{
    width:100%;
    
}
    .wave > svg{
        position:absolute;
        bottom:0;
        left:0;
    }
/* Footer */
.footer{
    position: absolute;
    bottom:20px;
    color:white;
    width: 100%;
    text-align: center;
}

/*  media quries -------------------------*/

/*  all mobile devices */

@media screen and (max-width:1180px){
    :root{
        --letter-spacing-animation: .1em;
    }
    nav{
        width:100%;
        background: var(--background);
    }

    .wave > svg:last-child{
        border-bottom:20px solid #97a97c;
    }

   
}

/*  tablet horizontal */
@media screen and (min-width:800px) and (max-width:1180px){
    .main-image{
        height:auto;
        width:75%;
        top:-5%;
    }

    .small-image{
        height:45%;
        padding:10px;
        border-width: 5px;
    }
}

/*  tablet vertical */
@media screen and (min-width:700px) and (max-width:821px){
    nav ul{
        font-size:2rem !important;
    }
    /* section 2 */
    .main-image{
        height:auto;
        width:85%;
        border-width: 5px;
        padding:10px;
        top:-35%;
    }
    /* section 3 */
    .small-image{
        height: auto;
        width: 75%;
        border-width: 5px;
        padding:10px;
        margin:auto 5% !important;
        position: relative;
        left:5.5%;
    }

    /* section 4 */
    #section-4{
        margin-top:50vh;
    }
    .blog-container{
        position: relative;
        top:-20%;
    }
}

/* smartphone horizonal */
@media screen and (min-width:600px) and (max-width:950px){
    nav ul{
        font-size:1.25rem;
    }
    .small-image{
        height: 70%;
    }
    #section-4 h2{
        margin-top:15vh;
    }
    #section-2 h2{
        margin-top: 13vh;
    }
}

/* smartphone vertical */
@media screen and (max-width:600px){
    nav ul{
        position: relative;
        left:-20px;
    }
    h2{
        font-size:2.2rem;
        text-align: center;
    }
    /* section 1 */
    .social-media-icons{
        font-size:45px;
        top:-50px;
    }
    /* section 2 */
    .main-image{
        height:auto;
        max-width:85%;
        top:-45%;
        border-width:5px;
        padding:10px;
    }

    /* section 3 */
    .small-image{
        height: auto;
        width: 75%;
        border-width: 5px;
        padding:10px;
        margin:auto 5% !important;
        position: relative;
        left:3.5%;
    }

    /* section 4 */
    #section-4 h2{
        margin-top:10vh;
    }
    .blog-container{
        width:80%;
    }

    /* section 5 */
    .wave > svg{
        border-bottom: 20px solid transparent;
    }
    .footer{
        bottom:10px;
    }
}