/* ── Alex Mercer Portfolio — Main Stylesheet ── */

* { scroll-behavior: smooth; }

body {
  background-color: #080c10;
  color: #c9d8e8;
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #080c10; }
::-webkit-scrollbar-thumb { background: #00e5ff44; border-radius: 99px; }

.glow-line {
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  height: 1px;
  box-shadow: 0 0 12px #00e5ff88;
}

.nav-glass {
  backdrop-filter: blur(20px);
  background: rgba(8, 12, 16, 0.85);
  border-bottom: 1px solid #1e2a3866;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px #00e5ff1a, 0 0 0 1px #00e5ff44;
  border-color: #00e5ff55;
}

.skill-fill {
  animation: skillFill 1.5s ease forwards;
  animation-delay: var(--delay, 0s);
  width: 0;
}
@keyframes skillFill { to { width: var(--target); } }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: #00e5ff;
}
@keyframes blink { 50% { opacity: 0; } }

.grad-text {
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid-bg {
  background-image:
    linear-gradient(#1e2a3812 1px, transparent 1px),
    linear-gradient(90deg, #1e2a3812 1px, transparent 1px);
  background-size: 60px 60px;
}

.radial-glow {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #00e5ff0d, transparent 70%);
}

.tag {
  background: #00e5ff0d;
  border: 1px solid #00e5ff22;
  color: #00e5ffcc;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 99px;
}

.progress-track {
  background: #1e2a38;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #00e5ff, #7c3aed);
  box-shadow: 0 0 10px #00e5ff88;
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 0 4px #00e5ff22, 0 0 16px #00e5ff66;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #00e5ff22, #7c3aed22);
  border: 1px solid #00e5ff55;
  color: #00e5ff;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00e5ff33, #7c3aed33);
  box-shadow: 0 0 30px #00e5ff44;
  transform: translateY(-2px);
}
.btn-primary:focus-visible {
  outline: 2px solid #00e5ff;
  outline-offset: 2px;
}

.social-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #1e2a38;
  border-radius: 10px;
  color: #4a6072;
  transition: all 0.3s ease;
  background: #0d1117;
}
.social-icon:hover {
  border-color: #00e5ff55;
  color: #00e5ff;
  box-shadow: 0 0 20px #00e5ff33;
  transform: translateY(-3px);
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #00e5ff;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.service-card {
  background: #0d1117;
  border: 1px solid #1e2a38;
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-8px);
  border-color: #00e5ff33;
  box-shadow: 0 24px 60px #00e5ff12;
}

.testi-card {
  background: #0d1117;
  border: 1px solid #1e2a38;
  border-radius: 16px;
  padding: 2rem;
}

.input-field {
  background: #0d1117;
  border: 1px solid #1e2a38;
  border-radius: 10px;
  color: #c9d8e8;
  padding: 0.85rem 1.1rem;
  width: 100%;
  outline: none;
  font-family: 'Syne', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-field:focus {
  border-color: #00e5ff55;
  box-shadow: 0 0 0 3px #00e5ff11;
}
.input-field::placeholder { color: #4a6072; }

select.input-field option {
  background: #0d1117;
  color: #c9d8e8;
}

.avatar-ring {
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  padding: 3px;
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 2.8rem;
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
