body {
    background-color: #f3f3f3;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

header {
    font-family: 'Brush Script MT', cursive;
    background-color: #f4f4f4;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 10%;
    width: 100%;
    top: -100px;
    animation: slideFromTop 1s forwards;
    z-index: 1000;
}

@keyframes slideFromTop {
    to {
        top: 0;
    }
}

header .name {
    padding-left: 100px;
    font-size: 1.5em;
    font-weight: bold;
}

header .name a{
    color: black;
    text-decoration: none;
}

header nav ul {
    list-style: none;
    padding-right: 100px;
    margin: 0;
    display: flex;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    position: relative;
    text-decoration: none;
    color: inherit; /* Inherits the color from the parent */
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* Distance of the underline from the text */
    width: 0;
    height: 2px; /* Thickness of the underline */
    background-color: currentColor; /* Matches the text color */
    transition: width 0.3s ease; /* Animation duration and easing */
}

header nav ul li a:hover::after {
    width: 100%; /* Expands the underline to full width on hover */
}


.contact-form {
    max-width: 600px;
    margin: 175px auto 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-form h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.contact-form p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    text-align: left;
    font-weight: bold;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: #218838;
}

.hidden {
    display: none;
    color: green;
    font-weight: bold;
    margin-top: 10px;
}


footer {
    background-color: #f4f4f4;
    padding: 10px 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 500px;
    position: fixed;
    height: 5%;
    width: 100%;
    bottom: -100px;
    animation: slideFromBottom 1s forwards;
    z-index: 1000;
}

@keyframes slideFromBottom {
    to {
        bottom: 0;
    }
}

footer p {
    margin: 0;
}
footer p a {
    text-decoration: none;
    color: black;
}

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    header .name{
        padding-left: 10px;
    }

    footer{
        display: block;
    }
}