html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

.hamburger {
  cursor: pointer;
  transition: transform 0.3s;
}

.hamburger:hover {
  transform: scale(1.1);
}

.mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#expertise {
  position: relative;
  overflow: hidden;
}

#expertise-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#expertise .content {
  position: relative;
  z-index: 2;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 8px;
  background: rgba(255,255,255,0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3B82F6, #8B5CF6);
  border-radius: 4px;
}

.group > .btn-hover {
  position: relative;
  overflow: hidden;
}

.group > .btn-hover span {
  position: relative;
  z-index: 10;
}

.group > .btn-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #3B82F6, #8B5CF6);
  opacity: 0;
  transition: opacity 0.3s;
}

.group:hover > .btn-hover::after {
  opacity: 0.2;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #3B82F6, #8B5CF6);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-visible {
  opacity: 1;
}

.loading-screen {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-screen.dark {
  background: #1f2937;
}