*{
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, #000428 0%, #004E92 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Comfortaa', sans-serif;
    color: #FFF;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
}

main {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#index-text{
    width: 100%;
    text-align: center;
    animation: fadeIn 2s ease-in;
    padding: 0.5rem;

    > h1{
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        font-weight: 700;
        margin-bottom: 0.5rem;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    }

    .date {
        font-size: clamp(1rem, 3vw, 1.2rem);
        color: #a8d1ff;
        margin-bottom: 0.5rem;
    }

    .je-taime {
        font-size: 2rem;
        color: #fff;
        margin-bottom: 1.5rem;
        font-weight: 600;
        text-shadow: 0 0 10px rgba(255,255,255,0.5);
        animation: pulse 2s infinite;
    }

    .message {
        font-size: clamp(1.2rem, 3.5vw, 1.4rem);
        margin-bottom: 0.5rem;
        font-style: italic;
    }

    .citation {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        color: #a8d1ff;
        font-style: italic;
        max-width: 600px;
        margin: 0 auto;
    }
}

#index-image{
    width: 100%;
    text-align: center;
    animation: fadeIn 3s ease-in;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;

    > img{
        max-height: 60vh;
        width: auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        transition: transform 0.3s ease;
        object-fit: contain;
    }

    > img:hover {
        transform: scale(1.02);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    #index-text > h1 {
        font-size: 2rem;
    }

    #index-image > img {
        height: 60vh;
    }
}

#audio-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#toggle-music {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#toggle-music:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#toggle-music .icon {
    font-size: 24px;
    color: #fff;
}

#toggle-music.playing .icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    #audio-controls {
        bottom: 15px;
        right: 15px;
    }

    #toggle-music {
        width: 40px;
        height: 40px;
    }

    #toggle-music .icon {
        font-size: 20px;
    }
}