/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;1,400&display=swap');
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
}

a {
    color: #fff;
    text-decoration: none;
}


::selection {
    background: gray;
    color: #fff;
}


/* top part */
.top-part {
    background: #3A3A3A;
    color: #fff;
}

.top-part i {
    font-size: 1rem;
    padding: .5rem .2rem;
    color: #fff;
    text-decoration: none;
}


.top-part span {
    font-size: 1rem;
}

.top-part #search {
    display: none;
    padding: 0px 5px;
}

.top-part #search:focus {
    outline: none;
}

.top-part i:hover {
    animation: mymove 3s infinite;
    color: #fff;
}

@keyframes mymove {
    50% {
        transform: rotate(360deg);
    }
}

.top-part span {
    font-size: 1rem;
}

.top-part img{
    text-align: center;
    width: 187px;
    height: 25px;
    margin: 0 auto;
    margin-top: 10px;
}

.top-part a {
    font-size: 1.5rem;
    padding: .5rem .15rem;
    color: #fff;
    text-decoration: none;
    padding-top: 0px;
    cursor: pointer;
}

.top-part .mode,
.top-part a {
    display: inline-block;
}

.top-part .mode {
    box-sizing: border-box;
    margin-left: 1.5rem;
    height: 0px;
    margin-top: 12px;
    height: 30px;
}

.mode .checkbox {
    opacity: 0;
    position: absolute;
}

.mode .label {
    background-color: #111;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    position: relative;
    height: 20px;
    width: 50px;
    transform: scale(1.5);
    top: 0px;
}

.mode .label .ball {
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 5px;
    height: 16px;
    width: 16px;
    transform: translateX(0px);
    transition: transform 0.2s linear;
    opacity: 1;
    color: #FA5667;
}

.label {
    background-color: red;
}

.mode .checkbox:checked+.label .ball {
    transform: translateX(24px);
}

.mode .label i {
    font-size: .8rem;
}

.mode .label i:hover {
    animation: none;
    color: #fff;
}

.mode .fa-moon {
    color: #fff;
}

.mode .fa-sun {
    color: #fff;
}

/* navbar */
.my-navbar {
    background: #fff;
}

.navbar .navbar-brand img {
    width: 105px;
    height: 65px;
}

.nav-item .nav-link {
    font-weight: bold;
    padding: 10px 15px;
    margin-left: 5px;
    text-transform: uppercase;
    transition: 1s;
}

.dropdown .dropdown-menu {
    border-bottom: 3px solid #009bcd;
}

.dropdown .dropdown-item {
    border: none;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;
    --c: #009bcd;
    line-height: 1.2em;
    background: conic-gradient(from -135deg at 100% 50%, var(--c) 90deg, #0000 0) 0 var(--p, 0%),
        conic-gradient(from -135deg at 1.2em 50%, #0000 90deg, var(--c) 0) 100% var(--p, 0%);
    background-size: var(--s, 0%) 200%;
    background-repeat: no-repeat;
    transition: 0.5s ease-in, background-position 0s;
}


.light-mode .dropdown-menu {
    background: rgba(255, 255, 255, 0.7);
}

.dark-mode .dropdown-menu {
    background: rgba(3, 3, 3, 0.7);
}


.dropdown .dropdown-item:hover {
    --p: 100%;
    --s: calc(50% + 1em);
    color: #fff;
}

.dropdown-menu {
    --bs-dropdown-padding-y: 0px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    margin-top: 0;
    padding: 0;
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    background: #009bcd;
}


/* #main-navbar .nav-link:hover {
    color: #009bcd;
    transform: scale(1.05);
    transition: ease-out .5s;
}*/

#main-navbar .nav-link.active {
    color: #009bcd;
    border-bottom: 2px double #009bcd;
    border-radius: 1px;
}

/* .navbar-nav:hover .nav-link {
    opacity: 0.7;
    filter: blur(5px);
    transition: 1s;
} */

#main-navbar .nav-link:hover {
    opacity: 1;
    filter: blur(0);
    text-decoration: none;
    color: #fff;
}

#main-navbar .nav-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #009bcd;
    color: #fff;
    transition: 0.9s;
    transform-origin: right;
    transform: scaleX(0);
    z-index: -1;
}

#main-navbar .nav-link:hover:before {
    transition: transform 0.9s;
    transform-origin: left;
    transform: scaleX(1);
}


/* Footer Section */
.footer-section {
    background: #212529;
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: #fff;
}

.light-mode .footer-section {
    background: #e1e2e3;
    ;
    padding-top: 2rem;
    padding-bottom: 1rem;
    color: #333;
}

