/*
 * CHAPTER 4: CORE SERVICES
 * 3D rotating service cards, dynamic glass tilt
 */

.chapter-4 {
  position: relative;
  width: 100vw;
  min-height: 120vh;
  padding: 15vh 0;
  z-index: var(--z-content);
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 2000px;
}

.c4-header {
  text-align: center;
  margin-bottom: 8rem;
}

.c4-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.c4-subtitle {
  color: var(--text-muted);
  font-size: var(--text-manifesto);
  max-width: 600px;
  margin: 0 auto;
}

.c4-cards-container {
  display: flex;
  gap: 3rem;
  width: 100%;
  max-width: 1600px;
  justify-content: center;
  flex-wrap: wrap;
}

.c4-card {
  width: 380px;
  height: 550px;
  background: var(--bg-glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color 0.4s;
}

.c4-card:hover {
  border-color: var(--accent-primary);
}

.c4-card-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  transform: translateZ(50px); /* 3D pop out */
}

.c4-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
  transform: translateZ(40px); /* 3D pop out */
}

.c4-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  transform: translateZ(30px); /* 3D pop out */
}

.c4-card-list {
  list-style: none;
  margin-top: auto;
  transform: translateZ(20px);
}

.c4-card-list li {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.c4-card-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-secondary);
  border-radius: 50%;
}

/* Glass reflection effect inside card */
.c4-card-reflection {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
  transform: translateZ(10px);
}
