        :root {
            --bg-dark: #0f172a;
            --bg-dark-light: #1a2847;
            --bg-light: #f8fafc;
            --bg-light-secondary: #f1f5f9;
            --bg: var(--bg-dark);
            --card-bg: rgba(30, 41, 59, 0.7);
            --card-hover: rgba(51, 65, 85, 0.9);
            --text-main: #f8fafc;
            --text-sub: #94a3b8;
            --card-bg-dark: rgba(30, 41, 59, 0.7);
            --card-hover-dark: rgba(51, 65, 85, 0.9);
            --card-bg-light: rgba(255, 255, 255, 0.8);
            --card-hover-light: rgba(248, 250, 252, 0.95);
            --text-dark: #f8fafc;
            --text-light: #0f172a;
            --text-sub-dark: #94a3b8;
            --text-sub-light: #64748b;
            --accent1: #3b82f6;
            --accent2: #8b5cf6;
            --accent3: #10b981;
            --accent4: #f59e0b;
            --accent5: #ec4899;
            --accent6: #06b6d4;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Outfit', sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--bg);
            background-image:
                radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.2) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.2) 0px, transparent 50%),
                radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.1) 0px, transparent 70%);
            color: var(--text-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem 4rem;
            position: relative;
            overflow-x: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Light Mode */
        body.light-mode {
            --bg: var(--bg-light);
            --card-bg: var(--card-bg-light);
            --card-hover: var(--card-hover-light);
            --text-main: var(--text-light);
            --text-sub: var(--text-sub-light);
            color: var(--text-main);
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f0f9ff 100%);
            background-attachment: fixed;
            background-image:
                radial-gradient(at 20% 80%, rgba(248, 113, 113, 0.1) 0px, transparent 50%),
                radial-gradient(at 80% 20%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
                radial-gradient(at 40% 40%, rgba(139, 92, 246, 0.05) 0px, transparent 60%);
        }

        body.light-mode .navbar {
            background: rgba(255, 255, 255, 0.7);
            border-color: rgba(59, 130, 246, 0.15);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        }

        body.light-mode .search-bar input {
            background: rgba(255, 255, 255, 0.9);
            border-color: rgba(59, 130, 246, 0.2);
            color: var(--text-light);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
        }

        body.light-mode .search-bar input:focus {
            background: white;
            border-color: var(--accent1);
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
        }

        body.light-mode .filter-btn {
            background: rgba(255, 255, 255, 0.7);
            border-color: rgba(148, 163, 184, 0.3);
            color: var(--text-sub-light);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        body.light-mode .filter-btn.active {
            background: linear-gradient(135deg, var(--accent1), var(--accent6));
            color: white;
            box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
        }

        body.light-mode .card {
            background: rgba(255, 255, 255, 0.85);
            border-color: rgba(59, 130, 246, 0.1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
        }

        body.light-mode .card:hover {
            background: rgba(248, 250, 252, 0.95);
            box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
            border-color: rgba(59, 130, 246, 0.3);
        }

        /* Navbar */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 1400px;
            margin-bottom: 3rem;
            padding: 1rem 2rem;
            background: rgba(15, 23, 42, 0.8);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            animation: slideDown 0.6s ease;
            z-index: 100;
            position: relative;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
            transition: all 0.4s ease;
        }

        .navbar h3 {
            background: linear-gradient(135deg, var(--accent1), var(--accent2));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 1px;
        }

        .theme-toggle {
            background: linear-gradient(135deg, var(--accent2), var(--accent5));
            border: none;
            color: white;
            padding: 0.7rem 1.5rem;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 700;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.95rem;
            box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .theme-toggle:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
        }

        .theme-toggle:active {
            transform: scale(0.95);
        }

        /* Search Bar */
        .search-bar {
            display: flex;
            gap: 0.5rem;
            width: 100%;
            max-width: 1400px;
            margin-bottom: 2rem;
            animation: fadeInUp 0.7s ease;
            z-index: 10;
            position: relative;
        }

        .search-bar input {
            flex: 1;
            padding: 1rem 1.5rem;
            background: rgba(30, 41, 59, 0.7);
            border: 2px solid rgba(96, 165, 250, 0.2);
            border-radius: 14px;
            color: var(--text-main);
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        }

        .search-bar input:focus {
            outline: none;
            border-color: var(--accent1);
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
            background: rgba(30, 41, 59, 0.95);
            transform: translateY(-2px);
        }

        .search-bar input::placeholder {
            color: rgba(148, 163, 184, 0.5);
        }

        /* Filter Tags */
        .filter-container {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            width: 100%;
            max-width: 1400px;
            margin-bottom: 2rem;
            animation: fadeInUp 0.8s ease;
            justify-content: center;
            z-index: 10;
            position: relative;
        }

        .filter-btn {
            padding: 0.7rem 1.4rem;
            background: rgba(30, 41, 59, 0.6);
            border: 1.5px solid rgba(96, 165, 250, 0.3);
            color: var(--text-sub);
            border-radius: 24px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.9rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .filter-btn:hover {
            border-color: var(--accent1);
            color: var(--accent1);
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
        }

        .filter-btn.active {
            background: linear-gradient(135deg, var(--accent1), var(--accent6));
            border-color: transparent;
            color: white;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
            transform: scale(1.05);
        }

        .filter-btn.active:hover {
            transform: scale(1.08) translateY(-3px);
        }

        header {
            text-align: center;
            margin-bottom: 2rem;
            animation: fadeInDown 1s ease backwards;
            position: relative;
            z-index: 10;
            width: 100%;
        }

        h1 {
            font-size: 3.5rem;
            font-weight: 800;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, var(--text-main), var(--text-sub));
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            letter-spacing: -1px;
        }

        h1 span {
            background: linear-gradient(135deg, #60a5fa, #c084fc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            animation: shimmer 3s infinite;
        }

        h1 span::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, transparent, #c084fc, transparent);
            border-radius: 4px;
            animation: glow 2s ease-in-out infinite;
        }

        p.subtitle {
            font-size: 1.2rem;
            color: var(--text-sub);
            font-weight: 300;
            letter-spacing: 0.5px;
        }

        /* Results counter */
        .results-info {
            width: 100%;
            max-width: 1400px;
            margin-bottom: 1.5rem;
            padding: 0.8rem 1.5rem;
            color: var(--text-sub);
            font-size: 0.95rem;
            animation: fadeInUp 0.9s ease;
            background: rgba(59, 130, 246, 0.08);
            border-left: 3px solid var(--accent1);
            border-radius: 8px;
            font-weight: 500;
        }

        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2.5rem;
            width: 100%;
            max-width: 1400px;
            z-index: 10;
            animation: fadeInUp 1s ease;
        }

        .card {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 2rem;
            text-decoration: none;
            color: var(--text-main);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 280px;
            position: relative;
            overflow: hidden;
            animation: fadeInUp 0.8s ease backwards;
            cursor: pointer;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .card.hidden {
            display: none;
        }

        /* Staggered animation delays */
        .card:nth-child(1) {
            animation-delay: 0.05s;
        }

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

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

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

        .card:nth-child(5) {
            animation-delay: 0.25s;
        }

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

        .card:nth-child(7) {
            animation-delay: 0.35s;
        }

        .card:nth-child(8) {
            animation-delay: 0.4s;
        }

        .card:nth-child(9) {
            animation-delay: 0.45s;
        }

        .card:nth-child(10) {
            animation-delay: 0.5s;
        }

        .card:nth-child(11) {
            animation-delay: 0.55s;
        }

        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
        }

        .card::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
            transition: left 0.6s ease;
            z-index: 2;
        }

        .card:hover::after {
            left: 100%;
        }

        .card:hover {
            transform: translateY(-15px) scale(1.03);
            background: var(--card-hover);
            box-shadow: 0 30px 60px rgba(59, 130, 246, 0.3);
            border-color: rgba(96, 165, 250, 0.6);
        }

        .card:hover::before {
            opacity: 1;
        }

        .card-category {
            display: inline-block;
            font-size: 0.7rem;
            padding: 0.5rem 1rem;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
            color: var(--accent1);
            border-radius: 8px;
            margin-bottom: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            border: 1px solid rgba(59, 130, 246, 0.3);
        }

        .card h2 {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            z-index: 3;
        }

        .card h2::after {
            content: '→';
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
            color: var(--accent1);
            font-size: 2rem;
            font-weight: 800;
        }

        .card:hover h2::after {
            opacity: 1;
            transform: translateX(5px);
        }

        .card p {
            color: var(--text-sub);
            font-size: 0.95rem;
            line-height: 1.7;
            flex-grow: 1;
            position: relative;
            z-index: 3;
        }

        /* Tags */
        .tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1.2rem;
            position: relative;
            z-index: 3;
        }

        .tag {
            font-size: 0.65rem;
            padding: 0.35rem 0.85rem;
            background: linear-gradient(135deg, var(--accent3), var(--accent6));
            color: white;
            border-radius: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: pulse 2.5s ease-in-out infinite;
            box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
        }

        /* Abstract shapes */
        .shape {
            position: fixed;
            filter: blur(80px);
            z-index: 1;
            border-radius: 50%;
            opacity: 0.3;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            background: #8b5cf6;
            top: -100px;
            right: -100px;
        }

        .shape-2 {
            width: 400px;
            height: 400px;
            background: #3b82f6;
            bottom: -200px;
            left: -100px;
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--accent1), var(--accent2));
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.8rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
            z-index: 99;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-8px) scale(1.1);
            box-shadow: 0 0 40px rgba(59, 130, 246, 0.7);
        }

        .back-to-top:active {
            transform: scale(0.95);
        }

        @keyframes shimmer {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.8;
            }
        }

        @keyframes glow {

            0%,
            100% {
                box-shadow: 0 0 5px rgba(196, 132, 252, 0.3);
            }

            50% {
                box-shadow: 0 0 15px rgba(196, 132, 252, 0.6);
            }
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem;
            color: var(--text-sub);
            font-size: 1.1rem;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }

            .grid-container {
                grid-template-columns: 1fr;
                padding: 0 1rem;
            }

            body {
                padding: 1rem 1.5rem;
            }

            .navbar {
                flex-direction: column;
                gap: 1rem;
            }

            .search-bar {
                margin-bottom: 1.5rem;
            }

            .filter-container {
                margin-bottom: 1.5rem;
            }
        }

        .card:hover h2::after {
            opacity: 1;
            transform: translateX(5px);
        }

        .card p {
            color: var(--text-sub);
            font-size: 0.95rem;
            line-height: 1.6;
            flex-grow: 1;
        }

        /* Tags */
        .tags {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .tag {
            font-size: 0.7rem;
            padding: 0.3rem 0.7rem;
            background: linear-gradient(135deg, #10b981, #059669);
            color: white;
            border-radius: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            animation: pulse 2s infinite;
        }

        /* Abstract shapes */
        .shape {
            position: fixed;
            filter: blur(80px);
            z-index: 1;
            border-radius: 50%;
            opacity: 0.3;
        }

        .shape-1 {
            width: 300px;
            height: 300px;
            background: #8b5cf6;
            top: -100px;
            right: -100px;
        }

        .shape-2 {
            width: 400px;
            height: 400px;
            background: #3b82f6;
            bottom: -200px;
            left: -100px;
        }

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: var(--accent1);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
            z-index: 99;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .back-to-top.show {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes pulse {
            0% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
            }

            70% {
                box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
            }
        }

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

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .no-results {
            grid-column: 1 / -1;
            text-align: center;
            padding: 3rem;
            color: var(--text-sub);
            font-size: 1.1rem;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.5rem;
            }

            .grid-container {
                grid-template-columns: 1fr;
                padding: 0 1rem;
            }

            body {
                padding: 1rem 1.5rem;
            }

            .navbar {
                flex-direction: column;
                gap: 1rem;
            }

            .search-bar {
                margin-bottom: 1.5rem;
            }

            .filter-container {
                margin-bottom: 1.5rem;
            }
        }