/* project2.css - Redesigned in Story Style */

: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;
}

/* 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;
}

/* Back Link */
.back-link {
  position: absolute;
  top: 50px;
  left: 270px;
  z-index: 100;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 16px;
  border-radius: 0px;
  overflow: hidden;
  background: linear-gradient(to top, var(--accent) 0%, var(--accent) 100%);
  background-size: 100% 0%;
  background-repeat: no-repeat;
  background-position: bottom center;
  transition: background-size 0.4s ease, color 0.4s ease, transform 0.3s;
}

.back-link:hover {
  background-size: 100% 100%;
  color: #000;
  transform: scale(1.05);
}

/* Main Content */
.project-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.project-section {
  padding: 8rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.project-section.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hero Section */
.project-hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 6rem;
}

.hero-content {
  text-align: center;
}

.project-meta {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 400;
}

.project-title {
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: lowercase;
  margin-bottom: 2rem;
  color: var(--text);
  line-height: 1.1;
}

.project-subtitle {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--muted);
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 4rem;
  letter-spacing: 0.3px;
}

.hero-image-wrapper {
  margin-top: 4rem;
}

.hero-image {
  width: 100%;
  max-width: 800px;
  border-radius: 4px;
  opacity: 0.9;
}

/* Typography */
h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: lowercase;
  margin-bottom: 3rem;
  color: var(--text);
}

h3 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: lowercase;
  margin-bottom: 1.5rem;
  color: var(--text);
}

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

/* Context Section */
.context-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
  line-height: 2;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  margin-top: 4rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.detail-value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 300;
}

/* Role Section */
.role-section .section-content > p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  line-height: 2;
}

.responsibility-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}

.responsibility-item {
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.responsibility-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.2rem;
}

/* Other Features Section */
.other-features-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
  line-height: 2;
}

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

.feature-card {
  padding: 2.5rem 2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(235, 103, 108, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(235, 103, 108, 0.3);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #000;
  transform: rotate(360deg);
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: none;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.feature-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Design Process Overview */
.design-process-overview {
  padding: 8rem 0;
}

.design-process-overview .section-content {
  margin-bottom: 5rem;
}

.design-process-overview .section-content > p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 0;
}

.process-flow {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0 2rem;
}

.process-stage {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 2rem;
  align-items: start;
  position: relative;
}

.process-stage:last-child {
  grid-template-columns: 60px 1fr;
}

.process-stage:last-child .stage-arrow {
  display: none;
}

.stage-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.stage-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: lowercase;
  letter-spacing: 1px;
  color: var(--text);
}

.stage-activities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.activity {
  font-size: 0.85rem;
  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;
}

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

.stage-arrow {
  font-size: 2rem;
  color: var(--accent);
  align-self: center;
  opacity: 0.6;
  margin-left: -1rem;
}

/* Problem Section */
.problem-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.problem-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
}

.problem-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.problem-content h3 {
  margin-bottom: 1rem;
}

.problem-content p {
  margin: 0;
}

/* Approach Section */
.approach-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  position: relative;
}

.approach-steps::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(235, 103, 108, 0.2));
}

.approach-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  position: relative;
}

.step-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.step-content h3 {
  margin-bottom: 1rem;
}

.step-content p {
  margin: 0;
}

/* Roles Grid */
.roles-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.role-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.role-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.role-number {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.role-name {
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  font-weight: 400;
}

/* Single Image Sections */
.single-image-wrapper,
.persona-image-wrapper,
.empathy-image-wrapper,
.ia-image-wrapper,
.zpattern-image-wrapper {
  margin: 3rem 0;
  text-align: center;
}

.single-image,
.persona-image,
.empathy-image,
.ia-image,
.zpattern-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  opacity: 0.95;
}

/* Individual Section Spacing */
.persona-section .section-content > p,
.ia-section .section-content > p,
.zpattern-section .section-content > p {
  margin-bottom: 3rem;
  font-size: 1.05rem;
  line-height: 2;
}

/* Artifacts Section */
.artifact-block {
  margin-bottom: 8rem;
}

.artifact-block:last-child {
  margin-bottom: 0;
}

.artifact-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.artifact-block p {
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 3rem;
}

.artifact-image-wrapper {
  margin: 3rem 0;
  text-align: center;
}

.artifact-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  opacity: 0.95;
}

/* Z-Pattern List */
.z-pattern-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 3rem 0;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--accent);
}

.z-item {
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.z-label {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  min-width: 100px;
}

.z-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 300;
}

/* Process Visual Section */
.process-visual-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
}

.process-image-wrapper {
  margin: 3rem 0;
  text-align: center;
}

.process-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  opacity: 0.95;
}

/* Final Section */
.final-section .section-content > p {
  margin-bottom: 4rem;
  font-size: 1.05rem;
  line-height: 2;
}

.final-image-wrapper {
  margin: 3rem 0;
  text-align: center;
}

.final-image {
  width: 100%;
  max-width: 100%;
  border-radius: 4px;
  opacity: 0.95;
}

/* Learnings Section */
.learnings-section {
  padding-bottom: 12rem;
}

.learning-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.learning-item p {
  font-size: 1rem;
  line-height: 1.9;
  margin: 0;
}

.learning-item strong {
  color: var(--text);
  font-weight: 500;
}

/* Bottom Link Wrapper */
.bottom-link-wrapper {
  position: relative;
  margin-bottom: 150px;
  padding-top: 6rem;
  min-height: 100px;
}

.footer-back-link {
  position: absolute;
  bottom: 50px;
  left: 270px;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 16px;
  border-radius: 0px;
  overflow: hidden;
  background: linear-gradient(to top, var(--accent) 0%, var(--accent) 100%);
  background-size: 100% 0%;
  background-repeat: no-repeat;
  background-position: bottom center;
  transition: background-size 0.4s ease, color 0.4s ease, transform 0.3s;
}

.footer-back-link:hover {
  background-size: 100% 100%;
  color: #000;
  transform: scale(1.05);
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #888;
  border-top: 1px solid #333;
  background: rgba(10, 10, 10, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .project-content {
    padding: 0 1.5rem;
  }
  
  .back-link {
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  
  .project-section {
    padding: 6rem 0;
  }
  
  .project-hero-section {
    padding: 6rem 0 4rem;
  }
  
  .project-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }
  
  .project-subtitle {
    font-size: 1rem;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .project-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .problem-item,
  .approach-step {
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
  }
  
  .problem-number,
  .step-marker {
    width: 35px;
    height: 35px;
    font-size: 0.75rem;
  }
  
  .approach-steps::before {
    left: 17px;
  }
  
  .roles-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .z-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .z-label {
    min-width: auto;
  }
  
  /* Process flow responsive */
  .process-flow {
    padding: 0 1rem;
  }
  
  .process-stage {
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
  }
  
  .stage-number {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
  
  .stage-arrow {
    display: none;
  }
  
  .stage-content h3 {
    font-size: 1.1rem;
  }
  
  .activity {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .bottom-link-wrapper {
    text-align: center;
    margin-bottom: 50px;
  }
  
  .footer-back-link {
    position: static;
    display: inline-block;
    margin: 20px auto;
  }
  
  .site-footer {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .project-section {
    padding: 4rem 0;
  }
  
  .project-title {
    font-size: 2rem;
  }
  
  .carousel-card,
  .carousel-card-2 {
    width: 300px;
  }
  
  .artifact-block {
    margin-bottom: 6rem;
  }
}