:root {
    --bg-color: #0A0A0A; /* Dark background */
    --text-color: #FFFFFF; /* White text */
    --accent-cyan: #31cee7;
    --accent-pink: #FF007F;
    --secondary-text: #B3B3B3;
}

.required {
    color: var(--accent-pink); /* Assuming --accent-pink is defined in your CSS */
    font-weight: bold;
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 40px auto; /* Add margin to prevent touching the header */
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    color: var(--text-color);
    text-align: center;
    position: relative;
}

/* Adjusting the contact form for screen sizes between 1000px and 760px */
@media (max-width: 1000px) and (min-width: 760px) {
    .contact-form {
        margin-top: 80px; /* Adds space on top to avoid touching the logo */
        margin-bottom: 40px; /* Adds space at the bottom */
        padding-left: 20px; /* Adds left padding */
        padding-right: 20px; /* Adds right padding */
    }
}

/* Add responsive fixes for different screen sizes */
@media (max-width: 760px) {
    .contact-form {
        padding: 30px 20px;
    }
}

/* Other styles for the contact form */
.contact-form h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.contact-form p {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 20px;
    font-weight: bold;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    text-align: left;
    font-size: 17px;
    color: var(--text-color);
}
.contact-form input, 
.contact-form textarea,
.textarea-container {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 2px solid var(--accent-cyan);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    font-size: 16px;
    display: block;
    margin: 0;
}

/* Fix for textarea bottom padding to accommodate character counter */
.contact-form textarea {
    padding-bottom: 30px;
    resize: vertical;
    min-height: 100px;
}

.contact-form input:focus,
.contact-form textarea:focus{
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 20px rgba(255, 0, 127, 0.8);
    transition: transform 0.2s, box-shadow 0.4s ease-in-out;
}
.contact-form input:not(:required):not(:placeholder-shown),
.contact-form textarea:required:valid,
.contact-form input:required:valid {
    border-color: lime;
}
.contact-form input:-webkit-autofill {
    -webkit-background-clip: text; /* Ensure text color remains readable */
    -webkit-text-fill-color: var(--text-color); /* Set text color for autofill */
}
.contact-form button {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.4s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 10px rgba(255, 0, 127, 0.5);
}

.contact-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 20px rgba(255, 0, 127, 0.8);
}

/* Social buttons inside contact-credentials */
.social-buttons {
    position: absolute; /* Position the buttons at the bottom of the contact-credentials div */
    left: 0;
    bottom: 30px; /* Adjust the distance from the bottom */
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 5px;
}

.social-buttons .social-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-buttons .social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Social buttons inside contact-credentials */
.contact-credentials {
    padding: 20px;
    border-radius: 10px;
    text-align: right;
    margin-top: 30px;
    position: relative; /* Add this to enable absolute positioning within */
}

.contact-credentials h3 {
    font-size: 1.8em;
    color: #fff;
    margin-bottom: 15px;
    font-weight: bold;

}

.contact-credentials p {
    font-size: 1.2em;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink)); /* Gradient text */
    -webkit-background-clip: text; /* Webkit support */
    -moz-background-clip: text; /* Firefox support */
    -o-background-clip: text; /* Opera support */
    background-clip: text; /* Standard property */
    color: transparent;
    margin: 10px 0;
    line-height: 1.6;
}

.contact-credentials p a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.contact-credentials p a:hover {
    color: var(--accent-pink);
}

/* Button style for the section */
.contact-credentials button {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
    color: var(--text-color);
    transition: transform 0.2s, box-shadow 0.4s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 10px rgba(255, 0, 127, 0.5);
}

.contact-credentials button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.7), 0 0 15px rgba(255, 0, 127, 0.7);
}

/* Dynamic Notification Styling */
.dynamic-notification {
    position: fixed;
    top: 20px; /* Position at the top */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
    color: white;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
}

.dynamic-notification.show {
    opacity: 1; /* Make visible */
    visibility: visible; /* Ensure it's visible */
}

.dynamic-notification.fade-out {
    opacity: 0; /* Fade out */
    visibility: hidden; /* Make invisible */
}



/* Container for textarea and character counter */
.textarea-container {
    position: relative;
    display: inline-block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
}

textarea {
    width: 100%;
    resize: none;
    padding: 10px;
    padding-bottom: 30px; /* Space for character counter */
    box-sizing: border-box;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.char-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    pointer-events: none; /* Prevent interaction */
}
