/* Custom Variables (Light Mode Default) */
:root {
    --bg-color: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.7);
    --surface-border: rgba(255, 255, 255, 0.4);
    --dropdown-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --nav-bg: rgba(248, 250, 252, 0.8);
    --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    --card-hover-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
    --card-hover-transform: translateY(-4px) scale(1.01);

    /* Vibrant Gradients */
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-4: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --gradient-5: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-6: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    --gradient-7: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

/* Dark Mode Theme */
[data-theme="dark"] {
    --bg-color: #0f172a;
    /* Deep Indigo / Slate base */
    --surface-color: rgba(30, 41, 59, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --dropdown-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --nav-bg: rgba(15, 23, 42, 0.8);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    /* Smooth fonts */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optional Noise Filter */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: -1;
}

/* Ambient Background Blobs for Visual Aesthetics */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.5;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-1);
    top: -100px;
    left: -100px;
    opacity: 0.15;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-2);
    top: 40%;
    right: -50px;
    opacity: 0.1;
    animation-duration: 25s;
    animation-delay: -5s;
}

[data-theme="dark"] .blob-1 {
    opacity: 0.2;
}

[data-theme="dark"] .blob-2 {
    opacity: 0.15;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.05);
    }

    100% {
        transform: translate(-20px, 60px) scale(0.95);
    }
}

/* Selection Highlight */
::selection {
    background-color: var(--primary-color);
    color: white;
}

/* Sticky Navigation */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Nav Dropdown Styling */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.dropdown-btn:hover {
    background-color: var(--surface-color);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--dropdown-bg);
    min-width: 280px;
    max-height: 80vh;
    overflow-y: visible;
    overflow-x: visible;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mega Menu Modifiers */
.dropdown-content.mega-menu,
.submenu-content.mega-menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 580px;
    gap: 0.25rem;
}

/* Custom Scrollbar for dropdown */
.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: var(--surface-border);
    border-radius: 10px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a i {
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    transition: color 0.2s;
}

.dropdown-content a:hover,
.submenu-btn:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
}

.dropdown-content a:hover i,
.submenu-btn:hover i {
    color: var(--primary-color);
}

/* Submenu layout */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.submenu-btn {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.dropdown-submenu>.submenu-btn i {
    color: var(--text-secondary);
    width: 18px;
    height: 18px;
    transition: color 0.2s;
}

.chevron-right {
    margin-left: auto;
    /* push down arrow right */
    width: 16px !important;
    height: 16px !important;
}

.submenu-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -10px;
    right: 100%;
    /* Expand to the left instead of right */
    background-color: var(--dropdown-bg);
    min-width: 260px;
    max-height: 60vh;
    overflow-y: auto;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 1001;
    transition: all 0.2s ease;
}

.submenu-content::-webkit-scrollbar {
    width: 6px;
}

.submenu-content::-webkit-scrollbar-thumb {
    background-color: var(--surface-border);
    border-radius: 10px;
}

.dropdown-submenu:hover .submenu-content {
    visibility: visible;
    opacity: 1;
    display: block;
}

