/* GitHub-style background */
.space-bg {
    background-color: #0d1117;
    position: relative;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1c1917;
}

::-webkit-scrollbar-thumb {
    background: #44403c;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #57534e;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: white;
}

/* Story card hover effect */
.story-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
}

/* Gallery image hover effect */
.gallery-item {
    transition: transform 0.3s ease, filter 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1.1);
}

/* Wiki sidebar active state */
.wiki-nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: white;
    color: white;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Button hover effects */
.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Mobile menu transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Partner card hover effect */
.partner-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-3px);
    border-color: white;
}
