/* Global Styles */
:root {
    --primary-color: #5b3df3;
    --secondary-color: #1e1741;
    --accent-color: #2dd4bf;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: rgba(255, 255, 255, 0.4);
    --sidebar-width: 300px;
}

/* Sidebar Styles */
.tools-sidebar {
    position: fixed;
    left: -300px;
    top: 55px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #212121e1 0%, #112437 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(99, 102, 241, 0.1);
}

.tools-sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 0.7rem 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}


#header-placeholder{
        position: fixed;
        top: 0px;
        width: 100%;
        left: 0px;
        z-index: 1000;
}


.sidebar-search {
    padding: 1rem;
    position: relative;
    flex-shrink: 0;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0.8rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 50px;
    font-size: 0.95rem;
    box-shadow: inset 0px -2px 5px gray;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.982);
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: inset 0px -2px 3px gray;
    background: white;
}

.sidebar-search i {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(99, 102, 241, 0.5);
    font-size: 0.9rem;
}

.sidebar-tools-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    
}

.sidebar-tools-list::-webkit-scrollbar{
    background-color: #ffffff00;
}

.sidebar-tools-list::-webkit-scrollbar-track{

    width: 2px !important;
}


.sidebar-tools-list::-webkit-scrollbar-thumb{
    background-color: #ffffff;
    border-radius: 50px;
    width: 2px !important;
}
.sidebar-tool-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar-tool-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
    color: var(--primary-color);
}

.sidebar-tool-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-tool-item:hover .sidebar-tool-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-tool-item.active .sidebar-tool-icon {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.sidebar-tool-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-toggle {
    position: fixed;
    right: 20px;
    top: 10px;
    width: 50px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sidebar-toggle:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* Overlay when sidebar is active */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 99;
    display: none;
    transition: background 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

/* Adjust main content when sidebar is active on desktop */
@media (min-width: 992px) {
    body.sidebar-open {
        margin-left: 300px;
    }

    .tools-sidebar {
        left: 0 !important;
    }

    .sidebar-toggle {
        display: none;
    }

    .sidebar-overlay {
        display: none !important;
    }
}

/* Base Styles */
body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    transition: margin-left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.section-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.section-header h2 {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    width: 100%;
}

.category-icon {
    margin-right: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Header Styles */
.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgb(2, 30, 88) 0%, #000000 100%);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    transition: margin-left 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.display-4 {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Animated Background Elements */
.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.15), rgba(45, 212, 191, 0.15));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(40px);
    z-index: 0;
    animation: blobAnimation 12s infinite linear;
}

.blob:nth-child(2) {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, rgba(3, 253, 28, 0.1), rgba(74, 144, 226, 0.1));
    animation-duration: 18s;
    animation-direction: reverse;
}

.blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.1), rgba(103, 178, 111, 0.1));
    animation-duration: 25s;
}

@keyframes blobAnimation {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-45%, -55%) rotate(180deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
    }
}

/* Search Component */
.search-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    margin: 0 auto 2rem auto;
    z-index: 1000;
}

.search-box {
    border: none !important;
    background: rgba(255, 255, 255, 1) !important;
    color: #1e293b !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px 0 0 12px !important;
    font-size: 1.1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-box:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3) !important;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 0.8rem 2rem !important;
    border-radius: 0 12px 12px 0 !important;
    font-weight: 600;
}

#suggestionsList {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 20px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10000;
    margin: 0;
    padding: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    animation: slideDownFade 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#suggestionsList .list-group-item {
    border: none;
    border-radius: 12px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

#suggestionsList .list-group-item:hover {
    background: rgba(99, 102, 241, 0.08);
    transform: translateX(4px);
}

/* Tool Cards */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem 0;
}

.tool-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.tool-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.3);
}

.tool-icon {
    font-size: 1.5rem;
    color: #fff !important;
}

.tool-link {
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-link {
    color: var(--primary-color);
}

.tool-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    font-weight: 500;
}

/* Generic Card Enhancements */
.card {
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 2rem;
}

.card-header h1,
.card-header h2,
.card-header h3 {
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-header i {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.2), transparent);
    width: 60%;
    margin: 4rem auto;
}

/* Responsive Design */
@media (max-width: 991px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .hero-section {
        padding: 6rem 0;
    }
    
    .sidebar-toggle {
        display: flex;
    }

    body {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .tools-grid {
        gap: 1rem;
    }
    
    #forDeveloper{
        text-align: center !important;
    }
    .hero-section {
        padding: 5rem 0rem !important;
    }
    .tool-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .tool-icon-wrapper {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .tool-link {
        font-size: 1.1rem;
    }

    .section-header {
        padding: 1.5rem;
    }
}

/* Footer Styles */
footer {
    background: #111827;
    color: white;
    padding: 4rem 0;
    margin-top: 4rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

/* Ad Placeholder Styles */
.ad-placeholder {
    background-color: #f1f5f9;
    border: 2px dashed #e2e8f0;
    padding: 2rem;
    text-align: center;
    color: #64748b;
    border-radius: 16px;
}