* { scroll-behavior: smooth; box-sizing: border-box; }

body {
  background: #0a0a12;
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a12; }
::-webkit-scrollbar-thumb { background: #4c1d95; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

.bg-grid {
  background-image:
    linear-gradient(rgba(139,92,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  animation: blobFloat 9s ease-in-out infinite;
}

@keyframes blobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-24px) scale(1.06); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ringSpinCW  { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes ringSpinCCW { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 18px rgba(139,92,246,0.35); }
  50%       { box-shadow: 0 0 38px rgba(139,92,246,0.65); }
}

.animate-fadeUp  { animation: fadeUp 0.65s ease both; }
.animate-fadeIn  { animation: fadeIn 0.5s ease both; }
.animate-glow    { animation: glow 2.5s ease-in-out infinite; }
.ring-cw         { animation: ringSpinCW  22s linear infinite; }
.ring-ccw        { animation: ringSpinCCW 30s linear infinite; }

.grad-text {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
}

.card-hover {
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  background: rgba(139,92,246,0.07);
  border-color: rgba(139,92,246,0.28);
  box-shadow: 0 20px 40px rgba(139,92,246,0.12);
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #fff; border: 1px solid rgba(139,92,246,0.3);
  transition: all 0.25s ease; cursor: pointer; text-decoration: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 0 24px rgba(139,92,246,0.4);
  transform: translateY(-2px);
  color: #fff;
}
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.6rem; border-radius: 0.5rem; font-weight: 600; font-size: 0.9rem;
  background: transparent; color: #a78bfa; border: 1px solid rgba(139,92,246,0.45);
  transition: all 0.25s ease; cursor: pointer; text-decoration: none;
}
.btn-outline:hover {
  background: rgba(139,92,246,0.1); border-color: #8b5cf6;
  transform: translateY(-2px); color: #a78bfa;
}

.input-field {
  width: 100%; padding: 0.7rem 1rem; border-radius: 0.5rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  color: #e2e8f0; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input-field::placeholder { color: #475569; }
.input-field:focus {
  border-color: rgba(139,92,246,0.55); background: rgba(139,92,246,0.05);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.12);
}
select.input-field option { background: #141428; color: #e2e8f0; }

.tag-pill {
  display: inline-flex; align-items: center; padding: 0.2rem 0.65rem;
  border-radius: 9999px; font-size: 0.72rem; font-weight: 500;
  background: rgba(124,58,237,0.14); color: #a78bfa; border: 1px solid rgba(124,58,237,0.22);
}

.skill-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section { padding: 5.5rem 0; }

.nav-link {
  position: relative; color: #94a3b8; font-size: 0.875rem;
  font-weight: 500; text-decoration: none; transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #e2e8f0; }
.nav-link:hover::after { width: 100%; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Line-clamp */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
