/* Existing styles... */

/* New styles for animations and enhancements */
@keyframes drawName {
    0% { stroke-dashoffset: 100%; }
    100% { stroke-dashoffset: 0; }
}

#name {
    font-size: 2rem; 
    text-transform: none; 
    cursor: pointer; 
}

@keyframes fadeInCreative {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

#creativeTitle {
    animation: fadeInCreative 2s ease-out 1s forwards;
    opacity: 0;
}
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Bai Jamjuree', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}
#overlay {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: transparent;
}
#centerContent {
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    max-width: 1200px;
}
#name, #tagline, #creativeTitle {
    transition: all 0.3s ease;
    margin: 10px 0;
}
#name { 
    font-size: 2rem; 
    text-transform: none; 
    cursor: pointer; 
}
#creativeTitle {
    font-size: 1.2rem;
    margin-top: 5px;
}
#tagline { 
    font-size: 2.5rem; 
    transition: all 0.3s ease;
}
#finePrint, #learningInfo {
    font-size: 0.8rem;
    opacity: 0;
    margin-top: 5px;
    max-width: 80vw;
    text-align: center;
    transition: opacity 0.5s ease;
}
#eyeballContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
    position: relative; 
    z-index: 100; 
}
#eyeball {
    width: 80px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 5s infinite;
}
#eyeball:hover { transform: scale(1.2); }
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}
#eyeball::after {
    content: "Click to expand";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#eyeball:hover::after {
    opacity: 1;
}

#nebulaContainer {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 200px; 
    height: 200px;
    z-index: 100; 
}

#contentWrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-top: 40px; 
}
#softwareList, #skillTree {
    width: 45%;
    text-align: left;
    font-style: italic;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
}
#skillTree { text-align: right; }
#softwareList h3, #skillTree h3 { 
    margin-bottom: 10px;
    color: rgb(255, 221, 221);
}
#softwareList ul, #skillTree ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
#softwareList li, #skillTree li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}
#skillTree li {
    background-color: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}
#softwareList li {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

#gifContainer {
    display: flex;
    justify-content: space-around; 
    align-items: center; 
    width: 100%;
    margin: 20px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    flex-wrap: wrap; 
}
.gifPlaceholder {
    flex: 1 0 300px; 
    max-width: 400px; 
    height: auto; 
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem; 
    color: rgba(255, 255, 255, 0.5);
    margin: 10px;
    z-index: 2;
    position: relative;
    padding: 10px; 
}
.gifPlaceholder img, .gifPlaceholder png {
    width: 100%;
    height: auto;
}
.gifPlaceholder::before {
    content: attr(data-label);
    position: absolute;
    top: -20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}
#gifBackground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: 1;
}
#socialLinks {
    margin-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex; 
    flex-direction: column; /* Changed to column for vertical layout */
    align-items: center; 
    width: 100%; 
}
.socialIcon {
    width: 40px;
    height: 40px;
    cursor: pointer;
    fill: rgb(255, 255, 255);
}

/* You might want to add this for better spacing */
#socialIcons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#animationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it's below other content */
    opacity: 0.5;
    background: transparent;
}
@media (max-width: 768px) {
    #name { font-size: 3rem; }
    #tagline { font-size: 2rem; }
    #gifContainer { flex-direction: column; align-items: center; }
    .gifPlaceholder { margin-bottom: 10px; }
    #contentWrapper { flex-direction: column; align-items: center; }
    #softwareList, #skillTree { width: 100%; text-align: center; margin-bottom: 20px; }
}
@media (max-width: 480px) {
    #name, #tagline { font-size: 2rem; }
    #eyeball { width: 80px; height: 80px; }
}
#enterExitContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
    padding-top: 10px;
    z-index: 100; 
}
#enterExit {
    font-size: 1.5rem;
    margin-top: 5px;
}

#hal9000Rect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 10px;
    border: 2px solid rgb(255, 255, 255); 
    z-index: 10; 
}

#wideGifContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative; 
}
#wideGifContainer::-webkit-scrollbar {
    display: none; 
}
#wideGifContainer .gifPlaceholder {
    width: 500px; 
    max-width: 90%;
    margin-bottom: 20px; 
}
#wideGifContainer .gifPlaceholder img {
    width: 100%;
    height: auto; 
}
#wideGifContainer .gifPlaceholder:last-child iframe {
    width: 315px; /* Adjust width as needed */
    height: 560px; /* Adjust height as needed */
}

#aboutMeSection {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 20px; /* Add horizontal padding */
    max-width: 600px; /* Limit maximum width for better readability */
    margin-left: auto;
    margin-right: auto;
}

#aboutMeSection p {
    line-height: 1.6; /* Improve line spacing for readability */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #aboutMeSection {
        padding: 0 15px; /* Slightly reduce padding on smaller screens */
    }
}

/* Add this CSS to remove the white stroke around the iframe */
iframe {
    border: none;
}

/* New styles for the "About Me" section */
.about-me-container {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    padding: 20px; /* Add some padding */
    border-radius: 10px; /* Rounded corners */
    max-width: 600px; /* Optional: limit the maximum width */
    margin: 0 auto; /* Center the container */
    text-align: center; /* Center the text */
    color: #ffffff; /* Ensure the text color is white for readability */
} 