/* FunifyTool - Performance Optimized CSS */
:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b6b;
    --success-color: #51cf66;
    --warning-color: #ffd43b;
    --danger-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #0a0a0a;
    --glass-bg: rgba(13, 17, 23, 0.9);
    --glass-border: rgba(0, 212, 255, 0.2);
    --glass-shadow: 0 4px 16px rgba(0, 212, 255, 0.1);
    --border-radius: 12px;
    --box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #212529;
    background: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar - Simplified */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 17, 23, 0.5);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Glass Effect Utilities - Performance Optimized */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    /* Removed backdrop-filter for better performance */
}

.glass-strong {
    background: rgba(13, 17, 23, 0.95);
    border: 2px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

/* Navigation Styles - Beautiful and Professional */
.navbar {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: scale(1.05);
}

/* Site Logo and Identity */
.navbar-brand img {
    filter: brightness(0) invert(1); /* Makes SVG white for dark navbar */
    transition: filter 0.3s ease;
}

.navbar-brand:hover img {
    filter: brightness(1) invert(0); /* Shows original colors on hover */
}

/* Ensure SVG icon displays properly */
.navbar-brand img[src*=".svg"] {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}

/* Logo animation on page load */
.navbar-brand img {
    animation: logoFadeIn 0.8s ease-in-out;
}

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.navbar-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 1rem;
}

.navbar-nav .nav-item {
    margin: 0;
    flex: none;
    min-width: auto;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: auto;
    max-width: none;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.navbar-nav .nav-link.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: rgba(13, 17, 23, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    background: transparent;
}

.dropdown-item:hover {
    background: rgba(0, 212, 255, 0.1) !important;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    border-color: rgba(0, 212, 255, 0.2);
    margin: 0.5rem 0;
}

.dropdown-header {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.25rem;
}

/* Mobile Navigation */
.navbar-toggler {
    border: 1px solid rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 212, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Icons */
.mobile-nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 40px;
}

.nav-icon:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* All Tools Button Specific Styling - Match Desktop */
.all-tools-btn {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    min-width: auto;
    height: auto;
    white-space: nowrap;
}

.all-tools-btn:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.all-tools-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.all-tools-btn:hover i {
    transform: scale(1.1);
    color: var(--primary-color);
}



/* Responsive Navigation */
@media (max-width: 991px) {
    .navbar-nav {
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(13, 17, 23, 0.95);
        border-radius: 12px;
        border: 1px solid rgba(0, 212, 255, 0.2);
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
        flex: none;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        padding: 1rem 1.5rem !important;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
        margin: 0.25rem 0;
        min-width: auto;
        max-width: none;
        height: auto;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(0, 212, 255, 0.15);
        transform: translateX(5px);
    }
    
    /* Mobile Dropdown Styles */
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        background: rgba(0, 212, 255, 0.05);
        border: 1px solid rgba(0, 212, 255, 0.1);
        box-shadow: none;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 6px;
        margin: 0.25rem 0;
    }
    
    .dropdown-item:hover {
        background: rgba(0, 212, 255, 0.1) !important;
        transform: none;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
    }
}

/* Hero Section - Lightweight */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-container {
    position: relative;
}

.search-box input {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #212529;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    width: 100%;
}

.search-box input::placeholder {
    color: #6c757d;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 212, 255, 0.15);
    transform: translateY(-1px);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateX(5px);
}

.suggestion-item i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    font-size: 1rem;
}

.suggestion-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.suggestion-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 1rem;
}

.no-suggestions {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-suggestions i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.5);
}




/* AI Image Generator Promo Card */
.ai-image-promo {
    max-width: 800px;
    margin: 0 auto;
}

.ai-promo-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ai-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.ai-promo-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ai-promo-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.ai-promo-text {
    flex: 1;
    min-width: 300px;
}

.ai-promo-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-promo-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.ai-promo-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    white-space: nowrap;
}

.ai-promo-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

/* Responsive AI Promo */
@media (max-width: 768px) {
    .ai-promo-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .ai-promo-text {
        min-width: auto;
    }
    
    .ai-promo-btn {
        align-self: center;
    }
}

/* Stats - Lightweight */
.stats {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Section Titles - Lightweight */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Tool Cards - Lightweight & Fast */
.tool-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
    min-height: 140px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    will-change: transform, box-shadow;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    text-decoration: none;
    color: inherit;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border-color: #d0d0d0;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
}

.tool-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    text-decoration: none;
    color: inherit;
}

