/* ==========================================================================
   SKY 3D SERVICE CARDS (Dynamic 60fps Micro-Physics & Animations)
   ========================================================================== */

/* Section Ambient Floating Atmosphere */
.services-overseas-section {
  position: relative !important;
  overflow: hidden !important;
}

.sky-ambient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  z-index: 0;
  opacity: 0.55;
  will-change: transform;
}

.sky-orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(98, 155, 245, 0.45) 0%, rgba(14, 132, 165, 0.1) 70%, transparent 100%);
  top: 5%;
  left: -5%;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}

.sky-orb-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(14, 132, 165, 0.35) 0%, rgba(98, 155, 245, 0.1) 70%, transparent 100%);
  bottom: 0%;
  right: -8%;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}

.sky-orb-3 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.7) 0%, rgba(162, 226, 242, 0.25) 70%, transparent 100%);
  top: 40%;
  left: 45%;
  transform: translate(-50%, -50%);
  animation: orbDrift3 15s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 35px) scale(1.15); }
  100% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-60px, -40px) scale(1.1); }
  100% { transform: translate(40px, -25px) scale(0.9); }
}

@keyframes orbDrift3 {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
  50% { transform: translate(-40%, -60%) scale(1.15); opacity: 0.65; }
  100% { transform: translate(-60%, -40%) scale(1); opacity: 0.45; }
}

/* Card Grid Layout */
.sky-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px 4px 20px;
  position: relative;
  z-index: 1;
  perspective: 1000px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .sky-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
}

@media (min-width: 992px) {
  .sky-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 10px 10px 20px;
  }
  .sky-card-grid > *:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

@media (min-width: 1400px) {
  .sky-card-grid {
    max-width: 1280px;
  }
  .sky-card-grid.four-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Outer Card Container */
.sky-service-card {
  position: relative;
  border-radius: 32px;
  background: linear-gradient(180deg, #629bf5 0%, #75a7f9 35%, #90b8fb 70%, #c4dcfa 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 40px -8px rgba(50, 100, 195, 0.3),
              0 2px 6px rgba(0, 0, 0, 0.04),
              inset 0 1px 1.5px rgba(255, 255, 255, 0.7);
  padding: 28px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  text-decoration: none !important;
  color: #FFFFFF !important;
  min-height: 430px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  will-change: transform, box-shadow;
}

/* Dynamic Glass Sheen Light Sweep on Hover */
.sky-service-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 240%;
  height: 220%;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.05) 38%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0.05) 62%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-120%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
}

.sky-service-card:hover::before {
  transform: rotate(25deg) translateY(120%);
  opacity: 1;
}

/* Card Hover Elevation */
.sky-service-card:hover {
  transform: translateY(-10px) scale(1.015);
  box-shadow: 0 28px 60px -10px rgba(35, 85, 185, 0.45),
              0 6px 18px rgba(0, 0, 0, 0.08),
              inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.85);
}

/* Card Header Section */
.sky-card-header {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Translucent Pill Badge with Sparkle Animation */
.sky-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  margin: 0 auto;
  transition: all 0.3s ease;
}

.sky-card-badge svg {
  width: 11px;
  height: 11px;
  fill: #FFFFFF;
  flex-shrink: 0;
  animation: badgeSparkleTwinkle 3s ease-in-out infinite;
  transform-origin: center;
}

@keyframes badgeSparkleTwinkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.3) rotate(35deg);
    opacity: 1;
    filter: drop-shadow(0 0 4px #ffffff);
  }
}

.sky-service-card:hover .sky-card-badge {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Card Title */
.sky-card-title {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-top: 12px;
  margin-bottom: 8px;
  font-family: inherit;
  text-align: center;
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.sky-service-card:hover .sky-card-title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Card Description */
.sky-card-desc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13.5px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 6px;
  text-align: center;
  width: 100%;
  max-width: 290px;
  margin-left: auto;
  margin-right: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 58px;
  transition: color 0.3s ease;
}

.sky-service-card:hover .sky-card-desc {
  color: #FFFFFF;
}

/* Center 3D Stage */
.sky-card-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 200px;
  margin: 14px 0 6px;
  z-index: 2;
}

