:root {
    --main-bg-color: #070b1a;
    --accent-color: #7b3fe4;
    --accent-color-light: #9761ff;
    --text-color: #f2f2f2;
    --footer-bg-color: #0d1128;
    --header-bg-color: rgba(7, 11, 26, 0.9);
    --section-bg-color: rgba(15, 20, 40, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/api/placeholder/1920/1080');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.4);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@keyframes float {
0% { transform: translateY(0px); }
50% { transform: translateY(-20px); }
100% { transform: translateY(0px); }
}

@keyframes pulse {
0% { opacity: 0.7; }
50% { opacity: 1; }
100% { opacity: 0.7; }
}

@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

header {
    background-color: var(--header-bg-color);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(123, 63, 228, 0.3);
    box-shadow: 0 2px 15px rgba(123, 63, 228, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

header h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

nav ul {display: flex;list-style: none;}
nav ul li {position: relative;margin-left: 25px;}
nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {color: var(--accent-color-light);}
nav ul li a:hover::after {width: 100%;}
.dropdown {position: relative;}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(15, 20, 40, 0.95);
    min-width: 200px;
    border-radius: 4px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    flex-direction: column;
    z-index: 1000;
}

.dropdown-menu li {margin: 0;}
.dropdown-menu a {
    padding: 10px 15px;
    display: block;
    width: 100%;
}

.dropdown:hover .dropdown-menu {display: block;}
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-button span {
    height: 2px;
    width: 100%;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.main-content {padding-top: 100px;min-height: 100vh;}
.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--section-bg-color);
    z-index: -1;
    border-radius: 8px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section-content {
    margin-top: 40px;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.cosmic-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--accent-color-light), transparent);
    filter: blur(5px);
    opacity: 0.7;
    animation: pulse 4s infinite ease-in-out;
    z-index: -1;
}

.cosmic-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    z-index: -1;
}

.cosmic-ring {
    position: absolute;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: rotate 20s infinite linear;
    z-index: -1;
}

.project-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.project-image {
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(123, 63, 228, 0.3);
    max-width: 40%;
    height: auto;
    transition: transform 0.3s ease;
}

.project-image:hover {transform: scale(1.02);}
.project-text {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.characters-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.character-card {
    flex: 1;
    min-width: 300px;
    background: rgba(20, 25, 50, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(123, 63, 228, 0.2);
}

.character-card:hover {transform: translateY(-5px); box-shadow: 0 10px 25px rgba(123, 63, 228, 0.5);}
.character-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: top;
}

.character-info {padding: 20px;}
.character-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color-light);
}

.character-description {font-size: 1rem;line-height: 1.5;}
.comics-section {margin-top: 40px;}
.comics-title {
    font-size: 1.8rem;
    color: var(--accent-color-light);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
}

.language-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.language-card {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background: rgba(20, 25, 50, 0.7);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(123, 63, 228, 0.2);
}

.language-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(123, 63, 228, 0.5);
}

.language-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.language-name {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    background-color: rgba(123, 63, 228, 0.2);
    color: var(--text-color);
}

.world-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.world-map {
    max-width: 100%;
    height: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(123, 63, 228, 0.3);
}

.world-info {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: justify;
}

.qa-list, .facts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item, .fact-item {
    background: rgba(20, 25, 50, 0.7);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 1px solid rgba(123, 63, 228, 0.2);
}

.qa-question {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color-light);
}

#spoiler, .spoiler {
    background-color: black;
    color: black; 
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 2px 5px;
    border-radius: 3px;
}

#spoiler.revealed, .spoiler.revealed {color: white;}
#spoiler:hover, .spoiler:hover {opacity: 0.8;}
.fact-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--accent-color-light);
}

.spoiler-content {position: relative;}
.spoiler-blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.spoiler-warning {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(20, 25, 50, 0.8);
    border-radius: 6px;
    z-index: 10;
    padding: 20px;
    text-align: center;
}

.spoiler-warning p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.reveal-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.reveal-button:hover {background-color: var(--accent-color-light);transform: scale(1.05);}
.inspiration-list, .future-info, .community-info {font-size: 1.1rem;line-height: 1.6;}
.inspiration-item {margin-bottom: 15px;}
footer {
    background-color: var(--footer-bg-color);
    padding: 30px 0;
    border-top: 1px solid rgba(123, 63, 228, 0.3);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social-icons {display: flex;gap: 20px;}
.social-icons a {
    color: var(--text-color);
    font-size: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(123, 63, 228, 0.2);
    border: 1px solid rgba(123, 63, 228, 0.3);
}

.social-icons a:hover {
    color: var(--accent-color-light);
    transform: translateY(-5px);
    background-color: rgba(123, 63, 228, 0.3);
}

.bluesky-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 992px) {
    .characters-container {flex-direction: column;}
    .character-card {width: 100%;}
    .language-cards {justify-content: center;}
    .cosmic-element, .cosmic-ring {display: none;}
}

@media screen and (max-width: 768px) {
    header .container {flex-wrap: wrap;}
    .mobile-menu-button {display: flex;}
    nav {
        flex-basis: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
    }

    nav.active {height: auto;margin-top: 20px;}
    nav ul {flex-direction: column;gap: 10px;}
    nav ul li {margin-left: 0;}
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        padding-left: 20px;
    }

    .dropdown.active .dropdown-menu {display: block;}
    .section-title {font-size: 25px !important;}
    .project-description {flex-direction: column;}
    .language-card {min-width: 150px;}
    .character-card {min-width: 100%;}
}

@media screen and (max-width: 576px) {
    .section {padding: 50px 0;}
    .section-title {font-size: 1.8rem;}
    .main-content {padding-top: 70px;}
    .language-cards {flex-direction: column;align-items: center;}
    .language-card {width: 100%;max-width: 100%;}
    footer .container {padding: 0 10px;}

    .fact-title, .qa-question.revealed, .qa-question, .comics-title {font-size: 20px;}
    .fact-item p, .qa-item p, .inspiration-list, .world-info, .project-text{font-size: 15px;}
}