:root {
            --bg-color: #ffffff;
            --text-color: #333333;
            --card-bg: #ffffff;
            --header-bg: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
            --footer-bg: linear-gradient(to right, #2c3e50, #4a6491);
            --border-color: #e3f2fd;
            --shadow-color: rgba(52, 152, 219, 0.1);
            --navbar-bg: white;
            --search-bg: white;
            --search-border: #e9ecef;
            --search-focus: #3498db;
            --menu-bg: white;
            --menu-text: #333;
            --menu-hover: #f8f9fa;
            --menu-link-hover: #0d6efd;
            --overlay-bg: rgba(0, 0, 0, 0.5);
        }

        [data-theme="dark"] {
            --bg-color: #1a1a1a;
            --text-color: #e0e0e0;
            --card-bg: #2d2d2d;
            --header-bg: linear-gradient(135deg, #1a252f 0%, #1e5799 100%);
            --footer-bg: linear-gradient(to right, #1a252f, #2c3e50);
            --border-color: #444444;
            --shadow-color: rgba(0, 0, 0, 0.3);
            --navbar-bg: #2d2d2d;
            --search-bg: #2d2d2d;
            --search-border: #444444;
            --search-focus: #3498db;
            --menu-bg: #2d2d2d;
            --menu-text: #e0e0e0;
            --menu-hover: #3d3d3d;
            --menu-link-hover: #3498db;
            --overlay-bg: rgba(0, 0, 0, 0.7);
        }

        body {
            position: relative;
            overflow-x: hidden;
            background-color: var(--bg-color);
            color: var(--text-color);
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1030;
            background: var(--navbar-bg) !important;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            transition: background-color 0.3s ease;
        }
        
        .navbar-toggler {
            border: none;
            padding: 0.5rem;
            z-index: 1001;
        }
        
        .navbar-toggler:focus {
            box-shadow: none;
        }
        
        .navbar-brand {
            z-index: 1001;
            font-size: 1.5rem;
            font-weight: 700;
            color: #2c3e50 !important;
        }
        
        [data-theme="dark"] .navbar-brand {
            color: #3498db !important;
        }
        
        /* Dark Mode Toggle */
        .theme-toggle {
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: #333;
            padding: 0.5rem;
            margin-left: 1rem;
            border-radius: 50%;
            transition: all 0.3s ease;
        }
        
        [data-theme="dark"] .theme-toggle {
            color: #f39c12;
        }
        
        .theme-toggle:hover {
            background: rgba(52, 152, 219, 0.1);
            transform: rotate(30deg);
        }
        
        /* Search Bar Styles */
        .search-container {
            position: relative;
            max-width: 500px;
            margin: 0 auto;
        }
        
        .search-input {
            border-radius: 25px;
            padding: 10px 20px;
            border: 2px solid var(--search-border);
            transition: all 0.3s ease;
            width: 100%;
            background-color: var(--search-bg);
            color: var(--text-color);
        }
        
        .search-input:focus {
            border-color: var(--search-focus);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }
        
        .search-btn {
            position: absolute;
            right: 5px;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: #3498db;
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .search-btn:hover {
            background: #2980b9;
            transform: translateY(-50%) scale(1.05);
        }
        
        /* Search Results Dropdown */
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: var(--card-bg);
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            max-height: 400px;
            overflow-y: auto;
            display: none;
            z-index: 1002;
        }
        
        .search-result-item {
            padding: 12px 15px;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .search-result-item:hover {
            background: var(--menu-hover);
        }
        
        .search-result-item i {
            margin-right: 10px;
            color: #3498db;
            width: 20px;
            text-align: center;
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .no-results {
            padding: 20px;
            text-align: center;
            color: #6c757d;
        }
        
        /* Offcanvas menu styling */
        .offcanvas-menu {
            position: fixed;
            top: 0;
            left: -300px;
            width: 300px;
            height: 100%;
            background: var(--menu-bg);
            z-index: 1000;
            transition: all 0.4s ease;
            box-shadow: 2px 0 10px rgba(0,0,0,0.15);
            overflow-y: auto;
        }
        
        .offcanvas-menu.open {
            left: 0;
        }
        
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--overlay-bg);
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s ease;
            z-index: 999;
        }
        
        .overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .nav-content {
            padding: 70px 20px 20px;
        }
        
        .offcanvas-menu .nav-item {
            margin-bottom: 10px;
            opacity: 0;
            transform: translateX(-20px);
            transition: all 0.4s ease;
        }
        
        .offcanvas-menu.open .nav-item {
            opacity: 1;
            transform: translateX(0);
        }
        
        /* Staggered animation for nav items */
        .offcanvas-menu.open .nav-item:nth-child(1) { transition-delay: 0.1s; }
        .offcanvas-menu.open .nav-item:nth-child(2) { transition-delay: 0.15s; }
        .offcanvas-menu.open .nav-item:nth-child(3) { transition-delay: 0.2s; }
        .offcanvas-menu.open .nav-item:nth-child(4) { transition-delay: 0.25s; }
        
        .offcanvas-menu .nav-link {
            padding: 12px 15px;
            border-radius: 8px;
            font-weight: 500;
            color: var(--menu-text);
            transition: all 0.3s;
            display: flex;
            align-items: center;
        }
        
        .offcanvas-menu .nav-link:hover {
            background-color: var(--menu-hover);
            color: var(--menu-link-hover);
        }
        
        .offcanvas-menu .nav-link i {
            margin-right: 10px;
            width: 24px;
            text-align: center;
        }
        
        /* Close button styling */
        .close-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #666;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        [data-theme="dark"] .close-btn {
            color: #ccc;
        }
        
        .close-btn:hover {
            color: #000;
            transform: rotate(90deg);
        }
        
        [data-theme="dark"] .close-btn:hover {
            color: #fff;
        }
        
        /* Desktop menu styling */
        @media (min-width: 992px) {
            .offcanvas-menu {
                position: static;
                width: auto;
                height: auto;
                background: transparent;
                box-shadow: none;
                overflow-y: visible;
                left: 0;
            }
            
            .nav-content {
                padding: 0;
                display: flex;
                align-items: center;
            }
            
            .offcanvas-menu .nav-item {
                opacity: 1;
                transform: none;
                margin-bottom: 0;
                margin-left: 5px;
            }
            
            .overlay {
                display: none !important;
            }
            
            .navbar-toggler, .close-btn {
                display: none;
            }
            
            .offcanvas-menu .nav-link {
                padding: 0.5rem 1rem;
            }
            
            .offcanvas-menu .nav-link:hover {
                background-color: transparent;
            }
            
            .search-container {
                margin: 0 20px;
                max-width: 400px;
            }
        }
        
        @media (max-width: 991px) {
            .search-container {
                margin: 10px 0;
            }
            
            .navbar-brand {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 768px) {
            body {
                padding-top: 70px;
            }
        }
        
        /* Main container with proper spacing */
        .main-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            margin-top: 80px; /* Space for fixed navbar */
        }

        header {
            background: var(--header-bg);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(52, 152, 219, 0.3);
            margin-bottom: 30px;
            padding: 40px 30px;
            color: white;
            text-align: center;
            transition: background 0.3s ease;
        }

        .header-title {
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .header-subtitle {
            font-size: 1.2em;
            opacity: 0.9;
            margin-bottom: 0;
        }

        .tool-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            box-shadow: 0 4px 20px var(--shadow-color);
            transition: all 0.3s ease;
            padding: 25px 20px;
            cursor: pointer;
            min-height: 120px;
            margin: 0 5px;
            position: relative;
            overflow: hidden;
        }

        .tool-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
            transition: left 0.6s;
        }

        .tool-card:hover::before {
            left: 100%;
        }

        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px rgba(52, 152, 219, 0.2);
            border-color: #3498db;
        }

        .tool-icon {
            font-size: 42px;
            color: #3498db;
            margin-right: 15px;
            transition: all 0.3s ease;
            text-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
        }

        .tool-card:hover .tool-icon {
            color: #2980b9;
            transform: scale(1.1);
        }

        .tool-title {
            font-weight: 700;
            font-size: 1.25em;
            margin-bottom: 8px;
            color: var(--text-color);
        }

        .tool-desc {
            color: var(--text-color);
            font-size: 0.95em;
            line-height: 1.5;
            opacity: 0.8;
        }

        /* SEO Content Section */
        .seo-content {
            background: var(--card-bg);
            border-radius: 16px;
            padding: 40px;
            margin: 40px 0;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            transition: background-color 0.3s ease;
        }

        .seo-title {
            color: var(--text-color);
            font-size: 2em;
            margin-bottom: 20px;
            font-weight: 700;
        }

        .seo-text {
            color: var(--text-color);
            font-size: 1.1em;
            line-height: 1.8;
            margin-bottom: 20px;
            opacity: 0.9;
        }

        .feature-list {
            columns: 2;
            column-gap: 40px;
        }

        .feature-list li {
            margin-bottom: 10px;
            break-inside: avoid;
            color: var(--text-color);
            opacity: 0.9;
        }

        /* Popular badge */
        .popular-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: linear-gradient(45deg, #e74c3c, #c0392b);
            color: white;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.75em;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
            z-index: 2;
        }

        .tool-card-wrapper {
            position: relative;
        }

        /* Ad Placement Styles */
        .ad-container {
            background: var(--card-bg);
            border: 2px dashed var(--border-color);
            border-radius: 12px;
            padding: 25px;
            margin: 30px 0;
            text-align: center;
            min-height: 250px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }

        .ad-container h4 {
            color: var(--text-color);
            margin-bottom: 15px;
            font-size: 1.1em;
            opacity: 0.9;
        }

        .ad-label {
            position: absolute;
            top: -10px;
            left: 20px;
            background: #6c757d;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75em;
            font-weight: 600;
        }

        .ad-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin: 25px 0;
            text-align: center;
        }

        .ad-banner h4 {
            margin-bottom: 10px;
            font-size: 1.3em;
        }

        .ad-banner p {
            margin-bottom: 15px;
            opacity: 0.9;
        }

        .ad-banner .btn {
            background: white;
            color: #667eea;
            padding: 10px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .ad-banner .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        }
        
        /* Footer Styles */
        footer {
            background: var(--footer-bg);
            color: #ecf0f1;
            padding: 3rem 0 1rem;
            margin-top: 3rem;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            transition: background 0.3s ease;
        }
        
        .footer-container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-section {
            padding: 0 1rem;
        }
        
        .footer-section h3 {
            color: #3498db;
            margin-bottom: 1.2rem;
            font-size: 1.3rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .footer-section h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: #3498db;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        
        .footer-links a {
            color: #ecf0f1;
            text-decoration: none;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .footer-links a:hover {
            color: #3498db;
            transform: translateX(5px);
        }
        
        .footer-links a i {
            margin-right: 8px;
            font-size: 0.9rem;
        }
        
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }
        
        .contact-info div {
            display: flex;
            align-items: center;
        }
        
        .contact-info i {
            margin-right: 10px;
            color: #3498db;
            font-size: 1.1rem;
            min-width: 20px;
        }
        
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #34495e;
            color: #ecf0f1;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: #3498db;
            transform: translateY(-3px);
        }
        
        .newsletter form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .newsletter input {
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 4px;
            background: #34495e;
            color: #ecf0f1;
            width: 100%;
        }
        
        .newsletter input::placeholder {
            color: #bdc3c7;
        }
        
        .newsletter button {
            padding: 0.8rem 1rem;
            border: none;
            border-radius: 4px;
            background: #3498db;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
        }
        
        .newsletter button:hover {
            background: #2980b9;
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 1.5rem;
            border-top: 1px solid #34495e;
            font-size: 0.9rem;
            color: #bdc3c7;
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            body {
                padding: 10px;
            }
            
            .main-container {
                padding: 0 10px;
            }
            
            .header-title {
                font-size: 2em;
            }
            
            .header-subtitle {
                font-size: 1.1em;
            }
            
            .tool-card {
                padding: 20px 15px;
                min-height: 100px;
            }
            
            .tool-icon {
                font-size: 36px;
                margin-right: 12px;
            }
            
            .seo-content {
                padding: 30px 20px;
            }
            
            .feature-list {
                columns: 1;
            }
            
            .ad-container {
                min-height: 200px;
                padding: 20px 15px;
                margin: 20px 0;
            }

            .footer-content {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .footer-section {
                padding: 0;
                text-align: center;
            }
            
            .footer-section h3::after {
                left: 50%;
                transform: translateX(-50%);
            }
            
            .social-links {
                justify-content: center;
            }
            
            .contact-info div {
                justify-content: center;
            }
        }

        @media (max-width: 576px) {
            .header-title {
                font-size: 1.8em;
            }
            
            .tool-card {
                padding: 18px 12px;
                min-height: 90px;
            }
            
            .tool-icon {
                font-size: 32px;
            }
            
            .ad-banner {
                padding: 15px;
            }
            
            .ad-banner h4 {
                font-size: 1.1em;
            }

            footer {
                padding: 2rem 0 1rem;
            }
            
            .footer-section h3 {
                font-size: 1.2rem;
            }
        }