*{margin:0;padding:0;box-sizing:border-box}
html,body{max-width:100%}
html{height:100%;scroll-behavior:smooth;scroll-padding-top:100px}
body{font-family:'Tajawal',sans-serif;background:linear-gradient(135deg,#f3f4f9 0%,#f3f4f9 100%);color:var(--gray-800);transition:var(--transition);top:0px !important;position:static !important;min-height:100%;display:flex;flex-direction:column;overflow-x:hidden}
.dark body{background:linear-gradient(135deg,#020617 0%,#020617 100%);color:var(--gray-200)}
section.container{flex:1}
@media (max-width:992px){.logo-img{height:45px}}
@media (max-width:768px){.logo-img{height:40px}}
.dark .nav-link,.dark .mobile-menu-btn,.dark .btn-icon,.dark .search-box i,.dark .mobile-search-box i{text-shadow:0 1px 3px rgba(0,0,0,0.3)}
.dark .nav-link:hover,.dark .nav-link.active{color:white}
.search-box input{padding:0.6rem 1rem 0.6rem 2.5rem;width:220px;border-radius:12px;border:1px solid var(--gray-200);background:white;color:var(--dark);font-size:0.9rem;transition:var(--transition)}
.dark .search-box input{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1);color:white}
.btn-icon{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:white;color:var(--gray-700);cursor:pointer;border:none;box-shadow:0 2px 6px rgba(0,0,0,0.04);transition:var(--transition)}
.dark .btn-icon{background:rgba(255,255,255,0.05);color:white;box-shadow:none}
.dark .mobile-menu-btn{color:white}
.dark .mobile-nav a{color:rgba(255,255,255,0.8)}
.mobile-search-box input{width:100%;padding:0.75rem 2rem 0.75rem 2.5rem;border-radius:12px;border:1px solid rgba(0,0,0,0.1);background:rgba(255,255,255,0.95);color:var(--dark);font-size:0.95rem}
.dark .mobile-search-box input{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.1);color:white}
.hero{position:relative;padding:6rem 0 4rem;text-align:center;overflow:hidden}
.hero::before{content:'';position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 30%,rgba(67,56,202,0.08) 0%,transparent 45%),radial-gradient(circle at 70% 70%,rgba(126,34,206,0.06) 0%,transparent 55%);z-index:-1;pointer-events:none}
.dark .hero::before{background:radial-gradient(circle at 30% 30%,rgba(139,92,246,0.15) 0%,transparent 45%),radial-gradient(circle at 70% 70%,rgba(236,72,153,0.1) 0%,transparent 55%)}
.hero-content{position:relative;z-index:2;max-width:800px;margin:0 auto}
.hero h1{font-size:3.5rem;font-weight:800;line-height:1.15;margin-bottom:1.25rem;background:linear-gradient(90deg,#4338ca,#7e22ce,#be185d);-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:-0.02em}
.dark .hero h1{background:linear-gradient(90deg,#e0e7ff,#c7d2fe,#a5b4fc,#8b5cf6,#ec4899);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero p{font-size:1.35rem;font-weight:400;color:var(--gray-700);max-width:700px;margin:0 auto 2rem;line-height:1.7}
.dark .hero p{color:rgba(255,255,255,0.92)}
@media (max-width:768px){.hero h1{font-size:2.5rem}.hero p{font-size:1.15rem;padding:0 1rem}}
.hero-divider{width:100%;position:relative;margin:3.5rem 0 2.5rem;background:linear-gradient(90deg,transparent 0%,rgba(67,56,202,0.1) 25%,rgba(126,34,206,0.15) 50%,rgba(67,56,202,0.1) 75%,transparent 100%);height:2px;display:flex;align-items:center;justify-content:center}
.dark .hero-divider{background:linear-gradient(90deg,transparent 0%,rgba(170,140,240,0.07) 25%,rgba(200,160,250,0.1) 50%,rgba(170,140,240,0.07) 75%,transparent 100%)}
.divider-content{display:flex;align-items:center;gap:1rem;background:white;padding:0.5rem 1.5rem;border-radius:50px;box-shadow:0 4px 12px rgba(0,0,0,0.06),inset 0 1px 0 rgba(255,255,255,0.5);border:1px solid var(--gray-200)}
.dark .divider-content{background:rgba(6,6,16,0.9);border-color:rgba(170,140,240,0.15);box-shadow:0 4px 20px rgba(0,0,0,0.4),inset 0 1px 0 rgba(170,140,240,0.1)}
.divider-icon{font-size:0.9rem;color:var(--secondary);opacity:0.8;transition:var(--transition)}
.divider-icon:hover{color:var(--accent);transform:scale(1.2)}
.divider-title{font-size:1.35rem;font-weight:800;background:linear-gradient(90deg,var(--primary),var(--secondary));-webkit-background-clip:text;background-clip:text;color:transparent;margin:0}
.dark .divider-title{background:linear-gradient(90deg,#cbd5e1,#a5b4fc,#c084fc);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-divider:hover .divider-icon{animation:pulse 1.5s infinite}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
.tools-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-bottom:4rem;transition:opacity 0.3s ease,transform 0.3s ease}
@media (max-width:992px){.tools-grid{grid-template-columns:repeat(3,1fr)}}
@media (max-width:768px){.tools-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:480px){.tools-grid{grid-template-columns:1fr}}
.tool-link{text-decoration:none;color:inherit;display:block}
.tool-card{background:white;border:1px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;transition:var(--transition);box-shadow:var(--shadow);padding:1.25rem;position:relative;display:flex;flex-direction:column;height:100%;justify-content:space-between}
.dark .tool-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.05)}
.tool-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-hover)}
.dark .tool-card:hover{box-shadow:0 10px 30px rgba(139,92,246,0.15)}
.tool-card.visible:hover{transform:translateY(-5px)}
.tool-header{display:flex;align-items:flex-start;gap:1rem;margin-bottom:0.75rem}
.tool-image{width:48px;height:48px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;background:var(--gray-100);position:relative;border-radius:14px;box-shadow:0 2px 8px rgba(0,0,0,0.06);transition:all 0.3s cubic-bezier(0.4,0,0.2,1)}
.dark .tool-image{background:rgba(255,255,255,0.08);box-shadow:0 2px 8px rgba(0,0,0,0.3)}
.dark .tool-card:hover .tool-image{background:rgba(255,255,255,0.12)}
.dark .tool-image i{filter:brightness(1.3)}
.tool-card:hover .tool-image{transform:scale(1.08) rotate(3deg);box-shadow:0 4px 12px rgba(0,0,0,0.1)}
.dark .tool-card:hover .tool-image{box-shadow:0 4px 16px rgba(139,92,246,0.2)}
.tool-image img{width:100%;height:100%;object-fit:cover;transition:opacity 0.4s ease,transform 0.4s ease;opacity:0}
.tool-image img.loaded{opacity:1}
@keyframes shimmer{0%{transform:translateX(-100%)}100%{transform:translateX(100%)}}
.tool-card{opacity:0;transform:translateY(15px);transition:opacity 0.4s ease,transform 0.4s ease}
.tool-card.visible{opacity:1;transform:translateY(0)}
.tool-card:hover .tool-image img{transform:scale(1.05)}
.tool-title{font-weight:700;font-size:1.15rem;color:var(--dark);margin:0}
.dark .tool-title{color:white}
.tool-desc{font-size:0.875rem;color:var(--gray-600);margin-top:0.3rem;margin-bottom:1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dark .tool-desc{color:rgba(255,255,255,0.6)}
.tool-footer{display:flex;justify-content:space-between;align-items:center;margin-top:auto}
.tool-category{font-size:0.75rem;padding:0.25rem 0.75rem;border-radius:20px;background:var(--gray-100);color:var(--gray-600);font-weight:500}
.dark .tool-category{background:rgba(255,255,255,0.05);color:rgba(255,255,255,0.7)}
footer{background:var(--light);border-top:1px solid var(--gray-200);padding:3rem 0 1.5rem;margin-top:4rem}
@media (max-width:992px){.footer-grid{grid-template-columns:1fr 1fr;gap:2rem}}
@media (max-width:576px){.footer-grid{grid-template-columns:1fr;gap:1.5rem}}
.footer-col{}
.footer-social{display:flex;gap:0.75rem}
.social-link{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:var(--gray-100);color:var(--gray-600);text-decoration:none;transition:var(--transition);font-size:0.95rem}
.dark .social-link{background:rgba(255,255,255,0.05);color:rgba(255,255,255,0.6)}
.social-link:hover{background:var(--primary);color:white;transform:translateY(-2px)}
@media (max-width:768px){.nav-links,.search-box{display:none}.mobile-menu-btn{display:block}.hero-divider{margin:2.5rem 0 2rem}.divider-title{font-size:1.15rem}}
.hero-search-wrapper{position:relative;max-width:580px;margin:0.5rem auto 0;z-index:20}
.hero-search-container{position:relative}
.hero-search-box{position:relative;display:flex;align-items:center;background:white;border:2px solid var(--gray-200);border-radius:16px;box-shadow:0 4px 16px rgba(0,0,0,0.06);transition:all 0.3s cubic-bezier(0.4,0,0.2,1);overflow:hidden}
.dark .hero-search-box{background:rgba(255,255,255,0.04);border-color:rgba(255,255,255,0.08)}
.hero-search-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 4px rgba(67,56,202,0.12),0 8px 30px rgba(0,0,0,0.08);transform:translateY(-1px)}
.dark .hero-search-box:focus-within{border-color:rgba(139,92,246,0.5);box-shadow:0 0 0 4px rgba(139,92,246,0.15),0 8px 30px rgba(0,0,0,0.3)}
.hero-search-box .hero-search-icon{position:absolute;right:1rem;top:50%;transform:translateY(-50%);color:var(--gray-500);font-size:1.05rem;pointer-events:none;z-index:2;transition:color 0.3s ease}
.dark .hero-search-box .hero-search-icon{color:rgba(255,255,255,0.4)}
.hero-search-box:focus-within .hero-search-icon{color:var(--primary)}
.dark .hero-search-box:focus-within .hero-search-icon{color:rgba(139,92,246,0.7)}
.hero-search-box input{flex:1;padding:0.95rem 3.2rem 0.95rem 3.2rem;border:none;background:transparent;font-size:1rem;font-family:'Tajawal',sans-serif;color:var(--dark);outline:none;min-width:0}
.dark .hero-search-box input{color:white}
.hero-search-box input::placeholder{color:var(--gray-500)}
.dark .hero-search-box input::placeholder{color:rgba(255,255,255,0.35)}
.hero-search-actions{position:absolute;left:0.75rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:0.35rem;z-index:2}
.hero-search-clear{display:none;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:none;background:var(--gray-100);color:var(--gray-500);cursor:pointer;font-size:1rem;line-height:1;transition:all 0.2s ease;padding:0}
.dark .hero-search-clear{background:rgba(255,255,255,0.08);color:rgba(255,255,255,0.5)}
.hero-search-clear:hover{background:var(--gray-200);color:var(--gray-700)}
.dark .hero-search-clear:hover{background:rgba(255,255,255,0.15);color:white}
.hero-search-clear.visible{display:flex}
.hero-search-shortcut{display:flex;align-items:center;justify-content:center;padding:0.15rem 0.45rem;border-radius:5px;background:var(--gray-100);color:var(--gray-400);font-size:0.65rem;font-weight:600;direction:ltr;white-space:nowrap;line-height:1.4}
.dark .hero-search-shortcut{background:rgba(255,255,255,0.06);color:rgba(255,255,255,0.3)}
.hero-search-box:focus-within .hero-search-shortcut,.hero-search-clear.visible ~ .hero-search-shortcut{display:none}
.hero-suggestions{position:fixed;top:auto;left:50%;transform:translateX(-50%);background:white;border:1px solid var(--gray-200);border-radius:16px;box-shadow:0 16px 48px rgba(0,0,0,0.1);overflow:hidden;display:none;z-index:9999;max-height:420px;overflow-y:auto;width:580px;max-width:calc(100vw - 2rem)}
.dark .hero-suggestions{background:#15162b;border-color:rgba(255,255,255,0.06);box-shadow:0 16px 48px rgba(0,0,0,0.5)}
.hero-suggestions.active{display:block}
.suggestions-header{padding:0.65rem 1rem;font-size:0.7rem;font-weight:700;color:var(--gray-500);text-transform:uppercase;letter-spacing:0.04em;border-bottom:1px solid var(--gray-200);display:flex;align-items:center;gap:0.4rem}
.dark .suggestions-header{color:rgba(255,255,255,0.35);border-bottom-color:rgba(255,255,255,0.06)}
.suggestions-header i{font-size:0.65rem;opacity:0.6}
.suggestion-item{display:flex;align-items:center;gap:0.7rem;padding:0.65rem 1rem;cursor:pointer;transition:all 0.15s ease;text-decoration:none;color:inherit;border-bottom:1px solid var(--gray-100)}
.dark .suggestion-item{border-bottom-color:rgba(255,255,255,0.03)}
.suggestion-item:last-child{border-bottom:none}
.suggestion-item:hover,.suggestion-item.hovered{background:var(--gray-100)}
.dark .suggestion-item:hover,.dark .suggestion-item.hovered{background:rgba(255,255,255,0.04)}
.suggestion-item .suggestion-icon{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:0.85rem}
.suggestion-item .suggestion-info{flex:1;min-width:0}
.suggestion-item .suggestion-name{font-size:0.88rem;font-weight:600;color:var(--dark);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dark .suggestion-item .suggestion-name{color:white}
.suggestion-item .suggestion-desc{font-size:0.73rem;color:var(--gray-500);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:0.05rem}
.suggestion-item mark{background:rgba(67,56,202,0.12);color:inherit;border-radius:2px;padding:0 2px}
.dark .suggestion-item mark{background:rgba(139,92,246,0.25)}
.suggestion-empty{padding:2rem 1rem;text-align:center;color:var(--gray-500);font-size:0.88rem;line-height:1.6}
.dark .suggestion-empty{color:rgba(255,255,255,0.45)}
.suggestion-empty i{display:block;font-size:1.6rem;margin-bottom:0.6rem;opacity:0.4}
.suggestion-count{font-size:0.7rem;font-weight:500;color:var(--gray-400);margin-right:auto}
.hero-suggestions::-webkit-scrollbar{width:5px}
.hero-suggestions::-webkit-scrollbar-track{background:transparent}
.hero-suggestions::-webkit-scrollbar-thumb{background:var(--gray-300);border-radius:3px}
.dark .hero-suggestions::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.1)}
.tool-card mark{background:rgba(67,56,202,0.12);color:inherit;border-radius:2px;padding:0 2px}
.dark .tool-card mark{background:rgba(139,92,246,0.25)}
@media (max-width:768px){.hero-search-wrapper{max-width:100%;padding:0 1rem;margin-top:1rem}.hero-search-box input{padding:0.8rem 2.8rem 0.8rem 2.8rem;font-size:0.95rem}.hero-search-box{border-radius:14px}.hero-search-box .hero-search-icon{right:0.8rem;font-size:0.95rem}.hero-search-actions{left:0.6rem}.hero-suggestions{left:0.75rem;right:0.75rem;width:auto;max-height:320px;border-radius:14px;transform:none}}
.category-filter-bar{max-width:800px;margin:1.25rem auto 0;padding:0 1rem;position:relative;z-index:20}
.category-chips{display:flex;flex-wrap:wrap;gap:0.5rem;justify-content:center;padding:0.25rem 0}
.category-chip{display:inline-flex;align-items:center;gap:0.4rem;padding:0.5rem 1rem;border-radius:50px;border:1.5px solid var(--gray-200);background:white;color:var(--gray-600);font-size:0.85rem;font-weight:500;font-family:'Tajawal',sans-serif;cursor:pointer;transition:all 0.3s cubic-bezier(0.4,0,0.2,1);white-space:nowrap;user-select:none;box-shadow:0 1px 3px rgba(0,0,0,0.04)}
.dark .category-chip{background:rgba(255,255,255,0.04);border-color:rgba(255,255,255,0.08);color:rgba(255,255,255,0.6);box-shadow:none}
.category-chip i{font-size:0.8rem;transition:transform 0.3s ease}
.category-chip:hover{border-color:var(--primary);color:var(--primary);background:rgba(67,56,202,0.06);transform:translateY(-1px);box-shadow:0 3px 8px rgba(67,56,202,0.1)}
.dark .category-chip:hover{border-color:rgba(139,92,246,0.5);color:rgba(139,92,246,0.9);background:rgba(139,92,246,0.1);box-shadow:0 3px 12px rgba(139,92,246,0.15)}
.category-chip:hover i{transform:scale(1.15)}
.category-chip.active{background:linear-gradient(135deg,var(--primary),var(--secondary));color:white;border-color:transparent;box-shadow:0 4px 12px rgba(67,56,202,0.25)}
.dark .category-chip.active{background:linear-gradient(135deg,#7c3aed,#a855f7);border-color:transparent;box-shadow:0 4px 16px rgba(139,92,246,0.35);color:white}
.category-chip.active:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(67,56,202,0.3)}
.category-chip.active i{color:white}
.dark .category-chip.active i{color:white}
.tools-empty-message{display:none;text-align:center;padding:3rem 1rem;color:var(--gray-500);font-size:1.05rem;line-height:1.8}
.dark .tools-empty-message{color:rgba(255,255,255,0.4)}
.tools-empty-message i{display:block;font-size:2.5rem;margin-bottom:0.75rem;opacity:0.35;color:var(--gray-500)}
.dark .tools-empty-message i{color:rgba(255,255,255,0.3)}
@media (max-width:768px){.category-filter-bar{max-width:100%;margin-top:1rem;padding:0}.category-chips{flex-wrap:wrap;justify-content:center;padding:0.5rem 1rem;gap:0.4rem}.category-chip{font-size:0.8rem;padding:0.45rem 0.85rem}}