@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&display=swap");

:root {
    --rising-color: #e342e6;
    --rising-dark: #b936bc;
}

body {
    font-family: "Rajdhani", sans-serif;
    background-color: #0a0a0a;
}

.rising-gradient {
    background: linear-gradient(135deg, var(--rising-color) 0%, var(--rising-dark) 100%);
}

.cyber-border {
    position: relative;
    border: 1px solid rgba(227, 66, 230, 0.3);
}

.cyber-border::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--rising-color), transparent, var(--rising-color));
    z-index: -1;
    animation: borderAnimation 3s ease infinite;
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url("../assets/bg.png");
    background-size: cover;
    background-position: center;
}

@keyframes borderAnimation {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 0.3;
    }
}

.feature-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(227, 66, 230, 0.2);
}

.glitch-text {
    position: relative;
    animation: glitch 2.5s infinite;
}

@keyframes glitch {
    0% {
        transform: skew(0deg);
    }
    20% {
        transform: skew(4deg);
    }
    22% {
        transform: skew(-1deg);
    }
    24% {
        transform: skew(0deg);
    }
    100% {
        transform: skew(0deg);
    }
}

.logo {
    width: 180px;
    height: auto;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 50;
}

.nav-link {
    display: inline-block;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--rising-color);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.zeitpunkt-list {
    overflow-x: auto;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
}

.zeitpunkt-btn {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
    border-radius: 0.75rem;
    white-space: nowrap;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.zeitpunkt-btn:hover {
    background-color: var(--rising-color);
    color: black;
    box-shadow: 0 0 12px var(--rising-color);
}

.zeitpunkt-btn:focus,
.zeitpunkt-btn.active {
    background: rgba(227, 66, 230, 0.2);
    color: white;
    border-color: rgba(227, 66, 230, 0.2);
}

.center-card {
    position: fixed;
    transform: translate(-35%, 0%);
    max-width: 601px;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--rising-color);
    box-shadow: 0 0 30px rgba(227, 66, 230, 0.5);
}

.infoCard {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.95) 90%,
        rgba(227, 66, 230, 0.1) 100%
    );
    border: 1px solid var(--rising-color);
    padding: 2rem;
    border-radius: 1rem;
    color: #fff;
    box-shadow: 0 0 20px rgba(227, 66, 230, 0.4);
    max-width: 900px;
    margin: 2rem auto;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    scrollbar-color: var(--rising-dark) rgba(255, 255, 255, 0.05);
    scrollbar-width: thin;
}

.infoCard::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--rising-color), transparent, var(--rising-dark));
    z-index: -1;
    opacity: 0.15;
    animation: cardPulse 5s infinite linear;
}

.infoCard::-webkit-scrollbar {
    width: 8px;
}

.infoCard::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.infoCard::-webkit-scrollbar-thumb {
    background: var(--rising-dark);
    border-radius: 4px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}

.infoCard::-webkit-scrollbar-thumb:hover {
    background: var(--rising-color);
}

#cardTitle {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--rising-color);
    text-shadow: 0 0 8px var(--rising-color);
}

#cardContent {
    font-size: 1.1rem;
    line-height: 1.6;
}

#cardContent::after {
    content: "";
    display: block;
    height: 3rem;
}


.filetree-item {
    padding: 0.75rem 1rem;
    background: rgba(227, 66, 230, 0.1);
    border-left: 4px solid transparent;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 0.5rem;
}

.filetree-item:hover {
    background: rgba(227, 66, 230, 0.2);
    border-left: 4px solid var(--rising-color);
    color: #fff;
    text-shadow: 0 0 8px var(--rising-color);
}

#cardContent ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
    overflow-y: auto;
    max-height: 50vh;
}

#cardContent li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-size: 1rem;
    line-height: 1.6;
    border-left: 2px solid var(--rising-color);
}

#cardContent li::before {
    content: "⮞";
    position: absolute;
    left: 0;
    color: var(--rising-color);
    font-size: 0.8rem;
    top: 0.1rem;
}

#cardContent ul ul {
    padding-left: 1rem;
    border-left: 1px dashed rgba(227, 66, 230, 0.3);
    margin-top: 0.2rem;
}

#cardContent ul ul li::before {
    content: "→";
    color: var(--rising-dark);
    font-size: 0.7rem;
}

#cardContent ul ul ul li::before {
    content: "•";
    color: #888;
    font-size: 0.6rem;
}

h1 {
    justify-content: center;
}
