/* Add styles here */
:root {
  --bg-main: #090b12;
  --bg-soft: #121628;
  --text-main: #f5f7ff;
  --text-muted: #abb4d4;
  --line-soft: rgba(166, 183, 255, 0.22);
  --accent: #1ee6a8;
  --accent-2: #00b6ff;
  --surface: rgba(17, 22, 37, 0.75);
  --surface-strong: #111a30;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 10%, #1a2548 0%, transparent 40%), var(--bg-main);
  color: var(--text-main);
  letter-spacing: 0.01em;
  position: relative;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 1200;
  background: linear-gradient(90deg, #1ee6a8, #00b6ff);
  box-shadow: 0 0 16px rgba(30, 230, 168, 0.65);
}

.cursor-glow {
  position: fixed;
  width: 260px;
  height: 260px;
  left: 0;
  top: 0;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(39, 197, 255, 0.2) 0%, rgba(30, 230, 168, 0.12) 38%, rgba(0, 0, 0, 0) 70%);
  transition: opacity 0.3s ease;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(130, 158, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 158, 255, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 90%);
  pointer-events: none;
  z-index: -3;
}

.background-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.65;
}

.orb-1 {
  top: -120px;
  right: -70px;
  background: radial-gradient(circle, rgba(30, 230, 168, 0.75) 0%, rgba(30, 230, 168, 0) 65%);
}

.orb-2 {
  bottom: -120px;
  left: -90px;
  background: radial-gradient(circle, rgba(0, 182, 255, 0.7) 0%, rgba(0, 182, 255, 0) 65%);
}

.custom-nav {
  padding: 0.9rem 0;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.custom-nav.is-scrolled {
  background: rgba(8, 10, 18, 0.8);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(151, 174, 255, 0.2);
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text-main) !important;
}

.nav-link {
  color: rgba(245, 247, 255, 0.86);
  font-weight: 600;
  padding: 0.45rem 0.8rem !important;
  border-radius: 10px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(132, 151, 255, 0.12);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(30, 230, 168, 0.16);
  box-shadow: inset 0 0 0 1px rgba(158, 255, 226, 0.28);
}

.btn-primary {
  --bs-btn-bg: #1ee6a8;
  --bs-btn-border-color: rgba(189, 255, 236, 0.72);
  --bs-btn-hover-bg: #29f5b7;
  --bs-btn-hover-border-color: rgba(214, 255, 243, 0.95);
  --bs-btn-color: #03131d;
  --bs-btn-hover-color: #02131f;
  font-weight: 700;
  background-color: #1ee6a8 !important;
  background-image: linear-gradient(120deg, #1ee6a8, #00b6ff) !important;
  border: 1px solid rgba(194, 255, 238, 0.8) !important;
  color: #03131d !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 38px rgba(18, 221, 193, 0.46), 0 0 0 1px rgba(197, 255, 238, 0.3);
}

.btn-outline-light {
  border-width: 1.5px;
  border-color: rgba(236, 242, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
  color: #f5f8ff;
}

.btn-light {
  background: linear-gradient(130deg, #fbfdff, #dbe9ff);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #061426;
  box-shadow: 0 14px 32px rgba(153, 186, 255, 0.35);
}

.btn {
  position: relative;
  border-radius: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.1);
}

.btn:hover::after {
  opacity: 1;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(9, 14, 24, 0.9), 0 0 0 5px rgba(30, 230, 168, 0.75);
}

.btn:active {
  transform: translateY(0) scale(0.995);
}

.btn-primary:hover {
  background-color: #22fcb8 !important;
  background-image: linear-gradient(120deg, #22fcb8, #24c8ff) !important;
  border-color: rgba(224, 255, 247, 1) !important;
  color: #02131f !important;
  box-shadow: 0 24px 48px rgba(18, 221, 193, 0.58), 0 0 24px rgba(30, 230, 168, 0.32);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 30px rgba(151, 177, 255, 0.26);
}

.btn-light:hover {
  color: #051224;
  box-shadow: 0 20px 42px rgba(159, 193, 255, 0.48);
}

.btn-whatsapp {
  background: linear-gradient(120deg, #25d366, #16b957) !important;
  border: 1px solid rgba(189, 255, 208, 0.75) !important;
  color: #03140a !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.38), 0 0 0 1px rgba(186, 255, 208, 0.26);
}

.btn-whatsapp:hover {
  background: linear-gradient(120deg, #32e274, #1bc763) !important;
  border-color: rgba(216, 255, 228, 0.95) !important;
  color: #03160b !important;
  box-shadow: 0 24px 48px rgba(34, 197, 94, 0.5), 0 0 24px rgba(37, 211, 102, 0.3);
}

.hero-section {
  min-height: 100vh;
  padding: 8.5rem 0 4rem;
}

.chip {
  display: inline-block;
  border: 1px solid rgba(142, 168, 255, 0.35);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  color: #ccdaff;
  background: rgba(120, 144, 230, 0.08);
  animation: floatSoft 4.2s ease-in-out infinite;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero-subtitle {
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.06rem;
}

.hero-dynamic {
  color: #9cb3e9;
  font-size: 0.98rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.hero-dynamic span {
  color: #e8fffa;
  font-weight: 700;
  border-right: 2px solid rgba(170, 255, 228, 0.65);
  padding-right: 0.25rem;
  animation: caretBlink 0.9s step-end infinite;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(17, 26, 48, 0.85), rgba(17, 26, 48, 0.45));
  border: 1px solid var(--line-soft);
  border-radius: 1.15rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  animation: floatPanel 6.2s ease-in-out infinite;
}

.hero-panel h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 1.15rem;
  color: #eaf0ff;
}

.hero-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(132, 152, 235, 0.18);
  padding-top: 0.85rem;
  margin-top: 0.85rem;
}

.hero-panel li:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.hero-panel span {
  color: #b2bfdf;
}

.hero-panel strong {
  font-size: 0.95rem;
  color: #f6f8ff;
  text-align: right;
}

.hero-metrics .metric-card {
  background: var(--surface);
  border: 1px solid rgba(124, 145, 228, 0.24);
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
}

.metric-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: #d7ffef;
}

.metric-card span {
  font-size: 0.84rem;
  color: #b3bfdc;
}

.section-padding {
  padding: 5.5rem 0;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: #a7b4dc;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.15;
  margin: 0;
}

.section-heading {
  max-width: 60ch;
}

.about-card {
  background: linear-gradient(170deg, rgba(16, 22, 38, 0.9), rgba(17, 24, 43, 0.46));
  border: 1px solid var(--line-soft);
  border-radius: 1.2rem;
  padding: 1.4rem 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}

.about-card p {
  color: #bac5e1;
  line-height: 1.75;
}

.service-card {
  height: 100%;
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid rgba(130, 153, 238, 0.24);
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(30, 230, 168, 0.55);
  background: rgba(20, 27, 47, 0.95);
}

.service-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: #b4c2e4;
  margin: 0;
}

.project-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, rgba(15, 22, 40, 0.95), rgba(13, 19, 34, 0.7));
  border: 1px solid rgba(124, 148, 242, 0.22);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 182, 255, 0.6);
}

