/* ============================================================
   TechKaizen About Page Styling  —  css/about.css
   ============================================================ */

/* ─── ABOUT HERO ─── */
.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 20px 80px;
  overflow: hidden;
}

.about-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 24px;
  margin-bottom: 30px;
  line-height: 1.1;
  max-width: 900px;
}

.about-hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── MISSION SECTION ─── */
.about-mission {
  padding-top: 60px;
  padding-bottom: 120px;
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.mission-text .section-subtitle {
  text-align: left;
  margin: 0 0 32px 0;
  max-width: none;
}

.mission-desc {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.1rem;
}

.mission-img-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: visible;
}

.mission-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ─── PHILOSOPHY BENTO ─── */
.about-philosophy {
  padding: 100px 0;
  position: relative;
}

.about-philosophy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.philosophy-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.bento-card {
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  background: rgba(16, 16, 24, 0.6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.bento-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.bento-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.bento-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ─── CTA SECTION ─── */
.about-cta {
  padding: 80px 0 140px;
}

.cta-box {
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-box h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* ─── FOUNDERS SECTION ─── */
.about-founders {
  padding: 80px 0;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  box-sizing: border-box;
}

.founders-carousel-wrapper {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.founders-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  perspective: 1000px;
}

.founder-card {
  border-radius: var(--radius-lg);
  width: 295px;
  max-width: 90vw;
  padding: 24px 18px;
  background: rgba(16, 16, 24, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease-out, box-shadow 0.5s ease, border-color 0.5s ease;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  will-change: transform;
}

.founder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.founder-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}

.founder-card:hover::before {
  opacity: 1;
}

.founder-img-wrapper {
  width: 250px;
  height: 310px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.5s ease, box-shadow 0.5s ease;
  z-index: 1;
}

.founder-card:hover .founder-img-wrapper {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
}

.founder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
  filter: grayscale(20%) contrast(1.1);
}

.founder-card:hover .founder-img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.1);
}

.founder-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 6px;
}

.founder-info p {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .mission-text .section-title,
  .mission-text .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .mission-desc {
    text-align: center;
  }

  .philosophy-bento {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .philosophy-bento {
    grid-template-columns: 1fr;
  }

  .bento-card {
    align-items: center;
    text-align: center;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 1.8rem;
  }

  /* Founders Mobile Carousel */
  .about-founders {
    padding: 50px 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .founders-carousel-wrapper {
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    padding: 10px 0;
    box-sizing: border-box;
  }

  .founders-grid {
    display: flex;
    width: 200%;
    gap: 0;
    margin: 0;
    padding: 0;
    animation: founder-carousel 7s infinite cubic-bezier(0.4, 0, 0.2, 1);
  }

  .founder-card {
    width: 50%;
    max-width: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 18px 12px;
    margin: 0 auto;
  }

  .founder-img-wrapper {
    width: 230px;
    max-width: 75vw;
    height: 285px;
    margin-bottom: 16px;
  }
}

@keyframes founder-carousel {
  0%,
  42% {
    transform: translateX(0);
  }

  50%,
  92% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* ============================================================
   3D SPATIAL CANVAS & SCROLL ZOOM STYLING
   VisionOS Spatial Depth System
   ============================================================ */

.spatial-viewport {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}

.spatial-canvas {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.spatial-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  will-change: transform, opacity, filter;
  transition: transform 0.1s linear, opacity 0.1s linear;
  box-sizing: border-box;
  padding: 80px 20px 40px;
}

/* Spatial HUD Sidebar Progress Tracker */
.spatial-hud {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: rgba(15, 15, 26, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 12px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hud-index {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-hv);
  letter-spacing: 1px;
}

.hud-total {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

.hud-dots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-dot:hover {
  background: rgba(99, 102, 241, 0.6);
  transform: scale(1.3);
}

.hud-dot.active {
  background: linear-gradient(135deg, #6366F1, #A855F7);
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.8);
  transform: scale(1.4);
  height: 24px;
  border-radius: 12px;
}

/* Enhancements for Glass Cards in Spatial Depth */
.glass-card, .bento-card, .founder-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover, .bento-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(99, 102, 241, 0.3);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Mobile & Reduced Motion Responsive Fallback */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  body {
    height: auto !important;
    overflow-y: auto !important;
  }

  .spatial-viewport {
    position: relative;
    height: auto;
    overflow: visible;
    pointer-events: auto;
  }

  .spatial-canvas {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
  }

  .spatial-section {
    position: relative;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
    padding: 60px 16px;
  }

  .spatial-hud {
    display: none;
  }
}