/* =========================================================================
   LEVTRON INSTRUMENTS - ABOUT PAGE STYLESHEET (about.css)
   ========================================================================= */

/* SECTION 1: HERO BANNER - CINEMATIC DRIFT & UNDULATING WAVE SURGE */
.anim-section-banner .banner-title {
  animation: bannerDropFocus 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bannerDropFocus {
  0% {
    opacity: 0;
    transform: translateY(-32px) scale(0.95);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.anim-section-banner .banner-bg-item:nth-child(odd) {
  animation: bannerFloatOdd 6.5s ease-in-out infinite alternate;
}

.anim-section-banner .banner-bg-item:nth-child(even) {
  animation: bannerFloatEven 8s ease-in-out infinite alternate;
}

@keyframes bannerFloatOdd {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-16px) scale(1.05);
  }
}

@keyframes bannerFloatEven {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(14px) scale(1.04);
  }
}

.anim-section-banner .wave-layer-back {
  animation: waveMoveBack 16s ease-in-out infinite;
}

.anim-section-banner .wave-layer-middle {
  animation: waveMoveMiddle 11s ease-in-out infinite;
}

.anim-section-banner .wave-layer-front {
  animation: waveMoveFront 8s ease-in-out infinite;
}

/* SECTION 2: ABOUT OVERVIEW - 3D PERSPECTIVE PIVOT & STAGGERED HORIZONTAL WIPE */
.anim-section-overview .about-image-wrapper {
  opacity: 0;
  transform: perspective(1000px) rotateY(18deg) translateX(-45px) scale(0.92);
  filter: blur(4px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
  will-change: transform, opacity;
}

.anim-section-overview.in-view .about-image-wrapper {
  opacity: 1;
  transform: perspective(1000px) rotateY(0deg) translateX(0) scale(1);
  filter: blur(0);
}

.anim-section-overview.in-view .about-image-wrapper img {
  animation: imageBreathingPulse 6s ease-in-out infinite alternate;
}

@keyframes imageBreathingPulse {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.025);
  }
}

.anim-section-overview .about-text-content > * {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.anim-section-overview.in-view .about-text-content .section-title {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.15s;
}

.anim-section-overview.in-view .about-text-content p:nth-of-type(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.3s;
}

.anim-section-overview.in-view .about-text-content p:nth-of-type(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.45s;
}

.anim-section-overview.in-view .about-text-content .btn {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
  animation: btnPulseSheen 3.2s infinite ease-in-out 1.2s;
}

@keyframes btnPulseSheen {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
  }
  50% {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
  }
}

/* SECTION 3: TRANSPARENT IMAGE BANNER COUNTERS */
.levtron-counter-banner {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 2rem 0 3.5rem;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.counter-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.levtron-counter-banner:hover .counter-banner-bg {
  transform: scale(1.08);
}

.counter-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.88) 0%, rgba(37, 99, 235, 0.84) 55%, rgba(2, 132, 199, 0.82) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.counter-banner-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem 1.25rem;
  align-items: center;
}

.counter-banner-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 1rem;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-stats.in-view .counter-banner-col:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.anim-section-stats.in-view .counter-banner-col:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.anim-section-stats.in-view .counter-banner-col:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

.anim-section-stats.in-view .counter-banner-col:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.44s;
}

.counter-banner-col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.35) 20%, rgba(255, 255, 255, 0.35) 80%, transparent);
}

.counter-banner-icon {
  font-size: 1.6rem;
  color: #ffffff;
  opacity: 0.95;
  margin-bottom: 0.35rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.counter-banner-col:hover .counter-banner-icon {
  transform: translateY(-3px) scale(1.08);
}

.counter-banner-col .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 2.3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 0.15rem;
  letter-spacing: -0.4px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.counter-banner-col .stat-label {
  font-size: clamp(0.85rem, 1vw, 0.94rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
  .counter-banner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0;
    padding: 1.75rem 1.25rem;
  }
  .counter-banner-col:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .counter-banner-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .counter-banner-col::after {
    display: none !important;
  }
  .counter-banner-col:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
  }
}

