@font-face {
    font-family: CairoPlay;
    src: url(../assets/CairoPlay.woff2);
}

/* Use javascript to attach links to socials, makes the code more scalable and maintainable */
/* Clean up comments and put content-div section css in another css folder */

/* remove tap highlight if it doesn't work as expected */

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

html{
    scroll-behavior: smooth;
}

a{
    color: white;
}

:root {

    --base-bg-color: black;
    --nav-elements-color: black;

    
}

.light-mode{
    transition: all 0.7s ease-in;
    /* --base-bg-color: #002B64; */
    --header-color: rgb(91, 0, 0);
    --header-shadow:0px 0px 30px rgba(0, 0, 0, 0.574);

    --logo-color: url(../assets/logo-light.png);
    --logo-text-color: white;
    --nav-container-color: rgb(91, 0, 0);
    --nav-border-color: rgba(0, 0, 0, 0.573);
    --nav-elements-color: white;
    --bar-color: white;
}

.dark-mode{
    transition: all 0.7s ease-in;
    --base-bg-color: black;
    --header-color: rgb(91, 0, 0);
    --header-shadow:0px 0px 30px rgba(0, 0, 0, 0.574);
    --logo-color: url(../assets/logo-dark.png);
    --logo-text-color: white;
    --nav-container-color: rgb(91, 0, 0);
    --nav-border-color: rgba(255, 255, 255, 0.71);
    --nav-elements-color: white;
    --bar-color: white;
}

/* Add color scheme to root and comment out the modes */

body{
    
    background-color: var(--base-bg-color);
    position: relative;

    
}

.trigger-point{
    z-index: -1;
    position: fixed;

    width: 100%;
    bottom: 40vh;
    height: 10vh;


}


.header-div{
    height: 90px;
    width: 100%;
    display: grid;
    align-items: center;
    justify-items: center;
    position: fixed;
    top: 0;
    z-index: 2;
    
    

}



header{
    height: 70px;

    display: grid;
    grid-template-columns: 160px 1fr 160px;
    z-index: 2;
    overflow-x: auto;

    background-color: rgba(0, 4, 132, 0);

    
    width: 100%;
    height: 80px;
    align-self: start;
    padding: 0px 10px 0px 10px;
    transition: all 1s ease-in-out;
}

.header-scrolled{
    transition: all 1s ease-in-out;
    background-color: var(--header-color);
    box-shadow: var(--header-shadow);
    height: 80px;
    width: 100%;
    align-self: start;
    border-radius: 0px;
}

.hamburger-menu{
    display: none;
    cursor: pointer;
    margin: auto;
}


.logo-link{
    text-decoration: none;
}
.logo-div{
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 50px 1fr;
    display: grid;
    justify-items: center;
    align-items: center;
    padding: 0px 10px 0px 10px;
    /* gap: 7px; */
    cursor: pointer;
    border-radius: 15px;
    
}


.logo-img{
    width: 100%;
    height: 50px;
}

.logo-img > img {
    width: 100%;
    height: 50px;
    background-size: cover;
}

.logo-text{
    color: var(--logo-text-color);
    font-size: 17px;
    font-weight: bold;
    font-family: CairoPlay, Arial, Helvetica, sans-serif;
    justify-self: start;
}

.nav-menu-div{
    display: grid;
    align-items: center;
}

.main-nav {
    display: grid;
    align-items: center;
    justify-items: center;
}

.scroll-message{
    display: none;
}

.main-nav > ol {
    list-style-type: none;
    display: grid;
    gap: 10px;
    grid-auto-flow: column;  
    align-items: center;
    justify-items: center;
    width: 400px;
    height: 45px;
    white-space: nowrap;
    padding: 0px 20px 0px 20px;
    

}

.main-nav li {
    cursor: pointer;
    width: 100px;
    font-size: 18px;
    display: grid;
    justify-items: center;
    align-items: center;
}

.main-nav li.active{
    border-bottom:1px solid var(--nav-elements-color);
    transition: none;
}

.main-nav li:hover {
    border-bottom:1px solid var(--nav-elements-color);
    transition: all 0.3s ease-in-out;
}

