/* Story Page Specific Styles */

/* Timeline Stars Background */
.timeline-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(102, 126, 234, 0.6);
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Story Page Main */
.story-page {
  position: relative;
  z-index: 1;
  padding-top: 80px;
}

/* Hero Section */
.story-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

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

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1;
  text-align: center;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-pulse 3s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradient-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 3rem;
  text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.scroll-indicator svg {
  color: #667eea;
}

/* Progress Indicator */
.progress-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.progress-bar-vertical {
  width: 3px;
  height: 200px;
  background: var(--glass-border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-bar-vertical::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transition: height 0.3s ease;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(102, 126, 234, 0.6); }
  50% { transform: scale(1.3); box-shadow: 0 0 30px rgba(102, 126, 234, 0.9); }
}

/* Timeline Section */
.timeline-section {
  padding: 4rem 0 6rem;
  position: relative;
}

/* Vertical Timeline Line - FIXED */
.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--glass-border);
  z-index: 1;
}

/* Animated Progress Line */
.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transition: height 0.3s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Timeline Items */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 2rem;
  margin-bottom: 6rem;
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Left Items */
.timeline-item.left .timeline-content {
  grid-column: 1;
  text-align: right;
  transform: translateX(-30px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.left.visible .timeline-content {
  transform: translateX(0);
}

/* Right Items */
.timeline-item.right .timeline-content {
  grid-column: 3;
  text-align: left;
  transform: translateX(30px);
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.right.visible .timeline-content {
  transform: translateX(0);
}

/* Timeline Dot */
.timeline-dot {
  grid-column: 2;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid #667eea;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
}

.timeline-item.visible .timeline-dot {
  background: #667eea;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
  transform: scale(1.3);
}

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

@keyframes pulse-timeline {
  0%, 100% { 
    transform: scale(1.3); 
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
  }
  50% { 
    transform: scale(1.6); 
    box-shadow: 0 0 50px rgba(102, 126, 234, 1);
  }
}

/* Timeline Content */
.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  position: relative;
  transition: all 0.5s ease;
}

.timeline-item.visible .timeline-content {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.1);
}

.timeline-item:hover .timeline-content {
  transform: scale(1.02);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 24px 70px rgba(102, 126, 234, 0.2);
}

.timeline-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.timeline-year {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.timeline-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.timeline-item.left .timeline-tags {
  justify-content: flex-end;
}

.tag {
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  color: #a5b4fc;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  color: #a5b4fc;
  font-weight: 500;
}

.timeline-item.left .timeline-highlight {
  justify-content: flex-end;
}

.timeline-highlight svg {
  color: #667eea;
}

.timeline-cta {
  margin-top: 1.5rem;
}

.timeline-item.left .timeline-cta {
  text-align: right;
}

.timeline-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.timeline-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* Present Item (Current) */
.timeline-item.present .timeline-content {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-color: rgba(102, 126, 234, 0.5);
}

/* Skills Evolution Section */
.skills-evolution-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 50%, transparent 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.skills-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-track {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s ease;
}

.skill-track.visible {
  opacity: 1;
  transform: translateX(0);
}

.skill-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.skill-bar {
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  color: white;
  font-weight: 600;
}

.skill-progress::after {
  content: attr(data-progress) '%';
  color: white;
  font-size: 0.9rem;
}

/* Philosophy Section */
.philosophy-section {
  padding: 5rem 0;
}

.philosophy-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 4rem 3rem;
  backdrop-filter: blur(20px);
  text-align: center;
}

.philosophy-card h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

blockquote {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  position: relative;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  color: #667eea;
  position: absolute;
  top: -20px;
  left: -10px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.philosophy-item {
  text-align: center;
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.philosophy-item:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-5px);
}

.philosophy-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.philosophy-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.philosophy-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0 6rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

.cta-btn {
  padding: 1rem 2.5rem;
  border-radius: 14px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.cta-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.4);
}

.cta-btn.secondary {
  background: var(--accent);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.cta-btn.secondary:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-4px);
}

/* Fade In Animation */
.fade-in {
  animation: fadeInUp 1s ease forwards;
}

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

/* Responsive Design */
@media (max-width: 968px) {
  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1.5rem;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item.left .timeline-content,
  .timeline-item.right .timeline-content {
    grid-column: 2;
    text-align: left;
    transform: translateX(30px);
  }

  .timeline-item.left.visible .timeline-content,
  .timeline-item.right.visible .timeline-content {
    transform: translateX(0);
  }

  .timeline-dot {
    grid-column: 1;
    margin: 0;
  }

  .timeline-item.left .timeline-tags,
  .timeline-item.left .timeline-highlight,
  .timeline-item.left .timeline-cta {
    justify-content: flex-start;
    text-align: left;
  }

  .progress-indicator {
    right: 1rem;
  }

  .progress-bar-vertical {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .timeline-content {
    padding: 2rem 1.5rem;
  }

  .timeline-icon {
    font-size: 2.5rem;
  }

  .timeline-title {
    font-size: 1.4rem;
  }

  .philosophy-card {
    padding: 3rem 2rem;
  }

  blockquote {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

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

  .progress-indicator {
    display: none;
  }
}

/* Active Nav Link */
.dropdown-content a.active {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.mobile-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
