@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&display=swap');

:root {
    --sectionHeight: 100vh;
    --background: black;
    --primary: #00a2ff;
    --accent: #355394;
    --text: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    color: var(--text);
    box-sizing: border-box; /* Ensures padding does not affect the overall width */
}

body {
    background: var(--background);
    font-family: 'Source Code Pro', monospace;
}

.sectionTitle {
    font-family: 'Source Code Pro', monospace;
    font-size: 10vw;
    white-space: nowrap;
    overflow: hidden;
    background: -webkit-linear-gradient(-90deg, var(--primary), var(--accent));
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-top: 20px;
}

.contact {
    min-height: calc(var(--sectionHeight));
    height: fit-content;
    border-bottom: 10px double var(--accent);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.formContainer {
    border: 2px solid var(--primary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1);
    max-width: min(500px, 80%);
    width: 100%;
}

.form__group {
    position: relative;
    padding: 15px 0 0;
    margin-top: 10px;
    width: 100%;
}

.form__field {
    font-family: inherit;
    width: 100%;
    border: 0;
    border-bottom: 2px solid #9b9b9b;
    outline: 0;
    font-size: 1.3rem;
    color: #fff;
    padding: 7px 0;
    background: transparent;
    transition: border-color 0.2s;
    margin-bottom: 20px;
    border-radius: 5px;
}

.form__field::placeholder {
    color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
    font-size: 1.3rem;
    cursor: text;
    top: 20px;
}

.form__label {
    position: absolute;
    top: 10px;
    left: 10px;
    transition: 0.2s;
    color: #9b9b9b;
}

.form__field:focus {
    padding-bottom: 6px;
    font-weight: 700;
    border-width: 3px;
    border-image: linear-gradient(to right, var(--primary), var(--accent));
    border-image-slice: 1;
}

.form__field:focus ~ .form__label, .form__field:not(:placeholder-shown) ~ .form__label {
    font-size: 1rem;
    top: -10px; /* Adjust this value as needed to match the desired position */
    color: var(--primary);
    font-weight: 700;
}

.form__field--textarea {
    min-height: 40px;
    max-height: 300px;
    overflow-y: hidden;
    height: auto;
    padding: 0 10px;
}

input[type="submit"] {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--accent); /* Stylish border for the submit button */
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

input[type="submit"]:hover {
    background: var(--accent);
    transform: translateY(-2px);
    border-color: var(--primary); /* Changes border color on hover */
}

@media only screen and (min-width: 450px) {
    .sectionTitle {
        font-size: calc(1rem + 1.5vw);
    }
}

@media only screen and (min-width: 1024px) {
    .sectionTitle {
        font-size: calc(1.2rem + 2vw);
    }
}