/* SECTION 4: WHY CHOOSE US BENTO */
.anim-section-bento .section-title {
  opacity: 0;
  transform: translateY(-24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-bento.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

.anim-section-bento .levtron-bento-card:first-child {
  opacity: 0;
  transform: translate3d(-70px, 45px, 0) rotate(-2.5deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s;
  will-change: transform, opacity;
}

.anim-section-bento.in-view .levtron-bento-card:first-child {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.anim-section-bento .levtron-bento-img-card {
  opacity: 0;
  transform: scale(0.86);
  filter: brightness(0.88);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s, filter 1s ease 0.25s;
  will-change: transform, opacity;
}

.anim-section-bento.in-view .levtron-bento-img-card {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
}

.anim-section-bento.in-view .bento-floating-pill {
  animation: bentoPillHoverDrift 3.6s ease-in-out infinite;
}

@keyframes bentoPillHoverDrift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.anim-section-bento .levtron-bento-card:last-child {
  opacity: 0;
  transform: translate3d(70px, 45px, 0) rotate(2.5deg);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.38s;
  will-change: transform, opacity;
}

.anim-section-bento.in-view .levtron-bento-card:last-child {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg);
}

/* SECTION 5: DELIVERING PRECISION */
.anim-section-services {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-services.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-section-services .pedestal-reticle {
  opacity: 0;
  transform: scale(2.4);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}

.anim-section-services.in-view .pedestal-reticle {
  opacity: 0.8;
  transform: scale(1);
}

.anim-section-services.in-view .pedestal-product-grid {
  animation: sensorLevitationFloat 5.2s ease-in-out infinite alternate;
}

.grid-product-box:hover {
  transform: translateY(-4px) scale(1.05) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.2);
}

@keyframes sensorLevitationFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.4deg);
  }
  100% {
    transform: translateY(2px) rotate(-0.3deg);
  }
}

