* {
    padding: 0;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
    transition: font-size 0.4s ease, width 0.4s ease, height 0.4s ease;
}

html{
    scroll-behavior: smooth;
}

/* scroll bar */
/* Width */
::-webkit-scrollbar {
    width: 0.5rem; 
}

/* Track */
::-webkit-scrollbar-track {
    background: #e9e9e9;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #ff1749; /* Your custom scrollbar color */
    border-radius: 0.3rem; /* Make corners round */
}

.nav-bar {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    background-color: #e9e9e9;
    /* border-bottom: 1px solid #ff1749; */
}

.nav-bar-desktop > a > img {
    max-width: 300px;
    padding-top: 1rem;
}

.nav-bar-right {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 5px;
    letter-spacing: 1px;
}

.nav-bar-right > a, .menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-bar-right > a:hover, .menu-item:hover {
    color: #fff;
    background-color: #ff1749;
    box-shadow: 5px 5px 0px black;
    border-radius: 5px;
}

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-item {
    /* padding-top: 12px; */
    text-align: center;
    width: 100%;
    /* height: 100%; */
}

.menu-item > a {
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-bar-mobile {
    display: none;
}

#sdmit-drone-shot {
    display: block;
    width: 100%;
    height: 100%;
}

#sdmit-drone-shot-1 {
    display: none;
}

#sdmit-drone-shot-2 {
    display: none;
}

#sdmit-login-img {
    height: 250px;
}

.menu {
    list-style: none;
    z-index: 999;
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu-item {
    position: relative;
    display: inline-block;
}

.menu-item > a {
    display: block;
}

.submenu, .sub-submenu {
    list-style: none;
    width: 200px;
    position: absolute;
    padding: 0;
    margin: 0;
    display: none;
    padding: 5px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
}

.sub-submenu {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
}

.submenu-item {
    position: relative;
}

.submenu-item > a {
    display: block;
    text-decoration: none;
    color: #000;
    border: 1px solid;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.submenu-item > a:hover {
    background-color: #ff1749;
    border: none;
    color: #fff;
}

.sub-submenu-item > a {
    text-align: center;
    display: block;
    text-decoration: none;
    color: #000;
    border: 1px solid;
    margin: 5px;
    padding: 10px;
    border-radius: 5px;
}

.sub-submenu-item > a:hover {
    background-color: #ff1749;
    border: none;
    color: #fff;
}

.menu-item:hover .submenu {
    display: block;
    top: 100%;
    left: -5px;
}

.submenu-item:hover .sub-submenu {
    display: block;
    top: -5px;
    left: 100%;
    backdrop-filter: blur(10px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* --------------- login form -------- */

.login-form {
    display: flex;
    margin-bottom: 20px;
    flex-direction: column;
    width: 400px;
    gap: 15px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); 
    border-radius: 15px;
}

.form-floating {
    border: 1px solid;
    border-radius: 5px;
}

/* Basic button styling */
#login-form-btn {
    width: 100%;
    border-radius: 5px;
    padding: 10px;
    position: relative;
    display: inline-block;
    color: #000000;
    background-color: transparent;
    border: 1px solid #000000;
    overflow: hidden;
    transition: color 0.4s ease, border 0.4s ease;
}

/* Hover effect */
#login-form-btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, #ff1749 50%, transparent 50%);
    transition: top 0.4s ease, left 0.4s ease;
}

#login-form-btn:hover::before {
    top: 0;
    left: 0;
    z-index: -1;
}

#login-form-btn:hover {
    color: #ffffff;
    border: 1px solid transparent;
}

/* --------------- login form -------- */

.footer {
    text-align: center;
    /* border: 10px solid; */
}

.hero-content-div {
    width: 100%;
    position: absolute;
    top: 40%;
}

.hero-element {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-bottom: 2.5rem;
    z-index: 999;
    /* border: 10px solid; */
}

.illustration {
    display: flex;
    align-items: center;
    padding-top: 150px;
}

#illustration-1 {
    height: 300px;
}

#illustration-2 {
    height: 250px;
}


#footer-name {
    text-decoration: none;
    color: #0f0f0f;
}

#footer-name:hover{
    color: #ff1749;
}

/* Media Query for Tablets */
@media only screen and (min-width: 784px) and (max-width: 1080px) {

    .nav-bar {
        padding: 1.25rem;
    }

    .nav-bar-desktop > a > img {
        max-width: 250px;
    }

    .nav-bar-right {
        grid-template-columns: repeat(5, 1fr);
        margin-top: 1.5rem;
    }

    #sdmit-drone-shot {
        display: none;
    }
        
    #sdmit-drone-shot-1 {
        width: 100%;
        height: 100%;
        display: block;
    }

    #sdmit-drone-shot-2 {
        display: none;
    }

    * {
        font-size: small;
    }

    .hero-content-div {
        top: 35%;
    }

    .login-form {
        width: 350px;
        margin-bottom: 20px;
        padding: 25px;
    }

    .illustration {
        display: none;
    }

    .submenu, .sub-submenu {
        width: 170px;
    }
}

/* Media Query for Mobile */
@media only screen and (max-width: 784px) {

    .nav-bar-right {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 1rem;
    }

    .nav-bar {
        padding: 1rem;
    }

    .nav-bar-desktop > a > img {
        max-width: 200px;
    }

    #sdmit-drone-shot {
        display: none;
    }
        
    #sdmit-drone-shot-1 {
        display: none;
    }

    #sdmit-drone-shot-2 {
        width: 100%;
        height: 100%;
        display: block;
    }

    * {
        font-size: small;
    }

    .hero-content-div {
        top: 40%;
    }

    .login-form {
        width: 350px;
        padding: 25px;
    }

    .illustration {
        display: none;
    }

    .submenu, .sub-submenu {
        width: 160px;
    }
}
