/* Shared Page Styles */
.page-hero {
  background: var(--gradient-hero);
  padding: var(--spacing-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--spacing-md);
}

.page-hero p {
  position: relative;
  z-index: 1;
  font-size: var(--font-size-xl);
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary);
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-3xl);
}

.section-intro h2 {
  margin-bottom: var(--spacing-md);
}

.section-intro p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
}

/* Timeline Styles */
.timeline {
  position: relative;
  padding: var(--spacing-xl) 0;
}

.timeline-item {
  display: flex;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 35px;
  top: 70px;
  width: 2px;
  height: calc(100% + var(--spacing-xl));
  background: var(--gradient-secondary);
  z-index: 0;
}

.timeline-number {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-glow);
}

.timeline-content {
  flex: 1;
  padding-top: var(--spacing-md);
}

.timeline-content h3 {
  margin-bottom: var(--spacing-sm);
}

/* Card Grid Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-color-hover);
  box-shadow: var(--shadow-glow);
}

.feature-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
}

.feature-card h3 {
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: var(--font-size-2xl);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(244, 67, 54, 0.2);
  color: var(--color-error);
}

.modal-content h2 {
  margin-bottom: var(--spacing-md);
  padding-right: var(--spacing-3xl);
}

.modal-content img {
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

@media (max-width: 767px) {
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-item:not(:last-child)::after {
    display: none;
  }
  
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
}
