/* -----------------------------
   ABOUT SECTION
   ----------------------------- */
.about{
  position:relative;
  isolation:isolate;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background-color: var(--section-bg, #120431);
  margin-top:-0px;
  overflow:hidden;
  min-height:100vh;
  width:100%;
  max-width:100vw;
  box-sizing:border-box;
}

/* Keep content centered and constrained */
.about .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}


/* Two column layout - ensure proper alignment */
.about .two-column-layout {
  display: grid;
  grid-template-columns: minmax(350px, 450px) 1fr;
  /* Fixed width for cards column */
  gap: var(--space-4xl);
  align-items: stretch;
  /* Make both columns same height */
  margin-top: var(--space-2xl);
}

/* About cards container - full height */
.about-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  /* Distribute cards evenly in available height */
  height: 100%;
  /* Take full height of parent */
}

/* About card styling - EXACT match to tags */
.about-card {
  position: relative;
  display: block;
  padding: var(--space-xs) var(--space-md);
  /* Exact same as tags */
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 20px;
  font-size: var(--text-sm);
  /* Same as tags */
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Ensure all properties transition */
  text-align: center;
  flex: 1;
  /* Distribute height evenly */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  transform: translateY(0);
  /* Initial state for transform */
}

/* Hover effect - EXACT match to tags with proper float */
.about-card:hover {
  background-color: rgba(255, 194, 14, 0.1);
  border-color: var(--card-bd-hover);
  box-shadow: 0 6px 16px rgba(255, 194, 14, 0.18);
  transform: translateY(-2px) !important;
  /* Force the float effect */
  position: relative;
  /* Ensure it can move */
  z-index: 10;
  /* Lift above siblings */
}

/* Tooltip z-index fix for About cards */
.about .about-card.tooltip-trigger:hover,
.about .about-card.tooltip-trigger:focus-visible {
  z-index: 100;
  position: relative;
}

/* Ensure tooltips are visible */
.about-card.tooltip-trigger:hover::after,
.about-card.tooltip-trigger:hover::before {
  z-index: 101;
}

/* About text content - match height */
.about-text {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center text vertically */
  height: 100%;
  /* Take full height */
}

.about-text p {
  margin-bottom: var(--space-lg);
  text-align: left; 
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Stagger animation for cards entrance */
.about .stagger-animation.in-view .about-card {
  opacity: 0;
  transform: translateY(20px);
  animation: cardFloatIn 0.6s ease forwards;
}

.about .stagger-animation.in-view .about-card:nth-child(1) {
  animation-delay: 0.1s;
}

.about .stagger-animation.in-view .about-card:nth-child(2) {
  animation-delay: 0.2s;
}

.about .stagger-animation.in-view .about-card:nth-child(3) {
  animation-delay: 0.3s;
}

.about .stagger-animation.in-view .about-card:nth-child(4) {
  animation-delay: 0.4s;
}

.about .stagger-animation.in-view .about-card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes cardFloatIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus state for accessibility */
.about-card:focus-visible {
  outline: 2px solid var(--card-bd-hover);
  outline-offset: 2px;
}

/* SMOOTH TOOLTIP ANIMATION */
.about-card.tooltip-trigger::after,
.about-card.tooltip-trigger::before {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

/* Tooltip content - start slightly below its final position */
.about-card.tooltip-trigger::after {
  bottom: calc(100% + 10px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(5px); /* Start 5px lower */
  right: auto;
}

/* Tooltip arrow - match the content animation */
.about-card.tooltip-trigger::before {
  bottom: calc(100% + 5px);
  top: auto;
  left: 50%;
  transform: translateX(-50%) translateY(5px) rotate(45deg); /* Start 5px lower */
  right: auto;
}

/* On hover - smooth float up animation */
.about-card.tooltip-trigger:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Float up to final position */
}

.about-card.tooltip-trigger:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotate(45deg); /* Float up to final position */
}

/* Optional: Add a slight delay before showing */
.about-card.tooltip-trigger:hover::after,
.about-card.tooltip-trigger:hover::before {
  transition-delay: 0.2s; /* Wait 200ms before showing */
}

/* Remove delay when hiding for instant response */
.about-card.tooltip-trigger:not(:hover)::after,
.about-card.tooltip-trigger:not(:hover)::before {
  transition-delay: 0s;
}

/* Alternative: Fade and scale animation for a softer effect */
/*
.about-card.tooltip-trigger::after {
  transform: translateX(-50%) translateY(5px) scale(0.95);
}

.about-card.tooltip-trigger:hover::after {
  transform: translateX(-50%) translateY(0) scale(1);
}
*/
  
  /* Responsive adjustments */
@media (max-width: 1024px) {
  .about .two-column-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-cards {
    max-width: 500px;
    margin: 0 auto;
    height: auto;
    gap: 12px;
  }

  .about-card {
    flex: none;
    min-height: 50px;
    padding: var(--space-sm) var(--space-lg);
  }

  .about-text {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 768px) {
  .about-card {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-sm);
  }

  .about-cards {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .about-card {
    font-size: var(--text-xs);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .about-card {
    transition: none;
  }

  .about-card:hover {
    transform: none;
  }

  .about .stagger-animation.in-view .about-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}



  