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

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8c 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f9fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* Navigation */
.main-nav {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #546e7a;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: #f8f9fa;
    color: #667eea;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    letter-spacing: 0.3px;
}

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

/* Main Content */
main {
    padding: 60px 20px;
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
}

.category-section.hidden {
    display: none;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 32px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Project Card */
.project-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    display: block;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    border-color: #667eea;
}

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

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.project-card p {
    color: #546e7a;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #495057;
    border: 1px solid #e9ecef;
}

/* Special Card Types */
.project-card.premium {
    border-color: #667eea;
}

.project-card.premium .card-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card.recipes .card-badge {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card.game {
    border-color: #f093fb;
}

.project-card.tool {
    border-color: #4facfe;
}

.project-card.simulator {
    border-color: #43e97b;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    main {
        padding: 40px 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 20px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .card-badge {
        position: static;
        display: inline-block;
        margin-bottom: 12px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeInUp 0.5s ease backwards;
}

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

