@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&display=swap');

:root {
  --color-primary: #39ff14;
  --color-secondary: #6b7280;
}

body {
  background: #000000;
}

.container-space {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(180deg, #051327 0%, #0a0a0a 30%, #000000 60%);
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.space {
  height: var(--size);
  width: var(--size);
  background: #fff;
  box-shadow: var(--space-layer);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 75%;
  animation: moveStars var(--duration) linear infinite;
}

@keyframes moveStars {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-100vh);
  }
}

.navbar {
  z-index: 999;
}

#navbarNavHeader .navbar-nav .nav-link {
  color: var(--color-primary);
  letter-spacing: .10em;
  text-shadow: 0 0 8px var(--color-primary);
  font-family: "Fira Code", monospace;
  font-weight: 600;
  line-height: normal;
  position: relative;
  transition: all 0.3s ease;
}

#navbarNavHeader .navbar-nav .nav-link:hover {
  text-shadow: 0 0 12px var(--color-primary);
}

#navbarNavHeader .navbar-nav .nav-link.active {
  color: var(--color-primary);
}

#navbarNavHeader .navbar-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

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

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

.shadow-text {
  letter-spacing: .15em;
  text-shadow: 0 0 8px var(--color-primary);
  font-family: "Fira Code", monospace;
  font-weight: 600;
  line-height: normal;
}

.wrapper-terminal {
  -webkit-padding-start: 1em;
  padding-inline-start: 1em;
  -webkit-padding-end: 1em;
  padding-inline-end: 1em;
  width: 100%;
  max-width: 1200px;
}

