@import url('https://fonts.googleapis.com/css2?family=Open+Sans&amp;display=swap');

* {
    font-family: 'Open Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: #0090FF;
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

img {
    transition: opacity 0.3s ease;
}

:focus-visible {
    outline: 2px solid #0090FF;
    outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6, p {
    margin-bottom: 0!important;
}

p {
    font-size: 0.9rem;
}

.main-nav a {
    font-size: 0.9rem;
}

.main-nav .active {
    color: #0090FF!important;
    font-weight: 700;
}

.main-nav .nav-link {
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav .nav-link:hover {
    border-bottom: 2px solid #0090FF;
}

.navbar  {
    height: 75px;
}


/* Loader Screen Earth */
#loading {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 1;
    background-color: black;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.3s ease-out;
  }
  
#loading.fade-out {
    opacity: 0;
    pointer-events: none;
}
  
#earth {
    width: 90px;
    height: 90px;
    background: url('../img/frontend/global.webp');
    background-color: rgb(0, 185, 255);
    border-radius: 50%;
    background-size: 165px;
    animation: rotate 5s infinite linear, glow 5s infinite;
    z-index: 99;
    -webkit-box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);
    -moz-box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);
    box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);
    will-change: transform;
  }

#loading .name {
    letter-spacing: 5px;
}

@keyframes rotate {
    from { background-position:  100%  0; }
    to {   background-position:    0   0; }
}

@keyframes glow {

    0%   {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    25%  {box-shadow: 0px 0px 50px 50px rgba(166,208,240,1);}

    50%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    55%  {box-shadow: 0px 0px 20px 25px rgba(0,144,255,1);}

    60%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    65%  {box-shadow: 0px 0px 20px 25px rgba(0,144,255,1);}

    70%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    75%  {box-shadow: 0px 0px 20px 25px rgba(0,144,255,1);}

    80%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    85%  {box-shadow: 0px 0px 20px 25px rgba(0,144,255,1);}

    90%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}
    
    90%  {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}

    100% {box-shadow: 0px 0px 20px 15px rgba(0,144,255,1);}
}



.dropdown-menu .dropdown-item {
    color: white;
}

.dropdown-menu {
    top: 3.5rem!important;
    font-size: 0.9rem!important;
    border: none!important;
    background-color: rgb(1, 1, 1)!important;
    color: white!important;
    border-radius: 0!important;
    border-top: 5px solid #0090FF!important;
}

.dropdown-menu .dropdown-item:hover {
    background-color:#191919;
    color: white;
}

.custom-shadow {
    box-shadow: 0 0rem 1rem rgba(0,0,0,.175);
}

.profile-wrapper {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    gap: 15px;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.15);
}

.btn {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.btn:active {
    transform: translateY(0);
}

.about-cards {
    transition: transform 0.3s ease;
}

.about-cards:hover {
    transform: scale(1.05);
}

.navbar {
    will-change: transform;
    backface-visibility: hidden;
}

.footer a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer a:hover {
    opacity: 0.8;
}

.footer .fab, .footer .bi {
    transition: transform 0.2s ease;
}

.footer a:hover .fab,
.footer a:hover .bi {
    transform: scale(1.1);
}






@media screen and (max-width: 576px) {
    .navbar-nav {
        margin-top: 1rem;
        text-align: center;
    }
    .navbar .nav-item {
        border-right: none;
        margin-bottom: 0.7rem;
    }
    .navbar .dropdown-toggle::after {
        display: none!important;
    }
    .nav-link {
        display: inline-block!important;
    }
    .dropdown-menu .dropdown-item {
        text-align: center;
    }
    .dropdown-menu {
        border-top: none!important;
        background-color: rgb(39, 39, 39)!important;
    }
    
    .footer {
        padding-top: 2rem!important;
        padding-bottom: 1rem!important;
    }
    .footer a, .footer p {
        font-size: 0.9rem!important;
    }
    .footer a i {
        font-size: 1.5rem!important;
    }
    .copyright p {
        font-size: 0.8rem!important;
    }
}


/*mobile-view*/
@media screen and (max-width: 767px) { 
    .navbar-nav {
        background-color: #00011c;
    }

  

}


/*tab-portrait*/
@media (min-width: 768px) and (max-width: 991px) {
    .navbar-nav {
        background-color: #00011c;
    }

    h1.mb-3.mb-md-0 {
        font-size: 2rem;
    }

   

}