.dropdown-submenu:hover .submenu-content.mega-menu {
    display: grid;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle .sun-icon {
    position: absolute;
    transform: translateY(30px) rotate(-90deg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .moon-icon {
    position: absolute;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-toggle .sun-icon {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    transform: translateY(-30px) rotate(90deg);
    opacity: 0;
}

/* Hero Section */
.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fade-in-up 0.8s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fade-in-up 0.8s ease-out 0.1s both;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fade-in-up 0.8s ease-out 0.2s both;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    padding: 0.5rem;
    border-radius: 99px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    animation: fade-in-up 0.8s ease-out 0.3s both;
}

.search-container:focus-within {
    box-shadow: 0 0 0 2px var(--primary-color), var(--card-hover-shadow);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.search-container .search-icon {
    color: var(--text-secondary);
    margin-left: 1rem;
    width: 20px;
    height: 20px;
}

.search-container input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
}

.search-container input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.primary-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* Bento Grid & Categories */
.tools-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    margin-bottom: 6rem;
}

.category-header {
    margin-top: 4rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fade-in-up 0.8s ease-out both;
}

.category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-header i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

.bento-card {
    background-color: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fade-in-up 0.5s ease-out forwards;
}

/* Staggered animation for cards */
.bento-card:nth-child(1) {
    animation-delay: 0.2s;
}

.bento-card:nth-child(2) {
    animation-delay: 0.3s;
}

.bento-card:nth-child(3) {
    animation-delay: 0.4s;
}

.bento-card:nth-child(4) {
    animation-delay: 0.5s;
}

.bento-card:nth-child(5) {
    animation-delay: 0.6s;
}

.bento-card:nth-child(6) {
    animation-delay: 0.7s;
}

.bento-card:nth-child(7) {
    animation-delay: 0.8s;
}

.bento-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Subtle Shimmer Effect on Hover */
.bento-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

[data-theme="dark"] .bento-card::after {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
}

.bento-card:hover::after {
    transform: translateX(100%);
}

/* Let the wide/large classes be assigned dynamically by JS for variety */
.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 2;
}

/* Circular App-like Icon Container */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: var(--text-primary);
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bento-card:hover .card-icon {
    transform: scale(1.05);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.card-icon i {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.gradient-bg-1 {
    background: var(--gradient-1);
}

.gradient-bg-2 {
    background: var(--gradient-2);
}

.gradient-bg-3 {
    background: var(--gradient-3);
}

.gradient-bg-4 {
    background: var(--gradient-4);
}

.gradient-bg-5 {
    background: var(--gradient-5);
}

.gradient-bg-6 {
    background: var(--gradient-6);
}

.gradient-bg-7 {
    background: var(--gradient-7);
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.bento-card:hover h3 {
    color: var(--primary-color);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.bento-card.bento-large h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.bento-card.bento-large p {
    font-size: 1.05rem;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    padding: 5rem 2rem 2rem;
    backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.2s, transform 0.2s;
    font-weight: 500;
}

.link-group a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 1px solid var(--surface-border);
}

.socials a:hover {
    color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Global SEO Content Block Styling */
.seo-content {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 3rem 2rem;
    background-color: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    color: var(--text-secondary);
    animation: fade-in-up 0.8s ease-out forwards;
}

.seo-content h2 {
    color: var(--text-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.seo-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.seo-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.seo-content strong {
    color: var(--text-primary);
}

/* Animations Keyframes */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .desktop-nav {
        display: none;
        /* hide dropdown on very small mobiles for now */
    }

    .bento-large,
    .bento-wide,
    .bento-tall {
        grid-column: span 1;
        grid-row: auto;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        gap: 2rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: 16px;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .search-container .search-icon {
        display: none;
    }

    .search-container input {
        width: 100%;
        text-align: center;
    }

    .primary-btn {
        width: 100%;
        border-radius: 12px;
    }
}
/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--dropdown-bg);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    border-left: 1px solid var(--surface-border);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    z-index: 1500;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--surface-border);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

/* Mobile Accordion Styles */
.mobile-nav-item {
    margin-bottom: 0.5rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    border-color: var(--surface-border);
    background-color: var(--surface-color);
}

.mobile-nav-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.2s;
}

.mobile-nav-header:hover {
    color: var(--primary-color);
}

.mobile-nav-item.active .mobile-nav-header {
    color: var(--primary-color);
}

.mobile-nav-tools {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}

.mobile-nav-item.active .mobile-nav-tools {
    max-height: 1000px;
    transition: max-height 0.4s ease-in;
    padding-bottom: 1rem;
}

.mobile-nav-tools a {
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav-tools a:hover {
    background-color: rgba(79, 70, 229, 0.05);
    color: var(--primary-color);
    transform: translateX(4px);
}

.mobile-nav-tools a i {
    width: 16px; 
    height: 16px;
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
}