.anim-section-services .services-quote-card {
  opacity: 0;
  transform: translateX(45px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.anim-section-services.in-view .services-quote-card {
  opacity: 1;
  transform: translateX(0);
}

.anim-section-services .services-action-row {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s;
}

.anim-section-services.in-view .services-action-row {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION 6: MISSION & VISION */
.anim-section-mission .section-title {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-mission.in-view .section-title {
  opacity: 1;
  transform: translateY(0);
}

.anim-section-mission .mission-poly-card {
  opacity: 0;
  transform: translateX(-85px) rotate(-3.5deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.18s;
  will-change: transform, opacity;
}

.anim-section-mission.in-view .mission-poly-card {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.anim-section-mission .vision-poly-card {
  opacity: 0;
  transform: translateX(85px) rotate(3.5deg);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.32s;
  will-change: transform, opacity;
}

.anim-section-mission.in-view .vision-poly-card {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.anim-section-mission .mv-poly-line {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s;
}

.anim-section-mission.in-view .mv-poly-line {
  transform: scaleY(1);
}

.anim-section-mission .mv-poly-node {
  opacity: 0;
  transform: scale(0.35);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-section-mission.in-view .mv-poly-node:nth-child(2) {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.55s;
}

.anim-section-mission.in-view .mv-poly-node:nth-child(3) {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.75s;
}

.anim-section-mission.in-view .mv-poly-node:nth-child(4) {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.95s;
}

/* SECTION 7: INDUSTRIES */
.anim-section-industries {
  opacity: 0;
  transform: translateY(35px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-industries.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.anim-section-industries .industry-box {
  opacity: 0;
  transform: perspective(600px) rotateX(45deg) translateY(35px);
  transition: opacity 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.anim-section-industries.in-view .industry-box:nth-child(1) {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
  transition-delay: 0.12s;
}

.anim-section-industries.in-view .industry-box:nth-child(2) {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
  transition-delay: 0.24s;
}

.anim-section-industries.in-view .industry-box:nth-child(3) {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
  transition-delay: 0.36s;
}

.anim-section-industries.in-view .industry-box:nth-child(4) {
  opacity: 1;
  transform: perspective(600px) rotateX(0deg) translateY(0);
  transition-delay: 0.48s;
}

.anim-section-industries.in-view .industry-box:nth-child(1) i {
  animation: iconFlaskTilt 3.2s ease-in-out infinite alternate;
}

@keyframes iconFlaskTilt {
  0% {
    transform: rotate(-8deg);
  }
  100% {
    transform: rotate(8deg);
  }
}

.anim-section-industries.in-view .industry-box:nth-child(2) i {
  animation: iconPillFloat 2.8s ease-in-out infinite alternate;
}

@keyframes iconPillFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-6px);
  }
}

.anim-section-industries.in-view .industry-box:nth-child(3) i {
  animation: iconWheatSway 4s ease-in-out infinite alternate;
}

@keyframes iconWheatSway {
  0% {
    transform: rotate(-6deg);
  }
  100% {
    transform: rotate(6deg);
  }
}

.anim-section-industries.in-view .industry-box:nth-child(4) i {
  animation: iconOilPump 2.2s ease-in-out infinite alternate;
}

@keyframes iconOilPump {
  0% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-5px) scaleY(1.08);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}

.anim-section-industries .industry-box:hover {
  transform: translateY(-6px) scale(1.04) !important;
  border-color: #2563eb !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12) !important;
}

/* SECTION 8: CERTIFICATIONS & QUALITY ACCREDITATIONS */
.about-certifications-section {
  padding: 2.2rem 0 2.6rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-top: 1px solid #e2e8f0;
  position: relative;
}

.anim-section-certifications {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-section-certifications.in-view {
  opacity: 1;
  transform: translateY(0);
}

.anim-section-certifications .cert-card-item {
  opacity: 0;
  transform: perspective(900px) translateY(35px) rotateX(12deg) scale(0.94);
  filter: blur(4px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  will-change: transform, opacity;
}

.anim-section-certifications.in-view .cert-card-item:nth-child(1) {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  transition-delay: 0.08s;
}

.anim-section-certifications.in-view .cert-card-item:nth-child(2) {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  transition-delay: 0.18s;
}

.anim-section-certifications.in-view .cert-card-item:nth-child(3) {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  transition-delay: 0.28s;
}

.anim-section-certifications.in-view .cert-card-item:nth-child(4) {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  transition-delay: 0.38s;
}

.anim-section-certifications.in-view .cert-card-item:nth-child(5) {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0deg) scale(1);
  filter: blur(0);
  transition-delay: 0.48s;
}

.cert-card-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 3px 14px rgba(10, 11, 14, 0.04);
  overflow: hidden;
  position: relative;
}

.cert-card-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.45) 50%,
    transparent
  );
  transform: skewX(-22deg);
  z-index: 3;
  pointer-events: none;
  transition: left 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card-item:hover::before {
  left: 160%;
}

.cert-card-item:hover {
  transform: translateY(-8px) scale(1.025) !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.16), 0 0 0 1px rgba(37, 99, 235, 0.35) !important;
  border-color: rgba(37, 99, 235, 0.5) !important;
}

.cert-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cert-img-box {
  position: relative;
  background: #f8fafc;
  height: 165px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
}

.cert-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.cert-card-item:hover .cert-img-box img {
  transform: scale(1.08);
}

.cert-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 11, 14, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card-item:hover .cert-hover-overlay {
  opacity: 1;
}

.cert-view-btn {
  background: var(--color-blue);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
  transform: translateY(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-card-item:hover .cert-view-btn {
  transform: translateY(0);
}

.cert-view-btn i {
  animation: eyePulse 1.8s infinite ease-in-out;
}

@keyframes eyePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.22); }
}

.cert-info {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}

.cert-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.18rem 0.5rem;
  border-radius: 4px;
  background: #eff6ff;
  color: var(--color-blue);
  margin-bottom: 0.35rem;
  transition: all 0.3s ease;
}

.cert-card-item:hover .cert-badge {
  background: var(--color-blue);
  color: #ffffff;
  transform: scale(1.04);
}

.cert-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.25;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .cert-img-box {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}

/* CERTIFICATE LIGHTBOX MODAL */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
}

.cert-modal-backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.cert-modal-dialog {
  background: #ffffff;
  border-radius: 18px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.92) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.cert-modal.active .cert-modal-dialog {
  transform: scale(1) translateY(0);
}

.cert-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  gap: 1rem;
}

.cert-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cert-modal-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cert-modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cert-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.cert-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  max-height: calc(90vh - 130px);
}

.cert-modal-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  background: #ffffff;
  transition: transform 0.3s ease;
}

.cert-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.cert-nav-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.cert-nav-btn:hover {
  background: var(--color-blue);
  color: #ffffff;
  border-color: var(--color-blue);
}
