:root {
  --primary-color: #0d6efd;
  --dark-bg: #020c1b;
  --light-dark-bg: #0a192f;
  --text-light: #ccd6f6;
  --text-secondary: #8892b0;
  --text-white: #e6f1ff;
  --border-color: rgba(13, 110, 253, 0.2);
  --gradient-start: #2b5876;
  --gradient-mid: #4e4376;
  --gradient-end: #2b5876;
}

@font-face {
  font-family: 'QuaseFontLogo';
  src: url('/assets/fonts/QuaseLogoRegular/QuaseLogoRegular.woff2') format('woff2'),
    url('/assets/fonts/QuaseLogoRegular/QuaseLogoRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;

  ascent-override: 105%;
  descent-override: 35%;
  line-gap-override: 0%;
}

body {
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
  background-color: var(--dark-bg);
  color: var(--text-light);
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}

.q-logo-font {
  font-family: 'QuaseFontLogo', 'Poppins', sans-serif;
  font-weight: 400;
  font-size: inherit;
}

/* --- Logo --- */
.logo {
  font-size: clamp(24px, 5vw, 32px);
  /* mínimo 24px, ideal 5vw, máximo 48px */
  color: var(--text-white);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
}

.navbar-brand:hover .logo {
  transform: scale(1.1) rotate(-2deg);
  color: var(--text-light);
}

/* --- Navbar --- */
.navbar {
  background-color: transparent;
  backdrop-filter: blur(0px);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 1rem 0;
  background-color: rgba(2, 12, 27, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-dark .navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.3s;
  margin: 0 0.5rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--text-white);
}

.navbar {
  background-color: rgba(2, 12, 27, 0.9);
  backdrop-filter: blur(10px);
}

.navbar-toggler .btn {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.25);
}

.btn-gradient {
  background-image: linear-gradient(to right,
      var(--gradient-start) 0%,
      var(--gradient-mid) 51%,
      var(--gradient-end) 100%);
  background-size: 200% auto;
  border: none;
  transition: background-position 0.5s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 5px 20px rgba(13, 110, 253, 0.25);
  text-decoration: none;
}

/* --- Hero Section --- */
.hero-section {
  background: transparent;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
}

.hero-section p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 300;
  max-width: 650px;
  margin: 2rem auto 3rem;
  color: var(--text-light);
  line-height: 1.7;
}

.highlighted {
  position: relative;
  display: inline-block;
}

.highlighted::before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.15em;
  right: -0.15em;
  height: 100%;
  background: rgba(136, 146, 176, 0.3);
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(200, 210, 230, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: -1;
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow:
      0 0 6px rgba(136, 146, 176, 0.2),
      0 0 10px rgba(136, 146, 176, 0.1),
      inset 0 0 3px rgba(136, 146, 176, 0.3);
  }

  50% {
    box-shadow:
      0 0 10px rgba(136, 146, 176, 0.4),
      0 0 15px rgba(136, 146, 176, 0.25),
      inset 0 0 5px rgba(136, 146, 176, 0.35);
  }

  100% {
    box-shadow:
      0 0 6px rgba(136, 146, 176, 0.2),
      0 0 10px rgba(136, 146, 176, 0.1),
      inset 0 0 3px rgba(136, 146, 176, 0.3);
  }
}

/* --- General Section Styling --- */
.section {
  padding: 120px 0;
  position: relative;
  background-color: var(--dark-bg);
  border-bottom: 1px solid var(--light-dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#about {
  background-color: var(--light-dark-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  color: var(--text-white);
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-title::after {
  content: '';
  position: absolute;
  display: block;
  width: 256px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 2px;
  bottom: 0;
  left: calc(50% - 128px);
}

/* --- Services Section --- */
.service-card {
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 40px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  background-color: rgba(13, 110, 253, 0.05);
  box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

#about .lead {
  color: var(--text-light);
  font-size: 1.2rem;
  line-height: 1.7;
}

/* --- Process Section --- */
.process-list {
  list-style: none;
  padding-left: 0;
  position: relative;
}

.process-list::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background-color: var(--border-color);
}

.process-list-item {
  position: relative;
  padding: 0.5rem 0 2.5rem 60px;
}

.process-list-item h5 {
  color: var(--text-white);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-list-item p {
  color: var(--text-secondary);
}

.process-list-item::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--light-dark-bg);
  border: 2px solid var(--border-color);
  color: var(--primary-color);
  font-weight: 700;
  transition: all 0.3s ease;
}

.process-list-item:hover::before {
  background-color: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

/* --- CTA Section --- */
#cta {
  background-color: var(--dark-bg);
  border-bottom: none;
}

/* --- Footer --- */
.footer {
  background-color: var(--light-dark-bg);
  border-top: 1px solid var(--border-color);
}

.footer a,
.footer a:hover,
.footer a:focus,
.footer a:active,
.footer a:visited {
  color: var(--text-light);
  text-decoration: none;
}

.ascii-click-wrapper {
  display: inline-block;
  text-decoration: none;
  color: var(--text-light);
}

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.645, 0.045, 0.355, 1), transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

pre.ascii-art {
  font-family: 'Consolas', 'Lucida Console', monospace;
  white-space: pre;
  overflow-x: auto;
  color: var(--text-light);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
  text-shadow: 0 0 0 var(--text-light);
}

pre.ascii-small {
  font-size: 2px;
  line-height: 2px;
}

pre.ascii-tiny {
  font-size: 1px;
  line-height: 1px;
}

.tiny {
  font-size: 10px;
}

#about-animation-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  max-height: 256px;
}

#about-animation-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}