/* Font Face Declaration */
@font-face {
    font-family: 'Karina';
    src: url('./Karina.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-text {
    font-family: 'Karina', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.1em;
    display: flex;
    gap: 0.1em;
}

.loading-letter {
    display: inline-block;
    transition: all 0.3s ease;
    animation: letterGlow 2s ease-in-out infinite alternate;
}

.loading-letter.resolving {
    animation: letterResolve 0.5s ease-out forwards;
}

@keyframes letterGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    100% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

@keyframes letterResolve {
    0% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    }
}

/* Hide main content initially */
.container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in, visibility 0.8s ease-in;
}

.container.show {
    opacity: 1;
    visibility: visible;
}

/* Accessibility: Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .loading-letter {
        animation: none;
    }
    
    .loading-letter.resolving {
        animation: none;
        transition: opacity 0.3s ease;
    }
    
    .loading-screen {
        transition: opacity 0.3s ease;
    }
    
    .container {
        transition: opacity 0.3s ease;
    }
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0a0a0a;
    color: #f5f5f5;
}

/* Container Layout */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    padding: 2rem;
    max-width: 100%;
}

/* Header Styles */
.header {
    flex-shrink: 0;
    text-align: center;
    margin-bottom: 2rem;
}

.artist-name {
    font-family: 'Karina', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: normal;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    letter-spacing: 0.05em;
    margin: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.album-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

/* Album Artwork */
.album-artwork {
    display: flex;
    justify-content: center;
}

.album-cover {
    width: clamp(200px, 25vw, 300px);
    height: clamp(200px, 25vw, 300px);
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8);
}

/* Album Info */
.album-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.album-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: #ffffff;
    margin: 0;
}

.release-year {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #888888;
    margin: 0;
}

.tracklist-title {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    color: #cccccc;
    margin: 0 0 0.5rem 0;
}

.songs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.songs-list li {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #aaaaaa;
    padding: 0.2rem 0;
    transition: color 0.2s ease;
}

.songs-list li:hover {
    color: #ffffff;
}

/* Footer */
.footer {
    flex-shrink: 0;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-link {
    color: #888888;
    text-decoration: none;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #ffffff;
}

.copyright {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    color: #666666;
    margin: 0;
    letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }
    
    .album-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .header {
        margin-bottom: 1.5rem;
    }
    
    .footer {
        margin-top: 1.5rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
