@font-face {
  font-family: 'Ethnocentric';
  src: url('../fonts/Ethnocentric-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-deep: #050811;
  --bg-surface: rgba(13, 19, 32, 0.65);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --border-card: rgba(255, 255, 255, 0.09);
  --abyatek-blue: #0284c7;
  --abyatek-cyan: #38bdf8;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(2, 132, 199, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #070c18 0%, #03060d 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

.font-logo {
  font-family: 'Ethnocentric', sans-serif;
  letter-spacing: 0.12em;
}

.desc-card {
  position: relative;
  background: rgba(9, 15, 28, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 1.25rem;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.85),
    0 0 50px -10px rgba(2, 132, 199, 0.28),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 0 30px rgba(56, 189, 248, 0.04);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.desc-card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 
    0 30px 70px -15px rgba(0, 0, 0, 0.9),
    0 0 60px -5px rgba(2, 132, 199, 0.4),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    inset 0 0 35px rgba(56, 189, 248, 0.08);
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  background-color: var(--abyatek-cyan);
  box-shadow: 0 0 8px var(--abyatek-cyan);
  vertical-align: -0.15em;
  margin-left: 2px;
  animation: cursorPulse 0.85s infinite;
}

@keyframes cursorPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.typewriter-cursor.finished {
  animation: cursorFadeOut 2.5s forwards;
}

@keyframes cursorFadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    display: none;
  }
}

.desc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.025) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: jarvisMapping 7s linear infinite;
  pointer-events: none;
}

@keyframes jarvisMapping {
  0% {
    background-position: 0% -100%;
  }
  100% {
    background-position: 0% 200%;
  }
}

.scanner-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 30%, #38bdf8 50%, rgba(56, 189, 248, 0.4) 70%, transparent 100%);
  box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.6);
  animation: autoFantastico 3.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes autoFantastico {
  0% {
    left: -140px;
    opacity: 0.2;
  }
  50% {
    left: calc(100% - 20px);
    opacity: 1;
  }
  100% {
    left: -140px;
    opacity: 0.2;
  }
}

.btn-cta {
  position: relative;
  background: linear-gradient(90deg, #0369a1 0%, #0284c7 25%, #38bdf8 50%, #0284c7 75%, #0369a1 100%);
  background-size: 200% 100%;
  animation: gradientShift 4.5s ease-in-out infinite;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px -5px rgba(2, 132, 199, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.btn-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-cta:active {
  transform: translateY(1px);
}

#tech-tooltip {
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 14, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #03060d;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