.footer-section .footer-top img {
    width: 125px;
    height: 85px;
    margin-bottom: 1rem;
}

.footer-section .footer-top a {
    color: #0000;
    background:
        linear-gradient(90deg, #009bcd 50%, #fff 0) var(--_p, 100%)/200% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: .7s;
    text-decoration: none;
    cursor: pointer;
    padding-right: 1rem;
    padding-top: .5rem;
    text-transform: uppercase;
    font-weight: bold;
}

.light-mode .footer-section .footer-top a {
    color: #0000;
    background:
        linear-gradient(90deg, #009bcd 50%, #333 0) var(--_p, 100%)/200% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: .7s;
    text-decoration: none;
    cursor: pointer;
    padding-right: 1rem;
    padding-top: .5rem;
    text-transform: uppercase;
    font-weight: bold;
}


.footer-section .footer-top a:hover {
    --_p: 0%;
}

.footer-section .footer-top .mail-link {
    text-transform: lowercase;
}

.footer-section .footer-top h1 {
    font-weight: bold;
    font-size: 2.5rem;
}

.footer-section .footer-top p {
    text-align: justify;
    width: 90%;
}

.footer-section .footer-top .contact-part {
    font-weight: normal;
    margin-top: 1rem;
}

.footer-section .footer-top .contact-part i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.footer-section .footer-top .contact-part a {
    text-transform: lowercase;
    font-weight: normal;
}

.footer-section .footer-top .contact-part tr {
    padding-top: 1rem;
    height: 2.5rem;
}

.footer-section .footer-top .social-icon {
    padding: 1rem 0;
    font-size: 1.5rem;
}

.footer-top .link-part h5 {
    text-transform: uppercase;
}

.footer-top .link-part a {
    padding-bottom: .5rem;
    display: block;
    width: max-content;
    text-transform: capitalize;
}

.footer-bottom {
    margin-top: 1rem;
    color: #fff;
    text-align: center;
    margin-right: auto;
    font-size: .8rem;
}
.footer-bottom a{
    transition: ease-in .5s;
}

.light-mode .footer-bottom,
.light-mode .footer-bottom a {
    color: #333;
}
.footer-bottom a:hover{
    color: #009bcd;
}



/* Preloader */
.preload-section {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    background-color: #212529;
    z-index: 999;
}

.light-mode .preload-section {
    position: relative;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    background-color: #e1e2e3;
    z-index: 999;
}

.preload-section .preloader {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    animation: rotate 2s infinite;
    height: 50px;
    width: 50px;
}

.preloader:before,
.preloader:after {
    border-radius: 50%;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
}

.preloader:before {
    animation: ball1 2s infinite;
    background-color: #cb2025;
    box-shadow: 30px 0 0 #f8b334;
    margin-bottom: 10px;
}

.preloader:after {
    animation: ball2 2s infinite;
    background-color: #00a096;
    box-shadow: 30px 0 0 #97bf0d;
}

@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg) scale(0.8);
        -moz-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -webkit-transform: rotate(360deg) scale(1.2);
        -moz-transform: rotate(360deg) scale(1.2);
    }

    100% {
        -webkit-transform: rotate(720deg) scale(0.8);
        -moz-transform: rotate(720deg) scale(0.8);
    }
}

@keyframes ball1 {
    0% {
        box-shadow: 30px 0 0 #f8b334;
    }

    50% {
        box-shadow: 0 0 0 #f8b334;
        margin-bottom: 0;
        -webkit-transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #f8b334;
        margin-bottom: 10px;
    }
}

@keyframes ball2 {
    0% {
        box-shadow: 30px 0 0 #97bf0d;
    }

    50% {
        box-shadow: 0 0 0 #97bf0d;
        margin-top: -20px;
        -webkit-transform: translate(15px, 15px);
        -moz-transform: translate(15px, 15px);
    }

    100% {
        box-shadow: 30px 0 0 #97bf0d;
        margin-top: 0;
    }
}

/* back to top button */
#scrollButton {
    display: inline-block;
    background-color: #009bcd;
    width: 50px;
    height: 50px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s,
        opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#scrollButton::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

#scrollButton:hover {
    cursor: pointer;
    background-color: #333;
    color: #009bcd;
}

#scrollButton:active {
    background-color: #555;
}

#scrollButton.show {
    opacity: 1;
    visibility: visible;
}



/* Gallery */
.gallery .image:hover {
    filter: drop-shadow(4px 4px 6px gray);
    transform: scale(1.05);
    cursor: pointer;
    transition: 1s;
}

