*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* CSS Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hacktoberfest 2025 Colors */
    --primary-color: #ff6347;
    --secondary-color: #ff8c00;
    --accent-color: #ffa500;
    --github-color: #f0f6fc;
    --success-color: #238636;
    --warning-color: #d29922;
    --error-color: #da3633;
    
    /* Open Source Theme (Default Dark) */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Hacktoberfest Gradients */
    --gradient-primary: linear-gradient(135deg, #ff6347 0%, #ff8c00 50%, #ffa500 100%);
    --gradient-secondary: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    --gradient-dark: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    --gradient-github: linear-gradient(135deg, #f0f6fc 0%, #8b949e 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Typography */
    --font-primary: 'Poppins', system-ui, -apple-system, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Advanced Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(139, 69, 19, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(218, 165, 32, 0.08) 0%, transparent 40%),
        linear-gradient(135deg, #0d1117 0%, #161b22 40%, #21262d 100%);
    animation: backgroundShift 20s ease-in-out infinite;
    transition: background 0.5s ease;
}

@keyframes backgroundShift {
    0%, 100% { 
        background-position: 0% 50%, 100% 50%, 50% 0%, 0% 0%;
    }
    50% { 
        background-position: 100% 50%, 0% 50%, 50% 100%, 0% 0%;
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(255, 107, 53, 0.15) 0%, 
        rgba(0, 129, 180, 0.15) 50%, 
        rgba(255, 140, 66, 0.15) 100%);
    animation: advancedFloat 25s infinite ease-in-out;
    filter: blur(2px);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.2);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(255, 99, 71, 0.2) 0%, transparent 70%);
    border-radius: 50% 30% 70% 40%;
}

.shape-2 {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 5%;
    animation-delay: -8s;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.15) 0%, transparent 70%);
    border-radius: 40% 60% 30% 70%;
}

.shape-3 {
    width: 90px;
    height: 90px;
    top: 75%;
    left: 15%;
    animation-delay: -16s;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.18) 0%, transparent 70%);
    border-radius: 60% 40% 50% 60%;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 25%;
    right: 25%;
    animation-delay: -12s;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.12) 0%, transparent 70%);
    border-radius: 30% 70% 60% 40%;
}

.shape-5 {
    width: 110px;
    height: 110px;
    top: 8%;
    left: 45%;
    animation-delay: -20s;
    background: radial-gradient(circle, rgba(255, 99, 71, 0.15) 0%, transparent 70%);
    border-radius: 70% 30% 40% 60%;
}

@keyframes advancedFloat {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-80px) translateX(40px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-120px) translateX(-30px) rotate(180deg) scale(0.9);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-60px) translateX(-50px) rotate(270deg) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.3;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 0.7;
    }
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.github-link {
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
}

/* Theme toggle removed */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.sidebar-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

