:root {
    --bg-color: #06070a;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(99, 102, 241, 0.25);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #d946ef;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    padding: 6rem 0;
}

/* Background Glow Effects */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -1;
    opacity: 0.06;
    pointer-events: none;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 650px;
    height: 650px;
    background: var(--accent);
    bottom: -150px;
    right: -150px;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #818cf8;
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.badge i {
    font-size: 0.7rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Filter Tabs */
.filter-wrapper {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.35rem;
    border-radius: 100px;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    color: var(--text-color);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

.filter-btn .count {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    margin-left: 0.15rem;
    transition: all 0.3s ease;
}

.filter-btn.active .count {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Card Wrapper Links */
.card-wrapper {
    text-decoration: none;
    color: inherit;
    outline: none;
    display: block;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.card-wrapper.hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
}

/* Card */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-wrapper:hover .card {
    transform: translateY(-8px);
    border-color: var(--card-border-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 
                0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 30px rgba(99, 102, 241, 0.05);
    background: rgba(255, 255, 255, 0.03);
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: #0d0f14;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-wrapper:hover .card-image {
    transform: scale(1.05);
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 7, 10, 0) 50%, rgba(6, 7, 10, 0.4) 100%);
    opacity: 0.8;
    pointer-events: none;
}

.card-number {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    pointer-events: none;
    transition: color 0.4s ease;
    font-family: monospace;
}

.card-wrapper:hover .card-number {
    color: rgba(99, 102, 241, 0.15);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    margin-bottom: 0.75rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.card-tag.dark {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-tag.light {
    background: rgba(217, 70, 239, 0.12);
    color: #f472b6;
    border: 1px solid rgba(217, 70, 239, 0.2);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
    color: var(--text-color);
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.card-wrapper:hover .card-link {
    color: var(--primary);
}

.card-wrapper:hover .card-link i {
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: 6rem;
    letter-spacing: 0.02em;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(8px);
}

.page-btn:hover {
    color: var(--text-color);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.05);
}

.page-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.page-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsiveness */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .logo {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    .logo {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 3rem 0;
    }
    .container {
        padding: 0 1.25rem;
    }
    .logo {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .filter-wrapper {
        width: 100%;
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }
    .filter-btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
}
