@import "./theme/variables.css";
@import "./theme/animations.css";
@import "./theme/utils.css";
@import "./theme/fonts.css";
@import "./theme/forms.css";
@import "./theme/snap-bullets.css";

/* LIBS */
@import "./theme/libs/demiurge.css";
@import "./theme/libs/pixel-icons.css";

/* components */
@import "./theme/components/scrollbar.css";
@import "./theme/components/card.css";
@import "./theme/components/button.css";
@import "./theme/components/ecosystem-card.css";

/* pages */
@import "./theme/pages/systems.css";
@import "./theme/pages//aboutme.css";
@import "./theme/pages/blog.css";
@import "./theme/pages/contact.css";

body {
  scroll-behavior: smooth;

  margin: 0;
  min-height: 100vh;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(255, 0, 128, 0.3) 0,
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(0, 255, 255, 0.25) 0,
      transparent 55%
    ),
    linear-gradient(
      135deg,
      var(--bg) 0%,
      var(--bg-deep) 45%,
      var(--bg-alt) 65%,
      #020309 100%
    );
  background-size: 140% 140%;
  animation: cyberShift 18s ease-in-out infinite alternate;
  color: var(--text);
}
strong {
  color: var(--accent);
}
hr {
  border: 1px dashed var(--text-muted, white);
}

h1,
h2,
a,
button {
  font-family: "Doto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-variation-settings: "ROND" 0;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: 3rem;
  color: var(--primary);
}

header,
footer {
  position: fixed;
  width: 99dvw;

  display: flex;
  align-items: center;
  justify-content: center;
}

header {
  gap: 1rem;
  top: 0;
  margin-top: 1.5rem;

  z-index: 10;
}

footer {
  margin-bottom: 1.5rem;
  bottom: 0;
}

.collapsed-footer {
  width: 2vw !important;
  margin-right: 5rem;
  text-align: center;
  padding-inline: 0 0 !important;
}

.footer-align-end {
  justify-content: flex-end;
}

/* COPY (span) ANIMADO */
footer .hf-container span {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease;
}

/* Ocultar copy de forma fluida */
.footer-copy-hidden span {
  opacity: 0;
  transform: translateY(0.3rem);
  max-width: 0;
}

#hero-body {
  margin: 0 auto;
  margin-top: 1rem;
  max-width: 50%;
}

.hf-container {
  transform: translateX(0);

  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;

  padding-inline: 1rem 3rem;
  width: 80vw;

  height: 4rem;

  transition: all 1s ease;
}

#menu {
  display: inline-flex;
  justify-content: flex-end;
  gap: 2rem;
  width: 95%;

  font-size: 1.5rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 3rem;
  height: 3rem;
  padding: 0.25rem;
  background: transparent;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.2));
  border-radius: 0.5rem;
  color: var(--text);
  cursor: pointer;
  transition: all 180ms ease;
}

.menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.menu-toggle__line {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.main-body {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  text-align: center;

  width: 90dvw;
  height: 99dvh;
}

#hero-actions {
  margin: 3rem;
}

a {
  text-decoration: none;
  color: var(--text);

  transition: all 200ms ease;
}

a:hover {
  color: var(--primary);
}

#favicon {
  width: 4rem;
  height: 4rem;

  transition: all 200ms ease;
}

#favicon:hover {
  transform: scale(1.05);
}

.muted {
  color: var(--text-muted);
}

.primary {
  color: var(--primary);
  border-color: var(--primary);
}

.primary-hover:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.secondary {
  color: var(--secondary);
  border-color: var(--secondary);
}

.secondary-hover:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.accent {
  color: var(--accent);
  border-color: var(--accent);
}

.base-hero {
  position: relative;

  width: 95dvw;
  height: 100dvh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  header {
    width: 95vw;
    margin-top: 1rem;
    padding-inline: 0.5rem;
  }

  .hf-container {
    width: 100%;
    padding: 0.75rem 1rem;
    gap: 1rem;
    backdrop-filter: blur(16px);
  }

  .base-hero {
    position: inherit;
    width: inherit;
    height: inherit;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-top: 20dvh;
  }

  #menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    background: rgba(7, 10, 20, 0.9);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 0.75rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, max-height 180ms ease, transform 180ms ease,
      padding 180ms ease;
  }

  #menu a {
    width: 95%;
    padding: 0.85rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #menu a:last-child {
    border-bottom: none;
  }

  #hero-body {
    max-width: 100%;
  }
  #hero-body p {
    display: none;
  }
  #hero-actions {
    gap: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .block {
    max-width: inherit;
  }
  .cta {
    margin-top: 3rem;
    margin-bottom: 3rem;

    flex-direction: column;
  }
  .cta h3,
  .cta p {
    display: none;
  }
  .cta #actions {
    gap: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin-top: 1rem;
  }
  .systems-detail-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hf-container.menu-open #menu {
    opacity: 1;
    max-height: 30rem;
    pointer-events: auto;
    transform: translateY(0);
    padding: 0.5rem 0.5rem 0.25rem;
  }

  .hf-container.menu-open .menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hf-container.menu-open .menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .hf-container.menu-open .menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  #menu,
  .hf-container {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  footer {
    display: none;
  }
}
