* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --primary-red: #DC2626;
    --dark-red: #B91C1C;
    --light-red: #FCA5A5;
    --accent-orange: #F97316;
    --pure-black: #000000;
    --dark-gray: #111827;
    --medium-gray: #374151;
    --light-gray: #6B7280;
    --lighter-gray: #9CA3AF;
    --pure-white: #FFFFFF;
    --off-white: #F9FAFB;
    --cream: #FFFBEB;
    --border-light: #E5E7EB;
    --border-medium: #D1D5DB;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
}
html {
    scroll-behavior: smooth;
    background: var(--dark-gray);
    margin: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--dark-gray);
    background-color: var(--pure-white);
    overflow-x: hidden;
    font-size: 16px;
}
/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    border-bottom-color: var(--border-medium);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--pure-black);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.preview-logo-img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--medium-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary-red);
    color: var(--pure-white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.nav-cta::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
}
/* Tools Section */
.tools-section {
    max-width: 1200px;
    margin: 0px auto;
    padding: 48px 24px;
}
.tools-header {
    text-align: center;
    margin-bottom: 48px;
    margin-top: 50px;
}
.tools-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    
}
.tools-header p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}
/* Search and Filters */
.search-container {
    margin-bottom: 40px;
}
.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 24px;
    transition: border-color 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    color: #64748b;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover {
    border-color: #DC2626;
    color: #DC2626;
}
.filter-btn.active {
    background: #DC2626;
    border-color: #DC2626;
    color: white;
}
/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
/* Modern Tool Card */
.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #DC2626;
}
.tool-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.tool-icon {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.tool-info {
    flex: 1;
    min-width: 0;
}
.tool-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}
.tool-category {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.tool-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}
.tool-link-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.tool-card:hover .tool-link-indicator {
    opacity: 1;
}
.tool-link-indicator::after {
    content: '↗';
    font-size: 12px;
    color: #64748b;
}
/* Category-specific icon backgrounds - updated to red-themed colors */
.tool-card[data-category="AI Prototyping & Building"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="AI Coding Assistants"] .tool-icon {
    background: #fee2e2;
}
.tool-card[data-category="AI Assistants"] .tool-icon {
    background: #fce7f3;
}
.tool-card[data-category="Image Generation"] .tool-icon {
    background: #fed7d7;
}
.tool-card[data-category="Video Generation"] .tool-icon {
    background: #fecaca;
}
.tool-card[data-category="Research"] .tool-icon {
    background: #fee2e2;
}
.tool-card[data-category="Writing"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="Productivity"] .tool-icon {
    background: #f0fdf4;
}
.tool-card[data-category="Meeting Assistants"] .tool-icon {
    background: #fef7cd;
}
.tool-card[data-category="Interviews & Jobs"] .tool-icon {
    background: #ede9fe;
}
.tool-card[data-category="Presentations"] .tool-icon {
    background: #fdf2f8;
}
.tool-card[data-category="Creativity"] .tool-icon {
    background: #fef3c7;
}
.tool-card[data-category="Music"] .tool-icon {
    background: #f3e8ff;
}
/* NxtWave specific styling */
.nxtwave-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #DC2626;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}
.tool-card.nxtwave {
    position: relative;
    border: 1px solid #e2e8f0;
}
.tool-card.nxtwave::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #DC2626, #B91C1C);
    border-radius: 12px 12px 0 0;
}
/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 16px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .tools-title {
        font-size: 2rem;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        justify-content: center;
    }
    .tool-card {
        padding: 16px;
    }
}

/* Hide desktop filter buttons on mobile, show dropdown */
@media (max-width: 768px) {
    #filterButtons {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block;
    }
    #mobileCategoryDropdown {
        display: block !important;
    }
}
@media (min-width: 769px) {
    #filterButtons {
        display: flex !important;
    }
    #mobileCategoryDropdown {
        display: none !important;
    }
}
.mobile-category-dropdown {
    position: relative;
    margin-top: 10px;
}
.dropdown-toggle {
    width: 100%;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}
.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 10;
    border-radius: 4px;
}
.dropdown-menu .filter-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
}
.dropdown-menu .filter-btn.active {
    background: #e0e7ff;
}
