/* ============================================
   Cards
   ============================================ */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid transparent;
    box-shadow: var(--shadow-resting);
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

/* Orange top-border reveal on hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 103, 0, 0.1);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-orange), var(--accent-coral));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 103, 0, 0.2);
}

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

.card-title {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.card-description {
    color: var(--gray-600);
    line-height: 1.7;
}



/* ============================================
   Cards: Profile
   ============================================ */  


.profile-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition-base);
    max-width: 300px;
}

.profile-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-orange);
}

.profile-card-container {
    padding: 2rem
}

.profile-image-container {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.profile-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}


/* ============================================================================= */


.card-trial {
  width: 280px;
  height: 280px;
  background: var(--primary-orange-3);
  border-radius: 32px;
  padding: 3px;
  position: relative;
  box-shadow: #604b4a30 0px 70px 30px -50px;
  transition: all 0.5s ease-in-out;
}

.card-trial .profile-pic {
  position: absolute;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  top: 3px;
  left: 3px;
  border-radius: 29px;
  z-index: 1;
  border: 0px solid var(--primary-orange);
  overflow: hidden;
  transition: all 0.5s ease-in-out 0.2s, z-index 0.5s ease-in-out 0.2s;
}

.card-trial .profile-pic img {
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  height: 100%;
  -o-object-position: 0px 0px;
  object-position: 0px -55px;
  transition: all 0.5s ease-in-out 0s;
}

.card-trial .bottom {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  background: var(--primary-orange);
  top: 80%;
  border-radius: 29px;
  z-index: 2;
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px inset;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0s;
}

.card-trial .bottom .content {
  position: absolute;
  padding-left: 1rem;
  bottom: 0;
  right: 1.5rem;
  height: 160px;
}

.card-trial .bottom .content .profile-title {
  display: block;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

.card-trial .bottom .content .about-me {
  display: block;
  font-size: 0.9rem;
  color: white;
  margin-top: 0.5rem;
}

.card-trial .bottom .bottom-bottom {
  position: absolute;
  bottom: -0.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.card-trial:hover {
  border-top-left-radius: 55px;
}

.card-trial:hover .bottom {
  top: 20%;
  border-radius: 80px 29px 29px 29px;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1) 0.2s;
}

.card-trial:hover .profile-pic {
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  top: 10px;
  left: 10px;
  border-radius: 50%;
  z-index: 3;
  border: 7px solid var(--primary-orange);
  box-shadow: rgba(96, 75, 74, 0.1882352941) 0px 5px 5px 0px;
  transition: all 0.5s ease-in-out, z-index 0.5s ease-in-out 0.1s;
}

.card-trial:hover .profile-pic:hover {
  transform: scale(1.3);
  border-radius: 0px;
}

.card-trial:hover .profile-pic img {
  transform: scale(2);
  -o-object-position: -50px 80px;
  object-position: -5px -15px;
  transition: all 0.5s ease-in-out 0.5s;
}

.profile-name {
  color: white;
}


/* ============================================
   Cards: Team Grid (Atlassian-style)
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

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

.team-card {
  text-align: center;
  outline: none;
}

/* Media zone = positioning context for the slide-in stats overlay.
   The photo + the reserved overlay strip live here. */
.team-card__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.team-card__photo {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

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

/* Color cycling — 4 brand colors (apply to media zone so the
   negative space above the photo carries the brand color). */
.team-card:nth-child(4n+1) .team-card__media { background: var(--brand-orange); }
.team-card:nth-child(4n+2) .team-card__media { background: var(--brand-teal); }
.team-card:nth-child(4n+3) .team-card__media { background: var(--brand-coral); }
.team-card:nth-child(4n+4) .team-card__media { background: var(--brand-yellow); }

/* Stats overlay — sits above the photo in the negative space,
   slides in from the left on hover/focus. */
.team-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* sized to fit up to 3 stat items (years · miles · trips) */
  height: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.72);
  color: var(--text-white);
  transform: translateX(-101%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 240ms ease-out;
  z-index: 1;
}

.team-card:hover .team-card__overlay,
.team-card:focus-within .team-card__overlay {
  transform: translateX(0);
  opacity: 1;
}

.team-card__stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.team-card__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.team-card__stat-value {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
}

.team-card__stat-label {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Meta block: name, accent bar, title — centered below photo */
.team-card__meta {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-card__name {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 var(--space-2) 0;
}

.team-card__bar {
  display: block;
  width: clamp(40px, 60%, 96px);
  height: 2px;
  background: var(--primary-orange);
  margin-bottom: var(--space-2);
}

.team-card__title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .team-card__overlay {
    transform: none;
    transition: opacity 120ms ease-out;
  }
}
