html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; transition: background-color 0.3s, color 0.3s; }
body { background-color: #f8fafc; color: #1e293b; }
html[data-theme="dark"] body { background-color: #0f172a; color: #e2e8f0; }

.glass-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);
  transition: all 0.3s ease;
}
html[data-theme="dark"] .glass-card {
  background: rgba(30,41,59,0.7);
  border-color: rgba(255,255,255,0.08);
}

.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
html[data-theme="dark"] .hover-lift:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, #1065ff, #14b8a6, #a855f7);
  transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

pre { background: #1e293b !important; color: #e2e8f0 !important; border-radius: 0 !important; }
html[data-theme="dark"] pre { background: #0f172a !important; }

code { font-family: 'JetBrains Mono', 'Fira Code', monospace; white-space: pre-wrap; word-break: break-all; }

details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

@media (max-width: 768px) {
  .text-7xl { font-size: 2.5rem !important; }
  .text-4xl { font-size: 1.75rem !important; }
}