.gallery .image span {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.preview-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    color: #173747;
    max-width: 800px;
    max-height: 850px;
    width: fit-content;
    height: fit-content;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    border-radius: 3px;
    padding: 0 5px 5px 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

.preview-box.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.3s ease;
}

.preview-box .details {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 10px;
    justify-content: space-between;
}

.preview-box .details .title {
    display: flex;
    font-size: 18px;
    font-weight: 400;
}

.details .title p {
    margin: 0 5px;
}

.details .title p.current-img {
    font-weight: 500;
}

.details .icon {
    color: #333;
    font-size: 20px;
    cursor: pointer;
}

.preview-box .image-box {
    display: flex;
    width: 100%;
    position: relative;
}

.image-box .slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    height: 50px;
    width: 60px;
    line-height: 50px;
    text-align: center;
    border-radius: 3px;
}

.slide.prev {
    left: 0px;
}

.slide.next {
    right: 0px;
}

.image-box img {
    width: 100% !important;
    height: 100% !important;
    max-height: 700px;
    border-radius: 0 0 3px 3px;
    overflow: hidden;
}


.shadow {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 2;
    display: none;
    background: rgba(0, 0, 0, 0.45);
}

.dark-mode .preview-box {
    background: #333;
    color: #fff;
}

.dark-mode .image-box .slide {
    color: #333;
}

.dark-mode .details .icon {
    color: #fff;
}


/* Top Section */
.top-section h1 {
    margin-top: -4rem;
}

/* Media Query */
@media only screen and (max-width: 1280px) {
    .nav-item .nav-link {
        font-size: 13px;
        padding: 0;
        margin: 0;
    }
    .nav-item {
        padding: 0;
    }
    
    .footer-top .link-part {
        margin-top: 1.5rem;
        justify-content: center;
    }
}
@media only screen and (max-width: 991px) {

    .top-section {
        height: 60vh !important;
    }
    .nav-item .nav-link {
        font-size: 15px;
        padding: .5rem;
    }
    .navbar-collapse {
        background: #123;
        z-index: 1;
        color: #fff;
        margin-top: 1rem;
    }

}

@media only screen and (max-width: 767px) {

    .dropdown-menu {
        background: #123 !important;
        color: #fff;
    }
    .navbar .navbar-brand img {
        width: 85px;
        height: 50px;
    }

    .dropdown .dropdown-item {
        color: #fff;
        text-align: center;
    }

    .navbar-nav .nav-link,
    .navbar-nav .dropdown a {
        color: #fff !important;
    }

    .top-part .social-part {
        display: none;
    }

    .footer-top,
    .footer-bottom {
        text-align: center;
    }

    .footer-top .contact-part {
        width: 50%;
        margin: 1rem auto;
        text-align: left;
    }
}

@media only screen and (max-width: 480px) {

    html,
    body {
        font-size: .9rem;
    }

    .top-part .social-part {
        display: none;
    }

    .top-section {
        height: 40vh !important;
    }

    .top-section h1 {
        font-size: 2rem !important;
    }


    .preview-box {
        max-width: 380px !important;
    }

    .mode .label {
        height: 17px;
        width: 40px;
        top: -1px;
    }

    .mode .label .ball {
        top: 2px;
        left: 4px;
        height: 13px;
        width: 13px;
    }

    .mode .checkbox:checked+.label .ball {
        transform: translateX(17.5px);
    }

    .top-part .mode {
        margin-left: 1rem;
        margin-right: 1rem;
    }


}

@media only screen and (max-width: 340px) {

    .top-part #search {
        max-width: 120px;
    }

}

@media only screen and (max-height: 768px) {

    .preview-box {
        max-width: 650px;
        max-height: 600px;
    }

    .image-box img {
        max-height: 520px;
    }

}

/* Dark Mode /Light Mode */
#modeImage {
    width: 25px;
    height: 25px;
    cursor: pointer;
    vertical-align: middle;
}

.dark-mode {
    background: #333;
    color: #fff;
}

.light-mode {
    background: #e1e2e3;
    color: #333;
}
.light-mode .top-part {
    background: #808080;
    color: #fff;
}

.dark-mode .my-navbar {
    background: #212529;
    color: #fff;
}


.light-mode .my-navbar {
    background: #d8d8d8;
    color: #333;
}

.dark-mode .my-navbar a {
    color: #fff;
}

.light-mode .my-navbar a {
    color: #333;
}
.light-mode .footer-section,
.light-mode .nav-section {
    background-color: #d3d3d3;
}

.dark-mode .navbar-toggler {
    border: 1px solid #fff;
}

.light-mode .navbar-toggler {
    border: 1px solid #333;
}

.dark-mode .my-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.light-mode .my-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")
}