/* Historia Page Specific Styles */

/* Hero Section Adjustments */
.timeline-container {
  background-color: #f8f9fa;
  background: linear-gradient(135deg, #f1f4f8 0%, #e8ecf0 100%);
  padding: 6rem 0 4rem 0;
  position: relative;
  min-height: 600px;
  margin-top: 0;
}

.timeline-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>') repeat;
  opacity: 0.5;
  pointer-events: none;
}

/* Title Improvements */
.timeline-title {
  text-align: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  margin: 0 auto 3rem auto;
  font-size: 2.8rem;
  color: #2c3e50;
  max-width: 800px;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0 2rem;
}

/* Timeline Enhancements */
.timeline {
  position: relative;
  z-index: 10;
}

.timeline-circle {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 4px solid #2c3e50;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}

.timeline-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.25);
  border-color: #34495e;
}

.timeline-item {
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-3px);
}

.timeline-content h6 {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  color: #5a6c7d;
  font-weight: 500;
}

/* Content Section Enhancements */
.content-center {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  padding: 3rem 2.5rem;
  margin: 3rem auto;
  max-width: 800px;
  border: 1px solid #e9ecef;
}

.content-center:first-of-type {
  margin-top: 4rem;
}

.content-center h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.content-center h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2980b9);
  border-radius: 2px;
}

.content-center p {
  color: #5a6c7d;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  hyphens: auto;
}

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  .timeline-title {
    font-size: 2.4rem;
  }
  
  .content-center {
    max-width: 90%;
    padding: 2.5rem 2rem;
  }
}

@media screen and (max-width: 768px) {
  .timeline-container {
    padding: 6rem 0 3rem 0;
  }
  
  .timeline-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .content-center {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
  
  .content-center h1 {
    font-size: 2rem;
  }
  
  .content-center p {
    font-size: 1rem;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .timeline-title {
    font-size: 1.6rem;
    padding: 0 1rem;
  }
  
  .content-center {
    padding: 1.5rem 1rem;
  }
  
  .content-center h1 {
    font-size: 1.7rem;
  }
}

/* Animation for page load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-container,
.content-center {
  animation: fadeInUp 0.8s ease-out;
}

.timeline-item {
  animation: fadeInUp 0.8s ease-out;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
