/* --- Premium Editorial Design System for xMonks About Us Page --- */

:root {
  --primary: #ED592C;
  --bg-editorial: #F9F7F2;
  --text-charcoal: #0F172A;
  --text-muted: #64748B;
  --border-fine: rgba(15, 23, 42, 0.08);
}

html, body {
  background-color: var(--bg-editorial);
  color: var(--text-charcoal);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden !important;
  max-width: 100%;
}

body {
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Page structure */
.about-layout {
  padding-top: 80px;
}

/* Background grid line overlay */
.editorial-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  justify-content: space-between;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.editorial-grid-line {
  width: 1px;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.02);
}

/* Ambient glow blobs */
.glow-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: -10;
  opacity: 0.5;
}

.glow-blob-1 {
  top: 10%;
  left: -10%;
  width: 450px;
  height: 450px;
  background-color: rgba(237, 89, 44, 0.06);
}

.glow-blob-2 {
  top: 55%;
  right: -10%;
  width: 550px;
  height: 550px;
  background-color: rgba(14, 165, 233, 0.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 8rem 1.5rem 6rem;
  z-index: 10;
  background-color: #0B0F19;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-title-italic {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: #94A3B8;
  max-width: 38rem;
}

/* Vision & Mission Cards Grid */
.vision-mission-section {
  max-width: 80rem;
  margin: 5rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.editorial-grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .editorial-grid-two {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

.glass-editorial-card {
  background: rgba(249, 247, 242, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 32px;
  padding: 3rem 2.5rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-editorial-card:hover {
  background: rgba(249, 247, 242, 0.75);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.05);
  transform: translateY(-4px);
}

.card-icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background-color: rgba(237, 89, 44, 0.08);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.card-icon-container svg {
  width: 28px;
  height: 28px;
}

.card-meta-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.card-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 1.25rem;
}

.card-description {
  font-size: 0.975rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

/* Restructured Philosophy & Compass Grid */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .philosophy-grid {
    grid-template-columns: 3.5fr 4.25fr 4.25fr;
  }
}

.philosophy-intro-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .philosophy-intro-col {
    text-align: left;
    padding-right: 1.5rem;
  }
}

.philosophy-meta {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.philosophy-main-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-charcoal);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.philosophy-desc {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.philosophy-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  border: 1.5px solid rgba(237, 89, 44, 0.3) !important;
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, box-shadow 0.4s ease !important;
}

.philosophy-card:hover {
  border-color: var(--primary) !important;
}

/* Watermark Number behind Card content */
.card-watermark {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 7.5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(15, 23, 42, 0.03);
  user-select: none;
  z-index: 0;
  pointer-events: none;
}

.philosophy-card .card-icon-container,
.philosophy-card .card-meta-tag,
.philosophy-card .card-main-title,
.philosophy-card .card-description {
  position: relative;
  z-index: 2;
}

/* SVG Background Visualizers inside Cards */
.card-bg-visualizer {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  opacity: 0.15;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
}

.philosophy-card:hover .card-bg-visualizer {
  opacity: 0.45;
  transform: scale(1.15) translate(-10px, -10px);
}

.card-bg-visualizer svg {
  width: 100%;
  height: 100%;
}

/* Keep Animations */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulseSlow {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.spin-slow {
  animation: spinSlow 25s linear infinite;
  transform-origin: center;
}

.spin-reverse {
  animation: spinReverse 20s linear infinite;
  transform-origin: center;
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
  transform-origin: center;
}

.pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
  transform-origin: center;
}

/* The xMonks Story Section */
.story-section {
  max-width: 80rem;
  margin: 6rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.story-tag {
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--primary) !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.story-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.15 !important;
  color: var(--text-charcoal) !important;
  margin-bottom: 1.75rem !important;
  text-transform: uppercase !important;
}

/* Story Milestone Styles */
.milestone-block {
  position: relative;
  padding-bottom: 3rem;
  transition: all 0.3s ease;
}

.milestone-block:last-child {
  padding-bottom: 0;
}

.milestone-dot {
  position: absolute;
  left: -5.5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 2px solid var(--bg-editorial);
  box-shadow: 0 0 0 4px rgba(237, 89, 44, 0.1);
  transition: all 0.3s ease;
}

.milestone-block:hover .milestone-dot {
  background-color: #d4471b;
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(237, 89, 44, 0.2);
}

.milestone-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.milestone-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-charcoal);
  margin-bottom: 0.75rem;
}

.milestone-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.story-quote-card {
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2rem !important;
  max-width: 440px;
  text-align: left;
}

/* Viewfinder Top-Left Corner */
.story-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--primary);
  border-left: 3px solid var(--primary);
}

/* Viewfinder Bottom-Right Corner */
.story-quote-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-bottom: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
}

.quote-text {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-charcoal);
  font-weight: 500;
  margin-bottom: 1rem;
}

.quote-author {
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--primary) !important;
  display: block;
  text-align: right !important;
}

