@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 */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    
}

html{
    scroll-behavior: smooth;
}

:root {

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



.light-mode{
    transition: all 0.7s ease-in;
    --base-bg-color: #002B64;
    --header-color: #002B64;
    --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: #002B64;
    --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(0, 0, 91);
    --header-shadow:0px 0px 30px rgba(173, 216, 230, 0.326);
    --logo-color: url(../assets/logo-dark.png);
    --logo-text-color: white;
    --nav-container-color: rgb(0, 0, 91);
    --nav-border-color: rgba(255, 255, 255, 0.71);
    --nav-elements-color: white;
    --bar-color: white;
}

body{
    
    background-color: var(--base-bg-color);
    position: relative;
    /* padding-top: 90px; */
    
    
}

.trigger-point{
    z-index: -1;
    position: fixed;
    /* border: 1px solid rgba(255, 0, 0, 0.23); */
    width: 100%;
    bottom: 40vh;
    height: 10vh;
    /* background-color: green; */

}


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

}



header{
    height: 70px;
    /* width: calc(100% - 30px); */
    display: grid;
    grid-template-columns: 160px 1fr 100px;
    z-index: 2;
    overflow-x: auto;
    /* border-radius: 15px; */
    background-color: rgba(0, 4, 132, 0);
    /* background-color: rgba(0, 0, 88, 0.631); */
    /* box-shadow: var(--header-shadow); */
    
    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: 45px 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: 45px;
    background-image: var(--logo-color);
    background-size: cover;
    border-radius: 5px;
}

.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: 810px;
    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;
    
}


.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,
.risshiganesh-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,
.risshiganesh-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;
    border-radius: 10px;
}

.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%, 770px);
    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;
}

.facebook-logo{
    background-image: url(../assets/socials/facebook.png);
}

.instagram-logo{
    background-image: url(../assets/socials/instagram.png);
}

.tiktok-logo{
    background-image: url(../assets/socials/tiktok.png);
}

.linkedin-logo{
    background-image: url(../assets/socials/linkedin.png);
}

.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;
}

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

}

.risshiganesh-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 white;
    
}

.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(5px);
        /* border: 1px solid red; */
        
    }


    .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);
        border-radius: 15px;
        display: grid;
        align-items: start;
        justify-items: center;
        position: relative;
        scroll-behavior: smooth;
        
    }

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

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

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


    .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;
    }
}