/* ==========================================================================
   CAMTEAM ASSOCIATES - 3D CONTINUOUS REVOLVING CIRCULAR ARC CAROUSEL
   - Default: Compact circular photos in motion (names & badges hidden)
   - High Apex Elevation: Pronounced true circular dome arc trajectory
   - On Hover: Center/Hovered photo EXPANDS IN LARGE SIZE with Name + Profession
   - Other photos blur out ("baki sab blur ho jaye")
   - Generous top clearance so it never overlaps the heading
   - Deep Arc: Bottom-Left -> High Center Peak -> Bottom-Right
   - Strictly isolated to .achievement-gallery-section
   ========================================================================== */

.achievement-gallery-section {
  --accent: #02258e;
  --accent-light: #0642f6;
  --accent-grad: linear-gradient(135deg, #02258e, #0642f6);
  --circle-size: 165px;
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 95px clamp(0.5rem, 1.5vw, 1.5rem) 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: radial-gradient(
    circle at 50% 30%,
    #eef4ff 0%,
    #f8faff 55%,
    #ffffff 100%
  );
  overflow: hidden;
  box-sizing: border-box;
}

/* Background Atmospheric Radial Glow */
.achievement-gallery-section::before,
.achievement-gallery-section::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #bfe8ff 0%,
    #dbe8ff 60%,
    rgba(255, 255, 255, 0) 75%
  );
  filter: blur(60px);
  opacity: 0.65;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1;
}
.achievement-gallery-section::before {
  top: -140px;
  left: -120px;
}
.achievement-gallery-section::after {
  bottom: -160px;
  right: -120px;
}

/* Section Header - Generous Bottom Spacing */
.gallery-header-wrapper {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 2.8rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-header-wrapper h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 0.4rem;
  color: var(--accent);
  position: relative;
  display: inline-block;
  text-align: center;
}

.gallery-header-wrapper h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 90px;
  height: 4px;
  background: var(--accent-grad);
  border-radius: 4px;
  transform: translateX(-50%);
}

.gallery-subtitle {
  font-size: clamp(0.85rem, 1.2vw, 0.96rem);
  color: #556987;
  margin-top: 0.6rem;
  font-weight: 400;
  text-align: center;
}

/* 3D Arc Stage Container */
.arc-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  overflow: visible;
  flex: 1;
}

.arc-carousel-stage {
  position: relative;
  width: 100%;
  height: 490px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  overflow: visible;
}

/* Arc Track Stage */
.arc-cards-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
}

/* Individual Circular Card Item */
.arc-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    filter 0.4s ease,
    opacity 0.3s ease;
  width: 320px;
  padding: 6px;
  box-sizing: border-box;
}

/* Circular Avatar Wrapper */
.circle-avatar-wrap {
  position: relative;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(
    135deg,
    rgba(6, 66, 246, 0.25),
    rgba(2, 37, 142, 0.08)
  );
  box-shadow:
    0 10px 24px rgba(2, 37, 142, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.04);
  transition:
    box-shadow 0.5s ease,
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    background 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.circle-avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-sizing: border-box;
}

.circle-avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  transition: transform 0.6s ease;
}

/* Circular Glow Ambient Ring */
.circle-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-grad);
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.5s ease;
}

/* Card Caption Info - HIDDEN BY DEFAULT */
.circle-card-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.9);
  transition:
    opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    transform 0.45s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.45s;
  pointer-events: none;
}

.circle-card-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: #022058;
  letter-spacing: 0.2px;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.circle-card-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent-grad);
  border: none;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(2, 37, 142, 0.3);
  line-height: 1.2;
  white-space: nowrap;
}

/* Apex Center Glow Highlight */
.arc-card.slot-apex .circle-avatar-wrap {
  background: var(--accent-grad);
  padding: 6px;
  box-shadow:
    0 18px 45px rgba(2, 37, 142, 0.28),
    0 0 25px rgba(6, 66, 246, 0.32);
}

