@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ================= HEADER ================= */

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding-top: 40px;
    padding-left: 50px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    position: relative;
    font-size: 25px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}

.logo::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

/* ================= BODY ================= */

body {
    background: #041827;
    color: #ededed;
}

/* ================= HEADING ================= */

h1 {
    text-align: center;
    margin-top: 50px;
    color: #ededed;
}

.us{
    color: #00abf0;
}

.a1{
    position: relative;
}

.a1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-duration: 5s;
    z-index: 1;
}

/* ================= FORM ================= */

.container {
    position: relative;
}

form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #00abf0;
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
}

.container form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-duration: 5s;
    z-index: 1;
}

label {
    color: #ededed;
    margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 300px;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #00abf0;
    border-radius: 5px;
}

textarea {
    height: 100px;
}

/* ================= SEND BUTTON ================= */

.button {
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #00abf0;
    background-color: #00abf0;
    color: #041827;
    cursor: pointer;
    transition: .3s;
}

.button:hover {
    background-color: #041827;
    color: #00abf0;
}

/* ================= HOME BUTTON ================= */

.move{
    padding-top: 60px;
    padding-left: 46%;
}

.btn-box{
    position: relative;
    width: 150px;
    overflow: hidden;
}

.btn-box::before{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #041827;
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
    z-index: 2;
}

.btn-box a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 50px;
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #041827;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: .5s;
    overflow: hidden;
}

.btn-box a:hover{
    color: #00abf0;
    background-color: #041827;
}

.btn-box a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #041827;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before{
    width: 100%;
}

/* ================= ANIMATIONS ================= */

@keyframes showRight {
    100% {
        width: 0;
    }
}

/* ================= MOBILE FIX ================= */

@media screen and (max-width: 750px) {

    .header {
        display: none !important;
    }

    h1 {
        margin-top: 20px;
        font-size: 28px;
    }

    /* REMOVE CENTERING & EXTRA SPACE */
    .container {
        min-height: auto;
        display: block;
        padding: 15px;
    }

    /* COMPACT FORM */
    .container form {
        min-height: auto;
        padding-bottom: 25px;
        margin-top: 10px;
    }

    /* FULL WIDTH INPUTS */
    input[type="text"],
    input[type="email"],
    textarea {
        width: 95%;
        font-size: 16px;
    }

    textarea {
        height: 140px;
    }

    /* SMALLER SEND BUTTON */
    .button {
        width: 45%;
        padding: 8px 0;
        font-size: 15px;
        margin: 15px auto 0;
        display: block;
    }

    /* HOME BUTTON JUST BELOW FORM */
    .move {
        padding-top: 6px;
        padding-left: 0;
        display: flex;
        justify-content: center;
    }

    .btn-box {
        margin-top: 0;
    }
}
@media screen and (max-width: 750px) {

    /* Pull everything up */
    body {
        display: block;
    }

    .div1 {
        margin-bottom: 10px;   /* reduce gap below heading */
    }

    h1 {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    /* Force form to sit right under heading */
    .container {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .container form {
        margin-top: 0 !important;
    }

    /* Compact inputs spacing */
    input[type="text"],
    input[type="email"],
    textarea {
        margin-bottom: 10px;
    }

    /* Send button tighter */
    .button {
        margin-top: 10px;
    }

    /* HOME button VERY close */
    .move {
        padding-top: 4px !important;
        margin-top: 0 !important;
    }
}