/* Subtle Grounding Shadow with Breathing Pulse */
.sky-card-stage::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(50, 95, 185, 0.42) 0%, rgba(50, 95, 185, 0) 70%);
  filter: blur(7px);
  z-index: 1;
  pointer-events: none;
  animation: skyShadowPulse 4s ease-in-out infinite;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

@keyframes skyShadowPulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-50%) scale(0.84);
    opacity: 0.52;
  }
}

.sky-service-card:hover .sky-card-stage::after {
  transform: translateX(-50%) scale(1.15) !important;
  opacity: 0.95 !important;
}

/* 3D Visual Asset with Continuous Smooth Floating Physics */
.sky-card-visual {
  position: relative;
  z-index: 2;
  max-width: 230px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(35, 75, 150, 0.22));
  animation: skyFloatBob 4s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
  will-change: transform;
}

@keyframes skyFloatBob {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-9px) rotate(1deg);
  }
}

/* Staggered Floating Cycles across Cards */
.sky-card-grid > *:nth-child(1) .sky-card-visual,
.sky-card-grid > *:nth-child(1) .sky-card-stage::after {
  animation-delay: 0s;
}
.sky-card-grid > *:nth-child(2) .sky-card-visual,
.sky-card-grid > *:nth-child(2) .sky-card-stage::after {
  animation-delay: -0.7s;
}
.sky-card-grid > *:nth-child(3) .sky-card-visual,
.sky-card-grid > *:nth-child(3) .sky-card-stage::after {
  animation-delay: -1.4s;
}
.sky-card-grid > *:nth-child(4) .sky-card-visual,
.sky-card-grid > *:nth-child(4) .sky-card-stage::after {
  animation-delay: -2.1s;
}
.sky-card-grid > *:nth-child(5) .sky-card-visual,
.sky-card-grid > *:nth-child(5) .sky-card-stage::after {
  animation-delay: -2.8s;
}
.sky-card-grid > *:nth-child(6) .sky-card-visual,
.sky-card-grid > *:nth-child(6) .sky-card-stage::after {
  animation-delay: -3.5s;
}
.sky-card-grid > *:nth-child(7) .sky-card-visual,
.sky-card-grid > *:nth-child(7) .sky-card-stage::after {
  animation-delay: -4.2s;
}
.sky-card-grid > *:nth-child(8) .sky-card-visual,
.sky-card-grid > *:nth-child(8) .sky-card-stage::after {
  animation-delay: -4.9s;
}

/* Hover Boost on 3D Model */
.sky-service-card:hover .sky-card-visual {
  transform: translateY(-14px) scale(1.08) !important;
  filter: drop-shadow(0 18px 28px rgba(25, 65, 150, 0.35)) !important;
}

/* Card Footer (If active) */
.sky-card-footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.sky-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 44px;
  background: #FFFFFF;
  border-radius: 9999px;
  color: #0b1e3b !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 3px 10px rgba(20, 50, 110, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.sky-card-btn:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 50, 110, 0.2);
  color: #0369a1 !important;
}

/* Theme Variations */
.sky-service-card.theme-cyan-teal {
  background: linear-gradient(180deg, #0e84a5 0%, #159abf 35%, #3cb2d4 70%, #a2e2f2 100%);
  box-shadow: 0 16px 40px -8px rgba(14, 132, 165, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* Mobile & Touch Responsive Overrides for Sky Service Cards */
@media (max-width: 575.98px) {
  .sky-card-grid {
    gap: 16px;
    padding: 6px 0 12px;
  }
  .sky-service-card {
    border-radius: 24px;
    padding: 22px 18px 18px;
    min-height: 360px;
  }
  .sky-card-title {
    font-size: 19px;
  }
  .sky-card-desc {
    font-size: 13px;
    min-height: auto;
  }
  .sky-card-stage {
    min-height: 155px;
    margin: 10px 0 4px;
  }
  .sky-card-visual {
    max-width: 190px;
    max-height: 150px;
  }
}

@media (max-width: 374.98px) {
  .sky-service-card {
    border-radius: 20px;
    padding: 18px 14px 14px;
    min-height: 325px;
  }
  .sky-card-title {
    font-size: 17.5px;
  }
  .sky-card-visual {
    max-width: 160px;
    max-height: 130px;
  }
}

@media (hover: none) {
  .sky-service-card:hover {
    transform: none;
  }
  .sky-service-card:hover .sky-card-visual {
    transform: none !important;
  }
}