/* Enhanced Sticky Header */
.navbar.enhanced {
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 2px solid rgba(255, 107, 53, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 100px rgba(255, 107, 53, 0.1);
    transform: translateY(0);
}

.navbar.enhanced .nav-logo {
    font-size: 1.3rem;
}

.navbar.enhanced .nav-links {
    gap: 1.5rem;
}


/* ============================================
   FIXED SIDEBAR NAVIGATION
   ============================================ */

.tools-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1100;
    transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background 0.3s ease, border-color 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

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

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 35, 0.8);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-header h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.sidebar-search {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-search .search-wrapper {
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.sidebar-search .search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebar-content {
    flex: 1;
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-category {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.sidebar-category i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.sidebar-tools {
    display: flex;
    flex-direction: column;
}

.sidebar-tool-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-tool-link:hover {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
}

.sidebar-tool-link.disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.sidebar-tool-link.disabled:hover {
    background: none;
    border-left-color: transparent;
    color: var(--text-muted);
}

.sidebar-tool-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.sidebar-tool-link.disabled i {
    color: var(--text-muted);
}

.sidebar-tool-link span {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.sidebar-tool-link small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 35, 0.5);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.sidebar-contribute-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-contribute-btn:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem 2rem; /* Added top padding for navbar */
    position: relative;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    margin-top: 2rem; /* Additional space from navbar */
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #ff6347, #ff8c00, #ffa500);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 2rem;
    animation: pulse 2s infinite;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: hacktoberfestPulse 3s infinite;
    box-shadow: 0 4px 20px rgba(255, 99, 71, 0.4);
    border: 2px solid rgba(255, 140, 0, 0.3);
}

/* GitHub Style Badges */
.github-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    /* margin-top: 0.5rem; */
}

.github-badge,
.contributors-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(240, 246, 252, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #f0f6fc;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.github-badge:hover,
.contributors-badge:hover {
    background: rgba(33, 38, 45, 0.9);
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
}

.github-badge svg {
    opacity: 0.8;
}

/* Responsive badge layout */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem 2rem 1rem; /* Adjusted for mobile navbar */
    }
    
    .hero-content {
        margin-top: 1rem;
    }
    
    .hero-badges {
        gap: 0.75rem;
        margin-bottom: 2rem;
        margin-top: 0.5rem;
    }
    
    .github-badges {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .github-badge,
    .contributors-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Large screen optimization */
@media (min-width: 1200px) {
    .hero {
        padding-top: 2.5rem; /* More space on large screens */
    }
    
    .hero-content {
        margin-top: 3rem;
    }
}

.hero-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    margin-top: 1rem; /* Ensure proper spacing from top */
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-effect {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.cursor {
    font-size: 1.2rem;
    color: var(--primary-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: titleReveal 0.8s ease-out 0.2s forwards;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.6s ease 0.5s;
}

.section-title.visible::after {
    width: 60px;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    70% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: subtitleFade 0.6s ease-out 0.5s forwards;
}

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

/* Contribution Section */
.contribution-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(13, 17, 23, 0.95) 0%, 
        rgba(21, 32, 43, 0.95) 100%);
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.contribution-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contribution-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff6347, #ff8c00, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contribution-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contribution-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contrib-stat {
    text-align: center;
}

.contrib-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.contrib-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contribution-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contrib-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.contrib-btn.primary {
    background: linear-gradient(135deg, #ff6347, #ff8c00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
}

.contrib-btn.secondary {
    background: rgba(240, 246, 252, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(240, 246, 252, 0.2);
}

.contrib-btn:hover {
    transform: translateY(-2px);
}

.contrib-btn.primary:hover {
    box-shadow: 0 6px 25px rgba(255, 99, 71, 0.4);
}

.contrib-btn.secondary:hover {
    background: rgba(240, 246, 252, 0.15);
    border-color: rgba(255, 140, 0, 0.5);
}

/* GitHub Repository Card */
.github-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md); /* Added a subtle shadow */
    transition: background 0.3s ease, border-color 0.3s ease; /* For smooth theme switching */
}


.repo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.repo-header i {
    color: var(--primary-color);
}

.repo-badge {
    background: rgba(33, 38, 45, 0.8);
    color: #7d8590;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    border: 1px solid rgba(240, 246, 252, 0.1);
    margin-left: auto;
}

.repo-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.repo-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.repo-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.repo-language {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-muted);
}

.lang-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.lang-dot.js {
    background: #f1e05a;
}

/* Responsive Design for Contribution Section */
@media (max-width: 768px) {
    .contribution-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contribution-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contribution-actions {
        justify-content: center;
    }
    
    .contrib-btn {
        flex: 1;
        justify-content: center;
        min-width: 150px;
    }
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    position: relative;
}

/* Advanced Search */
.search-container {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    z-index: 10;
    position: relative;
}

.search-wrapper {
    position: relative;
    margin-bottom: 1rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInSearch 0.6s ease-out 0.3s forwards;
}

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

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px);
    box-sizing: border-box;
    display: block;
    opacity: 1;
    visibility: visible;
    position: relative;
}

.search-input::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(255, 107, 53, 0.1),
        0 8px 25px rgba(255, 107, 53, 0.2);
    transform: translateY(-3px) scale(1.02);
    background: rgba(26, 26, 46, 0.9);
}

.search-input:focus::before {
    opacity: 0.1;
}

