@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #ffffff;
}

/* Background Video/GIF */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.4) 0%, rgba(20, 20, 30, 0.5) 100%);
    backdrop-filter: blur(1px);
}

/* Main Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 54px 36px;
    min-height: 100vh;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 36px;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-size: 65px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    font-weight: 400;
}

/* Filters Section */
.filters-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 25px;
    backdrop-filter: blur(12px);
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: #808080;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: #ee0247;
    box-shadow: 0 0 0 3px rgba(238, 2, 71, 0.1);
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.filter-btn {
    padding: 7px 16px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 7px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 100%);
    border-color: #ee0247;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(238, 2, 71, 0.3);
}

.filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.results-counter {
    font-size: 0.8rem;
    color: #808080;
}

.clear-filters-btn {
    padding: 7px 16px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: #ee0247;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 22px;
    margin-bottom: 54px;
}

/* Category Headers */
.category-header {
    grid-column: 1 / -1;
    margin-top: 36px;
    margin-bottom: 18px;
}

.category-header:first-child {
    margin-top: 0;
}

.category-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.category-count {
    font-size: 0.75rem;
    font-weight: 500;
    color: #808080;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-divider {
    height: 2px;
    background: linear-gradient(90deg,
        rgba(238, 2, 71, 0.5) 0%,
        rgba(255, 77, 125, 0.3) 50%,
        rgba(255, 143, 163, 0.1) 100%
    );
    border-radius: 2px;
}

/* Tool Card */
.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 25px 22px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ee0247 0%, #ff4d7d 50%, #ff8fa3 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(238, 2, 71, 0.2);
}

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

.tool-card:nth-child(1) {
    animation-delay: 0.1s;
}

.tool-card:nth-child(2) {
    animation-delay: 0.2s;
}

.tool-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.tool-icon {
    font-size: 2.2rem;
}

.status-badge {
    padding: 4px 10px;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-wip {
    background: rgba(251, 146, 60, 0.15);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-beta {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-pipelined {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tool-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 7px;
    color: #ffffff;
}

.category-tag {
    display: inline-block;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.tool-description {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #b0b0b0;
    margin-bottom: 18px;
    flex-grow: 1;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ee0247;
    background: transparent;
    border: 1px solid #ee0247;
    padding: 9px 18px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    margin-top: auto;
}

.tool-link:hover {
    background: #ee0247;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 2, 71, 0.3);
}

.tool-link-disabled {
    color: #606060;
    border-color: #404040;
    cursor: not-allowed;
}

.tool-link-disabled:hover {
    background: transparent;
    color: #606060;
    transform: none;
    box-shadow: none;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 54px 18px;
    color: #808080;
}

.empty-icon {
    font-size: 3.6rem;
    margin-bottom: 18px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.35rem;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 0.9rem;
    color: #808080;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 36px;
    color: #666;
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 36px 22px;
    }

    .title {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .filters-section {
        padding: 18px;
    }

    .filter-buttons {
        gap: 6px;
    }

    .filter-btn {
        padding: 6px 13px;
        font-size: 0.75rem;
    }

    .filter-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .category-header {
        margin-top: 28px;
        margin-bottom: 14px;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .category-count {
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .tool-card {
        padding: 22px 18px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 1.8rem;
    }

    .filters-section {
        padding: 14px;
    }

    .search-input {
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    .filter-label {
        font-size: 0.7rem;
    }

    .filter-btn {
        padding: 5px 11px;
        font-size: 0.7rem;
    }

    .category-header {
        margin-top: 24px;
        margin-bottom: 12px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .category-count {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .tool-icon {
        font-size: 1.8rem;
    }

    .tool-name {
        font-size: 1.1rem;
    }

    .status-badge {
        font-size: 0.62rem;
        padding: 3px 7px;
    }
}
