/* Founder Quests - Modern Dashboard Styles */

/* CSS Variables for dynamic theming */
:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Header section */
.header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

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

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    animation: slideDown 1s ease-out;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: slideUp 1s ease-out 0.2s both;
}

/* Search and filter section */
.controls {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px 25px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out 0.4s both;
}

.filter-group:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.filter-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 10px;
}

select {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

select:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

select option {
    background: #1a1a2e;
    color: white;
}

/* Project grid */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Project cards */
.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--shadow-light);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    background: var(--card-hover);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.project-card h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    line-height: 1.2;
}

.project-emoji {
    font-size: 2.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.project-card:hover .project-emoji {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 400;
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover .sector-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Sector-specific styling */
.project-card[data-sector="Tech"] .sector-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-card[data-sector="Health"] .sector-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card[data-sector="Education"] .sector-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card[data-sector="Finance"] .sector-badge {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-card[data-sector="Environment"] .sector-badge {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-card[data-sector="Gaming"] .sector-badge {
    background: linear-gradient(135deg, #edbd40 0%, #fed600 100%);
}

.project-card[data-sector="DeFi"] .sector-badge {
    background: linear-gradient(135deg, #6dbd40 0%, #6ed600 100%);
}

.project-card[data-sector="Entertainment"] .sector-badge {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-card[data-sector="Community"] .sector-badge {
    background: linear-gradient(135deg, #18edea 0%, #18d6e3 100%);
}

/* Animation keyframes */
@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.project-card {
    animation: fadeIn 0.6s ease-out forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive design */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .header {
        padding: 40px 20px 30px;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Loading animation */
.loading {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
