/* CSS Variables and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2dc08d;
    --primary-dark: #24a575;
    --primary-light: #3dd49f;
    --secondary-color: #06b6d4;
    --bg-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --border-color: #2dc08d4a;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #0891b2);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
    border: 1px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

/* Loading Progress Bar */
#loadingBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 9999;
    transition: width 0.25s ease-out;
    box-shadow: 0 1px 3px rgba(45, 192, 141, 0.3);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: var(--transition);
    line-height: 1.6;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* Header - Removed border and shadow */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}
.logo h1 a{text-decoration: none;}
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Header Buttons */
.request-btn, .favorites-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.favorites-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
}

.request-btn:hover, .favorites-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.favorites-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    padding: 0.75rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.current-lang {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.language-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-align: left;
}

.language-menu button:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.language-menu button.active {
    background: var(--primary-color);
    color: white;
}

.flag {
    font-size: 1.2rem;
}

/* Combined Actions */
.combined-actions {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 0.25rem;
    display: flex;
    gap: 0.25rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    /* color: var(--primary-color); */
}

.combined-actions:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.action-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Mobile Menu Toggle */
/* .mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
} */

/* Main Content */
.main-content {
    padding: 2rem;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Category Section - 20% width and centered */
.category-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--card-bg);
    border-radius: 60px;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    width: fit-content;
    max-width: 80%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-text {
    font-weight: 600;
}

.tab-count {
    background: var(--bg-color);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(45, 192, 141, 0.05);
}

.tab-btn:hover .tab-count {
    background: var(--primary-color);
    color: white;
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tool-card.hidden {
    display: none;
}

/* .tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
} */

/* .tool-card:hover::before {
    transform: scaleX(1);
} */

.tool-card:hover {
    /* transform: translateY(-8px);
    box-shadow: var(--shadow-xl); */
    border-color: var(--primary-light);
}

.tool-link {
    text-decoration: none;
    color: inherit;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover .tool-icon::before {
    opacity: 1;
}

/* Tool Icon Colors */
.tool-icon.red { 
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.tool-icon.blue { 
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.tool-icon.cyan { 
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}
.tool-icon.pink { 
    background: linear-gradient(135deg, #ec4899, #db2777);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}
.tool-icon.green { 
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.tool-icon.orange { 
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.tool-icon.purple { 
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.tool-icon.yellow { 
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.tool-info {
    flex: 1;
}

.tool-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.tool-category {
    font-size: 12px;
    color: var(--primary-color);
    /* font-weight: 600; */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 2.5rem;
    right: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.favorite-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.favorite-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.favorite-btn.active i {
    font-weight: 900;
    font-size: 12px;
}

/* Favorites Modal */
.favorites-list {
    min-height: 200px;
}

.empty-favorites {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.empty-favorites i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.favorite-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: var(--transition);
    position: relative;
}

.favorite-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.favorite-item .tool-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.favorite-item .tool-info {
    flex: 1;
}

.favorite-item .tool-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.favorite-item .tool-category {
    font-size: 0.8rem;
}

.favorite-item-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-decoration: none;
    color: inherit;
    z-index: 1;
}

.remove-favorite {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.remove-favorite:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 3rem 0 2rem;
    box-shadow: var(--shadow-lg);
    /* border-top: 1px solid var(--border-color); */
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* border-top: 1px solid var(--border-color); */
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    /* transform: translateY(-4px) scale(1.05); */
    /* box-shadow: var(--shadow-xl); */
    border: 2px solid var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 2% auto;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.modal-body {
    padding: 1.5rem 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-body iframe {
    width: 100%;
    min-height: 600px;
    border: none;
}

.form-note {
    padding: 1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-note a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-60px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close {
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
}

.close:hover {
    color: var(--primary-color);
    background: var(--bg-color);
}

/* Language Loading Overlay */
.language-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
}

.language-loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-container {
        padding: 1rem;
    }
    
    .category-tabs {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .combined-actions {
    padding: 1px;
}
    .header-container {
        padding: 0.75rem 1rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .request-btn span, .favorites-btn span {
        display: none;
    }

    .request-btn, .favorites-btn {
        padding: 0.75rem;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .language-btn {
        padding: 0.75rem;
        width: 36px;
        height: 36px;
        justify-content: center;
    }

    .language-btn .current-lang,
    .language-btn .fa-chevron-down {
        display: none;
    }

    /* .mobile-menu-toggle {
        display: block;
    } */

    .main-content {
        padding: 1rem;
    }

    .category-tabs {
        max-width: 100%;
        padding: 0.25rem;
        gap: 0.25rem;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .tab-count {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .tool-link {
        padding: 1.5rem;
    }

    .footer-content {
        padding: 0 1rem;
        gap: 2rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 48px;
        height: 48px;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1rem 1.5rem;
    }

    .modal-body iframe {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
    font-size: 20px;
}
    .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tool-title {
        font-size: 1rem;
    }

    /* .footer-content {
        grid-template-columns: 1fr;
    } */

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .tab-text {
        display: none;
    }

    .tab-btn {
        min-width: auto;
    }

    .category-tabs {
        justify-content: center;
    }
}

/* Performance Optimizations */
.tool-card {
    will-change: transform;
    contain: layout style paint;
}

.tool-icon {
    contain: layout style paint;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Filter Animation */
@keyframes filterFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tool-card.show {
    animation: filterFadeIn 0.4s ease-out forwards;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .header,
    .scroll-to-top,
    .favorite-btn,
    .modal {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .tool-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

