* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ECBDC4;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #000;
    min-height: 100vh;
    position: relative;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><circle cx="8" cy="8" r="7" fill="yellow" stroke="black"/><circle cx="5" cy="6" r="1" fill="black"/><circle cx="11" cy="6" r="1" fill="black"/><path d="M4 10 Q8 13 12 10" stroke="black" fill="none" stroke-width="1"/></svg>'), auto;
}

.date-header {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0;
    color: #000;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    margin-bottom: 30px;
}

.header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #000;
}

.subtitle {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.description {
    margin-bottom: 30px;
}

.description p {
    margin-bottom: 16px;
    color: #000;
    font-size: 16px;
}

.navigation {
    margin-bottom: 30px;
}

.nav-link {
    display: inline;
    color: #000;
    text-decoration: underline;
    margin-right: 20px;
    font-size: 16px;
    cursor: pointer;
}

.nav-link:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
}

.see-work-link {
    display: block;
    color: #000;
    text-decoration: underline;
    font-size: 16px;
    margin-bottom: 30px;
    cursor: pointer;
}

.see-work-link:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
}

.projects-section {
    margin-bottom: 40px;
}

.project-item {
    display: flex;
    margin-bottom: 25px;
    align-items: flex-start;
    cursor: pointer;
}

.project-item:hover {
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
    margin: 0 -8px 25px -8px;
}

.project-bullet {
    margin-right: 15px;
    font-weight: bold;
    margin-top: 2px;
}

.project-content {
    flex: 1;
}

.project-content strong {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-links a {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
}

.project-links a:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
}

.visitor-counter {
    margin-top: 40px;
    font-size: 14px;
    color: #000;
}

.floating-gifs {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.floating-gif {
    position: absolute;
    animation: float-around 12s linear infinite;
}

.floating-gif img {
    max-width: 60px;
    max-height: 40px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    object-fit: contain;
}

.gif-smiley { 
    animation-delay: 0s; 
    top: 10%; 
    left: 20%;
}
.gif-star { 
    animation-delay: 3s; 
    top: 30%; 
    right: 10%;
}
.gif-heart { 
    animation-delay: 6s; 
    bottom: 40%; 
    left: 15%;
}
.gif-note { 
    animation-delay: 9s; 
    top: 60%; 
    right: 25%;
}

@keyframes float-around {
    0% { 
        transform: translate(0px, 0px) rotate(0deg); 
        opacity: 0.7; 
    }
    15% { 
        transform: translate(80px, -60px) rotate(45deg); 
        opacity: 0.9; 
    }
    30% { 
        transform: translate(120px, 40px) rotate(90deg); 
        opacity: 0.6; 
    }
    45% { 
        transform: translate(60px, 120px) rotate(135deg); 
        opacity: 0.8; 
    }
    60% { 
        transform: translate(-40px, 100px) rotate(180deg); 
        opacity: 0.5; 
    }
    75% { 
        transform: translate(-80px, 20px) rotate(225deg); 
        opacity: 0.7; 
    }
    90% { 
        transform: translate(-20px, -40px) rotate(315deg); 
        opacity: 0.9; 
    }
    100% { 
        transform: translate(0px, 0px) rotate(360deg); 
        opacity: 0.7; 
    }
}

.sparkles {
    position: fixed;
    animation: sparkle-gentle 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 999;
}

.sparkles-1 {
    top: 25%; 
    left: 50%;
}

.sparkles-2 {
    bottom: 30%; 
    right: 30%;
}

.sparkles-3 {
    top: 70%; 
    left: 30%;
}

.sparkle-gif {
    width: 25px; 
    height: 25px;
}

.inline-gif {
    width: 20px; 
    height: 20px; 
    vertical-align: middle;
}

.small-gif {
    width: 15px; 
    height: 15px; 
    vertical-align: middle;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-subtitle {
    margin-bottom: 15px; 
    color: #666; 
    font-size: 14px;
}

.back-button {
    background: #ECBDC4; 
    border: 2px solid #000; 
    padding: 8px 16px; 
    font-weight: bold; 
    color: #000; 
    font-family: Arial, sans-serif; 
    margin-bottom: 20px; 
    cursor: pointer;
}

.back-button:hover {
    background: #000;
    color: #ECBDC4;
}

.image-modal-content {
    text-align: center;
}

.asset-modal-content {
    /* Container for asset modals */
}

.modal-image {
    max-width: 100%; 
    height: auto; 
    border: 2px solid #000; 
    margin: 10px 0;
}

.scattered-gif-img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    image-rendering: pixelated;
}

.modal-gif-img {
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    image-rendering: pixelated;
}

.sparkle-gif-dynamic {
    max-width: 30px; 
    max-height: 25px; 
    object-fit: contain; 
    image-rendering: pixelated;
}

@keyframes sparkle-gentle {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #FFFFFF;
    margin: 0;
    padding: 30px;
    border: 3px solid #000;
    width: 85%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    color: #000;
    font-family: Arial, sans-serif;
    position: relative;
    animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
    0% { 
        transform: scale(0.8);
        opacity: 0; 
    }
    100% { 
        transform: scale(1);
        opacity: 1; 
    }
}

.close {
    color: #000;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 15;
    padding: 5px;
}

.close:hover {
    background: #ECBDC4;
}

#modal-title {
    color: #000;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 24px;
}