/* Core Team Section */
.team-preview-section {
  max-width: 80rem;
  margin: 6rem auto 8rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
  text-align: center;
}

.team-preview-header {
  margin-bottom: 4rem;
}

.team-preview-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-charcoal);
  margin-bottom: 1rem;
}

.team-preview-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.6;
}

/* Team Grid inside About Us */
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 480px) {
  .about-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .about-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Reusing exact Team Circular Cards */
.team-card {
  position: relative;
  background: rgba(249, 247, 242, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  padding: 1.5rem 1.25rem 1.25rem;
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  height: auto;
}

.team-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.team-card:hover {
  background: rgba(249, 247, 242, 0.75);
  box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.06);
}

.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.image-container {
  width: 210px;
  height: 210px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #FFFDF5 0%, #EADFC9 100%);
  border-radius: 50%;
  border: 3px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.team-card:hover .image-container {
  transform: scale(1.04);
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.info-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1rem;
  margin-top: auto;
}

.info-left {
  text-align: left;
  flex-grow: 1;
  padding-right: 0.5rem;
}

.member-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-charcoal);
  margin: 0;
  line-height: 1.2;
}

.member-role {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: 0.25rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.info-right {
  display: flex;
  align-items: center;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-charcoal) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.linkedin-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.linkedin-link:hover,
.team-card:hover .linkedin-link {
  color: var(--primary) !important;
}

.linkedin-link:hover {
  transform: translateY(-2px);
}

.img-loading {
  filter: blur(10px);
  transform: scale(1.04);
}

.img-loaded {
  filter: blur(0);
  transform: scale(1);
}

@media (max-width: 640px) {
  .image-container {
    width: 140px;
    height: 140px;
    border-width: 2px;
  }
}

/* Call to Action Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary);
  color: #ffffff;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(237, 89, 44, 0.25);
  text-decoration: none !important;
}

.cta-button:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 89, 44, 0.15);
}

.cta-button svg {
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* Premium Team Pointer Layout */
.team-pointer-section {
  max-width: 80rem;
  margin: 8rem auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.pointer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1200px) {
  .pointer-grid {
    grid-template-columns: 4.5fr 7.5fr;
  }
}

.pointer-text-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 1200px) {
  .pointer-text-side {
    text-align: left;
    align-items: flex-start;
  }
}

.pointer-tag {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: block;
}

.pointer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-charcoal);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.pointer-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Card Stack Layout */
.pointer-collage-side {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-stack {
  position: relative;
  width: 260px;
  height: 340px;
  margin: 0 auto;
}

.stack-card {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  opacity: 1 !important;
  transform: translateY(0) rotate(0deg) !important;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Default state of stack - layered and slightly rotated */
.stack-card-1 {
  transform: translate(-20px, 15px) rotate(-6deg) !important;
  z-index: 10;
}

.stack-card-2 {
  transform: translate(20px, -10px) rotate(4deg) !important;
  z-index: 20;
}

.stack-card-3 {
  transform: translate(0, 0) rotate(0deg) !important;
  z-index: 30;
}

/* Spread on hover of pointer collage container */
.pointer-collage-side:hover .stack-card-1 {
  transform: translate(-150px, 20px) rotate(-12deg) !important;
}

.pointer-collage-side:hover .stack-card-2 {
  transform: translate(150px, -20px) rotate(12deg) !important;
}

.pointer-collage-side:hover .stack-card-3 {
  transform: translate(0, -35px) scale(1.05) !important;
  z-index: 40;
}

@media (max-width: 1024px) {
  .stack-card-1 {
    transform: translate(-90px, 15px) rotate(-8deg) !important;
  }
  .stack-card-2 {
    transform: translate(90px, -15px) rotate(8deg) !important;
  }
  .stack-card-3 {
    transform: translate(0, -25px) scale(1.03) !important;
    z-index: 40;
  }
}

@media (max-width: 992px) {
  .pointer-collage-side {
    height: 480px;
  }
  .card-stack {
    margin-top: 3rem;
  }
}

@media (max-width: 640px) {
  .stack-card-1 {
    transform: translate(-50px, 10px) rotate(-6deg) !important;
  }
  .stack-card-2 {
    transform: translate(50px, -10px) rotate(6deg) !important;
  }
  .stack-card-3 {
    transform: translate(0, -15px) scale(1.02) !important;
    z-index: 40;
  }
}

/* Solid CTA button overrides */
.cta-button-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--primary) !important;
  color: #ffffff !important;
  padding: 0.875rem 2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--primary);
  box-shadow: 0 4px 14px rgba(237, 89, 44, 0.25);
  text-decoration: none !important;
}

.cta-button-solid:hover {
  background-color: #d4471b !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 89, 44, 0.35);
}

.cta-button-solid svg {
  transition: transform 0.3s ease;
}

.cta-button-solid:hover svg {
  transform: translateX(4px);
}
