/* Reset some default styles */
body, h1, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Merriweather', serif;
}
.header {
    background-color: #000000;
    padding: 20px 0;
    text-align: center;
    font-weight: bold;
}

.header h1 {
    color: #fff;
    font-size: 36px;
    animation: header-fade-in 1s ease;
}

@keyframes header-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.name-container {
    text-align: center;
    margin-top: 50px;
}

.name-container h2 {
    font-size: 36px;
    color: rgb(145, 145, 145);
    animation: name-bounce 2s ease infinite, name-lightning 2s ease infinite alternate;
    background-color: #ffffff;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes name-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes name-lightning {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px rgb(0, 104, 81);
    }
    to {
        text-shadow: 0 0 20px #fff, 0 0 30px rgb(0, 116, 96);
    }
}

/* Paragraph styles */
.info-animation {
    background-color: #e6e6e6;
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
    animation: slide-in 1s ease;
    font-size: large;
    color: #000000;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact icons styles */
.icon-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.icon-container a {
    font-size: 24px;
    margin: 0 10px;
    color: #3498db;
    transition: color 0.3s ease, transform 0.3s ease;
}

.icon-container a:hover {
    color: rgb(81, 255, 0);
    transform: scale(1.1);
}

/* Contact form styles */
.contact-form-container {
    text-align: center;
    margin-top: 30px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.contact-form input[type="text"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    border-color: #3498db;
}

.contact-form button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: rgb(81, 255, 0);
}

/* Mobile-responsive styles */
@media (max-width: 768px) {
    .header h1 {
        font-size: 24px;
    }

    .name-container h2 {
        font-size: 24px;
        padding: 8px 16px; /* Smaller padding for smaller screens */
    }

    .info-animation {
        font-size: medium;
    }

    .icon-container {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .icon-container a {
        font-size: 20px;
    }

    .contact-form input[type="text"],
    .contact-form textarea {
        font-size: medium;
    }

    .contact-form button {
        font-size: medium;
    }
}