/* Tool Card Links - Make entire box clickable */
a.tool-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.tool-card-link:hover {
    text-decoration: none;
    color: inherit;
}

a.tool-card-link:focus {
    text-decoration: none;
    color: inherit;
}

.tool-card .tool-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.2s ease;
    flex-shrink: 0;
    will-change: background, color;
}

.tool-card:hover .tool-icon {
    background: #e8e8e8;
    color: var(--primary-color);
}

.tool-card .tool-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.tool-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #212529;
    line-height: 1.3;
    word-wrap: break-word;
    overflow: visible;
    padding: 0;
}

.tool-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow: visible;
    padding: 0;
}

.tool-card .arrow-icon {
    color: #adb5bd;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    will-change: color, transform;
}

.tool-card:hover .arrow-icon {
    color: #666666;
    transform: translateX(4px);
}

/* Remove Featured Tool Cards - No Priority */
.tool-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    position: relative;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    border-color: #d0d0d0;
    background: #fafafa;
}

.tool-card .tool-icon {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: var(--primary-color);
}

.tool-card:hover .tool-icon {
    background: #e8e8e8;
    color: var(--primary-color);
}

/* Remove Priority Badges */
.badge.bg-success {
    display: none;
}

.section-title .badge {
    display: none;
}

/* Tool Card Links */
a .tool-card {
    text-decoration: none;
    color: inherit;
}

a:hover .tool-card {
    text-decoration: none;
    color: inherit;
}

a:focus .tool-card {
    text-decoration: none;
    color: inherit;
}

/* Enhanced Footer Styles */
footer {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-top: 3px solid var(--primary-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #007bff, var(--primary-color));
    background-size: 200% 100%;
    animation: footer-border 3s ease-in-out infinite;
}

/* Desktop Footer Section Spacing */
@media (min-width: 992px) {
    /* Desktop Footer Layout */
    .d-none.d-lg-flex {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .d-none.d-lg-flex .col-lg-2 {
        flex: 1;
        max-width: 22%;
        margin-bottom: 0;
    }
    
    .footer-section {
        background: rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 2rem 1.5rem;
        margin-bottom: 0;
        border: 1px solid rgba(255, 255, 255, 0.15);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .footer-section:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(0, 212, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
    }
    
    .footer-section h6 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
        padding-bottom: 0.5rem;
    }
    
    .footer-links {
        flex-grow: 1;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 400;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        padding: 0.25rem 0;
    }
    
    .footer-links a:hover {
        color: var(--primary-color);
        transform: translateX(5px);
    }
    
    .footer-links a i {
        font-size: 0.8rem;
        width: 16px;
        text-align: center;
        margin-right: 0.75rem;
        transition: all 0.3s ease;
    }
    
    .footer-links a:hover i {
        transform: scale(1.2);
    }
    
    /* Contact Info Styling */
    .contact-info p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
    }
    
    .contact-info p i {
        color: var(--primary-color);
        margin-right: 0.75rem;
        width: 16px;
        text-align: center;
    }
    
    /* Newsletter Styling */
    .newsletter {
        margin-top: auto;
    }
    
    .newsletter h6 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .newsletter .input-group {
        display: flex;
        gap: 0.5rem;
    }
    
    .newsletter .form-control {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 8px;
        font-size: 0.85rem;
    }
    
    .newsletter .form-control::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .newsletter .form-control:focus {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.25);
    }
    
    .newsletter .btn {
        background: var(--primary-color);
        border: none;
        border-radius: 8px;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }
    
    .newsletter .btn:hover {
        background: var(--secondary-color);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    }
    
    /* Brand Section Desktop Styling */
    .footer-brand {
        text-align: left;
        padding: 2rem 0;
    }
    
    .footer-brand h4 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: white;
        display: flex;
        align-items: center;
    }
    
    .footer-brand h4 i {
        color: var(--primary-color);
        margin-right: 0.75rem;
        font-size: 1.5rem;
    }
    
    .footer-brand p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    /* Social Icons Desktop Styling */
    .social-icons h6 {
        color: var(--primary-color);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .social-icons .d-flex {
        gap: 1rem;
    }
    
    .social-icon-link {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }
    
    .social-icon-link:hover {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    }
}

