*{ box-sizing: border-box; }
html,body{
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

header{
    position: fixed;
    width: 100%;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: blue;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}
.nav{
    display: flex;
    align-items: center;
}
.header-logo{
    height: 60px;
    margin-left: 10px;
}
.nav-link{
    color: white;
    text-decoration: none;
    margin: 5px;
    font-family: 'Poppins';
    font-size: 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.nav-close{
    display: none;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    background: rgba(255,255,255,0.14);
    cursor: pointer;
    padding: 8px;
    box-sizing: border-box;
}
.nav-close span{
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}
.nav-close span:first-child{
    transform: rotate(45deg);
    top: 17px;
}
.nav-close span:last-child{
    transform: rotate(-45deg);
    top: 17px;
}

.mobile-nav-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    padding: 8px;
}
.mobile-nav-toggle span{
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.mobile-nav-toggle.open span:nth-child(2){
    opacity: 0;
}
.mobile-nav-toggle.open span:nth-child(1){
    transform: translateY(6px) rotate(45deg);
}
.mobile-nav-toggle.open span:nth-child(3){
    transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1;
}

.hero-image{
    height: 100vh;
    width: 100%;
    position: relative;
    top: 0px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('../assets/index.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content{
    height: 95%;
    width: 98%;
    background-color: rgba(0, 0, 255, 0.288);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
}
.hero-logo{
    height: 25vh;
    margin-top: 50px;
}
.web-name{
    color: white;
    font-family: 'Poppins';
    line-height:  20px;
}

.web-subname{
    color: white;
    font-family: 'Poppins';
    font-weight: 400;
    line-height: auto;
    text-align: center;
}
.register-btn-hero{
    height: 50px;
    width: 150px;
    font-size: 15px;
    background-color: blue;
    border: none;
    color: white;
    margin: 5px;
    font-family: 'Poppins';
    transition: background-color 0.1s ease-in-out;
}

.login-btn-hero{
    background-color: transparent;
    border: 2px white solid;
    color: white;
    height: 50px;
    width: 150px;
    margin: 5px; 
    font-size: 15px;
    font-family: 'Poppins';
    transition: background-color 0.1s ease-in-out;
}

.login-btn-hero:hover{
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.287);
}

.register-btn-hero:hover{
    cursor: pointer;
    background-color: rgba(0, 0, 255, 0.249);
}

.cta-wrap{
    margin-top: 20px;
}

.login-modal-wrap, .register-modal-wrap, .success-modal-wrap{
    z-index: 3;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.601);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal{
    padding-bottom: 20px;
    width: 30%;
    background-color: white;
    border-radius: 10px;
}

.modal-header{
    padding: 20px;
    font-family: 'Poppins';
    display: flex;
    justify-content: space-between;
}

.login-close, .register-close, .faq-close{
    background-color: transparent;
    border: none;
}

.close-svg{
    height: 25px;
    width: 25px;
    cursor: pointer;
}

.hidden{
    visibility: hidden;
}

.input-creds, .input-creds-row{
    padding: 10px;
    display: block;
    margin: auto;
    margin-bottom: 5px;
    width: 88%;
    font-family: 'Poppins';
}

.input-creds-row{
    width: 40%;
    display: inline-block;
    margin: 5px;
}

.inline-creds{
    display: flex;
    justify-content: center;
}

.info-submit{
    display: block;
    font-family: 'Poppins';
    width: 200px;
    height: 40px;
    cursor: pointer;
    margin: auto;
    margin-top: 20px;
    background-color: blue;
    border: none;
    color: white;
}

.info-submit:active{
    background-color: rgb(0, 0, 162);
}

#what-we-offer, #contact-us{
    font-family: 'Poppins';
    margin: 20px auto;
    max-width: 1200px;
    width: 100%;
    padding: 0 16px;
}

.section-container{
    width: 100%;
    margin: 0 auto 20px auto;
    padding: 10px 0;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.contact-icon{
    height: 20px;
    margin-right: 10px;
}

.card div{
    display: flex;
    align-items: center;
    flex-flow: row;
    margin: 10px;
}
.card{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: row;
    gap: 12px;
}

footer{
    background-color: rgb(41, 41, 41);
    padding: 20px;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
}

.footer-info{
    font-family: 'Poppins';
    color: white;
    display: flex;
    flex-flow: row;
}

.footer-info div{
    margin: 10px;
}

.footer-info h5{
    font-weight: 500;
}

.footer-info p{
    font-size: 12px;
    font-weight: 500;
}

.wwo-img{
    height: auto;
    width: 100%;
    max-width: 320px;
    object-fit: cover;
}

.faq-chat{
    height: 80px;
    width: 80px;
    background-color: blue;
    border-radius: 50%;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    cursor: pointer;
    transition: background-color 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins';
    font-size: 40px;
    color: white;
    font-weight: 600;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.faq-chat-content{
    height: 400px;
    width: 300px;
    background-color: white;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    border-radius: 10px;
    font-family: 'Poppins';
    display: flex;
    flex-flow: column;
}

.faq-chat:hover{
    background-color: rgb(0, 0, 196);
}

.faq-chat:active{
    background-color: rgb(0, 0, 116);
}

.faq-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: solid 1px black;
}

.faq-messages{
    display: flex;
    flex-grow: 3;
}

.faq-input{
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.faq-input-text{
    padding: 10px;
    font-family: 'Poppins';
    font-size: 12px;
    width: 200px;
}

.faq-send{
    background-color: blue;
    color: white;
    font-family: 'Poppins';
    cursor: pointer;
    border: none;
}

#signup-message, #login-message{
    color: red;
    font-family: 'Poppins';
    text-align: center;
    margin-top: 10px;
}

.success-svg{
    height: 80px;
    width: 80px;
    margin: auto;
    color: green;
    margin: auto;
}

.success-content{
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins';
}



.success-login{
    display: block;
    font-family: 'Poppins';
    width: 200px;
    height: 40px;
    cursor: pointer;
    margin: auto;
    margin-top: 20px;
    background-color: blue;
    border: none;
    color: white;
}

.success-login:active{
    background-color: rgb(0, 0, 162);
}

/* Responsive navigation */
@media (max-width: 768px) {
    header{
        padding: 8px 12px;
        box-sizing: border-box;
    }
    .header-logo{
        height: 48px;
        margin-left: 0;
    }
    .mobile-nav-toggle{
        display: inline-flex;
    }
    .nav{
        position: fixed;
        top: 0;
        right: 0;
        width: 240px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 16px 24px;
        gap: 12px;
        background-color: blue;
        box-shadow: -4px 0 12px rgba(0,0,0,0.18);
        transform: translateX(100%);
        transition: transform 0.2s ease-in-out;
        z-index: 2;
    }
    .nav.open{
        transform: translateX(0);
    }
    .nav-close{
        display: inline-block;
    }
    .nav-link{
        width: 100%;
        text-align: left;
        padding: 10px 12px;
        margin: 0;
    }
    .nav-backdrop.show{
        display: block;
    }
    .section-container{
        width: 100%;
        max-width: 100%;
        padding: 0 16px 16px;
        box-sizing: border-box;
        grid-template-columns: 1fr;
    }
    .card{
        flex-direction: column;
        align-items: flex-start;
        padding: 0 4px;
    }
    .card div{
        margin: 6px 0;
    }
    #what-we-offer h1,
    #contact-us h1{
        margin-left: 16px;
        margin-right: 16px;
    }
}

/* Responsive modals/forms */
@media (max-width: 768px) {
    .modal{
        width: 90%;
        max-width: 420px;
        margin: 0 5%;
        padding: 0 16px 20px;
    }
    .modal-header{
        padding: 16px 0;
    }
    .input-creds, .input-creds-row{
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
    }
    .inline-creds{
        flex-direction: column;
        align-items: center;
    }
    .input-creds-row{
        width: 92%;
        margin: 6px 0;
    }
    .info-submit{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modal{
        width: 94%;
        max-width: none;
        border-radius: 8px;
        padding: 0 16px 18px;
    }
    .modal-header{
        padding: 14px 0;
    }
    .input-creds, .input-creds-row{
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 14px;
    }
    .info-submit{
        width: 100%;
        height: 44px;
    }
}