.project-badge {
  display: inline-block;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  color: #0a1f31;
  background: linear-gradient(120deg, #9fffe2, #88d7ff);
}

.project-card h4 {
  margin-top: 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.project-card p {
  color: #b7c4e3;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.78rem;
  color: #d8e2ff;
  border: 1px solid rgba(151, 171, 248, 0.32);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e9f3ff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(157, 181, 255, 0.45);
  background: rgba(148, 173, 255, 0.08);
  border-radius: 0.7rem;
  padding: 0.48rem 0.85rem;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.project-link::after {
  content: "↗";
  font-size: 0.86rem;
}

.project-link:hover {
  color: #ffffff;
  background: rgba(30, 230, 168, 0.16);
  border-color: rgba(168, 255, 228, 0.7);
  transform: translateY(-2px);
}

.cta-panel {
  background: linear-gradient(115deg, rgba(33, 235, 180, 0.14), rgba(0, 182, 255, 0.11)), var(--surface-strong);
  border: 1px solid rgba(130, 158, 255, 0.3);
  border-radius: 1.25rem;
  padding: clamp(1.35rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow);
}

.cta-panel h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 24ch;
}

.cta-panel p {
  max-width: 65ch;
  color: #bcc8e8;
}

.contact-modal {
  background: linear-gradient(170deg, rgba(12, 18, 33, 0.98), rgba(11, 16, 28, 0.94));
  border: 1px solid rgba(132, 158, 255, 0.36);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55);
  color: #eff5ff;
}

.contact-modal .modal-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.contact-modal .form-label {
  color: #b8c8ef;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.contact-modal .form-control {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(145, 167, 247, 0.34);
  color: #f1f6ff;
  border-radius: 0.75rem;
  padding: 0.68rem 0.8rem;
}

.contact-modal .form-control::placeholder {
  color: #9eb1dd;
}

.contact-modal .form-control:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(154, 255, 225, 0.85);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 230, 168, 0.2);
}

.form-feedback {
  font-size: 0.9rem;
  border-radius: 0.65rem;
  padding: 0.6rem 0.75rem;
}

.form-feedback.is-success {
  color: #b9ffe7;
  border: 1px solid rgba(154, 255, 225, 0.45);
  background: rgba(30, 230, 168, 0.08);
}

.form-feedback.is-error {
  color: #ffd9dc;
  border: 1px solid rgba(255, 120, 132, 0.5);
  background: rgba(255, 93, 112, 0.12);
}

.footer {
  border-top: 1px solid rgba(146, 168, 245, 0.22);
  color: #95a4c9;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes caretBlink {
  0%,
  100% {
    border-right-color: rgba(170, 255, 228, 0.65);
  }
  50% {
    border-right-color: transparent;
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 991.98px) {
  .custom-nav {
    background: rgba(8, 10, 18, 0.82);
    backdrop-filter: blur(14px);
    border-bottom-color: rgba(151, 174, 255, 0.18);
  }

  .hero-panel {
    margin-top: 0.75rem;
  }

  .cursor-glow {
    display: none;
  }

  .chip,
  .hero-panel {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 7.5rem;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-panel li {
    flex-direction: column;
    gap: 0.3rem;
  }

  .hero-panel strong {
    text-align: left;
  }
}