@keyframes footer-border {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.footer-brand h4 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-section h6 {
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h6::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.footer-links li {
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.footer-links i {
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: scale(1.2);
}

/* Social Media Icons */
.social-icons {
    margin-top: 1.5rem;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    border-color: var(--primary-color);
}

.social-icon-link i {
    font-size: 1.1rem;
}

/* Newsletter Section */
.newsletter .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.newsletter .form-control {
    border: none;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter .form-control::placeholder {
    color: #b0b0b0;
}

.newsletter .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    color: white;
}

.newsletter .btn {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 25px 25px 0;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.newsletter .btn:hover {
    background: #0056b3;
    transform: translateX(2px);
}

/* Contact Info */
.contact-info p {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-info i {
    width: 16px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* Copyright Text */
footer .text-muted {
    color: #b0b0b0 !important;
}

footer p.text-muted {
    color: #b0b0b0 !important;
    font-weight: 500;
}

/* Enhanced Copyright Visibility */
footer .text-white.fw-bold {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

footer .copyright-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-section {
        text-align: center;
    }
    
    .footer-section h6::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .newsletter {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-bottom-links {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* Show More Tools Button - Performance Optimized */
.show-more-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    margin: 3rem auto 0;
    text-decoration: none;
    text-align: center;
    max-width: 250px;
}

.show-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
    color: #ffffff;
    text-decoration: none;
}

/* Responsive Design - Performance Optimized */
@media (max-width: 1200px) {
    .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    .mega-menu-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .stats {
        gap: 2rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        margin: 1rem;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .search-box input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .tool-card {
        padding: 2rem;
    }
    
    .tool-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .mega-menu {
        left: 0;
        right: 0;
        border-radius: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .search-box input {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .tool-card {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* Animation Classes - Performance Optimized */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2) !important;
}

.rounded-xl {
    border-radius: 1rem !important;
}

/* Hover Effects - Simplified */
.hover-lift:hover {
    transform: translateY(-5px);
    transition: var(--transition);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transition: var(--transition);
}

/* Loading States - Simplified */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .btn,
    footer {
        display: none !important;
    }
    
    .tool-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Performance Optimizations */
.tool-card * {
    will-change: auto;
}

.tool-card:hover * {
    will-change: transform, color, background;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-card {
        padding: 1rem;
        gap: 0.75rem;
        min-height: 120px;
        height: auto; /* Allow dynamic height based on content */
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .tool-card .tool-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        flex-shrink: 0;
    }
    
    .tool-card .tool-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    
    .tool-card h5 {
        font-size: 1rem;
        margin: 0 0 0.5rem 0;
        line-height: 1.2;
    }
    
    .tool-card p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .tool-card .arrow-icon {
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* Mobile 2x2 Grid Layout */
    .col-md-6.col-lg-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex; /* Make columns flex containers */
    }
    
    /* Ensure all cards in the same row have equal heights */
    .row.g-4 > [class*="col-"] {
        display: flex;
    }
    
    .row.g-4 > [class*="col-"] .tool-card {
        width: 100%; /* Take full width of column */
        height: 100%; /* Take full height of column */
    }
    
    /* Ensure proper spacing on mobile */
    .row.g-4 {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .row.g-4 > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    /* Extra small devices - ensure 2x2 grid with consistent sizing */
    .col-md-6.col-lg-4 {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        display: flex; /* Make columns flex containers */
    }
    
    .tool-card {
        min-height: 110px;
        height: auto; /* Allow dynamic height based on content */
        padding: 0.75rem;
        gap: 0.75rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .tool-card .tool-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .tool-card .tool-content {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    
    .tool-card h5 {
        font-size: 0.9rem;
        margin: 0 0 0.4rem 0;
        line-height: 1.2;
    }
    
    .tool-card p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .tool-card .arrow-icon {
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    /* Ensure all cards in the same row have equal heights */
    .row.g-4 > [class*="col-"] {
        display: flex;
    }
    
    .row.g-4 > [class*="col-"] .tool-card {
        width: 100%; /* Take full width of column */
        height: 100%; /* Take full height of column */
    }
}

/* Featured Tool Animations */
@keyframes featuredFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-featured {
    animation: featuredFadeIn 0.6s ease-out forwards;
}

/* Accessibility Improvements */
.tool-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.tool-card[tabindex]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Performance Hover States */
.tool-card {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.tool-card:hover {
    transform: translateY(-2px) translateZ(0);
}

/* SEO Optimized Text */
.tool-card h5 {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
}

.tool-card p {
    color: #6c757d;
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Hardware acceleration for smooth animations */
.tool-card:hover,
.stat-item:hover,
.navbar-nav .nav-link:hover {
    transform: translateZ(0);
}

/* Mobile Footer Layout - Professional & No Overlap */
@media (max-width: 768px) {
    /* Reset Bootstrap grid for mobile */
    .row {
        margin: 0 !important;
    }
    
    .row > [class*="col-"] {
        padding: 0.5rem !important;
        margin-bottom: 1rem;
    }
    
    /* Brand Section - Full Width & Center Align */
    .col-lg-4 {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        text-align: center !important;
    }
    
    .footer-brand h4 {
        text-align: center !important;
    }
    
    .footer-brand p {
        text-align: center !important;
    }
    
    /* Social Icons - Center Align */
    .social-icons {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .social-icons h6 {
        text-align: center !important;
    }
    
    .social-icons .d-flex {
        justify-content: center !important;
    }
    
    /* Create 2x2 Grid Layout */
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Tool Categories and Popular Tools - Side by Side */
    .col-lg-2:nth-child(2),
    .col-lg-2:nth-child(3) {
        width: 100% !important;
        float: none;
        padding: 0;
    }
    
    /* Legal & Info and Quick Contact - Side by Side */
    .col-lg-2:nth-child(4),
    .col-lg-2:nth-child(5) {
        width: 100% !important;
        float: none;
        padding: 0;
    }
    
    /* All text lines align left */
    .footer-section h6,
    .footer-section ul,
    .footer-section li,
    .footer-section a,
    .footer-section p,
    .contact-info p {
        text-align: left !important;
    }
    
    /* Footer Section Styling */
    .footer-section {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-section h6 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: var(--primary-color);
    }
    
    .footer-section ul {
        margin: 0;
        padding: 0;
    }
    
    .footer-section li {
        margin-bottom: 0.5rem;
    }
    
    .footer-section a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-section a:hover {
        color: var(--primary-color);
    }
    
    /* Copyright - Center Position */
    .footer-bottom {
        text-align: center !important;
        clear: both;
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-bottom .row {
        justify-content: center !important;
    }
    
    .footer-bottom .col-md-6 {
        width: 100% !important;
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6:first-child {
        text-align: center !important;
    }
    
    .footer-bottom .col-md-6:last-child {
        text-align: center !important;
    }
    
    .footer-bottom-links {
        text-align: center !important;
        margin-top: 1rem;
        justify-content: center !important;
    }
    
    .footer-bottom-links a {
        font-size: 0.8rem;
        margin: 0 0.5rem;
    }
    
    /* Footer Bottom Text Center */
    .footer-bottom p {
        text-align: center !important;
    }
    
    /* Newsletter Section */
    .newsletter {
        margin-top: 1rem;
    }
    
    .newsletter .input-group {
        flex-direction: column;
    }
    
    .newsletter .form-control {
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    .newsletter .btn {
        border-radius: 6px;
        width: 100%;
    }
}

/* Optimize paint operations */
.glass,
.glass-strong {
    contain: layout style paint;
}

/* Reduce repaints during scroll */
.hero-section,
.navbar {
    contain: layout style paint;
}

/* Optimize for mobile performance */
@media (max-width: 768px) {
    .tool-card,
    .stat-item {
        will-change: auto;
        transform: none;
    }
    
    .tool-card:hover,
    .stat-item:hover {
        transform: none;
    }
}
/* Custom Mega Menu - Independent System */
.mega-menu-container {
    position: static;
}

.mega-menu-trigger {
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.mega-menu-trigger::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.mega-menu-trigger:hover::after {
    width: 100%;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 212, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

.mega-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 600px;
    padding: 2rem 0;
    pointer-events: auto;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.mega-menu-section h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    padding-bottom: 0.5rem;
}

.mega-menu-section {
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.mega-menu-section:hover {
    background: rgba(0, 212, 255, 0.05);
}

.mega-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-section ul li {
    margin-bottom: 0.5rem;
}

.mega-menu-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
}

.mega-menu-section ul li a:hover {
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
    padding-left: 1rem;
    border-left-color: var(--primary-color);
    transform: translateX(5px);
}

/* Small Tool Cards for All Tools Section */
.tool-card.small {
    padding: 1.5rem;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tool-card.small h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tool-card.small .btn {
    align-self: center;
    min-width: 100px;
}

/* All Tools Section Styling */
#all-tools h4 {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

#all-tools .row {
    margin-bottom: 2rem;
}

/* Tool Card Links */
.tool-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

a .tool-card {
    text-decoration: none;
    color: inherit;
}

a:hover .tool-card {
    text-decoration: none;
    color: inherit;
}

a:focus .tool-card {
    text-decoration: none;
    color: inherit;
}

