        /* Core Animations */
        @keyframes float {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
            100% { transform: translateY(0px); }
        }

        @keyframes shine {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }

        /* Base Styles */
        body {
            min-height: 100vh;
            overflow-x: hidden;
            background-color: black;
            color: white;
        }

        /* Tool Card Styles */
        .tool-card {
            background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(12, 12, 12, 0.8));
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            padding: 2rem;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            z-index: 1;
        }

        .tool-card:hover {
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
            z-index: 10;
        }

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

        .tool-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        

        /* Platform Badge */
        .platform-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.9);
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Filter Buttons */
        .filter-btn {
            padding: 0.625rem 1.25rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .filter-btn.active {
            background: rgba(163, 171, 185, 0.2);
            border-color:   rgba(163, 171, 185, 0.4);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
        }

        /* Search Input */
        .search-input {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 2.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: white;
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(59, 130, 246, 0.4);
            outline: none;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
        }


        /* Responsive Design */
        @media (max-width: 1024px) {
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }
            
            .filter-container {
                flex-direction: column;
                gap: 1rem;
            }
        }

        /* Platform Filter Styles */
        .platform-filters {
            display: flex;
            justify-content: space-between; /* Changed from center to space-between */
            align-items: center;
            gap: 1rem;
            margin: 2rem 0;
            padding: 0 1rem;
        }

        .platform-btn {
            padding: 0.75rem 1.5rem;
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(148, 163, 184, 0.2);
            color: #e2e8f0;
            border-radius: 9999px;
            font-weight: 500;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            cursor: pointer;
        }

        .platform-btn:hover {
            border-color: rgba(148, 163, 184, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(148, 163, 184, 0.1);
        }

        .platform-btn.active {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.5);
            color: #ffffff;
            box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
        }

        /* Category Filter Styles */
        .category-filters {
            display: flex;
            justify-content: space-between; /* Changed from center to space-between */
            align-items: center;
            gap: 1rem;
            margin: 2rem 0;
            padding: 0 1rem;
        }

        .category-btn {
            padding: 0.5rem 1.5rem;
            background: rgba(30, 41, 59, 0.3);
            border: 1px solid rgba(148, 163, 184, 0.1);
            color: #e2e8f0;
            border-radius: 6px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .category-btn:hover {
            background: rgba(30, 41, 59, 0.5);
        }

        .category-btn.active {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.3);
        }

        

        

        .tool-image-container {
            position: relative;
            padding-top: 56.25%; /* 16:9 aspect ratio */
            background: rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }

        .tool-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

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

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

        .tool-badges {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .badge {
            padding: 0.25rem 0.75rem;
            background: rgba(57, 60, 64, 0.66);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 9999px;
            font-size: 0.75rem;
            color: #ffffff;
        }

        .badge.premium {
            background: rgba(234, 179, 8, 0.1);
            border-color: rgba(234, 179, 8, 0.2);
            color: #fcd34d;
        }

        /* Search Bar Enhancement */
        .search-container {
            position: relative;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-input {
            width: 100%;
            padding: 1rem 1.5rem;
            padding-left: 3rem;
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 9999px;
            color: white;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            background: rgba(30, 41, 59, 0.7);
            border-color: rgba(59, 130, 246, 0.4);
            box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
        }

        /* Hero Section Styles */
        .hero-section {
            padding: 8rem 0 3rem;
            background: black; /* Simplified background */
            position: relative;
        }

        /* Remove or modify the after pseudo-element that might be causing the shadow effect */
        .hero-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 200px;
            background: linear-gradient(to bottom, transparent, rgb(0, 0, 0));
            opacity: 0.7; /* Reduce the intensity of the gradient */
        }

        /* Ensure text is above the gradient and has no shadow */
        .hero-section > div {
            position: relative;
            z-index: 1;
        }

        /* Categories and Platform Section Refinements */
        .categories-section,
        .platform-section {
            padding: 2rem 0;
            background: rgba(17, 25, 40, 0.3);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

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

        .category-title {
            font-size: 0.75rem;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 0.2em;
            margin-bottom: 1.25rem;
            font-weight: 500;
        }

        .category-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            align-items: center;
        }

        .category-btn {
            padding: 0.5rem 1.25rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            font-size: 0.875rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
        }

        .category-btn:hover {
            background: rgba(255, 255, 255, 0.05);
            transform: translateY(-1px);
        }

        .category-btn.active {
            background: rgba(59, 130, 246, 0.1);
            border-color: rgba(59, 130, 246, 0.3);
            color: #60a5fa;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
        }

        /* Platform specific styles */
        .platform-section {
            background: rgba(17, 25, 40, 0.4); /* Slightly darker than categories */
        }

        .platform-section .category-btn {
            padding: 0.625rem 1.5rem;
            border-radius: 9999px; /* Make platform buttons rounded */
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .section-container {
                padding: 0 1rem;
            }

            .category-list {
                gap: 0.5rem;
            }

            .category-btn {
                padding: 0.4rem 1rem;
                font-size: 0.8125rem;
            }
        }

        /* Tools Grid Styles */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2.5rem;
            padding: 3rem 0;
            /* Prevent layout shifts when filter panel opens */
            position: relative;
            z-index: 1;
            /* Lock grid items in place */
            contain: layout style;
            /* Ensure stable positioning */
            transform: translateZ(0);
            will-change: auto;
        }

        /* Ensure video cards maintain their grid positions */
        .video-card {
            /* Prevent any movement or reflowing */
            position: relative;
            z-index: 1;
            /* Lock transform to prevent any shifting */
            transform: translateZ(0);
            /* Ensure stable rendering */
            backface-visibility: hidden;
            perspective: 1000px;
        }

        

        

        .tool-image-wrapper {
            position: relative;
            padding-top: 56.25%;
            background: rgba(0, 0, 0, 0.4);
            overflow: hidden;
        }

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

        .tool-content {
            padding: 1.75rem;
        }


        /* Enhanced Learn More Button */
        .learn-more-btn {
            width: 100%;
            padding: 0.875rem;
            background: rgba(59, 130, 246, 0.15);
            border: 1px solid rgba(59, 130, 246, 0.25);
            border-radius: 0.75rem;
            color: #60a5fa;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .learn-more-btn:hover {
            background: rgba(59, 130, 246, 0.25);
            border-color: rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
        }

        /* Filter Section Styles */
        .filter-section {
            background: rgba(0, 0, 0, 0.1);
            
            padding: 2rem 0;
            
        }

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

        .filter-title {
            font-size: 0.875rem;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.7);
            letter-spacing: 0.2em;
            margin-bottom: 1.25rem;
            font-weight: 500;
        }

        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .filter-btn {
            padding: 0.625rem 1.25rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

        

        /* Search Section */
        .search-section {
            background: rgba(17, 25, 40, 0.3);
            padding: 2rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .search-container {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 1rem 1.5rem 1rem 3rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 0.5rem;
            color: white;
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(59, 130, 246, 0.4);
            outline: none;
            box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            width: 1.25rem;
            height: 1.25rem;
            color: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            z-index: 10;
        }

        /* Filter Box Styles */
        .filter-box {
            margin-bottom: 1rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            padding: 2rem;
        }

        .filter-box::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
            transition: 0.5s;
        }

        .filter-box:hover::before {
            left: 100%;
        }

        .filter-box:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        }

        .filter-title {
            font-size: 1.1rem;
            font-weight: 500;
            color: white;
            margin-bottom: 1.5rem;
        }

        .filter-content {
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .filter-btn {
            padding: 0.625rem 1.25rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

        

        /* Search Box Specific Styles */
        .search-box .search-input {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 2.5rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: white;
            font-size: 0.875rem;
        }

        .search-box .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.5);
        }

        /* Results Line Styles */
        .results-line {
            padding: 1.25rem 0;
            background: rgba(0, 0, 0, 0.95); /* Darker, solid background */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 80px;
            z-index: 40;
        }

        .results-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 4rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .results-text {
            font-size: 0.9375rem;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            gap: 0.375rem;
        }

        .results-text .font-medium {
            color: rgba(255, 255, 255, 1);
            font-weight: 500;
        }

        .sort-button {
            position: relative;
            z-index: 51;
        }

        /* Update Filters Panel Styles */
        .filters-panel {
            position: absolute;
            top: calc(100% + 0.5rem);
            right: 0;
            width: 95vw;
            max-width: 1450px;
            background: rgba(0, 0, 0, 0.95); /* Darker, solid background */
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            z-index: 42;
            /* Ensure filter panel doesn't affect grid layout */
            pointer-events: none;
            /* Prevent any layout interference */
            contain: layout style paint;
        }

        .filters-panel.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            /* Re-enable pointer events when visible */
            pointer-events: auto;
        }

        .filters-panel-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
            max-height: 80vh;
            overflow-y: auto;
            background: rgba(0, 0, 0, 0.98); /* Replace backdrop-filter with solid background */
        }

        

        /* Responsive styles */
        @media (max-width: 1550px) {
            .filters-panel {
                width: calc((100vw - 60px) * 0.875);
                right: 30px;
            }
        }

        @media (max-width: 1200px) {
            .filters-panel {
                width: calc((100vw - 48px) * 0.875);
                right: 24px;
            }

            .filters-panel-content {
                padding: 1.5rem;
            }

            .filter-content {
                overflow-x: auto;
                flex-wrap: nowrap;
                padding-bottom: 0.5rem;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }

            .filter-btn {
                flex-shrink: 0;
                white-space: nowrap;
            }
        }

        @media (max-width: 768px) {
            .filters-panel {
                width: calc((100vw - 32px) * 0.875);
                right: 16px;
            }

            .filters-panel-content {
                padding: 1.25rem;
                max-height: 70vh;
            }

            .filter-section {
                padding-bottom: 1.5rem;
            }

            /* Custom scrollbar for webkit browsers */
            .filter-content::-webkit-scrollbar {
                height: 4px;
            }

            .filter-content::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.1);
                border-radius: 4px;
            }

            .filter-content::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.3);
                border-radius: 4px;
            }
        }

        @media (max-width: 480px) {
            .filters-panel {
                width: calc((100vw - 24px) * 0.875);
                right: 12px;
            }

            .filters-panel-content {
                padding: 1rem;
            }

            .filter-btn {
                padding: 0.4rem 1rem;
                font-size: 0.8125rem;
            }
        }

        /* Update existing container styles */
        .filters-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 3rem 4rem;
            position: relative;
            z-index: 10;
        }

        /* Update the tools container styles */
        .tools-container {
            max-width: 1600px;
            margin: -2rem auto 0;
            padding: 0 4rem;
            background: rgba(0, 0, 0, 0.98); /* Darker, solid background */
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }

        /* Update the light effect */
        .tools-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(
                circle at center,
                rgba(255, 255, 255, 0.15),
                transparent 70%
            );
            opacity: 0;
            transform: scale(0.8);
            transition: all 0.6s ease-out;
        }

        /* Add class for when container is in view */
        .tools-container.in-view::before {
            opacity: 1;
            transform: scale(1);
        }

        /* Add this light effect style */
        .tools-container::after {
            content: '';
            position: absolute;
            top: -150%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(
                circle,
                rgba(255, 255, 255, 0.1) 0%,
                transparent 70%
            );
            opacity: 0;
            transition: opacity 0.5s ease;
            pointer-events: none;
        }

        .results-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 4rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (max-width: 1700px) {
            .filters-container,
            .tools-container,
            .results-container {
                max-width: 1400px;
            }
        }

        @media (max-width: 1024px) {
            .filters-container,
            .tools-container {
                padding: 2rem;
            }

            .hero-section {
                padding: 10rem 0 4rem;
            }
        }

        @media (max-width: 768px) {
            .filters-container,
            .tools-container,
            .results-container {
                padding: 1.5rem;
            }

            .filter-box {
                padding: 1.5rem;
            }

            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.5rem;
            }
        }

        /* Reset Button Styles */
        .reset-button {
            position: absolute;
            right: 2.5rem;
            top: 50%;
            transform: translateY(-50%);
            padding: 0.5rem 1rem;
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.3);
            border-radius: 6px;
            color: rgb(252, 165, 165);
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s ease;
            opacity: 0;
            pointer-events: none;
        }

        .reset-button.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .reset-button:hover {
            background: rgba(239, 68, 68, 0.25);
            border-color: rgba(239, 68, 68, 0.4);
            transform: translateY(-50%) translateY(-1px);
        }

        /* Update filter box to handle reset button */
        .filter-box {
            position: relative;
        }

        

        /* Tools Section Background */
        .tools-section-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 0; /* Remove the top padding */
        }

        .tools-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem 4rem; /* Move the padding here */
            position: relative;
        }

        @media (max-width: 768px) {
            .tools-section-wrapper {
                padding: 0.5rem 0 1.5rem 0;
            }
            
            .tools-container {
                margin: -1rem auto 0;
                padding: 0 1.5rem;
            }
        }

        /* Soon Badge Styles */
        .soon-badge {
            display: inline-flex;
            align-items: center;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.2));
            border: 1px solid rgba(59, 130, 246, 0.3);
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 600;
            color: #60a5fa;
            letter-spacing: 0.05em;
            margin-left: 0.5rem;
            vertical-align: middle;
            transition: all 0.2s ease;
        }

        .nav-link:hover .soon-badge {
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(96, 165, 250, 0.3));
            border-color: rgba(59, 130, 246, 0.4);
            transform: translateY(-1px);
        }

        /* Optional: Add a subtle pulse animation */
        @keyframes subtle-pulse {
            0% { opacity: 0.8; }
            50% { opacity: 1; }
            100% { opacity: 0.8; }
        }


        /* Optional: Add this if you want to adjust the panel width on different screen sizes */
        @media (max-width: 1550px) {
            .filters-panel {
                width: calc((100vw - 60px) * 0.875);
                right: 30px;
            }
        }

        @media (max-width: 1200px) {
            .filters-panel {
                width: calc((100vw - 48px) * 0.875);
                right: 24px;
            }

            .filters-panel-content {
                padding: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .filters-panel {
                width: calc((100vw - 32px) * 0.875);
                right: 16px;
            }

            .filters-panel-content {
                padding: 1.25rem;
                max-height: 70vh;
            }

            .filter-section {
                padding-bottom: 1.5rem;
            }

            /* Custom scrollbar for webkit browsers */
            .filter-content::-webkit-scrollbar {
                height: 4px;
            }

            .filter-content::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.1);
                border-radius: 4px;
            }

            .filter-content::-webkit-scrollbar-thumb {
                background: rgba(255, 255, 255, 0.3);
                border-radius: 4px;
            }
        }

        @media (max-width: 480px) {
            .filters-panel {
                width: calc((100vw - 24px) * 0.875);
                right: 12px;
            }

            .filters-panel-content {
                padding: 1rem;
            }

            .filter-btn {
                padding: 0.4rem 1rem;
                font-size: 0.8125rem;
            }
        }

        /* Update the Dropdown Panel content */
        .filters-panel-content {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }

        

        .filter-section:last-child {
            padding-bottom: 0;
            border-bottom: none;
        }

        .filter-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        

        .filter-btn {
            padding: 0.5rem 1.25rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
        }

        

        .search-input {
            width: 100%;
            padding: 0.875rem 1rem 0.875rem 2.5rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            color: white;
            font-size: 0.875rem;
        }

        .search-icon {
            position: absolute;
            left: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.5);
            pointer-events: none;
        }

        .intro-section {
            padding: 2rem 0; /* Reduced from 4rem 0 */
        }

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

        .intro-text {
            font-size: 1.125rem;
            line-height: 1.75;
            color: rgba(255, 255, 255, 0.8);
            text-align: center;
            max-width: 900px;
            margin: 0 auto;
            font-weight: 300;
            letter-spacing: 0.015em;
        }

        @media (max-width: 768px) {
            .intro-container {
                padding: 0 1.5rem;
            }
            
            .intro-text {
                font-size: 1rem;
                line-height: 1.6;
            }
        }


        .filter-section {
            position: relative;
        }



        .filter-btn {
            flex: 1;  /* Allow buttons to grow */
            min-width: max-content; /* Prevent text wrapping */
            text-align: center; /* Center the text */
            white-space: nowrap; /* Prevent text wrapping */
        }

        /* Mobile-specific adjustments */
        @media (max-width: 768px) {
            .filter-content {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
                gap: 0.5rem;
                width: 100%;
            }

            .filter-btn {
                width: 100%;
                min-width: 0; /* Allow buttons to shrink if needed */
                padding: 0.5rem 0.75rem;
                font-size: 0.875rem;
            }
        }

        /* Small mobile adjustments */
        @media (max-width: 480px) {
            .filter-content {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            }

            .filter-btn {
                padding: 0.4rem 0.5rem;
                font-size: 0.8125rem;
            }
        }

        /* Add the light effect */
        .tools-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(
                180deg,
                transparent,
                rgba(255, 255, 255, 0.03),
                transparent
            );
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        /* Add the animation */
        @keyframes lightMove {
            0% {
                top: -200%;
            }
            100% {
                top: 100%;
            }
        }



        /* Update hover effect */
        

        /* Update the Learn More button style */
        .tool-card .inline-block {
            width: 100%;
            padding: 0.875rem;
            border-radius: 8px;
            background: linear-gradient(145deg, rgb(6, 6, 6), rgb(1, 1, 1));
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
            text-align: center;
            transition: all 0.3s ease;
        }

        .tool-card .inline-block:hover {
            background: linear-gradient(145deg, rgb(24, 24, 24), rgb(15, 15, 15));
            border-color: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
        }

        /* Remove all duplicate styles and keep these consolidated versions */

        /* Tools Container Styles */
        .tools-container {
            max-width: 1600px;
            margin: -2rem auto 0;
            padding: 0 4rem;
            background: rgba(0, 0, 0, 0.98); /* Darker, solid background */
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            position: relative;
            overflow: hidden;
        }

        /* Responsive Styles */
        @media (max-width: 1700px) {
            .tools-container {
                max-width: 1400px;
            }
        }

        @media (max-width: 768px) {
            .tools-container {
                padding: 0 1.5rem;
                margin: -1rem auto 0;
            }
        }

        /* Add container for the filter buttons */
        .filter-buttons-group {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .category-filters, .platform-filters {
                flex-direction: column;
                gap: 1rem;
            }

            .filter-buttons-group {
                width: 100%;
                justify-content: center;
            }

            .reset-btn {
                width: 100%;
                text-align: center;
            }
        }

        /* Update the section title container styles */
        .section-title-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .category-title {
            margin-bottom: 0; /* Remove bottom margin since it's now handled by container */
        }

        /* Adjust responsive behavior */
        @media (max-width: 768px) {
            .reset-btn {
                top: -30px; /* Less offset on mobile */
                right: 10px;
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .section-title-container {
                flex-direction: row; /* Keep horizontal layout on mobile */
                padding: 0 1rem;
            }
        }

        /* Update reset button styles to include visibility states */
        .reset-btn {
            padding: 0.5rem 1rem;
            background: rgba(220, 38, 38, 0.1);
            border: 1px solid rgba(220, 38, 38, 0.3);
            color: rgb(248, 113, 113);
            border-radius: 6px;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
            opacity: 0;
            pointer-events: none;
        }

        .reset-btn.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .reset-btn:hover {
            background: rgba(220, 38, 38, 0.2);
            border-color: rgba(220, 38, 38, 0.4);
        }

        @media (max-width: 768px) {
            .reset-btn {
                margin-top: -2rem;
                width: auto;
            }
        }

        /* Add styles for results line transition */
        .results-line {
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }

        .mobile-menu.active ~ .results-line {
            opacity: 0;
            visibility: hidden;
        }

        /* Video Grid Layout */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            padding: 2rem 4rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Video Card Styles */
        .video-card {
            background: linear-gradient(145deg, rgba(0, 0, 0, 0.4), rgba(12, 12, 12, 0.8));
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            /* Prevent any movement or reflowing */
            position: relative;
            z-index: 1;
            /* Lock transform to prevent any shifting */
            transform: translateZ(0);
            /* Ensure stable rendering */
            backface-visibility: hidden;
            perspective: 1000px;
            /* Prevent layout shifts */
            contain: layout style;
            /* Force hardware acceleration */
            will-change: auto;
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            border-color: rgba(255, 255, 255, 0.3);
        }

        /* Thumbnail Section */
        .video-thumbnail {
            position: relative;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            background: rgba(0, 0, 0, 0.6);
            overflow: hidden;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .video-thumbnail:hover {
            transform: scale(1.02);
        }

        .video-thumbnail:hover .play-overlay {
            opacity: 1;
        }

        .video-thumbnail img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .video-card:hover .video-thumbnail img {
            transform: scale(1.05);
        }

        /* Play Button Overlay */
        .play-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .video-card:hover .play-overlay {
            opacity: 1;
        }

        /* Badges */
        .duration-badge {
            position: absolute;
            bottom: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.875rem;
            backdrop-filter: blur(4px);
        }

        .level-badge {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.8);
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            backdrop-filter: blur(4px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Content Section */
        .video-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .video-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: white;
        }

        .video-description {
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.7);
            line-height: 1.5;
            margin-bottom: 1.5rem;
        }

        /* Meta Information */
        .video-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .meta-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.875rem;
            color: rgba(255, 255, 255, 0.5);
        }

        .dot {
            font-size: 0.5rem;
        }

        .watch-btn {
            padding: 0.5rem 1rem;
            background: rgba(59, 130, 246, 0.1);
            border: 1px solid rgba(59, 130, 246, 0.2);
            border-radius: 6px;
            color: rgb(96, 165, 250);
            font-size: 0.875rem;
            transition: all 0.3s ease;
        }

        .watch-btn:hover {
            background: rgba(59, 130, 246, 0.2);
            border-color: rgba(59, 130, 246, 0.3);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: 1fr;
                padding: 1rem;
            }

            .video-title {
                font-size: 1.125rem;
            }
        }

        /* Video Modal Styles */
        .video-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.95);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .video-modal.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            width: 90%;
            max-width: 1200px;
            position: relative;
        }

        .video-container {
            position: relative;
            padding-top: 56.25%; /* 16:9 Aspect Ratio */
            background: #000;
            border-radius: 8px;
            overflow: hidden;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .close-modal {
            position: absolute;
            top: -3rem;
            right: 0;
            color: white;
            padding: 0.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-modal:hover {
            color: rgba(255, 255, 255, 0.7);
        }

        /* Tools Section Wrapper */
        .tools-section-wrapper {
            /* Ensure stable positioning */
            position: relative;
            z-index: 1;
            /* Prevent layout shifts */
            contain: layout style;
            /* Lock in place */
            transform: translateZ(0);
            /* Ensure no interference from filter panel */
            isolation: isolate;
        }

        /* Tools Container */


        /* Tools Grid */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 1;
        }

        /* Light Effect */
        .tools-container::after {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 120%;
            height: 100%;
            background: radial-gradient(
                circle at center,
                rgba(59, 130, 246, 0.15) 0%,
                transparent 70%
            );
            opacity: var(--light-opacity, 0);
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .tools-container.in-view::after {
            opacity: var(--light-opacity, 1);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .tools-container {
                padding: 0 2rem;
            }
        }

        @media (max-width: 640px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }
        }
        .text-glow {
            color: white;
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.4),
                         0 0 40px rgba(255, 255, 255, 0.2);
        }

