/* =================================================================
   HACKHINT SECURITY TOOLS - MAIN STYLESHEET
   Version: 2.1
   Updated: November 2025
   ================================================================= */

/* =================================================================
   1. FONTS & IMPORTS
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');


/* =================================================================
   2. CSS VARIABLES (DESIGN TOKENS)
   ================================================================= */
:root {
    /* Primary Colors */
    --primary-green: #00ff88;
    --primary-blue: #00d4ff;
    --danger-red: #ff0055;
    --warning-yellow: #ffd93d;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    
    /* Background Colors */
    --background-dark: #000000;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* =================================================================
   3. GLOBAL RESET & BASE STYLES
   ================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    font-display: swap;
}

/* Performance optimizations */
img, video {
    max-width: 100%;
    height: auto;
}


/* =================================================================
   4. CUSTOM SCROLLBAR STYLING - THEME MATCHED ⭐ NEW
   ================================================================= */

/* Firefox Global Scrollbar */
* {
    scrollbar-color: rgba(0, 255, 136, 0.5) transparent;
    scrollbar-width: thin;
}

/* Chrome, Safari, Edge - Global Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
    background-image: linear-gradient(180deg, rgba(20, 20, 30, 0.8), rgba(10, 10, 20, 0.9));
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 0 8px rgba(0, 255, 136, 0.3);
    transition: var(--transition-smooth);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-green));
    box-shadow: inset 0 0 12px rgba(0, 255, 136, 0.5), 0 0 10px rgba(0, 255, 136, 0.4);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.7), 0 0 15px rgba(0, 255, 136, 0.5);
}

/* Scrollbar Corner */
::-webkit-scrollbar-corner {
    background: rgba(0, 0, 0, 0.3);
}

/* Textarea Scrollbars */
textarea::-webkit-scrollbar {
    width: 10px;
}

textarea::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    border-radius: 8px;
    box-shadow: 0 0 6px rgba(0, 255, 136, 0.35);
}

textarea::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-green));
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Input Fields Scrollbars */
input[type="text"]::-webkit-scrollbar,
input[type="email"]::-webkit-scrollbar,
input[type="password"]::-webkit-scrollbar {
    width: 8px;
}

input[type="text"]::-webkit-scrollbar-thumb,
input[type="email"]::-webkit-scrollbar-thumb,
input[type="password"]::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    border-radius: 6px;
}

/* Container Scrollbars (divs with overflow) */
div::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

div::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

div::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

div::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
}

/* List/Container Scrollbars */
.bulk-passwords::-webkit-scrollbar,
.results::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.bulk-passwords::-webkit-scrollbar-track,
.results::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.bulk-passwords::-webkit-scrollbar-thumb,
.results::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--primary-blue));
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.bulk-passwords::-webkit-scrollbar-thumb:hover,
.results::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-blue), var(--primary-green));
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}


/* =================================================================
   5. BACKGROUND EFFECTS & ANIMATIONS
   ================================================================= */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
    will-change: transform;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
}

.orb-1 {
    background: var(--primary-green);
    top: -200px;
    left: -200px;
    animation: float 15s ease-in-out infinite;
}

.orb-2 {
    background: var(--primary-blue);
    bottom: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(100px, 100px); }
}


/* =================================================================
   6. HAMBURGER MENU - EXACT CVE HUB STYLE
   ================================================================= */

/* Menu Toggle Button (Bottom Right Corner) */
.menu-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1001;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 212, 255, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 40px rgba(0, 255, 136, 0.25),
        0 0 0 0 rgba(0, 255, 136, 0.5);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 255, 136, 0.25),
            0 0 0 0 rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 
            0 10px 50px rgba(0, 255, 136, 0.35),
            0 0 0 8px rgba(0, 255, 136, 0);
    }
}

.menu-toggle:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.25));
    border-color: #00ff88;
    transform: scale(1.08);
    animation: none;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #00ff88;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.menu-toggle.active {
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.15), rgba(255, 107, 53, 0.15));
    border-color: #ff0055;
    animation: none;
}

.menu-toggle.active span {
    background: #ff0055;
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 420px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(0, 255, 136, 0.2);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
}

.sidebar.active {
    right: 0;
}