.main-nav a {
    text-decoration: none;
    appearance: none;
    color: var(--nav-elements-color);
    font-family: CairoPlay, Arial, Helvetica, sans-serif;
    font-weight: bold;
}


.main-nav a:link {
    color: var(--nav-elements-color);
    text-align: center;
    width: 100%;
}

.main-nav a:visited {
    color: var(--nav-elements-color)
}

.color-scheme-toggle {
    width: 100%;
    height: 100%;
    display: grid;
    justify-items: center;
    align-items: center;

    display: none;
    
}


.toggle-theme {
    appearance: none;
    border-radius: 100px;
    border: none;
    background: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.light-mode-toggle{
    transition: all 0.5s ease-in-out;
    /* background-image: url(../assets/light-mode.png); */
    background-size: cover;
}

.dark-mode-toggle{
    transition: all 0.5s ease-in-out;
    /* background-image: url(../assets/dark-mode.png); */
    background-size: cover;
}






.footer-div{
    transition: all 0.5s ease-in-out;
    width: 100%;
    display: grid;
    justify-items: center;
    align-items: center;
    border-radius: 15px 15px 0px 0px;
    background-color: var(--header-color);
    box-shadow: var(--header-shadow);
    margin-top: -20px;
    
}

.quicklinks-container a,
.bytemetrica-footer a {
    color: var(--logo-text-color);
    font-size: 12px;
    font-weight: 100;
    text-decoration: none;
    display: grid;
    justify-items: center;
    align-items: center;
    width: 70px;
    height: 20px;
    
}

.quicklinks-container a:hover,
.bytemetrica-footer a:hover{
    border-bottom: 1px solid var(--logo-text-color);
}

footer{
    display: grid;
    justify-items: center;
    padding-top: 30px;
    width: 100%;
    gap: 20px;

}

.footer-logo-link{
    text-decoration: none;
}

.footer-logo{
    display: grid;
    justify-items: center;
}

.footer-logo-img{
    /* background-image: var(--logo-color); */
    height: 70px;
    width: 70px;
    /* background-size: cover; */
}

.footer-logo-img > img{
    height: 70px;
    width: 70px;
    background-size: cover;
}

.footer-logo-text{
    color: var(--logo-text-color);
    font-size: 17px;
    font-weight: bold;
    font-family: CairoPlay, Arial, Helvetica, sans-serif;
    justify-self: start;

   
}

.quicklinks-container{
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 5px;
}

.quicklinks-title,
.socials-title{
    color: var(--logo-text-color);
    font-weight: bold;
    font-size: 14px;
}

.quicklinks-div{
    width: min(100%, 500px);
    display: grid;
    padding: 0px 80px;
    
}

.quicklinks-div > ol{
    display: grid;
    list-style-type: none;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    row-gap: 10px;
    justify-items: center;
}

.quicklinks-div li{
    display: grid;
    align-items: center;
    justify-items: center;
    width: 100%;
  
}

.quicklinks-div li:last-child{
    border-right: none;
}

.socials-container{
    display: grid;
    gap: 10px;
    justify-items: center;
}

.socials-div{
    display: grid;
    gap: 20px;
    grid-auto-flow: column;
    
}

.socials-div a,
.socials-div a:hover{
    height: 25px;
    width: 25px;
    border: none;
}

.facebook-logo,
.instagram-logo,
.tiktok-logo,
.linkedin-logo{
    height: 25px;
    width: 25px;
    background-size: cover;
    cursor: pointer;
}


.footer-bottom,
.footer-bottom a{
    display: grid;
    grid-auto-flow: column;
    color: var(--logo-text-color);

    font-size: 12px;
    width: 100%;
    justify-items: center;
    align-items: center;
}

.footer-bottom a:hover{
    border: none;

}




.fourth-footer{
    position: relative;
    width: 100%;
    display: grid;
}

.bytemetrica-footer{
    width: 100%;
    display: grid;
    justify-items: center;
    align-items: end;
    text-align: center;
    white-space: nowrap;

}

.bytemetrica-footer a{
    height: 20px;
    width: fit-content;
}

.back-to-top-div{
    position: absolute;
    right: 10px;
    cursor: pointer;
    display: grid;
    color: white;
    font-size: 23px;
    /* box-shadow: inset 0px -30px 30px black; */
    height: 40px;
    width: 40px;
    align-items: center;
    justify-items: center;
    border-radius: 50px;
    border: 1px solid rgba(0, 162, 255, 0.436);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    /* background-image: url(../assets/backtotop.png); */
    
}

.footer-bottom{
    height: 40px;
    padding: 0px 30px 10px 30px;
    text-align: center;
    display: grid;
    align-items: start;
}

/* hamburger menu */
@media (max-width: 1140px){

    header{

        grid-template-columns: 155px 1fr 40px 40px;
        grid-template-areas: "logo . color-scheme hamburger";
    }
    

    .logo-link,
    .hamburger-menu,
    .toggle-theme{
        z-index: 3;
    }
   

    .logo-div{
        grid-area: logo;
    }

    .color-scheme-toggle{
        grid-area: color-scheme;
    }

    .hamburger-menu{
        display: grid;
        gap: 5px;
        grid-area: hamburger;
    }

    .bar{
        display: block;
        width: 25px;
        height: 3px;
        transition: all 0.3s ease;
        background-color: var(--bar-color);
    }

    .hamburger-menu.active .bar:nth-child(2){
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu-div{
        position: fixed;
        top: 100%;
        left: 0;

        opacity: 0;
        height: 100%;
        width: 100%;
        display: grid;
        /* padding: 20px; */
        align-items: center;
        justify-items: center;
        z-index: 2;
        
    }


    .nav-menu-div.active{
        opacity: 1;    
        /* top: 80px; */
        top: 0px;
        left: 0;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(15px);
        background-color: rgba(14, 0, 51, 0.575);
        
    }


    .nav-menu-div.active .main-nav ol{
        opacity: 1;
        box-shadow: var(--header-shadow);
        
        
    }

    .nav-menu-div.active .main-nav{
        
        box-shadow: var(--header-shadow);
        
        
    }

    body.hamburger{
        overflow: hidden;
    }

    .main-nav{
        overflow: auto;
        /* height: min(100%,400px);
        width: min(100%,300px); */
        height: 100%;
        width: 100%;
        border-radius: 15px;
        display: grid;
        align-items: start;
        justify-items: center;
        position: relative;
        scroll-behavior: smooth;
        /* overflow: hidden; */
        
    }

    .main-nav ol {
        transition: all 0.5s ease-in-out;
        opacity: 0;
        grid-auto-flow: row;
        grid-template-rows: repeat(3, 100px) 20px;
        width: 100%;
        padding: 10px;
        padding-top: 100px;
        border-radius: 15px;
        height: 100%;
        /* background-color: var(--nav-container-color); */
        gap: 0px;
        justify-items: end;
        font-size: 80px;
    }

    /* .main-nav ol *{
        border: 2px solid forestgreen;
    } */

    .main-nav a {
        height: 100%;
        display: grid;
        align-items: start;
        justify-items: start;
        /* font-size: 20px; */
        font-size: 50px;
        font-weight: bold;
      
    }

    .main-nav li {
        padding: 5px 0px;
        display: grid;
        justify-items: center;
        align-items: center;
        width: auto;
        /* justify-self: end; */
    }


    /* .scroll-message{
        display: grid;
        opacity: 0;
        box-shadow: inset 0px -30px 20px black;
        height: 20px;
        width: 20px;
        border-radius: 15px;
        cursor: default;
    } */

    /* .scroll-message.active{
        cursor: pointer;
        transition: all 0.5s ease-in;
        opacity: 1;
        display: grid;
        position: sticky;
        color: white;
        font-size: 14px;
        bottom: 10px;
        justify-self: end;
        box-shadow: inset 0px -30px 20px black;
        height: 20px;
        width: 20px;
        align-items: center;
        justify-items: center;
        border-radius: 15px;
        border: 1px solid white;
    } */
}