/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}
h2 {
  font-size: 2.25rem;
  font-weight: 600;
}
h3 {
  font-size: 1.5rem;
  font-weight: 600;
}
h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  color: #a1a1a1;
  margin-bottom: 1rem;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #39ff14;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Preloader - versión mejorada */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.logo-animation {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Logo Styles - Reemplazar completamente la sección de logo */
.logo-container {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.logo-brace {
  color: #39ff14;
  font-weight: 600;
}

.logo-face {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  min-width: 1em;
  margin-top: 0.15em;
}

.logo-eyes {
  color: #ffffff;
  font-size: 0.8em;
  line-height: 0.8;
  margin-top: 0.2em;
}

.logo-smile {
  color: #39ff14;
  font-size: 0.6em;
  line-height: 0.8;
  margin-top: -0.02em;
}

/* Logo hover animations */
.logo-container:hover .logo-brace {
  animation: bracePulse 0.6s ease-in-out;
}

.logo-container:hover .logo-eyes {
  animation: wink 0.4s ease-in-out 0.2s;
}

.logo-container:hover .logo-smile {
  animation: smileBounce 0.4s ease-in-out 0.4s;
}

@keyframes bracePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    color: #2ee010;
  }
}

@keyframes wink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
    transform: scaleX(0.8);
  }
}

@keyframes smileBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
    color: #2ee010;
  }
}

/* Tamaños específicos para diferentes contextos */
.hero-logo-large {
  font-size: 4rem;
}

.nav-logo .logo-container {
  font-size: 1.2rem;
}

.footer-logo .logo-container {
  font-size: 1rem;
}

/* Animación del preloader */
.animated-logo {
  animation: logoLoad 2s ease-in-out infinite;
}

@keyframes logoLoad {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.header.scrolled {
  background-color: #0a0a0a;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.logo-svg:hover .brace-left,
.logo-svg:hover .brace-right {
  animation: drawBraces 0.8s ease-out;
}

.logo-svg:hover .wink {
  animation: wink 0.3s ease-out 0.8s;
}

.logo-svg:hover .smile {
  animation: drawSmile 0.4s ease-out 1.1s;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #39ff14;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Language Toggle */
/* Language Toggle - Unified Design */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(51, 51, 51, 0.3);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  backdrop-filter: blur(10px);
}

.desktop-only {
  margin-left: 2rem;
}

.lang-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #a1a1a1;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.lang-label.active {
  color: #39ff14;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background-color: #333333;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.toggle-switch.active {
  background-color: #39ff14;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider {
  transform: translateX(20px);
}

.toggle-switch:hover {
  background-color: #444444;
}

.toggle-switch.active:hover {
  background-color: #2ee010;
}

/* Hide mobile toggle by default */
.nav-language-item {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #a1a1a1;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 8rem;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #a1a1a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #a1a1a1;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background-color: #39ff14;
  color: #0a0a0a;
}

.btn-primary:hover {
  background-color: #2ee010;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.3);
  color: #0a0a0a;
}

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #39ff14;
}

.btn-secondary:hover {
  background-color: #39ff14;
  color: #0a0a0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.2);
}

.btn-ghost {
  background-color: transparent;
  color: #a1a1a1;
  border-color: #333333;
}

.btn-ghost:hover {
  color: #ffffff;
  border-color: #39ff14;
  transform: translateY(-1px);
}

/* Libraries Section */
.libraries-scroll-container {
  margin-bottom: 3rem;
  position: relative;
}

.libraries-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #39ff14 #1a1a1a;
}

.libraries-scroll::-webkit-scrollbar {
  height: 8px;
}

.libraries-scroll::-webkit-scrollbar-track {
  background: #1a1a1a;
  border-radius: 4px;
}

.libraries-scroll::-webkit-scrollbar-thumb {
  background: #39ff14;
  border-radius: 4px;
}

.libraries-scroll::-webkit-scrollbar-thumb:hover {
  background: #2ee010;
}

.library-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 0 0 280px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.library-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #39ff14, #2ee010);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.library-card:hover::before {
  transform: scaleX(1);
}

.library-card:hover {
  transform: translateY(-5px);
  border-color: #39ff14;
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.1);
}

.library-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: #a1a1a1;
  font-weight: 500;
}

.library-platform svg {
  flex-shrink: 0;
}

.library-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 1.1rem;
  color: #39ff14;
  margin-bottom: 0.75rem;
}

.library-description {
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
  flex-grow: 1;
}

.library-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.library-actions {
  margin-top: auto;
}

.library-stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.library-stats img {
  height: 20px;
  border-radius: 4px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #a1a1a1;
  font-size: 0.875rem;
}

.library-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.tag {
  background-color: #333333;
  color: #a1a1a1;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.library-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Philosophy Quote */
.philosophy-quote {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.quote-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.quote-link {
  color: #39ff14;
  font-weight: 500;
}

/* Labs Section */
.labs-grid {
  display: grid;
  gap: 2rem;
}

.lab-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.lab-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.lab-card:hover {
  transform: translateY(-3px);
  border-color: #39ff14;
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.1);
}

.lab-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #39ff14 0%, #2ee010 100%);
  padding: 2rem;
}

.lab-icon {
  color: #0a0a0a;
}

.lab-content {
  padding: 2rem;
  position: relative;
}

/* In progress banner */
.in-progress-banner {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff9500 0%, #ff7b00 100%);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.75rem;
  box-shadow: 0 2px 6px rgba(255, 149, 0, 0.3);
}

.banner-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Projects note */
.projects-note {
  text-align: center;
  margin-top: 2rem;
}