.search-input::placeholder {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-input:focus::placeholder {
    color: transparent;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
    pointer-events: none;
}

.search-input:focus + .search-icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1) rotate(5deg);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.search-suggestions.show {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.suggestion-item {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.suggestion-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
}

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

.suggestion-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.suggestion-description {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.suggestion-arrow {
    color: var(--primary-color);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.suggestion-item:hover .suggestion-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.coming-soon {
    font-size: 0.8rem;
    color: var(--warning-color);
    font-weight: 500;
    margin-top: 0.25rem;
}

.suggestion-item[data-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.suggestion-item[data-disabled="true"]:hover {
    background: rgba(245, 166, 35, 0.1);
    color: var(--warning-color);
}

/* Coming Soon Tool Cards */
.tool-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.tool-card.coming-soon:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 30px rgba(245, 166, 35, 0.15);
}

.tool-card.coming-soon::after {
    content: '\f017'; /* FontAwesome clock icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--warning-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

.tool-card.coming-soon .tool-arrow {
    display: none;
}

.coming-soon-tag {
    background: var(--warning-color) !important;
    color: var(--bg-primary) !important;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Coming Soon Notification Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
}

.search-stats {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-stats #resultCount {
    color: var(--primary-color);
    font-weight: 600;
}

.tools-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    opacity: 1;
    transform: translateY(20px);
    animation: slideInFilter 0.5s ease-out forwards;
}

.filter-btn.filter-btn-active {
  animation: filterPulse 0.3s ease-out;
}

.filter-btn:nth-child(1) { animation-delay: 0.1s; }
.filter-btn:nth-child(2) { animation-delay: 0.2s; }
.filter-btn:nth-child(3) { animation-delay: 0.3s; }
.filter-btn:nth-child(4) { animation-delay: 0.4s; }
.filter-btn:nth-child(5) { animation-delay: 0.5s; }

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

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 0;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.filter-btn i {
    transition: transform 0.3s ease;
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.2) rotate(5deg);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    grid-auto-rows: minmax(220px, auto);
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

/* Bento Grid Layout - Different sizes for featured tools */
.tool-card[data-featured="true"] {
    grid-row: span 2;
    min-height: 400px;
}

.tool-card[data-wide="true"] {
    grid-column: span 2;
}

/* Special styling for featured cards */
.tool-card[data-featured="true"] {
    background: linear-gradient(135deg,
        rgba(255, 107, 53, 0.1) 0%,
        rgba(0, 129, 180, 0.1) 100%);
    border: 2px solid rgba(255, 107, 53, 0.2);
}

.tool-card[data-featured="true"] .tool-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
    background: linear-gradient(135deg,
        var(--primary-color) 0%,
        var(--secondary-color) 50%,
        var(--accent-color) 100%);
}

.tool-card[data-featured="true"] .tool-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tool-card[data-featured="true"] .tool-description {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Adaptive grid for different screen sizes */
@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
    }

    .tool-card[data-wide="true"] {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        perspective: none;
    }

    .tool-card {
        padding: 1.8rem;
        min-height: 200px;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .tool-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .tool-content {
        gap: 1rem;
    }

    .tool-arrow {
        top: 1.8rem;
        right: 1.8rem;
        width: 36px;
        height: 36px;
    }

    .tool-card[data-featured="true"],
    .tool-card[data-wide="true"] {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        perspective: none;
    }

    .tool-card {
        padding: 1.5rem 3rem 1.5rem 1.5rem;
        min-height: 180px;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .tool-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

    .tool-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .tool-title {
        font-size: 1.2rem;
    }

    .tool-description {
        font-size: 0.9rem;
    }

    .tool-arrow {
        top: 1.5rem;
        right: 1.5rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

.tool-card {
    background: linear-gradient(145deg, 
        var(--bg-secondary) 0%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 4.5rem 2rem 2rem; /* Adjusted padding for arrow */
    text-decoration: none;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
    animation: cardReveal 0.8s ease-out forwards;
    min-height: 220px;
    cursor: pointer;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(240, 246, 252, 0.1),
        0 0 0 1px rgba(255, 99, 71, 0.1);
}

/* Staggered animation delay for each tool card */
.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.15s; }
.tool-card:nth-child(3) { animation-delay: 0.2s; }
.tool-card:nth-child(4) { animation-delay: 0.25s; }
.tool-card:nth-child(5) { animation-delay: 0.3s; }
.tool-card:nth-child(6) { animation-delay: 0.35s; }
.tool-card:nth-child(7) { animation-delay: 0.4s; }
.tool-card:nth-child(8) { animation-delay: 0.45s; }
.tool-card:nth-child(9) { animation-delay: 0.5s; }
.tool-card:nth-child(10) { animation-delay: 0.55s; }
.tool-card:nth-child(11) { animation-delay: 0.6s; }
.tool-card:nth-child(12) { animation-delay: 0.65s; }
.tool-card:nth-child(n+13) { animation-delay: 0.7s; }

@keyframes cardReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(15deg) scale(0.9);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-10px) rotateX(5deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

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

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced glow effect on hover */
.tool-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.tool-card:hover::after {
    opacity: 0.3;
}

.tool-card:hover {
    transform: translateY(-15px) scale(1.03) rotateY(3deg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 2px var(--primary-color),
        0 0 60px rgba(255, 99, 71, 0.4);
    border-color: var(--primary-color);
    background: linear-gradient(145deg, 
        rgba(255, 99, 71, 0.08) 0%, 
        var(--bg-tertiary) 30%, 
        rgba(255, 140, 0, 0.08) 100%);
}

/* Subtle pulse animation for featured cards */
.tool-card[data-featured="true"] {
    animation: fadeInUp 0.6s ease-out forwards, pulse 3s ease-in-out infinite 2s;
}

@keyframes hacktoberfestPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(255, 99, 71, 0.4), 0 0 0 0 rgba(255, 140, 0, 0.6);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 30px rgba(255, 99, 71, 0.6), 0 0 0 15px rgba(255, 140, 0, 0);
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

.tool-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 50%, 
        var(--accent-color) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 
        0 12px 40px rgba(255, 107, 53, 0.6),
        0 0 60px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, 
        var(--accent-color) 0%, 
        var(--primary-color) 50%, 
        var(--secondary-color) 100%);
}

.tool-card:hover .tool-icon::before {
    width: 100%;
    height: 100%;
}

/* Icon bounce animation on load */
.tool-icon {
    animation: iconBounce 0.8s ease-out 0.5s both;
}

@keyframes iconBounce {
    0% {
        transform: scale(0.3) rotate(-10deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(5deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.tool-content {
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInContent 0.6s ease-out 0.7s forwards;
    padding-right: 4rem; /* Add padding to prevent overlap with arrow */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.tool-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    transition: all 0.5s ease;
    position: relative;
    line-height: 1.3;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        rgba(255, 107, 53, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tool-card:hover .tool-title {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-2px);
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    transition: all 0.5s ease;
    transform: translateY(0);
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0.9;
}

.tool-card:hover .tool-description {
    color: var(--text-primary);
    transform: translateY(-5px);
    opacity: 1;
}

.tool-tags {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInTags 0.6s ease-out 0.9s forwards;
    margin-top: auto;
    max-width: 100%; /* Prevent overflow */
    padding-right: 1rem; /* Extra space from arrow */
}

@keyframes fadeInTags {
    to {
        opacity: 1;
    }
}

.tag {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(0, 129, 180, 0.2) 100%);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.2);
    transition: left 0.3s ease;
}

.tool-card:hover .tag {
    transform: scale(1.1) translateY(-2px);
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
}

.tool-card:hover .tag::before {
    left: 100%;
}

/* Individual tag animation delays */
.tag:nth-child(1) { animation-delay: 0.9s; }
.tag:nth-child(2) { animation-delay: 1.0s; }
.tag:nth-child(3) { animation-delay: 1.1s; }
.tag:nth-child(4) { animation-delay: 1.2s; }

/* Tool Arrow */
.tool-arrow {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.2) 0%, 
        rgba(0, 129, 180, 0.2) 100%);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.6;
    transform: translateX(20px) scale(0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-arrow i {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.tool-card:hover .tool-arrow {
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    opacity: 1;
    transform: translateX(0) scale(1.2) rotate(45deg);
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 0 40px rgba(255, 107, 53, 0.3);
}
.tool-card:hover .tool-arrow i {
    /* Counter-rotate the icon to keep it pointing right */
    transform: rotate(-45deg);
}

/* Better layout for tool cards */
.tool-card {
    position: relative;
    cursor: pointer;
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

/* Advanced border animation */
.tool-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--primary-color), 
        var(--secondary-color), 
        var(--accent-color), 
        var(--primary-color));
    background-size: 400% 400%;
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0;
    transition: all 0.6s ease;
    animation: gradientShift 4s ease-in-out infinite;
}

.tool-card:hover::before {
    opacity: 1;
    animation-duration: 1s;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Enhanced glow effect with particles */
.tool-card::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at 50% 50%, 
        rgba(255, 107, 53, 0.2) 0%, 
        transparent 70%);
    border-radius: var(--radius-lg);
    z-index: -2;
    opacity: 0;
    transition: all 0.6s ease;
    filter: blur(20px);
    transform: scale(0.8);
}

.tool-card:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

.tool-arrow {
    align-self: flex-end;
}

.tool-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -5px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

/* Bouncing arrow animation */
.tool-card:hover .tool-arrow {
    animation: arrowBounce 0.6s ease-in-out;
}

@keyframes arrowBounce {
    0%, 100% { 
        transform: translateX(8px) scale(1.2);
    }
    50% { 
        transform: translateX(12px) scale(1.3);
    }
}

.add-tool-card {
    border: 2px dashed rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.05);
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.add-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.8s ease;
}

.add-tool-card:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-12px) scale(1.02);
    animation: wiggle 0.5s ease-in-out;
}

.add-tool-card:hover::before {
    left: 100%;
}

@keyframes wiggle {
    0%, 100% { transform: translateY(-12px) scale(1.02) rotate(0deg); }
    25% { transform: translateY(-12px) scale(1.02) rotate(1deg); }
    75% { transform: translateY(-12px) scale(1.02) rotate(-1deg); }
}

.add-tool-card .tool-icon {
    background: transparent;
    border: 2px dashed var(--primary-color);
    color: var(--primary-color);
    animation: none;
}

.add-tool-card:hover .tool-icon {
    background: var(--primary-color);
    color: white;
    border-style: solid;
    animation: rotatePulse 0.6s ease-in-out;
}

@keyframes rotatePulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1.15) rotate(360deg); }
}