/* Sidebar Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 136, 0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 136, 0.5);
}

/* Sidebar Hero */
.sidebar-hero {
    padding: 40px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.05) 0%, transparent 100%);
    text-align: center;
}

.sidebar-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.sidebar-logo svg {
    width: 36px;
    height: 36px;
    stroke: #000;
    stroke-width: 2;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
    line-height: 1.2;
}

.sidebar-subtitle {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

/* Sidebar Section */
.sidebar-section {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section-icon {
    width: 16px;
    height: 16px;
    stroke: #00ff88;
    stroke-width: 2;
}

/* Sidebar Tool Card */
.sidebar-tool-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-tool-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: #00ff88;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar-tool-card:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateX(-5px);
    color: #fff;
}

.sidebar-tool-card:hover::before {
    transform: scaleY(1);
}

.sidebar-tool-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #00ff88;
}

.sidebar-tool-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

.sidebar-tool-content {
    flex: 1;
    min-width: 0;
}

.sidebar-tool-title {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-tool-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Sidebar Quick Link */
.sidebar-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #aaa;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-quick-link:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    color: #00ff88;
    transform: translateX(-3px);
}

.sidebar-quick-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
}

.sidebar-social-title {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.sidebar-social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sidebar-social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.sidebar-social-link:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-3px);
}

/* Responsive Menu */
@media (max-width: 768px) {
    .menu-toggle {
        width: 56px;
        height: 56px;
        bottom: 24px;
        right: 24px;
    }
    
    .menu-toggle span {
        width: 24px;
        height: 2.5px;
    }
    
    .sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .menu-toggle {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }
    
    .menu-toggle span {
        width: 22px;
    }
}


/* =================================================================
   7. CONTAINER & LAYOUT
   ================================================================= */
.container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}


/* =================================================================
   8. HEADER SECTION
   ================================================================= */
header {
    text-align: center;
    padding: 60px 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 60px;
}

.logo-section {
    margin-bottom: 30px;
}

.logo-icon-large {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    box-shadow: 
        0 0 50px rgba(0, 255, 136, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 25px;
    animation: logoGlow 3s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.logo-icon-large:hover {
    transform: scale(1.05) rotate(5deg);
}

@keyframes logoGlow {
    0%, 100% { 
        box-shadow: 0 0 50px rgba(0, 255, 136, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3); 
    }
    50% { 
        box-shadow: 0 0 80px rgba(0, 255, 136, 0.7), 0 0 120px rgba(0, 212, 255, 0.4), 0 20px 40px rgba(0, 0, 0, 0.3); 
    }
}

h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -3px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    line-height: 1.1;
}

.subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.header-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}


/* =================================================================
   9. BUTTONS
   ================================================================= */
.btn {
    padding: 16px 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    border: none;
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: #000;
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}


/* =================================================================
   10. STATISTICS BAR
   ================================================================= */
.stats-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsive - Tablet */
@media (max-width: 768px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 30px 24px;
        margin-bottom: 40px;
    }
    
    .stat-item:nth-child(2)::after {
        display: none;
    }
    
    .stat-number {
        font-size: 42px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* Mobile Responsive - Phone */
@media (max-width: 480px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px 16px;
        margin-bottom: 30px;
        border-radius: 16px;
    }
    
    .stat-item::after {
        display: none;
    }
    
    .stat-number {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 10px;
        line-height: 1.3;
    }
}


/* =================================================================
   11. SEARCH & FILTER SECTION
   ================================================================= */
.search-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 60px;
}

.search-box {
    position: relative;
    margin-bottom: 30px;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 20px;
}

.search-input {
    width: 100%;
    padding: 22px 25px 22px 70px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    outline: none;
    transition: var(--transition-smooth);
}

.search-input::placeholder {
    color: #666;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-green);
    border-color: rgba(0, 255, 136, 0.3);
}

.filter-btn.active {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-section {
        padding: 30px 24px;
        margin-bottom: 40px;
        border-radius: 20px;
    }
    
    .search-box {
        margin-bottom: 24px;
    }
    
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 10px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .filter-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    /* Scrollbar styling */
    .filter-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-tabs::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 2px;
    }
    
    .filter-tabs::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 136, 0.3);
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 24px 16px;
        border-radius: 16px;
    }
    
    .search-input {
        padding: 18px 20px 18px 60px;
        font-size: 15px;
    }
    
    .search-icon {
        left: 20px;
        font-size: 18px;
    }
    
    .filter-btn {
        padding: 9px 18px;
        font-size: 11px;
    }
}


