body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Sticky Header */
.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 2px solid #ddd;
    z-index: 1000;
    padding: 20px 0;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.titles h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: bold;
}

.subtitle {
    margin: 5px 0 0;
    font-size: 1.1em;
    color: #555;
}

.linkedin-btn img {
    width: 40px;
    height: 40px;
    display: block;
}

/* Project List */
.project-list {
    margin-top: 160px; /* Space for the fixed header */
    padding: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.project-entry {
    background: #fff;
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: default;
}

.project-entry h2 {
    margin-top: 0;
}

.media-container iframe {
    width: 100%;
    height: 450px;
}

.summary {
    margin-top: 15px;
}

/* Hover Expansion Logic */
.expanded-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.project-entry:hover .expanded-details {
    max-height: 500px; /* Adjust based on content length */
    padding-top: 10px;
}

/* Typewriter effect for expanding text */
.typewriter-text {
    overflow: hidden;
    border-right: 2px solid transparent; /* The cursor */
    white-space: normal;
    display: block;
    animation: typing 1.5s steps(40, end);
}

@keyframes typing {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
        filter: blur(0);
    }
}

/* Ensure details start invisible so they can "appear" */
.details-content p, .details-content li {
    opacity: 0;
}

.project-entry:hover {
    box-shadow: 0 0 20px rgba(152, 152, 219, 0.3);
    border: 1px solid rgba(152, 152, 219, 0.5);
}

/* Specific override for the dark welcome section */
.project-entry[style*="background: #2c3e50"] .details-content,
.project-entry[style*="background: #2c3e50"] .details-content p,
.project-entry[style*="background: #2c3e50"] .details-content li {
    color: #ffffff !important;
}