:root {
    --primary-color: #8b5cf6;
    --primary-gradient: linear-gradient(90deg, #8b5cf6, #4f46e5);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: transparent;
    color: white;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(to right, #000000, #100E40, #000000);
    z-index: 0;
    pointer-events: none;
}

.logo-text {
    font-weight: 700;
    color: white;
}

.launched-text {
    font-size: 6.5rem;
    font-weight: 900;
    font-style: italic;
    text-align: center;
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    background-color: white;
    text-shadow: none;
    letter-spacing: 6px;
    margin: 2rem 0;
    transform: rotate(-3deg) skew(-8deg) scale(1.05);
    display: inline-block;
    position: relative;
    font-family: 'Impact', 'Arial Black', sans-serif;
    overflow: visible;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .launched-text {
        font-size: 4rem;
        transform: rotate(-2deg) skew(-5deg) scale(1);
    }
}

.filter-btn {
    background-color: rgba(40, 40, 40, 0.75); /* Darker, more opaque background */
    border-radius: 9999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(2px); /* Add subtle blur effect */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
}

.filter-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.filter-btn.active {
    background-color: rgba(139, 92, 246, 0.7); /* More opaque purple background for active state */
    color: #d8b4fe;
    box-shadow: 0 1px 5px rgba(139, 92, 246, 0.5); /* Add glow effect */
}

.project-card {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.vote-btn {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background-color: rgba(139, 92, 246, 0.15);
}

/* Voted project styles */
.project-card.voted {
    background-color: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.1);
}

.voted-badge {
    font-size: 0.7rem;
    background-color: rgba(139, 92, 246, 0.2);
    color: #d8b4fe;
    border-radius: 9999px;
    padding: 0.1rem 0.5rem;
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
}

.vote-btn.voted {
    background-color: rgba(139, 92, 246, 0.3);
}

.vote-btn.voted:hover {
    background-color: rgba(139, 92, 246, 0.4);
}

.dropdown-select {
    background-color: transparent;
    border: none;
    color: white;
    padding-right: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    outline: none;
    text-align: center;
    position: relative;
    min-width: 120px;
}

/* Custom dropdown menu styles */
.dropdown-select i {
    transition: all 0.2s ease;
}

/* Custom dropdown item styles */
.custom-dropdown-item {
    text-align: center;
    font-size: 0.9em;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.custom-dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-dropdown-item.active {
    background-color: rgba(139, 92, 246, 0.3);
}

.submit-btn {
    background: linear-gradient(to right, #8b5cf6, #6366f1);
    border-radius: 0.375rem;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.visit-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.visit-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    object-fit: cover;
}

.project-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    object-fit: cover;
}

/* Time range filter styles */
.time-range-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-range-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.time-range-btn.active {
    background-color: #8b5cf6;
    color: white;
}

/* Group header styles */
.group-header {
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    padding: 0.75rem 1rem;
}

.group-container {
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.show-all-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
}

.show-all-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Loading overlay styles */
.loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

/* Project detail modal styles */
.project-modal {
    animation: modalFadeIn 0.3s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Fullscreen image styles */
[data-id="fullscreen-image-view"] {
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

[data-id="fullscreen-img"],
[data-id="fullscreen-project-img"] {
    cursor: zoom-out;
    transition: transform 0.3s ease;
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

[data-id="fullscreen-prev-btn"],
[data-id="fullscreen-next-btn"] {
    opacity: 0.7;
    transition: all 0.2s ease;
}

[data-id="fullscreen-prev-btn"]:hover,
[data-id="fullscreen-next-btn"]:hover {
    opacity: 1;
    background-color: rgba(139, 92, 246, 0.7);
    transform: translateY(-50%) scale(1.1);
}

/* Image gallery styles */
.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #252525;
}

.gallery-image {
    transition: opacity 0.3s ease;
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 5;
}

.gallery-nav-button:hover {
    background-color: rgba(139, 92, 246, 0.7);
}

.gallery-nav-button.prev {
    left: 10px;
}

.gallery-nav-button.next {
    right: 10px;
}

.gallery-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.gallery-thumbnail:hover {
    opacity: 0.9;
}

.gallery-thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

.gallery-caption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: center;
}

/* Project detail links */
.project-link {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.project-link:hover {
    background-color: rgba(139, 92, 246, 0.2);
}

.project-link i {
    margin-right: 8px;
}

/* Modal content */
.modal-content {
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4f46e5 #1f1f1f;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background-color: #4f46e5;
    border-radius: 4px;
}

/* Responsive styles for time range filters */
@media (max-width: 640px) {
    .time-range-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .time-range-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .time-range-title {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    /* Responsive adjustments for modal */
    .gallery-nav-button {
        width: 30px;
        height: 30px;
    }
    
    .gallery-thumbnail {
        width: 40px;
        height: 40px;
    }
}