/* =================================================================
   12. TOOLS GRID & CARDS
   ================================================================= */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.tool-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tool-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-12px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 40px var(--tool-color, rgba(0, 255, 136, 0.2));
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.tool-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--tool-color, #00ff88), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: source-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover .tool-icon {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1) rotate(5deg);
}

.tool-card:hover .tool-icon::after {
    opacity: 1;
}

.tool-icon svg,
.menu-item-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tool-icon-svg {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon-svg svg {
    stroke: var(--tool-color, currentColor);
}

.tool-info {
    flex: 1;
}

.tool-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.tool-category {
    font-size: 12px;
    color: var(--tool-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--tool-color) 15%, transparent);
    border-radius: 50px;
    display: inline-block;
}

.tool-description {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 15px;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tool-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-tag {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
}

.tool-status {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(0, 255, 136, 0.15);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}


/* =================================================================
   13. NO RESULTS MESSAGE
   ================================================================= */
.no-results {
    text-align: center;
    padding: 100px 20px;
    color: #666;
    display: none;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 25px;
}


/* =================================================================
   14. ENHANCED FOOTER - EXACT CVE HUB STYLE (FINAL VERSION)
   ================================================================= */

/* ENHANCED FOOTER STYLES */
.enhanced-footer {
    position: relative;
    z-index: 2;
    margin-top: 80px;
    padding: 0 20px;
    padding-bottom: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 60px 0;
    border-top: 1.5px solid rgba(255, 255, 255, 0.06);
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-brand-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.footer-brand-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-last-update {
    font-size: 12px;
    color: #777;
    margin-top: 15px;
}

.footer-last-update strong {
    color: #00ff88;
}

/* Footer Columns */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    width: fit-content;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.footer-link i,
.footer-link svg {
    width: 18px;
    min-width: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00ff88;
    transform: translateX(5px);
}

.footer-link:hover i,
.footer-link:hover svg {
    color: #00ff88;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
}

/* Footer Bottom Section - OPTIMIZED SPACING */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: #666;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.footer-copyright p {
    margin: 0 0 8px 0;
    line-height: 1.6;
}

.cve-count-highlight {
    color: #00ff88;
    font-weight: 700;
}

.footer-nvd-credit {
    margin-top: 5px;
    opacity: 0.7;
    font-size: 12px;
}

.footer-nvd-credit strong {
    font-weight: 600;
}

/* Social Icons - LEFT SIDE TO AVOID HAMBURGER */
.footer-social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    order: -1;
    position: relative;
    z-index: 10;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.social-icon:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    color: #00ff88;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .enhanced-footer {
        padding-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .enhanced-footer {
        margin-top: 50px;
        padding: 0 20px;
        padding-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 45px 0 35px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }

    .footer-brand-logo {
        margin: 0 auto 15px;
    }

    .footer-brand-desc {
        margin: 0 auto 15px;
        max-width: 280px;
    }

    .footer-column {
        text-align: left;
        align-items: flex-start;
        padding: 0;
    }

    .footer-heading {
        font-size: 13px;
        margin-bottom: 18px;
        text-align: left;
    }

    .footer-link {
        padding: 10px 0;
        font-size: 14px;
        gap: 12px;
    }

    .footer-divider {
        margin: 25px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 0 40px;
        gap: 25px;
    }

    .footer-copyright {
        order: 2;
        text-align: center;
    }

    .footer-social-icons {
        order: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .enhanced-footer {
        padding: 0 15px;
        margin-top: 40px;
        padding-bottom: 25px;
    }

    .footer-content {
        padding: 35px 0 25px;
        gap: 35px;
    }

    .footer-brand-logo {
        width: 45px;
        height: 45px;
        font-size: 24px;
        margin-bottom: 12px;
    }

    .footer-brand-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .footer-brand-desc {
        font-size: 13px;
        line-height: 1.6;
        max-width: 260px;
    }

    .footer-last-update {
        font-size: 11px;
    }

    .footer-heading {
        font-size: 12px;
        margin-bottom: 15px;
        letter-spacing: 0.8px;
    }

    .footer-link {
        font-size: 13px;
        padding: 8px 0;
        gap: 10px;
    }

    .footer-link i,
    .footer-link svg {
        width: 16px;
        min-width: 16px;
    }

    .footer-divider {
        margin: 20px 0;
    }

    .footer-bottom {
        padding: 20px 0 30px;
        gap: 20px;
    }

    .footer-copyright {
        font-size: 12px;
    }

    .footer-copyright p {
        margin-bottom: 6px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .enhanced-footer {
        padding: 0 12px;
        padding-bottom: 25px;
    }

    .footer-content {
        padding: 30px 0 20px;
        gap: 30px;
    }

    .footer-brand-logo {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .footer-brand-title {
        font-size: 18px;
    }

    .footer-brand-desc {
        font-size: 12px;
        max-width: 240px;
    }

    .footer-heading {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .footer-link {
        font-size: 12px;
        padding: 7px 0;
        gap: 8px;
    }

    .footer-link i,
    .footer-link svg {
        width: 15px;
        min-width: 15px;
    }

    .footer-bottom {
        padding: 18px 0 25px;
    }

    .footer-copyright {
        font-size: 11px;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
}


/* =================================================================
   15. ACCESSIBILITY
   ================================================================= */
/* Skip to main content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-green);
    color: #000;
    padding: 8px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}


/* =================================================================
   16. RESPONSIVE DESIGN - TABLETS (1024px and below)
   ================================================================= */
@media (max-width: 1200px) {
    .container {
        padding: 30px;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .footer-brand p {
        margin: 0 auto;
    }

    .floating-menu-toggle {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .floating-menu-toggle i {
        font-size: 22px;
    }
}


/* =================================================================
   17. RESPONSIVE DESIGN - MOBILE (768px and below)
   ================================================================= */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 42px;
        letter-spacing: -2px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tool-card {
        padding: 30px;
    }
    
    .stats-bar {
        gap: 30px;
        padding: 30px;
    }
    
    .stat-number {
        font-size: 40px;
    }
    
    .filter-tabs {
        justify-content: flex-start;
    }
    
    .search-section, .stats-bar {
        padding: 25px;
    }

    /* Footer Mobile Responsive */
    footer {
        padding: 50px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        font-size: 15px;
    }
    
    .footer-link {
        justify-content: center;
        padding: 12px 0;
    }
    
    .footer-link:hover {
        transform: translateX(0);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }

    /* Side Menu Mobile */
    .side-menu {
        width: 100%;
        right: -100%;
    }

    .floating-menu-toggle {
        width: 50px;
        height: 50px;
    }

    .floating-menu-toggle i {
        font-size: 20px;
    }
}


/* =================================================================
   18. RESPONSIVE DESIGN - SMALL MOBILE (480px and below)
   ================================================================= */
@media (max-width: 480px) {
    footer {
        padding: 40px 15px 25px;
    }
    
    .footer-content {
        gap: 30px;
    }
    
    .logo-icon-large {
        width: 60px !important;
        height: 60px !important;
        font-size: 32px !important;
    }
    
    .footer-brand h3 {
        font-size: 18px !important;
        margin-bottom: 12px !important;
    }
    
    .footer-brand p {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }
    
    .footer-heading {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .footer-link {
        font-size: 13px;
        padding: 10px 0;
        gap: 10px;
    }
    
    .footer-link i {
        font-size: 14px;
        width: 18px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .footer-copyright p {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .footer-social-icons {
        gap: 12px;
    }
}


/* =================================================================
   19. MEDIA QUERIES - HIGH CONTRAST MODE
   ================================================================= */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}


/* =================================================================
   20. MEDIA QUERIES - REDUCED MOTION
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .background-grid {
        animation: none;
    }
    
    .orb-1, .orb-2 {
        animation: none;
    }
}


/* =================================================================
   21. PRINT STYLES
   ================================================================= */
@media print {
    .floating-menu-toggle,
    .side-menu,
    .menu-overlay,
    .background-grid,
    .glow-orb {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .tool-card {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* =================================================================
   END OF STYLESHEET
   ================================================================= */