.box-terminal {
  position: relative;
  -webkit-padding-start: 1em;
  padding-inline-start: 1em;
  -webkit-padding-end: 1em;
  padding-inline-end: 1em;
  padding-top: 4em;
  padding-bottom: 4em;
  border: 0.5em solid #6b7280;
  border-radius: 1em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.box-tab {
  background: #6b7280;
  position: absolute;
  top: 0px !important;
  height: 3em;
  width: 100%;
}

.box-top-icons {
  padding-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: 0.5rem;
}

.decor-comillas {
  color: #ffffff;
  text-shadow: none;
}

.blink-underline {
  color: #6b7280;
  text-shadow: none;
  animation: blink-animation 1s steps(3, start) infinite;
  -webkit-animation: blink-animation 1s steps(3, start) infinite;
}

@keyframes blink-animation {
  100% {
    visibility: hidden;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Secciones */
.section-container {
  padding: 4rem 0;
  min-height: auto;
}

.section-title {
  color: var(--color-primary);
  font-family: "Fira Code", monospace;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 8px var(--color-primary);
}

/* Hero Section */
.terminal-text {
  font-family: "Fira Code", monospace;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Botones */
.max-button {
  color: #000000;
  background: var(--color-primary);
  font-weight: 600;
  font-family: "Fira Code", monospace;
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.max-button:hover {
  background: #2ee600;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
  transform: translateY(-2px);
}

.max-button-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.max-button-secondary:hover {
  background: var(--color-primary);
  color: #000000;
}

/* Command Line Style */
.command-line {
  font-family: "Fira Code", monospace;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}

.command-output {
  margin-top: 1rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  background: rgba(107, 114, 128, 0.1);
  border: 2px solid var(--color-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.project-title {
  color: #ffffff;
  font-family: "Fira Code", monospace;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
}

.project-description {
  color: var(--color-secondary);
  font-family: "Fira Code", monospace;
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.tag {
  background: rgba(57, 255, 20, 0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: "Fira Code", monospace;
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.project-link {
  color: var(--color-primary);
  font-family: "Fira Code", monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  text-shadow: 0 0 8px var(--color-primary);
  transform: translateX(5px);
}

/* Filtros */
.filters-container {
  background: rgba(107, 114, 128, 0.1);
  border: 2px solid var(--color-secondary);
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.filter-label {
  color: var(--color-primary);
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
  text-shadow: 0 0 8px var(--color-primary);
}

.filter-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--color-secondary);
  border-radius: 0.375rem;
  color: var(--color-primary);
  padding: 0.75rem 1rem;
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

.filter-select option {
  background: #000;
  color: var(--color-primary);
  padding: 0.5rem;
}

.project-agency {
  margin-bottom: 1rem;
}

.agency-badge {
  background: rgba(107, 114, 128, 0.3);
  color: var(--color-secondary);
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
  border: 1px solid var(--color-secondary);
  display: inline-block;
}

#loading-indicator .spinner-border {
  border: 3px solid rgba(57, 255, 20, 0.2);
  border-top-color: var(--color-primary);
  width: 3rem;
  height: 3rem;
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  justify-items: center;
}

.news-card {
  background: rgba(107, 114, 128, 0.1);
  border: 2px solid var(--color-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  display: flex;
  flex-direction: column;
  max-width: 450px;
}

.news-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
  transform: translateY(-5px);
}

.news-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-icon {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.news-title {
  color: #ffffff;
  font-family: "Fira Code", monospace;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.news-description {
  color: var(--color-secondary);
  font-family: "Fira Code", monospace;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 114, 128, 0.3);
}

.news-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-secondary);
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
}

.news-date svg {
  color: var(--color-primary);
}

.news-category {
  background: rgba(57, 255, 20, 0.1);
  color: var(--color-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: "Fira Code", monospace;
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.news-link {
  color: var(--color-primary);
  font-family: "Fira Code", monospace;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.news-link:hover {
  text-shadow: 0 0 8px var(--color-primary);
  transform: translateX(5px);
}

/* Tech Stack Section */
.tech-category {
  margin-bottom: 2rem;
}

.tech-category-title {
  color: #ffffff;
  font-family: "Fira Code", monospace;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-left: 2rem;
}

.tech-item {
  background: rgba(57, 255, 20, 0.1);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-family: "Fira Code", monospace;
  border: 1px solid rgba(57, 255, 20, 0.3);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tech-item:hover {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* Contact Section */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Footer */
.footer-section {
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--color-secondary);
}

.footer-content {
  text-align: center;
}

.footer-text {
  color: var(--color-secondary);
  font-family: "Fira Code", monospace;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

/* Animations for scroll */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

.hamburger {
  height: 50px;
  width: 50px;
  transform: 0.2s;
  position: relative;
}

.hamburger .checkbox {
  position: absolute;
  opacity: 0;
  height: 100%;
  width: 100%;
  cursor: pointer;
}

.line {
  transition: 0.5s;
  stroke-width: 6px;
  stroke: var(--color-primary);
}

.lineTop {
  stroke-dasharray: 40 40;
  stroke-dashoffset: 25;
}

.lineBottom {
  stroke-dasharray: 40 40;
  stroke-dashoffset: 60;
}

.lineMid {
  stroke-dasharray: 40 40;
}

.hamburger .checkbox:checked+svg .line {
  stroke: #ffffff;
}

.hamburger .checkbox:checked+svg .lineTop {
  stroke-dashoffset: 0;
  transform-origin: left;
  transform: rotateZ(45deg) translate(-7px, -5px);
}

.hamburger .checkbox:checked+svg .lineMid {
  stroke-dashoffset: 40;
}

.hamburger .checkbox:checked+svg .lineBottom {
  stroke-dashoffset: 0;
  transform-origin: left;
  transform: rotateZ(-45deg) translate(-5px, 5px);
}

.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-primary);
  font-size: 15px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }

  .projects-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
  }

  .max-button {
    width: 100%;
    justify-content: center;
  }

  .command-line {
    font-size: 1rem;
  }

  @keyframes slideIn {
    from {
      width: 0;
    }

    to {
      width: 10%;
    }
  }

  #navbarNavHeader .navbar-nav .nav-link.active::after {
    bottom: 0;
    left: 0;
    width: 10%;
  }
}

/* Language Selector Dropdown Styles */
.navbar-nav .dropdown-menu {
  background-color: #1a1a1a;
  border: 1px solid var(--color-primary);
  border-radius: 8px;
  padding: 0.5rem;
  min-width: 150px;
}

.navbar-nav .dropdown-item {
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  background-color: rgba(57, 255, 20, 0.1);
  color: var(--color-primary);
}

.navbar-nav .dropdown-item.active {
  background-color: rgba(57, 255, 20, 0.2);
  font-weight: 600;
}

.navbar-nav .dropdown-toggle::after {
  margin-left: 0.5rem;
}

/* Blog Post Styles */
@property --neon-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.blog-post-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-post {
  position: relative;
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 3px;
  background:
    linear-gradient(#0a0a0a, #0a0a0a) padding-box,
    conic-gradient(from var(--neon-angle), transparent 0%, #39ff14 25%, #39ff14 35%, transparent 60%) border-box;
  border: 3px solid transparent;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.25);
  animation: neonBorderRotate 3s linear infinite;
}

.hero-post img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

@keyframes neonBorderRotate {
  to {
    --neon-angle: 360deg;
  }
}

.blog-post-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-primary);
}

.blog-post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--color-primary);
  font-size: 0.95rem;
}

.blog-post-meta svg {
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

.blog-post-category {
  background: var(--bg-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.blog-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.blog-post-content h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 0.5rem;
}

.blog-post-content h2 {
  font-size: 1.75rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.blog-post-content ul,
.blog-post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.blog-post-content li {
  margin-bottom: 0.5rem;
}

.blog-post-content code {
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.blog-post-content pre {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--accent-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--color-secondary);
}

.blog-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.blog-post-content th,
.blog-post-content td {
  border: 1px solid var(--color-secondary);
  padding: 0.75rem;
  text-align: left;
}

.blog-post-content th {
  background: var(--bg-secondary);
  font-weight: 600;
}

.blog-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.blog-post-content strong {
  font-weight: 600;
  color: var(--color-primary);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: var(--color-primary);
}

.back-button svg {
  width: 20px;
  height: 20px;
}

.share-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(57, 255, 20, 0.2);
}

.share-label {
  color: #ffffff;
  font-size: 0.9rem;
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  color: #000;
  background: var(--color-primary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

.share-btn:hover {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.hero-post {
  width: 100%;
  height: 200px;
  margin-bottom: 2rem;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .blog-post-title {
    font-size: 2rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }

  .blog-post-content h1 {
    font-size: 1.75rem;
  }

  .blog-post-content h2 {
    font-size: 1.5rem;
  }

  .blog-post-content h3 {
    font-size: 1.25rem;
  }
}