.arc-card.slot-apex .circle-avatar-inner {
  border-width: 4px;
}

.arc-card.slot-apex .circle-glow-ring {
  opacity: 0.6;
}

/* ==========================================================================
   HOVER HIGHLIGHT & LARGE SIZE EXPANSION ("Bade size me khule")
   - Centered comfortably with ZERO heading overlap
   - Name and Profession reveal prominently
   - All other photos in the carousel BLUR OUT
   ========================================================================== */

/* Active Hover Spotlight Card */
.arc-cards-container.is-hovered .arc-card.is-active-focus,
.arc-cards-container.is-hovered .arc-card.slot-apex.is-active-focus,
.arc-card.is-active-focus {
  z-index: 35 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Big Glowing Aura on Focused Circle */
.arc-cards-container.is-hovered .arc-card.is-active-focus .circle-avatar-wrap,
.arc-card.is-active-focus .circle-avatar-wrap {
  background: var(--accent-grad) !important;
  padding: 8px;
  box-shadow:
    0 35px 85px rgba(2, 37, 142, 0.5),
    0 0 50px rgba(6, 66, 246, 0.65) !important;
}

.arc-cards-container.is-hovered .arc-card.is-active-focus .circle-avatar-inner,
.arc-card.is-active-focus .circle-avatar-inner {
  border-width: 4px;
}

.arc-cards-container.is-hovered
  .arc-card.is-active-focus
  .circle-avatar-inner
  img,
.arc-card.is-active-focus .circle-avatar-inner img {
  transform: scale(1.08);
}

.arc-cards-container.is-hovered .arc-card.is-active-focus .circle-glow-ring,
.arc-card.is-active-focus .circle-glow-ring {
  opacity: 0.9 !important;
}

/* Name and Profession REVEAL in Big Size when hovering center card */
.arc-cards-container.is-hovered .arc-card.is-active-focus .circle-card-info,
.arc-card.is-active-focus .circle-card-info {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto;
}

/* All other photos BLUR OUT ONLY when inspecting center card */
.arc-cards-container.is-hovered .arc-card:not(.is-active-focus) {
  filter: blur(8px) brightness(0.6) !important;
  opacity: 0.22 !important;
  transition:
    filter 0.4s ease,
    opacity 0.4s ease;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1200px) {
  .achievement-gallery-section {
    --circle-size: 150px;
    padding: 90px 1.2rem 1.5rem;
  }
  .arc-carousel-stage {
    height: 440px;
  }
  .gallery-header-wrapper {
    margin-bottom: 2.2rem;
  }
}

@media (max-width: 860px) {
  .achievement-gallery-section {
    --circle-size: 115px;
    padding: 85px 0.8rem 1rem;
  }
  .arc-carousel-stage {
    height: 400px;
  }
  .gallery-header-wrapper {
    margin-bottom: 1.5rem;
  }
  .gallery-header-wrapper h2 {
    font-size: 1.8rem;
  }
  .circle-card-name {
    font-size: 1.05rem;
  }
  .circle-card-badge {
    font-size: 0.76rem;
    padding: 0.32rem 0.85rem;
  }
}

@media (max-width: 520px) {
  .achievement-gallery-section {
    --circle-size: 84px;
    padding: 85px 0.5rem 1rem;
  }
  .arc-carousel-stage {
    height: 360px;
  }
  .arc-card {
    width: 200px;
  }
  .gallery-header-wrapper {
    margin-top: 0;
    margin-bottom: 1rem;
  }
  .gallery-header-wrapper h2 {
    font-size: 1.35rem;
    line-height: 1.25;
  }
  .gallery-subtitle {
    font-size: 0.76rem;
    margin-top: 0.3rem;
  }
  .circle-card-name {
    font-size: 0.92rem;
  }
  .circle-card-badge {
    font-size: 0.68rem;
    padding: 0.22rem 0.6rem;
  }
}
