* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background-color: #0c001f;
    overflow-x: hidden;
    position: relative;
}
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.main-header, main, footer {
    position: relative;
    z-index: 2;
}
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    background: rgba(12, 0, 31, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.nav-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: #fff;
    text-decoration: none;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
}
main {
    padding: 120px 20px 60px;
    max-width: 1400px;
    margin: 0 auto;
}
.page-title {
    text-align: center;
    margin-bottom: 50px;
}
.page-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 10px;
}
.page-title p {
    font-size: 1.1rem;
    color: #e0e0e0;
    max-width: 600px;
    margin: 0 auto;
}
#fanart-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.fanart-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1 / 1;
}
.fanart-card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.fanart-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fanart-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    padding: 40px 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fanart-card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}
.fanart-card .overlay h3 { font-family: 'Poppins', sans-serif; font-size: 1.2rem; }
.fanart-card .overlay p { font-size: 0.9rem; }
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    position: relative;
    background: #1e1533;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modal-in 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
@keyframes modal-in {
    from { transform: scale(0.9) translateY(10px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
#modal-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
#modal-info {
    padding: 25px;
    text-align: center;
}
#modal-title {
    font-family: 'Poppins', sans-serif;
    margin-bottom: 5px;
    font-size: 1.5rem;
}
#modal-author {
    margin-bottom: 20px;
    color: #b9bbbe;
}
#modal-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.main-footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: #aaa;
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
        background: rgba(20, 1, 46, 0.9);
        backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 30px; transition: right 0.4s ease-in-out;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .page-title h1 { font-size: 2.5rem; }
}
