/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background-color: rgb(1, 1, 34);
    --text-color: #fff;
    --shadow-color: white;
    --custom-color: #FFD700;
}

/* Body Styling */
body {
    font-family: sans-serif;
    background-color: #f5f5f5; /* Light grey background for the entire page */
    color: var(--text-color);
}

/* Contact Form Styling */
.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background-color: var(--background-color); /* Dark background for form */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); /* Outer yellow shadow */
    opacity: 0;
    animation: fadeInUp 1s forwards, formShadow 1s ease-in-out forwards; /* Animation for form */
}

/* Heading Styling */
h2 {
    color: var(--custom-color); /* Custom color for headings */
    text-align: center;
    margin-bottom: 30px;
    animation: slideInFromTop 1s ease-out;
}

/* Label Styling */
label {
    display: block;
    margin-bottom: 10px;
    color: var(--custom-color); /* Custom color for labels */
}

/* Input and Textarea Styling */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.3s;
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Button Styling */
button[type="submit"] {
    background-color: var(--custom-color); /* Custom color for button */
    color: #000;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s forwards;
    animation-delay: 0.6s;
}

button[type="submit"]:hover {
    background-color: #fee555; /* Button hover effect */
}

/* Fade-in Animation */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-in from Top Animation */
@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
    }
    to {
        transform: translateY(0);
    }
}

/* Form Shadow Animation */
@keyframes formShadow {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    button[type="submit"] {
        animation-delay: 0.2s;
    }

    h2 {
        font-size: 1.8rem;
    }

    label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 15px;
    }

    h2 {
        font-size: 1.5rem;
    }

    label {
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="email"],
    textarea,
    button[type="submit"] {
        padding: 12px;
    }
}
