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

:root {
    --primary: #326ce5;
    --secondary: #00d4ff;
    --accent: #ff6b6b;
    --dark: #1a1a2e;
    --darker: #0f0f1e;
    --light: #f8f9fa;
    --success: #51cf66;
    --warning: #ffd43b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.stars, .twinkling {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars {
    background: #000 url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQQBAQAAABk=') repeat top center;
}

.twinkling {
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAEklEQVQIW2NkYGD4z8DAwAAACQQBAQAAABk=') repeat top center;
    animation: move-twink-back 200s linear infinite;
}

@keyframes move-twink-back {
    from { background-position: 0 0; }
    to { background-position: -10000px 5000px; }
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, rgba(50, 108, 229, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-bottom: 2px solid rgba(50, 108, 229, 0.3);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(50, 108, 229, 0.2) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideDown 0.8s ease-out;
    position: relative;
    z-index: 1;
}

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

.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitch 0.3s ease-in-out;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.tagline {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.3s both;
    position: relative;
    z-index: 1;
}

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

/* Stats Cards */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.6s both;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: rgba(50, 108, 229, 0.1);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 25px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(50, 108, 229, 0.4);
    border-color: var(--secondary);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Controls */
.controls {
    margin: 40px 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: scale(1.02);
}

.clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #ff5252;
    transform: translateY(-50%) scale(1.1);
}

.clear-btn.visible {
    display: flex;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    background: rgba(26, 26, 46, 0.8);
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 108, 229, 0.4);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

/* Contribute Banner */
.contribute-banner {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 212, 59, 0.2) 100%);
    border: 2px solid var(--accent);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contribute-banner p {
    font-size: 1.1rem;
    margin: 0;
}

.contribute-banner a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.contribute-banner a:hover {
    color: var(--light);
    border-bottom-color: var(--light);
    padding-bottom: 4px;
}

/* Resource Sections */
.resource-section {
    margin: 60px 0;
    animation: fadeInUp 0.8s ease-out;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.section-title .emoji {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.badge {
    background: linear-gradient(45deg, var(--success), var(--warning));
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
}

/* Resources Grid */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.resource-card {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: cardAppear 0.5s ease-out;
}

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

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

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

.resource-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--secondary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.resource-card h3 {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.resource-card h3::before {
    content: '🔗';
    font-size: 1.2rem;
}

.resource-description {
    color: rgba(248, 249, 250, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 10px 0;
}

.resource-card a {
    color: var(--light);
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-top: 1px solid rgba(50, 108, 229, 0.3);
    margin-top: 5px;
    transition: all 0.3s ease;
    word-break: break-all;
    font-size: 0.9rem;
    opacity: 0.7;
}

.resource-card a:hover {
    color: var(--secondary);
    padding-left: 10px;
    opacity: 1;
}

.resource-card.hidden {
    display: none;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.5s ease-out;
}

.no-results-content {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 60px 40px;
    max-width: 500px;
    margin: 0 auto;
}

.emoji-large {
    font-size: 5rem;
    display: block;
    margin-bottom: 20px;
    animation: shake 1s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.no-results h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--accent);
}

/* Footer */
footer {
    background: rgba(15, 15, 30, 0.9);
    border-top: 2px solid var(--primary);
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    margin: 10px 0;
    color: var(--light);
}

footer a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

footer a:hover {
    color: var(--light);
    border-bottom-color: var(--light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

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

/* Made with Bob */