#modal-body {
    color: #000;
    line-height: 1.6;
}

#modal-body h3 {
    color: #000;
    margin: 15px 0 10px 0;
    font-weight: bold;
}

#modal-body p {
    margin: 8px 0;
    color: #000;
}

#modal-body strong {
    color: #000;
    font-weight: bold;
}

#modal-body ul {
    list-style: none;
    margin: 10px 0;
}

#modal-body li {
    background: #F0F0F0;
    border: 2px solid #000;
    margin: 8px 0;
    padding: 12px;
    transition: all 0.3s ease;
}

#modal-body li:hover {
    background: #ECBDC4;
    transform: translateX(3px);
}

#modal-body button {
    background: #ECBDC4;
    border: 2px solid #000;
    color: #000;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif;
    margin-top: 15px;
}

#modal-body button:hover {
    background: #000;
    color: #ECBDC4;
}

.project-box {
    background: #F0F0F0;
    border: 2px solid #000;
    margin: 15px 0;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-box:hover {
    background: #ECBDC4;
    transform: translateX(3px);
}

.project-box-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.project-box-bullet {
    margin-right: 15px;
    font-weight: bold;
    margin-top: 2px;
    transition: transform 0.3s ease;
}

.project-box.expanded .project-box-bullet {
    transform: rotate(90deg);
}

.project-box-title {
    flex: 1;
    font-weight: bold;
}

.project-box-content {
    margin-left: 30px;
    display: none;
}

.project-box.expanded .project-box-content {
    display: block;
    margin-top: 10px;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.project-links a {
    color: #000;
    text-decoration: underline;
    font-size: 14px;
}

.project-links a:hover {
    text-decoration: none;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 4px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        position: relative;
        z-index: 10;
    }
    
    .header h1 {
        font-size: 36px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .date-header {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .project-item {
        flex-direction: column;
    }
    
    .project-bullet {
        margin-bottom: 5px;
    }
    
    .project-links {
        margin-top: 5px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10px;
    }
    
    .floating-gif img {
        max-width: 25px;
        max-height: 25px;
    }
    
    /* Make floating GIFs more transparent on mobile to avoid text overlap */
    .floating-gif {
        opacity: 0.4;
        z-index: 1;
    }
    
    .floating-gifs {
        z-index: 1;
    }
    
    /* Ensure scattered GIFs are also more transparent on mobile */
    .scattered-gif {
        opacity: 0.3 !important;
        z-index: 1 !important;
    }
    
    /* Make sure text content has higher z-index than GIFs */
    .container > * {
        position: relative;
        z-index: 5;
    }
    
    /* Reduce sparkles opacity on mobile too */
    .sparkles {
        opacity: 0.3;
        z-index: 1;
    }
}

.scattered-gif {
    pointer-events: none !important;
    user-select: none;
}

.modal-decoration-gif {
    pointer-events: none !important;
    user-select: none;
}

@keyframes gif-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    25% { 
        transform: translateY(-8px) rotate(2deg); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-4px) rotate(-1deg); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-6px) rotate(1deg); 
        opacity: 0.85; 
    }
}

@keyframes modal-gif-dance {
    0%, 100% { 
        transform: translate(-50%, -50%) translateX(var(--x, 0px)) translateY(var(--y, 0px)) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translate(-50%, -50%) translateX(var(--x, 0px)) translateY(var(--y, 0px)) rotate(5deg) scale(1.05); 
    }
    50% { 
        transform: translate(-50%, -50%) translateX(var(--x, 0px)) translateY(var(--y, 0px)) rotate(-3deg) scale(0.95); 
    }
    75% { 
        transform: translate(-50%, -50%) translateX(var(--x, 0px)) translateY(var(--y, 0px)) rotate(2deg) scale(1.02); 
    }
}