.about-me-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px; /* Adjust the bottom padding to make space for the footer */
    background-color: #0f0f11;
    position: relative;
    overflow: hidden;
}

.about-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0f11;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    background-size: 20px 20px;
    animation: moveBackground 37s linear infinite;
    z-index: 0;
}

.about-me-content {
    display: flex;
    flex-direction: row-reverse; /* This reverses the order of flex items */
    gap: 50px;
    position: relative;
    z-index: 1;
}

.profile-section {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 100%;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(140, 140, 142, 0.3);
}

.email-copy-container {
    display: flex;
    width: 100%; /* Make the container the same width as other buttons */
}

.email-button {
    flex-grow: 1; /* This allows the email button to take up the remaining space */
    margin-right: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.copy-button {
    width: 50px; /* Small square button */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1d;
    border: 1px solid #8c8c8e;
    color: #fff;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #8c8c8e;
    color: #0f0f11;
    transform: translateY(-2px);
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 250px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background-color: #1a1a1d;
    border: 1px solid #8c8c8e;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
}

.social-button:hover {
    background-color: #8c8c8e;
    color: #0f0f11;
    transform: translateY(-2px);
}

.social-button i {
    font-size: 20px;
}

.about-me-text {
    flex: 1;
}

.about-me-text h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #fff;
}

.about-me-text h3 {
    font-size: 24px;
    color: #8c8c8e;
    margin-bottom: 20px;
}

.about-me-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #8c8c8e;
    margin-bottom: 30px;
}

.skills-list, .experience-list {
    list-style-type: none;
    padding: 0;
}

.skills-list li {
    display: inline-block;
    background: #1a1a1d;
    color: #8c8c8e;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.skills-list li:hover {
    background: #8c8c8e;
    color: #0f0f11;
}

.experience-list li {
    margin-bottom: 30px;
}

.experience-list h4 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 5px;
}

.experience-list p {
    font-size: 14px;
    color: #8c8c8e;
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    background-color: #0f0f11;
    padding: 20px 0;
    position: relative;
    width: 100%;
    border-top: 1px solid #8c8c8e;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.location {
    font-size: 14px;
    color: #8c8c8e;
}

.social-links a {
    color: #8c8c8e;
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-me-content {
        flex-direction: column-reverse; /* Stack elements vertically on mobile, image on top */
    }

    .profile-section {
        flex: 0 0 auto;
        max-width: 250px;
        margin: 0 auto 30px;
    }

    footer .container {
        flex-direction: column;
        align-items: center;
    }

    .location {
        margin-bottom: 10px;
        text-align: center;
    }

    .social-links {
        margin-top: 10px;
    }

    .social-links a {
        margin: 0 10px;
    }
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}