/**
 * Global Footprint Section Stylesheet - Web Techiq Official
 * Developed by MH Badhon Ahmed (Web Techiq)
 *
 * Renders "We Completed Projects Around 10+ Countries" flag carousel section.
 */

/* ==========================================================================
   1. Section Container & Header
   ========================================================================== */
.web-techiq-global-footprint-section {
  position: relative;
  width: 100%;
  padding: var(--wt-footprint-pad-top, 60px) 0 var(--wt-footprint-pad-bottom, 70px);
  background: var(--wt-bg-gradient, linear-gradient(180deg, #ffffff 0%, #fef8f2 50%, #ffffff 100%));
  overflow: hidden;
}

.global-footprint-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

/* Badge Pill */
.footprint-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 0, 0.09);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 18px;
}

.footprint-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wt-primary-color, #ff6b00);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
  animation: footprint-dot-pulse 2s infinite ease-in-out;
}

@keyframes footprint-dot-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}

.footprint-badge-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wt-primary-color, #ff6b00);
}

/* Title & Highlight */
.footprint-title {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--wt-heading-color, #0d1b2a);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.footprint-title-highlight {
  display: inline-block;
  background: linear-gradient(135deg, var(--wt-primary-color, #ff6b00) 0%, #e60067 50%, var(--wt-accent-color, #7c3aed) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footprint-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--wt-body-color, #4a5568);
  margin: 0 auto;
  max-width: 620px;
}

/* ==========================================================================
   2. Infinite Marquee Ticker Track
   ========================================================================== */
.global-footprint-ticker-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 14px 0 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.global-footprint-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation: footprint-marquee-scroll var(--wt-footprint-speed, 30s) linear infinite;
}

.global-footprint-ticker-wrap:hover .global-footprint-track {
  animation-play-state: paused;
}

@keyframes footprint-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   3. Country Card Item Styling
   ========================================================================== */
.country-card-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  padding: 14px 22px 14px 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
  min-width: 220px;
}

.country-card-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.4);
  box-shadow: 0 16px 36px rgba(255, 107, 0, 0.15), 0 0 18px rgba(124, 58, 237, 0.1);
  background: linear-gradient(135deg, #ffffff 0%, #fffcf8 100%);
}

.country-flag-box {
  position: relative;
  width: 52px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.country-flag-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.country-card-item:hover .country-flag-svg {
  transform: scale(1.12);
}

.country-code-pill {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(11, 17, 32, 0.85);
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.country-card-details {
  display: flex;
  flex-direction: column;
}

.country-name {
  font-family: var(--wt-heading-font-family, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--wt-heading-color, #0d1b2a);
  margin: 0 0 2px;
  line-height: 1.25;
  white-space: nowrap;
}

.country-projects-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--wt-primary-color, #ff6b00);
  white-space: nowrap;
}

.country-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(124, 58, 237, 0.15));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.country-card-item:hover .country-card-glow {
  opacity: 1;
}

/* ==========================================================================
   4. Controls & Live Counter Badge
   ========================================================================== */
.footprint-controls-wrap {
  margin-top: 10px;
}

.footprint-controls-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footprint-live-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 17, 32, 0.94);
  padding: 8px 20px;
  border-radius: 50px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(11, 17, 32, 0.15);
}

.pulse-icon {
  font-size: 14px;
  animation: footprint-globe-spin 12s linear infinite;
}

@keyframes footprint-globe-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   5. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .footprint-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .web-techiq-global-footprint-section {
    padding: 40px 0 50px;
  }

  .footprint-title {
    font-size: 26px;
  }

  .footprint-subtitle {
    font-size: 14px;
  }

  .country-card-item {
    min-width: 190px;
    padding: 12px 16px 12px 12px;
    gap: 12px;
  }

  .country-flag-box {
    width: 44px;
    height: 30px;
  }

  .country-name {
    font-size: 14px;
  }

  .country-projects-count {
    font-size: 11px;
  }

  .footprint-live-counter {
    font-size: 11px;
    padding: 6px 14px;
  }

  .footprint-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
}