/* Contribute Section */
.contribute-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.contribute-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contribute-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.contribute-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hacktoberfest-logo {
    text-align: center;
    padding: 3rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    animation: rotate 20s linear infinite;
}

.hacktoberfest-logo i {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.hacktoberfest-logo span {
    display: block;
    font-weight: 700;
}

.hacktoberfest-logo .year {
    font-size: 2rem;
    margin-top: 0.5rem;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Creator Section */
.creator-section {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

.creator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    z-index: 0;
    transition: background 0.3s ease;
}

.creator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.creator-info {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.creator-avatar {
    position: relative;
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    z-index: 2;
    animation: avatarFloat 3s ease-in-out infinite;
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes avatarFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.creator-details {
    flex: 1;
}

.creator-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creator-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.creator-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.creator-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.creator-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.creator-stat i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.creator-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.creator-btn {
    flex: 1;
    min-width: 200px;
    justify-content: center;
}

.creator-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1.8;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.code-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
}

.code-line {
    opacity: 0;
    animation: codeTyping 0.5s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.8s; }
.code-line:nth-child(3) { animation-delay: 1.4s; }
.code-line:nth-child(4) { animation-delay: 2.0s; }
.code-line:nth-child(5) { animation-delay: 2.6s; }

.code-indent {
    padding-left: 2rem;
}

.code-keyword {
    color: #ff6b9d;
    font-weight: 600;
}

.code-variable {
    color: #4ecdc4;
}

.code-operator {
    color: #ffe66d;
}

.code-string {
    color: #95e1d3;
}

.code-function {
    color: #a8e6cf;
}

.code-bracket {
    color: var(--text-secondary);
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: border-color 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 1rem;
        min-height: 90vh;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tools-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .contribute-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .creator-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .creator-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .creator-actions {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 2rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Enhanced Micro-interactions */
.tool-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tool-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow:
        0 25px 50px rgba(255, 107, 53, 0.15),
        0 0 0 1px rgba(255, 107, 53, 0.1);
}

.tool-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.tool-card:hover .tool-icon::before {
    width: 100%;
    height: 100%;
}

.tool-card:hover .tool-icon {
    transform: scale(1.15) rotate(10deg);
    background: conic-gradient(
        from 0deg,
        var(--primary-color) 0deg,
        var(--secondary-color) 120deg,
        var(--accent-color) 240deg,
        var(--primary-color) 360deg
    );
}

/* Advanced Button Interactions */
.btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Magnetic Button Effect */
.btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 35px rgba(255, 107, 53, 0.4),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: var(--radius-sm);
    opacity: 0.1;
}

.nav-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Particle Effects for Hero Section */
.hero {
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 129, 180, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Glassmorphism Effects */
.navbar,
.tool-card,
.contribute-section,
.creator-section {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Micro-interactions for all interactive elements */
.btn,
.filter-btn,
.tool-card,
.sidebar-toggle,
.mobile-menu-toggle {
    will-change: transform;
}

/* Enhanced button micro-interactions */
.btn:active {
    transform: scale(0.98);
}

.filter-btn:active {
    transform: translateY(-1px) scale(0.98);
}

/* Floating animation for special elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Staggered reveal animation for grid items */
.staggered-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealItem 0.6s ease-out forwards;
}

.staggered-reveal:nth-child(1) { animation-delay: 0.1s; }
.staggered-reveal:nth-child(2) { animation-delay: 0.2s; }
.staggered-reveal:nth-child(3) { animation-delay: 0.3s; }
.staggered-reveal:nth-child(4) { animation-delay: 0.4s; }
.staggered-reveal:nth-child(5) { animation-delay: 0.5s; }
.staggered-reveal:nth-child(6) { animation-delay: 0.6s; }

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

/* Filter button pulse animation */
@keyframes filterPulse {
    0% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(-3px) scale(1.1); }
    100% { transform: translateY(-3px) scale(1.05); }
}

/* Enhanced tool card loaded state */
.tool-card.loaded {
    animation: none;
}

/* Reduce 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;
        scroll-behavior: auto !important;
    }
    
    .tool-card {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .filter-btn,
    .search-wrapper,
    .section-title,
    .section-subtitle {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Scroll-triggered Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

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

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

/* ============================================
   SIDEBAR RESPONSIVE DESIGN
   ============================================ */

/* Hide sidebar toggle on mobile, show mobile menu instead */
@media screen and (max-width: 768px) {
    .sidebar-toggle {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .tools-sidebar {
        width: 100vw;
        right: -100vw;
    }
    
    .tools-sidebar.active {
        right: 0;
    }
}

/* Tablet responsive sidebar */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .sidebar-toggle {
        display: block;
    }
    
    .tools-sidebar {
        width: 350px;
        right: -350px;
    }
}

/* Desktop sidebar */
@media screen and (min-width: 1025px) {
    .sidebar-toggle {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
    
    .tools-sidebar {
        width: 400px;
        right: -400px;
    }
}

/* Large desktop enhancements */
@media screen and (min-width: 1440px) {
    .tools-sidebar {
        width: 450px;
        right: -450px;
    }
    
    .sidebar-header h3 {
        font-size: 1.4rem;
    }
    
    .sidebar-tool-link {
        padding: 1rem 1.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.back-to-top:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-secondary);
    border-radius: 50%;
}

.back-to-top:active {
    transform: scale(0.95) translateY(0);
    border-radius: 50%;
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 50%;
    }
}

/* ============================================
   LIGHT MODE STYLES
   ============================================ */
body.light-mode {
    /* Light Theme Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #f0f2f5;
    --border-color: #d0d7de;
    --text-primary: #1f2328;
    --text-secondary: #57606a;
    --text-muted: #6e7681;
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* --- Light Mode Overrides --- */

body.light-mode .animated-bg {
    background: 
       radial-gradient(circle at 10% 20%, rgba(255, 99, 71, 0.1) 0%, transparent 40%),
       radial-gradient(circle at 90% 10%, rgba(255, 140, 0, 0.08) 0%, transparent 40%),
       linear-gradient(135deg, #ffffff 0%, #f6f8fa 100%);
}

body.light-mode .shape {
   background: linear-gradient(45deg, rgba(255, 107, 53, 0.1) 0%, rgba(0, 129, 180, 0.1) 50%, rgba(255, 140, 66, 0.1) 100%);
   box-shadow: 0 0 50px rgba(255, 107, 53, 0.15);
}

body.light-mode .navbar,
body.light-mode .navbar.enhanced {
   background: rgba(255, 255, 255, 0.85);
   border-bottom: 1px solid var(--border-color);
   box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.light-mode .nav-logo { color: var(--text-primary); }
body.light-mode .nav-link,
body.light-mode .sidebar-toggle,
body.light-mode .mobile-menu-toggle,
body.light-mode .theme-toggle-btn {
    color: var(--text-secondary);
}

body.light-mode .github-link { border-color: var(--border-color); }
body.light-mode .github-link:hover { color: white; }

body.light-mode .github-badge,
body.light-mode .contributors-badge {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.light-mode .theme-toggle-btn .fa-sun { display: block; }
body.light-mode .theme-toggle-btn .fa-moon { display: none; }

body.light-mode .btn-secondary {
    color: var(--text-primary);
}

/* Sidebar Light */
body.light-mode .tools-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-left: 1px solid var(--border-color);
}
body.light-mode .sidebar-header {
    background: rgba(246, 248, 250, 0.8);
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .sidebar-close:hover { background: rgba(0, 0, 0, 0.05); }
body.light-mode .sidebar-search-input {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
body.light-mode .sidebar-category { border-bottom-color: var(--border-color); }
body.light-mode .sidebar-tool-link { color: var(--text-secondary); }
body.light-mode .sidebar-tool-link:hover { background: rgba(255, 99, 71, 0.1); }
body.light-mode .sidebar-tool-link i { color: var(--text-muted); }
body.light-mode .sidebar-footer {
    background: rgba(246, 248, 250, 0.5);
    border-top: 1px solid var(--border-color);
}

/* Sections Light */
body.light-mode .contribution-section {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
body.light-mode .creator-section { background: #fff; }
body.light-mode .creator-section::before {
    background: radial-gradient(circle at 30% 50%, rgba(255, 99, 71, 0.05) 0%, transparent 50%);
}
body.light-mode .code-animation {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
body.light-mode .footer {
    background: var(--bg-secondary);
    border-top-color: var(--border-color);
}
body.light-mode .footer-bottom { border-top-color: var(--border-color); }

/* Tools & Search Light */
body.light-mode .search-input {
    background: #fff;
    border: 2px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
body.light-mode .search-input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 99, 71, 0.2), 0 4px 8px rgba(0,0,0,0.1);
}
body.light-mode .search-suggestions {
    background: #fff;
    border-color: var(--border-color);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
body.light-mode .suggestion-item:hover { background: #f6f8fa; }
body.light-mode .filter-btn {
    background: #fff;
    border-color: var(--border-color);
}
body.light-mode .filter-btn:hover, body.light-mode .filter-btn.active {
    color: white;
}
body.light-mode .tool-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
body.light-mode .tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 0 0 1px var(--primary-color);
    background: #fff;
}
body.light-mode .tool-card::before,
body.light-mode .tool-card::after {
   display: none;
}
body.light-mode .tool-card:hover .tool-description { color: var(--text-secondary); }
body.light-mode .tag {
    background: rgba(255, 99, 71, 0.1);
    color: #c93c22;
    border: 1px solid transparent;
    box-shadow: none;
}
body.light-mode .tool-card:hover .tag {
    background: var(--primary-color);
    color: white;
}
body.light-mode .tool-arrow {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}
body.light-mode .add-tool-card {
    background: var(--bg-secondary);
}
body.light-mode .back-to-top {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-color: transparent;
}