/* CSS styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Loading overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 2px solid transparent;
    border-top: 2px solid #c74b26;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #1e1e1e;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    text-align: center; /* Center the text */
    z-index: 999; /* Ensure the header is above the nav */

}

.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-picture {
    margin-right: 20px; /* Add margin to the right */
    border: 2px solid transparent; /* Add border */
    border-radius: 50%; /* Make the image circular */
    overflow: hidden; /* Ensure the image stays within the circular shape */
}

.profile-info {
    text-align: left;
    flex: 1; /* Take remaining space */
}

.profile-info h1 {
    margin: 0;
    font-size: 2.5em;
}

.profile-info p {
    margin: 0;
    font-size: 1.2em;
}

section {
    padding: 20px;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.contact {
    background: #1e1e1e;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    box-sizing: border-box;
}

.contact h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-align: center; /* Center the text */
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    cursor: pointer;
    width: 100px; /* Increase width */
    height: 100px; /* Increase height */
    color: #e0e0e0;
}

.contact-text {
    opacity: 0;
    transform: translateY(-20px) scale(0.5); /* Start with smaller size */
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-top: 15px; /* Add margin to increase space between icon and text */
    border-bottom: 2px solid #c74b26;
    width: 190%;
    text-align: center;
    padding-bottom: 3px;
    text-decoration: none;
    color: #e0e0e0;
}

.contact-method a {
    text-decoration: none;
    color: #e0e0e0;
}

.contact-method i {
    font-size: 40px; /* Increase icon size */
    color: #e0e0e0;
}

.contact-method:hover .contact-text {
    opacity: 1;
    transform: translateY(0) scale(1); /* Grow to full size on hover */
}

footer {
    padding: 20px;
    background: #1e1e1e;
    color: #e0e0e0;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

/* Media queries for tablets and mobile devices */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .profile-container {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .profile-picture {
        margin-right: 20px;
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        overflow: hidden;
    }

    .profile-picture img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .profile-info {
        text-align: left;
    }

    .profile-info h1 {
        font-size: 2em;
    }

    .profile-info p {
        font-size: 1em;
    }

    section {
        padding: 15px;
        margin: 0 15px;
    }

    .contact {
        padding: 15px;
        margin: 0 15px 20px;
    }

    /* Remove hover effects and show contact text */
    .contact-method .contact-text {
        opacity: 1;
        transform: translateX(0);
        text-align: center; /* Center text */
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.5em;
    }

    .profile-info p {
        font-size: 0.9em;
    }

    section {
        padding: 10px;
        margin: 0 10px;
    }

    .contact {
        padding: 10px;
        margin: 0 10px 20px;
    }

    /* Remove hover effects and show contact text */
    .contact-method .contact-text {
        opacity: 1;
        transform: translateX(0);
        text-align: center; /* Center text */
    }
}
