/* ==========================================================================
   HERO SHOWCASE & WEBSITE CAROUSEL (FD / RD Studio Style - TechCreeds Theme)
   ========================================================================== */

/* --- NAV RIGHT ACTION & TEAM AVATAR --- */
.nav-right-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-team-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: rgba(13, 21, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 2px 4px;
  cursor: default;
  transition: transform 0.2s, border-color 0.2s;
}

.nav-team-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.4);
}

.nav-team-img {
  height: 34px;
  width: auto;
  border-radius: 999px;
  display: block;
  object-fit: contain;
}

.nav-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 9px;
  height: 9px;
  background: #22C55E;
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.85); opacity: 0.7; }
}

#main-nav .nav-cta {
  background: var(--grad) !important;
  color: #040816 !important;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

#main-nav .nav-cta:hover {
  background: linear-gradient(135deg, #2ae06c, #17cfbb, #0acbf0) !important;
  color: #000000 !important;
  box-shadow: 0 6px 26px rgba(20, 184, 166, 0.55);
  transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero-showcase {
  position: relative;
  min-height: 90vh;
  padding: 140px 0 60px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Delicate grid background */
.hero-showcase .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow spotlight behind headline */
.hero-showcase .hero-spotlight {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(20, 184, 166, 0.09) 0%, rgba(6, 182, 212, 0.04) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.hero-showcase .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- TOP BADGE --- */
.showcase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #22C55E;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.1);
  transition: all 0.25s ease;
}

.showcase-badge:hover {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

.badge-leaf-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  stroke: #22C55E;
}

.showcase-title {
  font-family: var(--font-head);
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 1040px;
  margin: 0 auto 24px;
}

.highlight-identity {
  display: inline-block;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.highlight-identity.flipping-out {
  opacity: 0;
  transform: translateY(-8px) rotateX(45deg);
}

.highlight-identity.flipping-in {
  opacity: 0;
  transform: translateY(8px) rotateX(-45deg);
}

/* --- SUBHEADLINE --- */
.showcase-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.68;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 36px;
}

.showcase-sub strong {
  color: var(--text);
  font-weight: 600;
}

/* --- CTA BUTTON --- */
.showcase-cta-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-showcase-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--teal), var(--cyan), var(--green));
  background-size: 250% auto;
  color: #040816 !important;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  animation: btnShimmer 14s linear infinite;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-showcase-primary svg {
  stroke: #040816;
  flex-shrink: 0;
}

.btn-showcase-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 42px rgba(20, 184, 166, 0.65), inset 0 1px 2px rgba(255, 255, 255, 0.7);
  filter: brightness(1.06);
  animation-duration: 7s;
}

.btn-showcase-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-showcase-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  background: rgba(13, 21, 45, 0.7);
  color: var(--text) !important;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  border: 1px solid rgba(20, 184, 166, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-showcase-secondary svg {
  stroke: var(--teal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.btn-showcase-secondary:hover {
  background: rgba(20, 184, 166, 0.14);
  border-color: var(--teal);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.25);
}

.btn-showcase-secondary:hover svg {
  transform: translateX(3px);
}

/* --- URGENCY SPOT NOTICE --- */
.showcase-urgency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 38px;
}

.showcase-urgency strong,
.showcase-urgency .current-month {
  color: var(--teal);
  font-weight: 700;
}

.urgency-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDot 2s infinite;
}

/* --- STATS PROOF STRIP (Reused TechCreeds Content) --- */
.showcase-stats-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 14px 32px;
  border-radius: 999px;
  background: rgba(13, 21, 45, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 20px;
}

.sc-stat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-stat-num {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.sc-stat-num .unit {
  color: var(--teal);
}

.sc-stat-label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.sc-stat-div {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   DUAL-ROW WEBSITE CAROUSEL
   "on hover it brightes up and show all when not on hover it just moves"
   ========================================================================== */

.showcase-marquee-section {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 36px;
  padding: 10px 0 28px;
  overflow: hidden;
  z-index: 2;
  transition: all 0.45s ease;
}

/* Ambient gradient fades on the edges */
.showcase-marquee-section::before,
.showcase-marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18vw;
  max-width: 280px;
  z-index: 6;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.showcase-marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(6, 9, 26, 0.88) 35%, transparent 100%);
}

.showcase-marquee-section::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg) 0%, rgba(6, 9, 26, 0.88) 35%, transparent 100%);
}

/* Each row container */
.marquee-row-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 12px 0;
}

/* Marquee tracks */
.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.marquee-track-left {
  animation: marqueeToLeft 36s linear infinite;
}

.marquee-track-right {
  animation: marqueeToRight 36s linear infinite;
}

