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

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --accent-red: #dc2626;
    --accent-red-dark: #991b1b;
    --accent-red-light: #ef4444;
    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --border-color: #2a2a2a;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    z-index: 1000;
    transition: transform var(--transition-speed) ease;
}

.logo {
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    margin: 0.3rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-red);
    transform: scaleY(0);
    transition: transform var(--transition-speed) ease;
}

.nav-item:hover {
    background-color: var(--bg-tertiary);
    transform: translateX(5px);
}

.nav-item:hover::before {
    transform: scaleY(1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.15) 0%, transparent 100%);
    border-left: 3px solid var(--accent-red);
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: transform var(--transition-speed) ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2);
}

.nav-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Main Content */
.content {
    margin-left: 260px;
    padding: 3rem;
    min-height: 100vh;
}

.section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    width: calc(100% - 260px - 6rem);
    animation: fadeOut 0.5s ease forwards;
}

.section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    animation: fadeIn 0.5s ease forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

/* Participants Section */
.participant-count {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent-red);
    border-radius: 8px;
    display: inline-block;
}

.participants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.participant-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.participant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.participant-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.participant-card:hover::before {
    transform: scaleX(1);
}

.participant-avatar {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.participant-card:hover .participant-avatar {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.participant-name {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    transition: color var(--transition-speed) ease;
}

.participant-card:hover .participant-name {
    color: var(--accent-red-light);
}

/* Founder/Special Members Badge */
.participant-card.founder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #d97706 100%);
    opacity: 0.7;
    border-radius: 0 0 10px 10px;
}

.participant-card.founder:hover::after {
    opacity: 1;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Old card styles for other sections */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.role {
    color: var(--accent-red-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline for Builds */
.timeline {
    position: relative;
    padding-left: 3rem;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-red) 0%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -3.4rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--accent-red);
    }
    50% {
        box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 10px rgba(220, 38, 38, 0.3);
    }
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all var(--transition-speed) ease;
}

.timeline-content:hover {
    border-color: var(--accent-red);
    transform: translateX(10px);
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.date {
    color: var(--accent-red-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    margin: 1rem 0;
    line-height: 1.6;
}

.btn-download {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: var(--text-primary);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

.btn-download:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* Carousel Gallery */
.carousel-container {
    position: relative;
    margin: 3rem auto;
    max-width: 1400px;
    overflow: hidden;
    padding: 3rem 0;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 3rem;
}

.carousel-slide {
    flex: 0 0 auto;
    width: 700px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.4;
    transform: scale(0.8);
    filter: brightness(0.5);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
    z-index: 10;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.carousel-slide.active img {
    border-color: var(--accent-red);
    box-shadow: 0 15px 50px rgba(220, 38, 38, 0.4);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    color: var(--text-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.3);
}

.carousel-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-indicator:hover {
    background: var(--border-color);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    border-color: var(--accent-red);
    width: 40px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.5), 0 0 30px rgba(220, 38, 38, 0.3);
    animation: pulse-indicator 2s ease-in-out infinite;
}

@keyframes pulse-indicator {
    0%, 100% {
        box-shadow: 0 0 15px rgba(220, 38, 38, 0.5), 0 0 30px rgba(220, 38, 38, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.7), 0 0 40px rgba(220, 38, 38, 0.5);
    }
}

/* Activity Feed */
.activity-feed {
    margin-top: 2rem;
}

.activity-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
}

.activity-item:hover {
    border-color: var(--accent-red);
    transform: translateX(10px);
}

.activity-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.activity-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.activity-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.time {
    font-size: 0.85rem;
    color: var(--accent-red-light);
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: block;
}

.link-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.2);
}

.link-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.link-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.link-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 240px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .content {
        margin-left: 0;
        padding: 2rem 1rem;
    }
    
    .section {
        width: calc(100% - 2rem);
    }
    
    .cards-grid,
    .gallery-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .participants-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* Rotating mushroom (bottom-right) - rotates on scroll */
.mushroom-spinner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    z-index: 9999;
    filter: drop-shadow(0 0 10px rgba(220, 38, 38, 0.3));
    transition: transform 0.1s linear;
}

.mushroom-spinner img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    transform-origin: center center;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-red-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red);
}
