* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  background-color: #0a0f0d;
  color: #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gradient-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-fade-in-up-1 { animation: fadeInUp 0.8s ease-out 0.1s forwards; opacity: 0; }
.animate-fade-in-up-2 { animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.animate-fade-in-up-3 { animation: fadeInUp 0.8s ease-out 0.3s forwards; opacity: 0; }
.card-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transition: left 0.6s;
}
.card-glass:hover::before { left: 100%; }
.card-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(16, 185, 129, 0.2);
}
.card-glass:active { transform: translateY(-2px) scale(0.98); }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%), radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%), radial-gradient(ellipse 50% 40% at 80% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.global-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
main, header, footer { position: relative; z-index: 1; }
.section-tab {
  padding: 10px 28px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
  border-bottom: none;
}
.section-tab.active { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #34d399; }
.section-tab:not(.active) { background: rgba(255, 255, 255, 0.03); color: #64748b; }
.section-tab:not(.active):hover { background: rgba(255, 255, 255, 0.06); color: #94a3b8; }
.hero-section { position: relative; overflow: hidden; min-height: 85vh; display: flex; align-items: center; }
.gradient-text {
  background: linear-gradient(135deg, #34d399 0%, #10b981 30%, #6ee7b7 70%, #34d399 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease-in-out infinite;
}
.stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, #34d399, #10b981); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.15), transparent); margin: 0 auto; max-width: 300px; }
.ad-placeholder { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 10px, rgba(255, 255, 255, 0.04) 10px, rgba(255, 255, 255, 0.04) 20px); border: 1px dashed rgba(255, 255, 255, 0.1); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0f0d; }
::-webkit-scrollbar-thumb { background: #065f46; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #047857; }
header.sticky { padding-top: env(safe-area-inset-top, 0); }
#tools, #games, #projects { scroll-margin-top: 5.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.search-dropdown { background: #0f1613; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.55); }
.search-dropdown[hidden] { display: none !important; }
.catalog-card.is-search-hidden { display: none !important; }
.btn-hero { position: relative; overflow: hidden; transition: all 0.3s; }
.btn-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transform: translateX(-100%); transition: transform 0.5s; }
.btn-hero:hover::after { transform: translateX(100%); }
@media (max-width: 640px) { .hero-section { min-height: 70vh; } .stat-number { font-size: 1.8rem; } }