@keyframes marqueeToLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes marqueeToRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Default state of cards: DIMMED & SMOOTHLY MOVING (True 16:9, No cropping) */
.showcase-card {
  position: relative;
  flex: 0 0 350px;
  width: 350px;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  background: #070b1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.48;
  filter: saturate(0.68) brightness(0.86);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.card-overlay-tag {
  position: absolute;
  bottom: 8px;
  left: 10px;
  background: rgba(6, 9, 26, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #F0F4FF;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.25s ease;
  pointer-events: none;
}

/* ==========================================================================
   HOVER STATE: "on hover it brightes up and show all - dont stop on hover"
   ========================================================================== */

/* 1. Brighten up ALL cards across the carousel */
.showcase-marquee-section:hover .showcase-card {
  opacity: 0.94;
  filter: saturate(1.05) brightness(1.02);
}

/* 2. Soften edge fades to reveal and SHOW ALL across the screen */
.showcase-marquee-section:hover::before,
.showcase-marquee-section:hover::after {
  opacity: 0.12;
}

/* NOTE: Marquee keeps moving continuously — no pause on hover */

/* 3. Subtle elevation & neon teal glow on the specifically hovered card */
.showcase-card:hover {
  opacity: 1 !important;
  filter: saturate(1.15) brightness(1.06) !important;
  transform: scale(1.03) translateY(-2px);
  border-color: rgba(20, 184, 166, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(20, 184, 166, 0.4);
  z-index: 10;
}

.showcase-card:hover img {
  transform: scale(1.01);
}

.showcase-card:hover .card-overlay-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-team-pill {
    display: none;
  }
}

@media (max-width: 1024px) {
  .showcase-title {
    font-size: clamp(32px, 4.5vw, 44px);
  }
  .showcase-card {
    flex: 0 0 290px;
    width: 290px;
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .showcase-stats-strip {
    gap: 20px;
    padding: 12px 24px;
    flex-wrap: wrap;
    border-radius: 20px;
  }
  .sc-stat-num {
    font-size: 18px;
  }
  .sc-stat-label {
    font-size: 11.5px;
  }
}

@media (max-width: 768px) {
  .hero-showcase {
    min-height: auto;
    padding: 104px 0 32px;
  }
  .hero-showcase .container {
    padding: 0 20px;
  }
  .hero-showcase .orb {
    width: 260px !important;
    height: 260px !important;
  }
  .hero-showcase .hero-spotlight {
    width: 100%;
    height: 300px;
  }
  .nav-right-actions {
    display: none;
  }
  .showcase-badge {
    padding: 6px 14px;
    font-size: 12px;
    gap: 6px;
    margin-bottom: 20px;
    line-height: 1.35;
    border-radius: 20px;
  }
  .badge-leaf-icon {
    width: 15px;
    height: 15px;
  }
  .showcase-title {
    font-size: clamp(24px, 6.8vw, 32px);
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .showcase-sub {
    font-size: 15px;
    line-height: 1.62;
    margin-bottom: 24px;
    padding: 0 4px;
  }
  .showcase-cta-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 24px;
    gap: 12px;
  }
  .btn-showcase-primary,
  .btn-showcase-secondary {
    width: 100%;
    padding: 14px 24px;
    font-size: 15px;
  }
  .showcase-urgency {
    font-size: 12.5px;
    margin-bottom: 24px;
  }
  .showcase-stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto 8px;
    border-radius: 18px;
    padding: 12px;
  }
  .sc-stat {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
  }
  /* When there are 3 stats (e.g. Georgia page: 3 .sc-stat + 2 .sc-stat-div = 5 children), span the 3rd across full row */
  .showcase-stats-strip > .sc-stat:last-child:nth-child(5) {
    grid-column: 1 / -1;
  }
  .sc-stat-num {
    font-size: 20px;
  }
  .sc-stat-label {
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.3;
  }
  .sc-stat-div {
    display: none;
  }
  .showcase-marquee-section {
    margin-top: 22px;
    padding: 6px 0 16px;
  }
  .showcase-marquee-section::before,
  .showcase-marquee-section::after {
    width: 10vw;
  }
  .marquee-row-wrapper {
    padding: 7px 0;
  }
  .marquee-track {
    gap: 12px;
  }
  .showcase-card {
    flex: 0 0 220px;
    width: 220px;
    aspect-ratio: 16 / 9;
    height: auto;
    border-radius: 10px;
    opacity: 0.88;
    filter: saturate(0.95) brightness(0.96);
  }
  .card-overlay-tag {
    opacity: 1;
    transform: translateY(0);
    font-size: 10px;
    padding: 2px 7px;
    bottom: 6px;
    left: 7px;
  }
}

@media (max-width: 480px) {
  .hero-showcase {
    padding: 94px 0 24px;
  }
  .hero-showcase .container {
    padding: 0 16px;
  }
  .showcase-badge {
    padding: 6px 12px;
    font-size: 11px;
    margin-bottom: 16px;
  }
  .showcase-title {
    font-size: clamp(22px, 6.5vw, 27px);
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .showcase-sub {
    font-size: 14px;
    line-height: 1.58;
    margin-bottom: 20px;
    padding: 0;
  }
  .showcase-cta-wrap {
    max-width: 100%;
    gap: 10px;
    margin-bottom: 20px;
  }
  .btn-showcase-primary,
  .btn-showcase-secondary {
    padding: 13px 20px;
    font-size: 14.5px;
  }
  .showcase-stats-strip {
    padding: 10px;
    gap: 8px;
    border-radius: 14px;
  }
  .sc-stat {
    padding: 9px 6px;
    border-radius: 10px;
  }
  .sc-stat-num {
    font-size: 18px;
  }
  .sc-stat-label {
    font-size: 11px;
  }
  .showcase-marquee-section {
    margin-top: 16px;
    padding: 4px 0 12px;
  }
  .marquee-row-wrapper {
    padding: 5px 0;
  }
  .marquee-track {
    gap: 10px;
  }
  .showcase-card {
    flex: 0 0 185px;
    width: 185px;
    border-radius: 8px;
  }
}

/* Touch devices without hover should show showcase cards clearly by default */
@media (hover: none) {
  .showcase-card {
    opacity: 0.9;
    filter: saturate(0.98) brightness(0.98);
  }
  .showcase-marquee-section::before,
  .showcase-marquee-section::after {
    opacity: 0.45;
  }
}
