body {
    color: #e0e0e0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    min-height: 100vh;
    margin: 0;
    /* Combines the gradient and map so they blend together */
    background: radial-gradient(circle at center, rgba(224, 224, 224, 0.384), rgba(51, 51, 51, 0.719), rgba(18, 18, 18, 0.9)),
        url(https://freevector-images.s3.amazonaws.com/uploads/vector/preview/160516/VecteezyBlack___White_World_MapWK0123-rev1_generated.jpg);
    background-size: cover;
    background-position: center;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #333333 #121212;
}

h2 {
    font-size: 2rem;
    margin: 10px 0;
}

/* Form inputs and textareas share the exact same style architecture */
input,
.form-textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background: none;
    outline: none;
    resize: none;
    border: 0;
    transition: all .3s;
    border-bottom: 2px solid #bebed2;
    color: #e0e0e0;
}

/* Explicit layout properties for the message textarea */
.form-textarea {
    font-family: Georgia, 'Times New Roman', Times, serif;
    height: 38px;
}

input:focus,
.form-textarea:focus {
    border-bottom: 2px solid #78788c;
}

p:before {
    content: attr(type);
    display: block;
    margin: 28px 0 0;
    font-size: 14px;
}

#contact-form {
    width: 340px;
    height: 440px;
    background-color: #1a1a1ada;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    margin: calc(40vh - 220px) auto;
    padding: 20px 30px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    position: relative;
    /* Form now acts as the parent container */
}

#contact-footer {
    position: absolute;
    /* Pushes the element to the right edge of the form */
    transform: translateY(35px) translateX(5px);
    /* Centers vertically & offsets 20px off the right edge */
    background: #50505ac7;
    width: 320px;
    padding: 16px 4px 16px 0;
    border-radius: 6px;
    font-size: 13px;
    box-shadow: 10px 10px 40px -14px #000;
}

span {
    margin: 0 5px 0 15px;
}

a {
    text-decoration: none;
    color: #ffa260;
}

a:hover {
    color: #f1ff5c;
    text-decoration: underline;
    transition: all 0.25s ease;
}

div#socials {
    margin: none;
}

img#instagram {
    width: 35px;
    height: 35px;
    margin: 8px 0 0;
}

img#youtube {
    width: auto;
    height: 35px;
    margin: 8px 8px 0;
}

button.submit {
    background: none;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #ffa260;
    border: 2px solid #ffa260;
    padding: 1em 2em;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.25s ease;
    float: right;
    margin: 8px 0 0;
}

/* Hover: Lift up & glow */
button.submit:hover {
    border-color: #f1ff5c;
    color: #ffffff;
    box-shadow: 0 0.5em 0.5em -0.4em #f1ff5c;
    transform: translateY(-0.25em);
}

/* Clicked: Press back down */
button.submit:active {
    transform: translateY(0);
    box-shadow: 0 0.2em 0.2em -0.2em #f1ff5c;
}

/* Spinner element animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffa260;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

/* WebKit Scrollbar Styling (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #121212;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 5px;
    border: 2px solid #121212;
}

::-webkit-scrollbar-thumb:hover {
    background: #444444;
}

/* Navigation Bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #1a1a1a9d;
    border-bottom: 1px solid #2a2a2a;
}

.navbar .logo {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.navbar .logo:hover {
    color: #e0e0e0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #ffffff;
}

.nav-links a[aria-current="page"] {
    font-weight: bold;
}

/* Search Form Container */
.search-container {
    display: flex;
    align-items: center;
}

/* Search Input styling updated to satisfy VS Code */
.search-container input[type="search"],
.search-container input[type="text"] {
    background-color: #121212;
    color: #e0e0e0;
    border: 1px solid #333333;
    border-radius: 4px 0 0 4px;
    padding: 8px 12px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s ease;
    appearance: none;
}

.search-container input[type="search"]::placeholder,
.search-container input[type="text"]::placeholder {
    color: #666666;
    font-style: italic;
}

.search-container input[type="search"]:focus,
.search-container input[type="text"]:focus {
    border-color: #555555;
}

/* Search Button */
.search-container button {
    background-color: #2a2a2a;
    color: #cccccc;
    border: 1px solid #333333;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 14px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.search-container button:hover {
    background-color: #383838;
    color: #ffffff;
}

/* Media Query (Mobile / Tablet Layout) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .nav-links {
        margin-left: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .search-container {
        width: 100%;
        justify-content: center;
    }

    .search-container input[type="search"],
    .search-container input[type="text"] {
        width: 60%;
    }
}