/* Lokale Fonts (statt Google Fonts CDN → DSGVO-konform) */
@font-face {
    font-family: 'Cinzel';
    src: url('fonts/Cinzel-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 300 600;
    font-display: swap;
}

:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #8a0000;
    --accent-hover: #b30000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-color);
    /* Fallback */
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

main,
footer {
    position: relative;
    z-index: 10;
}

#bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120vh;
    /* Taller than viewport for parallax movement */
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('background.jpg') no-repeat center center;
    background-size: cover;
    z-index: 0;
    pointer-events: none;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle particle effect */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

/* Prevent text color change on hover for buttons and cards */
.cta-button:hover,
.link-btn:hover,
.artist-card:hover,
.artist-card-link:hover,
.artist-card a:hover,
.discord-link:hover {
    color: #fff !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header/Nav */
header {
    padding: 20px 0;
    background: rgba(5, 5, 5, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(138, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    /* Add subtle overlay for text readability */
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 2s ease-out 0.5s forwards;
}

.cta-button {
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all var(--transition-speed);
    opacity: 0;
    animation: fadeIn 2s ease-out 1s forwards;
}

.cta-button:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 30px rgba(138, 0, 0, 0.5), 0 0 60px rgba(138, 0, 0, 0.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Artists Grid */
.artists-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 20px auto 0;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.artist-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.artist-card {
    display: block;
    /* Ensure it behaves like a block for anchor tags */
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0;
    border-radius: 4px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.artist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(138, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.artist-card-link {
    will-change: transform;
}

.artist-image {
    width: 100%;
    height: 300px;
    background-color: #111;
    /* Placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.artist-image img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    transition: transform 0.5s ease;
    will-change: transform;
}

.artist-info {
    padding: 20px;
    text-align: center;
}

.artist-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.artist-genre {
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Linktree Page */
.linktree-container {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    padding: 0 20px;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #222;
    margin: 0 auto 20px;
    border: 2px solid var(--accent-color);
    overflow: hidden;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.linktree-title {
    margin-bottom: 10px;
}

.linktree-bio {
    color: #aaa;
    margin-bottom: 40px;
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.link-btn i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.link-btn:hover i {
    transform: scale(1.2);
}

/* Platform-specific icon colors */
.link-btn i.fa-soundcloud {
    color: #ff5500;
}

.link-btn i.fa-spotify {
    color: #1DB954;
}

.link-btn i.fa-instagram {
    color: #E4405F;
}

.link-btn i.fa-youtube {
    color: #FF0000;
}

.link-btn i.fa-tiktok {
    color: #00f2ea;
}

.link-btn i.fa-twitch {
    color: #9146FF;
}

.link-btn i.fa-facebook {
    color: #1877F2;
}

.link-btn i.fa-apple {
    color: #FC3C44;
}

.link-btn i.fa-paypal {
    color: #00457C;
}

.link-btn i.fa-heart {
    color: #E91E63;
}

.link-btn i.fa-shopping-bag {
    color: #FF9800;
}

.link-btn i.fa-discord {
    color: #5865F2;
}

.link-btn i.fa-envelope {
    color: #FFD43B;
}

.link-btn i.fa-music {
    color: #FF0055;
}

.link-btn i.fa-link {
    color: var(--accent-color);
}

.link-btn:hover i {
    color: #fff !important;
}

.link-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(138, 0, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Discord Link Styling */
.discord-link {
    color: #5865F2 !important;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.discord-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
}

/* Artist card name glow on hover */
.artist-card:hover .artist-name,
.artist-card-link:hover .artist-name {
    text-shadow: 0 0 15px rgba(138, 0, 0, 0.5);
}

/* Smooth image zoom on card hover */
.artist-card:hover .artist-image img,
.artist-card-link:hover .artist-image img {
    transform: scale(1.05);
}

.artist-image img {
    transition: transform 0.5s ease;
}

/* Platzhalter-Span für fehlende Bilder */
.artist-image span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #444;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Toggle Button (Default hidden on desktop) */
.menu-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}


/* --- New Animation Styles --- */

/* Lenis Smooth Scroll */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
    transform: translate(-50%, -50%);
    display: none;
    /* Hidden by default until JS active */
}

@media (min-width: 769px) {
    .cursor {
        display: block;
    }
}

/* Text Reveal Utilities */
.reveal-text {
    overflow: hidden;
    /* display: block; or inline-block depending on context */
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

/* Parallax Containers */
.artist-image {
    overflow: hidden;
    position: relative;
}

/* Note: .artist-image img styles are defined above in Artists Grid section */

/* Page Transition Overlay */
.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    /* Matches bg-color */
    z-index: 10000;
    pointer-events: none;
    opacity: 1;
    /* Start visible (covering page) then fade out */
}