.projects-note p {
  color: #a1a1a1;
  font-style: italic;
  font-size: 1rem;
  margin: 0;
}

.lab-title {
  font-family: "JetBrains Mono", monospace;
  color: #39ff14;
  margin-bottom: 1rem;
}

.lab-description {
  margin-bottom: 1rem;
}

.lab-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background-color: #333333;
  color: #39ff14;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #39ff14;
}

/* Manifesto Section */
.manifesto {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

.manifesto-content {
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-text h3 {
  color: #39ff14;
  margin-bottom: 1.5rem;
  text-align: center;
}

.manifesto-text h4 {
  color: #ffffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.manifesto-text h5 {
  color: #39ff14;
  margin-bottom: 0.5rem;
}

.principles {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.principle {
  background-color: rgba(51, 51, 51, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #39ff14;
}

.code-example {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  position: relative;
}

.code-example h4 {
  margin-bottom: 1rem;
}

.code-example pre {
  background-color: #0f0f0f;
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
  line-height: 1.5;
}

.code-example code {
  color: #f5f5f5;
}

/* Syntax highlighting como Visual Studio Code */
.code-example .comment {
  color: #6A9955; /* Verde para comentarios */
  font-style: italic;
}

.code-example .keyword {
  color: #569CD6; /* Azul para palabras clave */
  font-weight: 500;
}

.code-example .class {
  color: #4EC9B0; /* Verde azulado para clases */
  font-weight: 500;
}

.code-example .variable {
  color: #9CDCFE; /* Azul claro para variables */
}

.code-example .property {
  color: #9CDCFE; /* Azul claro para propiedades */
}

.code-example .parameter {
  color: #9CDCFE; /* Azul claro para parámetros */
}

.code-example .string {
  color: #CE9178; /* Naranja para strings */
}

.code-example .number {
  color: #B5CEA8; /* Verde claro para números */
}

.code-example .operator {
  color: #D4D4D4; /* Gris claro para operadores */
}

.code-example .punctuation {
  color: #D4D4D4; /* Gris claro para puntuación */
}

.code-example .function {
  color: #DCDCAA; /* Amarillo para funciones */
}

.code-example .static-function {
  color: #FF8C00; /* Naranja para funciones estáticas */
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #a1a1a1;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  color: #39ff14;
  background-color: rgba(57, 255, 20, 0.1);
}

.copy-btn.copied {
  color: #39ff14;
}

.manifesto-conclusion {
  font-size: 1.125rem;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
  margin-top: 2rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-intro {
  font-size: 1.125rem;
  color: #ffffff;
  margin-bottom: 2rem;
}

.timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  width: 2px;
  height: calc(100% + 1rem);
  background-color: #333333;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  background-color: #39ff14;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-content h4 {
  color: #39ff14;
  margin-bottom: 0.5rem;
}

/* Project showcase */
.project-showcase {
  background-color: rgba(51, 51, 51, 0.3);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid #39ff14;
}

.project-showcase h4 {
  color: #39ff14;
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-link {
  background-color: rgba(57, 255, 20, 0.1);
  color: #39ff14;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid #39ff14;
  transition: all 0.3s ease;
  font-weight: 500;
}

.project-link:hover {
  background-color: #39ff14;
  color: #0a0a0a;
  transform: translateY(-2px);
}

.project-note {
  color: #a1a1a1;
  font-style: italic;
  font-size: 0.875rem;
  margin: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #39ff14;
}

.stat-label {
  color: #a1a1a1;
  font-size: 0.875rem;
}

.profile-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 6rem;
}

.profile-avatar {
  margin-bottom: 1.5rem;
}

.profile-card h3 {
  margin-bottom: 0.5rem;
}

.profile-title {
  color: #39ff14;
  font-weight: 500;
  margin-bottom: 2rem;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: rgba(51, 51, 51, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #a1a1a1;
}

.profile-link:hover {
  background-color: rgba(57, 255, 20, 0.1);
  color: #39ff14;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  border-color: #39ff14;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.1);
}

.method-title {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.method-value {
  display: block;
  color: #a1a1a1;
  font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
  background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 1px solid #333333;
  border-radius: 12px;
  padding: 2rem;
}

/* Security-related form styles */
.field-error {
  color: #FF3939;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.character-count {
  text-align: right;
  font-size: 0.75rem;
  color: #A1A1A1;
  margin-top: 0.25rem;
}

.rate-limit-info {
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid #FFA500;
  color: #FFA500;
  padding: 0.75rem;
  border-radius: 6px;
  margin: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  background-color: #0f0f0f;
  border: 1px solid #333333;
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #39ff14;
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background-color: #0f0f0f;
  border-top: 1px solid #333333;
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #a1a1a1;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #39ff14;
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  color: #a1a1a1;
  font-size: 0.875rem;
  margin: 0;
}

/* Animations */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #0a0a0a;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hide desktop toggle */
  .desktop-only {
    display: none;
  }

  /* Show mobile toggle */
  .nav-language-item {
    display: flex !important;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(161, 161, 161, 0.2);
    margin-top: 1rem;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .libraries-grid {
    grid-template-columns: 1fr;
  }

  .lab-card.featured {
    grid-template-columns: 1fr;
  }

  .lab-image {
    order: -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

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

  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quote-text {
    font-size: 1.5rem;
  }

  .quote-footer {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 0;
  }

  .library-card,
  .lab-card,
  .contact-form,
  .profile-card {
    padding: 1.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39ff14;
}

/* Selection Styling */
::selection {
  background-color: #39ff14;
  color: #0a0a0a;
}

::-moz-selection {
  background-color: #39ff14;
  color: #0a0a0a;
}

.hidden {
  display: none;
}