/* story.css - UX Journey Focus */

:root {
  --bg: radial-gradient(circle at center, #161515 0%, #2c2a2a 100%);
  --text: #f1f1f1;
  --muted: #cfcfcf;
  --accent: #EB676C;
  --paper: #faf8f2;
  --shadow: rgba(0,0,0,.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.2px;
}

.side-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 1000;
}

.side-nav a {
  padding: 12px 20px;
  border: 2px solid #EB676C;
  background-color: transparent;
  color: #EB676C;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  min-width: 100px;
  transition: all 0.3s ease;
}

.side-nav a.logo-nav {
  padding: 0 !important;
  border: none !important;
  background: none !important;
  min-width: auto !important;
}

.side-nav a {
  position: relative;
  border: 2px solid #EB676C;
  color: #EB676C;
  background-color: transparent;
  background-image: linear-gradient(#EB676C, #EB676C);
  background-size: 100% 0%;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.3s ease, background-size 0.38s ease-in-out;
}

.side-nav a:hover {
  background-size: 100% 100%;
  color: #000000;
}

.logo-nav {
  all: unset;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-image {
  width: 50px;
  height: auto;
  object-fit: contain;
  filter: brightness(85%);
  transition: transform 0.3s ease;
  display: block;
}

.logo-image:hover {
  transform: scale(1.1);
}

.side-nav a.active {
  background-size: 100% 100%;
  color: black;
  font-weight: bold;
}



/* Progress Bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 1000;
  transition: width 0.1s ease;
}

/* Story Wrapper */
.story-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--text);
  text-transform: capitalize;
  line-height: 1.2;
  color: #EB676C;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.5px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Story Sections */
.story-section {
  padding: 4rem 0;
}

.section-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Intro Section */
.intro-section {
  padding: 8rem 0;
  text-align: center;
}

.intro-text {
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 2rem;
}

.intro-text em {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}

/* Timeline Container */
.timeline-container {
  padding: 4rem 0 6rem;
}

/* Journey Steps */
.journey-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.journey-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step Marker */
.step-marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(22, 21, 21, 0.8);
  z-index: 2;
}

.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-top: 1rem;
  min-height: 100px;
}

.journey-step:last-child .step-line {
  display: none;
}

.current-step .step-number {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 0 20px rgba(235, 103, 108, 0.4);
}

/* Step Content */
.step-content {
  padding-top: 0.5rem;
}

.step-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.step-content h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.3;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.step-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Insight Box */
.insight-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.insight-box.highlight {
  background: rgba(235, 103, 108, 0.08);
  border-left-width: 4px;
}

.insight-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.insight-box p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin: 0;
  font-weight: 400;
  font-style: italic;
}

/* Skills Learned */
.skills-learned {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: var(--muted);
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.skill-tag:hover {
  background: rgba(235, 103, 108, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Education Topics */
.education-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.topic {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.topic:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

.topic-icon {
  font-size: 1.5rem;
}

.topic-text {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* Why Box */
.why-box {
  background: linear-gradient(135deg, rgba(235, 103, 108, 0.1) 0%, rgba(235, 103, 108, 0.05) 100%);
  padding: 2.5rem;
  border-radius: 8px;
  margin-top: 3rem;
  border: 1px solid rgba(235, 103, 108, 0.2);
}

.why-box h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--accent);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

.why-box p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin: 0;
}

.why-box em {
  color: var(--accent);
  font-style: normal;
  font-weight: 400;
}

/* Closing Section */
.closing-section {
  text-align: center;
  padding: 6rem 0 8rem;
}

.closing-section h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 2rem;
  color: var(--text);
  text-transform: capitalize;
  letter-spacing: 1px;
}

.closing-section p {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
  .story-wrapper {
    padding: 0 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1rem;
  }
  
  .intro-text {
    font-size: 1.1rem;
  }
  
  .journey-step {
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
  
  .step-content h2 {
    font-size: 1.5rem;
  }
  
  .education-topics {
    grid-template-columns: 1fr;
  }
  
  .why-box {
    padding: 1.5rem;
  }
  
  .insight-box {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .step-content h2 {
    font-size: 1.3rem;
  }
  
  .skills-learned {
    gap: 0.5rem;
  }
  
  .skill-tag {
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
}