@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@700&display=swap'); /* Raleway font */

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0; 
    background-color: #1c1c1e;
    color: #e0e0e0;
    font-family: 'Raleway', sans-serif;
}

/* Keyframes for container flicker effect with color changes */
@keyframes hueShift {
    0%,100% { box-shadow: 0 0 0.6rem #f8cdda; }      /* light pink */
    10% { box-shadow: 0 0 1.2rem #ffb3b3; }     /* pastel red */
    20% { box-shadow: 0 0 0.6rem #f5e1ff; }     /* pastel purple */
    30% { box-shadow: 0 0 0.6rem #a0e7e5; }     /* mint */
    40% { box-shadow: 0 0 1.2rem #ffefaa; }     /* soft yellow */
    50% { box-shadow: 0 0 0.6rem #b5ffb3; }     /* light green */
    60% { box-shadow: 0 0 0.6rem #ffd1dc; }     /* soft pastel pink */
    70% { box-shadow: 0 0 1.2rem #b3d1ff; }     /* light blue */
    80% { box-shadow: 0 0 0.6rem #ffc8b3; }     /* pastel orange */
    90% { box-shadow: 0 0 1.2rem #f7b3ff; }     /* pastel magenta */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
}


.name {
    font-size: 5rem;
    font-weight: bold;
    color: #f2f2f7;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    margin-top:-0.5rem;
}

.email {
    font-size: 1rem;
    position:relative;
    cursor:pointer;
    color: #a5a5a7;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    margin-top:0.8rem;
    align-self:center;
}

.copied-notice {
    position: absolute; /* Position notice absolutely relative to .email */
    bottom: -1rem; /* Position below the email text */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center alignment */
    font-size: 0.8rem;
    color: #a5ffaf;
    opacity: 0;
    transition: opacity 0.15s ease-in-out; /* Faster fade in/out */
    pointer-events: none; /* Prevent interfering with clicks */
}

.email.copied .copied-notice {
    opacity: 1; /* Show notice when email is copied */
}

.email a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.about {
    font-size: 1.3rem;
    line-height: 1.6;
    max-width: 80%;
    margin: 0 auto;
    text-align:center;
}

.profile {
    width: 210px; /* Set the width of the image */
    height: auto; /* Maintain aspect ratio */
    border-radius: 40%; /* Make the image circular */
    margin-bottom: 1rem; /* Space below the image */
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.4); /* Shadow for depth */
    animation: hueShift 18s infinite alternate;
}

.profile-container {
    display: flex; /* Use flexbox to arrange images inline */
    justify-content: center; /* Center images within the container */
    gap: 1.8rem; /* Space between images */
}

.image-container {
    display: flex; /* Use flexbox to arrange images inline */
    justify-content: center; /* Center images within the container */
    gap: 1rem; /* Space between images */
    margin-top: 2.2rem; /* Space above the image container */
}

.image-container img {
    width: 60px; /* Set a consistent width for the images */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10%; /* Optional: slightly rounded corners */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Optional: add shadow for depth */
}

.image-container img:hover{
    width:65px;
    padding-bottom:-5px;
    margin-bottom:-5px;

    /*resolve size displacement*/
    padding-left:-0.2rem;
    padding-right:-0.2rem;
    margin-left:-0.15rem;
    margin-right:-0.15rem
}

.email:hover{
    color:#ffb3b3;
}

@media (max-width: 600px) {
    .container {
        width: 86%; /* Allow the container to take more width on mobile */
        padding: 1rem; /* Reduced padding for mobile */
    }

    .name {
        font-size: 2.5rem; /* Adjust font size for smaller screens */
        text-align: center;
    }

    .email {
        font-size: 1rem; /* Adjust font size for smaller screens */
    }

    .about {
        font-size: 1.2rem; /* Adjust font size for smaller screens */
        max-width: 100%; /* Allow about text to take full width */
    }
    .profile-container {
        display: flex; /* Use flexbox to arrange images inline */
        justify-content: center; /* Center images within the container */
        gap: 1.7rem; /* Space between images */
    }

    .profile-container img {
        width: 170px; /* Set a consistent width for the images */
        height: auto; /* Maintain aspect ratio */
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.6); /* Optional: add shadow for depth */
    }
}
