@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: #141212;
    color: white;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #141212;
    z-index: 1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #141212;
    z-index: 1;
}
.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    z-index: 10;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

.contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    min-height: 60vh;
    padding: 5rem 9%;
    position: relative;
    z-index: 2;
}

.contact h1 {
    font-size: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%; /* Full width for form groups */
    max-width: 500px; /* Limit width for better alignment */
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #222;
    color: white;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #b74b4b;
}

textarea {
    resize: none;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.4rem; /* Adjusted padding */
    background-color: #b74b4b; /* Button color */
    border-radius: 5px; /* Rounded corners */
    font-size: 1.6rem;
    color: white; /* Button text color */
    letter-spacing: 0.2rem;
    font-weight: 600;
    border: none; /* No border */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s ease; /* Smooth color change */
}

.btn:hover {
    background-color: #a65a5a; /* Darker on hover */
}

.form-response {
    margin-top: 1rem;
    font-size: 1.2rem;
    display: none; /* Hide initially */
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    animation: fadeIn 0.5s ease; /* Animation for appearing */
}

.form-response.success {
    background-color: #4caf50;
    color: white;
}

.form-response.error {
    background-color: #f44336;
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Validation Message Styles */
input:invalid,
textarea:invalid {
    border-color: #f44336; /* Red border for invalid fields */
}

input:invalid:focus,
textarea:invalid:focus {
    outline: none; /* Remove default outline */
}

input:required:valid:focus,
textarea:required:valid:focus {
    border-color: #4caf50; /* Green border for valid fields */
}

/* Contact Information Styles */
.contact-info {
    margin-top: 3rem; /* Space above contact info */
    padding-top: 2rem; /* Space at the top */
    border-top: 1px solid #ccc; /* Top border */
}

.contact-info h2 {
    margin-bottom: 1rem; /* Space below the heading */
}

.info-item {
    display: flex; /* Use flex for alignment */
    align-items: center; /* Center items vertically */
    margin: 0.5rem 0; /* Margin for separation */
}

.info-item i {
    font-size: 1.5rem; /* Icon size */
    margin-right: 0.5rem; /* Space between icon and text */
}

.info-item span {
    font-size: 1.2rem; /* Font size for info text */
}
