:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #a0a0ff;
    --star-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: none;
    /* Hide default cursor for custom trail */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Cursor Trail */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    box-shadow: 0 0 10px white, 0 0 20px var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    z-index: 1;
}

header {
    text-align: center;
    margin-top: 2rem;
    animation: fadeInDown 1.5s ease-out;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #a0a0ff, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.subtitle {
    font-size: 1.2rem;
    color: #888;
    letter-spacing: 2px;
}

/* Elene Section */
.elene-section {
    width: 100%;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.elene-card {
    background: rgba(20, 20, 30, 0.6);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(160, 160, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(160, 160, 255, 0.15);
    text-align: center;
    max-width: 600px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

.elene-card:hover {
    transform: scale(1.02) rotateX(5deg);
}

.elene-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(160, 160, 255, 0.5);
}

.elene-card .meaning {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: #fff;
}

.elene-card .facts p {
    font-size: 1.1rem;
    margin: 0.8rem 0;
    color: #ccc;
    transition: color 0.3s;
}

.elene-card .facts p:hover {
    color: #fff;
    text-shadow: 0 0 5px white;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ASCII Art Section */
.ascii-section {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
    perspective: 1000px;
}

.ascii-container {
    position: relative;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ascii-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(160, 160, 255, 0.1);
    border-color: rgba(160, 160, 255, 0.3);
}

.ascii-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: inset(10% 0 10% 0);
}

.latin-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Outfit', serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff, #a0a0ff, #ffd4e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    z-index: 10;
}

.latin-text.top {
    top: 1rem;
}

.latin-text.bottom {
    bottom: 1rem;
}

pre {
    font-family: 'Roboto Mono', monospace;
    font-size: 6px;
    line-height: 6px;
    color: var(--accent-color);
    white-space: pre;
    text-align: center;
}

/* Lyrics Section */
.lyrics-section {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.lyrics-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.lyrics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(160, 160, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.lyrics-text {
    font-size: 1.2rem;
    line-height: 2;
    color: #ccc;
}

.lyrics-text p,
.lyrics-text br {
    margin-bottom: 1.5rem;
    opacity: 1;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 30, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

audio {
    outline: none;
    filter: brightness(1.2) contrast(1.1) saturate(1.3);
    width: 400px;
    height: 50px;
}

audio::-webkit-media-controls-panel {
    background: transparent;
    border-radius: 20px;
}

audio::-webkit-media-controls-enclosure {
    background: transparent;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-mute-button {
    filter: brightness(1.5);
    background-color: rgba(160, 160, 255, 0.2);
    border-radius: 50%;
}

audio::-webkit-media-controls-play-button:hover,
audio::-webkit-media-controls-mute-button:hover {
    background-color: rgba(160, 160, 255, 0.4);
    box-shadow: 0 0 10px rgba(160, 160, 255, 0.5);
}

audio::-webkit-media-controls-timeline {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 8px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--accent-color);
    text-shadow: 0 0 5px rgba(160, 160, 255, 0.5);
    font-family: 'Outfit', sans-serif;
}

audio::-webkit-media-controls-volume-slider {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

audio::-webkit-media-controls-seek-back-button,
audio::-webkit-media-controls-seek-forward-button {
    filter: brightness(1.3);
}

audio::-webkit-media-controls-toggle-closed-captions-button {
    background-color: transparent;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}