/* CSS for the photogallery */

.header {
    text-align: center;
    padding: 60px 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    margin-top: 80px;
}

.header h1 {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 100%;
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
}

.timeline-item:nth-child(odd) { animation-delay: 0.2s; }
.timeline-item:nth-child(even) { animation-delay: 0.4s; }

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

.timeline-content {
    width: 40%;
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 92, 246, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 60%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 60%;
}

.timeline-date {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    z-index: 1;
}

.event-title {
    font-size: 1.5rem;
    color: #8b5cf6;
    margin-bottom: 15px;
    font-weight: bold;
}

.event-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.event-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(139, 92, 246, 0.2);
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #a855f7;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    height: fit-content;
    background: transparent;
}

.modal-content img {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 95vh;
    object-fit: scale-down;
    display: block;
    border-radius: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    transition: all 0.2s ease;
}

.close:hover {
    color: #8b5cf6;
    transform: scale(1.2);
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .header h1 { font-size: 2.5rem; }
    .timeline::before { left: 30px; }
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
    }
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
}
