@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
header
{
    position: absolute;
    top: 0;
    width: 100%;
    padding: 30px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9;
}

#est
{
    font-size: 1em;
    color: black;
    text-align: center;
    font-family: 'copperplate', fantasy;
    opacity: 0;
    transition: opacity 1s;
}
.logo:hover
{
    transition: 0.5s;
}
header ul
{
    display: flex;
    justify-content: center;
    align-items: center;
}
header ul li
{
    list-style: none;
    margin-left: 20px;
}
header ul li a
{
    text-decoration: none;
    padding: 6px 15px;
    color: #fff;
    border-radius: 20px;
}
header ul li a:hover,
header ul li a.active
{
    background: #fff;
    color: #0084ff;
}
.menu ul{
    display: none;
}

body {
    min-height: 100vh;
    background-color: #8bcbff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
body.dark {
    background-color: rgba(0, 0, 0, 0.5); /* Dark mode background */
    transition: background-color 0.5s ease;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 400px;
}

.login-form h2 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 2em;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    outline: none;
    color: white;
    font-size: 16px;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    transition: 0.3s;
}

.input-group input:focus ~ label,
.input-group input:valid ~ label {
    top: -5px;
    font-size: 12px;
    color: white;
}

.input-group input:focus {
    border-bottom-color: white;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.forgot-password a:hover {
    color: white;
}

@media (max-width: 1100px) and (max-height:1400px)
{
    header
    { 
        display: grid;
        grid-template-areas: 
            "menu logo nothing";
        justify-content: center;
        grid-template-columns: 1fr 1fr 1fr;
        width: 100%;
        padding: 0%;
        padding-top: 30px;
    }
    header ul
    {
        display: none;
    }
    .logo{
        grid-area: logo;
        display: grid;
        justify-content: center;
        align-items: center;
        z-index: 3;
    }
    .menu
    {
        background: url(menu.png);
        grid-area: menu;
        position: relative;
        height: 25px;
        background-size: 25px;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        z-index: 3;
        transition: 0.5s;
    }
    .menu.expand{
        background: url(close.png);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 25px;
        z-index: inherit;

    }
    header ul.toggle{
        display: grid;
        grid-auto-rows: 10vh;
        padding-top: 30%;
        align-items: center;
        justify-content: center;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        position: fixed;
        background: #dbdbd7;
        max-width: 0%;
        transition: 0.5s ease;
        overflow: hidden;
    }
    header ul.toggle.expand{
        display: grid;
        grid-auto-rows: 10vh;
        padding-top: 30%;
        gap: 2px;
        align-items: end;        /* vertical: bottom of cell */
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        position: fixed;
        background: #dbdbd7;
        max-width: 100%;
    }
    header ul li{
        padding: 0%;
        margin: 0%;
        width: fit-content;
        border-bottom:black solid 1px;
        align-self: end;
    }
    header ul li a{
        text-decoration: none;
        font-size: 1.5em;
        padding: 0%;
        color: black;
    }
    header ul li a:hover
    {
        background-color: #8f8f8b;
        color: black;
    }
    header ul li a.active
    {
        background-color: inherit;
        color: #0084ff;
    }
    header ul li hr
    {
        display: block;
        border: 0;
        height: 1px;
        width: inherit;
        background: black;
        margin-top: 1vh;
    }
    #bottomgrid
    {
        display: grid;
        grid-template-areas:
            "products services"
            "contact about"
            "map map";
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        width: 100%;
        height: 90vh;
        padding: 2vh;
    }

}