/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.open-sans-regular {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.open-sans-light {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.open-sans-bold {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}
.jetbrains-mono-regular {
  font-family: "JetBrains Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
  background: linear-gradient(to right, #111827, #1f2937, #111827);
  color: white;
  line-height: 1.5;

}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.025em;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s ease infinite;
  background-size: 200% 200%;
}

.title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 2rem;
}
 
.resumen {         
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.6;
}

.github-link {
  height: auto;
  width: 36%;
  margin-top: 2rem;
}
.button-group-projects {
  display: flex;
  gap: 1rem;
  justify-content: start;
  flex-wrap: wrap;
}
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.button:hover {
  transform: scale(1.05) translateY(-5px);
  border: 1px solid #8b5cf6;

}

.button-white {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: #e5e7eb;
}

.button-white:hover {
  background: #374151;
}

.button-blue {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
}

.button-blue:hover {
  background: #374151;

}

.button-gray {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
}

.button-gray:hover {
  background: #374151;

}

/* Slider and Project Info Section */
.slider-info {
  padding: 5rem 0;
}

.slider-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.slider-container {
  width: 100%;
  height: 400px;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative; 
}

.swiper-container {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1rem;
}

.project-info h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-description {
  font-size: 1rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.project-technologies {
  list-style: none;
  margin-bottom: 1.5rem;
}

.project-technologies li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.project-link {
  color: #60a5fa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link img {
  width: 30px;
  height: 30px;
}

/* Ajustes para la visualización de tecnologías */
.project-technologies {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-start;
  gap: 0.1rem;
  margin-bottom: 1rem;
  margin-top: 8%;
}

.code-span {
  min-width: 25%;
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto; 
  background-color: #374151;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  margin: 0.5rem 0.5rem 0 0; 
  border: 1px solid #8b5cf6;
  font-size: small;
  cursor: default;
  transform-origin: center; 
  transform: scale(1) translateY(0); 
  transition: all 0.3s ease; 
}

.code-span:hover {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: white;
  outline: 1px solid white; 
  transform: scale(1.05);
}

/* Asegura que la paginación esté en la parte inferior */
.swiper-pagination {
  position: absolute;
  bottom: 10px; /* Ajusta el espacio desde el fondo */
  left: 50%;
  transform: translateX(-50%); /* Centra la paginación horizontalmente */
  z-index: 10; 
  color: #fff; 
}
.swiper-pagination-bullet  {
  background: linear-gradient(to right, #3b82f6, #8b5cf6) !important;
  width: 10px;
  height: 10px;
  opacity: 1;
}

/* Projects Section */
.projects {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-in-out;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background:#1f2937;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.project-image {
  width: 100%; /* Ocupa todo el ancho */
  height: 80%; /* Altura fija para la imagen */
  object-fit: cover;
  border-radius: 0.5rem;
}



.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.project-description {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.project-details {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 1rem;
}

.project-technologies {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}


/* Timeline Section */
.timeline {
  padding: 5rem 0;
  background: #111827;
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.timeline-year {
  flex: 0 0 100px;
  text-align: right;
  color: #60a5fa;
  font-family: monospace;
}

.timeline-content {
  position: relative;
  flex-grow: 1;
  padding-bottom: 2rem;
  padding-left: 1.5rem;
}

.timeline-line {
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 2px;
  height: 100%;
  background: #374151;
  transition: background-color 0.3s ease;
}

.timeline-dot {
  position: absolute;
  left: -0.375rem;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #3b82f6;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.timeline-item:hover .timeline-line {
  background: rgba(59, 130, 246, 0.5);
}

.timeline-content-inner {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content-inner {
  transform: translateX(0.5rem);
}

/* Animations */
@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero p {
    font-size: 1.25rem;
  }
  
  .slider-info-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .timeline-year {
    text-align: left;
    padding-left: 1.5rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}