/* ==========================================================================
   SPACE 4 CHANGE (S4C) - LINKS PAGE STYLES
   Color Scheme: Black, Gold (#f5c800), and White (#ffffff)
   ========================================================================== */

/* ─── Variables & Base Style overrides ───────────────────────────────────── */
#links-page {
  background-color: #080808;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px 0;
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
}

#links-page h1, #links-page h2, #links-page h3 {
  font-family: 'Playfair Display', serif;
}

/* Background floating particles */
#links-page .bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ─── Hero actions - Orange Bubbling Button ─────────────────────────────── */
.btn-orange {
  background: linear-gradient(135deg, #ff5500, #ff8800) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(255, 85, 0, 0.4);
  position: relative;
  overflow: hidden;
  border: none;
  animation: pulse-glow 2s infinite alternate;
}

.btn-orange:hover {
  box-shadow: 0 12px 35px rgba(255, 85, 0, 0.7) !important;
  transform: translateY(-3px) scale(1.02);
}

.btn-orange .bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  animation: rise 3s infinite linear;
  bottom: -20px;
}

.btn-orange .bubble.b1 { width: 8px; height: 8px; left: 15%; animation-delay: 0s; animation-duration: 2.2s; }
.btn-orange .bubble.b2 { width: 12px; height: 12px; left: 45%; animation-delay: 0.6s; animation-duration: 3s; }
.btn-orange .bubble.b3 { width: 6px; height: 6px; left: 75%; animation-delay: 1.2s; animation-duration: 2.6s; }
.btn-orange .bubble.b4 { width: 10px; height: 10px; left: 60%; animation-delay: 1.8s; animation-duration: 2.8s; }

@keyframes rise {
  0% { bottom: -20px; opacity: 1; transform: scale(1); }
  80% { opacity: 0.8; }
  100% { bottom: 100%; opacity: 0; transform: scale(1.6); }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 8px rgba(255, 85, 0, 0.4), 0 8px 25px rgba(255, 85, 0, 0.3);
  }
  100% {
    box-shadow: 0 0 20px rgba(255, 85, 0, 0.8), 0 8px 35px rgba(255, 85, 0, 0.5);
  }
}

/* ─── Intro Container ────────────────────────────────────────────────────── */
.links-intro-container {
  max-width: 800px;
  margin: 0 auto 60px auto;
  text-align: center;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.links-intro-box {
  background: rgba(18, 18, 18, 0.85);
  border: 1px solid rgba(245, 200, 0, 0.25);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.links-intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #f5c800;
}

.links-intro-box p {
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0 0 15px 0;
  text-align: left;
}

.links-intro-box p:last-child {
  margin-bottom: 0;
}

.links-intro-box strong {
  color: #f5c800;
  font-weight: 600;
}

/* ─── Symmetrical Infographic Grid ────────────────────────────────────────── */
.links-grid-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  z-index: 2;
}

.links-grid {
  display: grid;
  grid-template-columns: 1fr 340px 1fr;
  grid-gap: 40px 30px;
  align-items: center;
}

.grid-connector-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Central rotating pulse badge */
.links-center-badge {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #151515 0%, #0c0c0c 100%);
  border: 3px double #f5c800;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-shadow: 0 0 40px rgba(245, 200, 0, 0.25), inset 0 0 20px rgba(245,200,0,0.1);
  animation: float-badge 6s ease-in-out infinite;
  text-align: center;
  padding: 20px;
}

.links-center-badge .badge-logo {
  width: 85px;
  height: 85px;
  object-fit: contain;
  margin-bottom: 8px;
  animation: spin-logo 30s linear infinite;
}

.links-center-badge .badge-title {
  color: #f5c800;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.links-center-badge .badge-tagline {
  color: #ffffff;
  font-size: 0.68rem;
  font-style: italic;
  opacity: 0.8;
  max-width: 180px;
  line-height: 1.4;
}

/* Pulsing outer rings for the badge */
.links-center-badge::after, .links-center-badge::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(245, 200, 0, 0.2);
  border-radius: 50%;
  animation: pulse-ring 4s linear infinite;
  pointer-events: none;
}

.links-center-badge::before {
  animation-delay: 2s;
  inset: -20px;
  border-color: rgba(245, 200, 0, 0.1);
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* Grid card positions */
.links-card-1 { grid-column: 1; grid-row: 1; }
.links-card-2 { grid-column: 3; grid-row: 1; }
.links-card-7 { grid-column: 1; grid-row: 2; }
.links-card-3 { grid-column: 3; grid-row: 2; }
.links-card-6 { grid-column: 1; grid-row: 3; }
.links-card-5 { grid-column: 2; grid-row: 3; justify-self: center; width: 100%; }
.links-card-4 { grid-column: 3; grid-row: 3; }

/* ─── Premium Glassmorphic Card Styling ───────────────────────────────────── */
.links-card {
  background: rgba(15, 15, 15, 0.85);
  border: 1px solid rgba(245, 200, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
}

.links-card:hover {
  border-color: #f5c800;
  box-shadow: 0 15px 40px rgba(245, 200, 0, 0.25);
  transform: translateY(-8px);
}

.links-card-img-wrap {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.links-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.links-card:hover .links-card-img-wrap img {
  transform: scale(1.06);
}

/* Number badge top left */
.links-card-num {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #f5c800;
  color: #080808;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.links-card-content {
  padding: 24px;
  position: relative;
  flex-grow: 1;
}

.links-card-title {
  color: #f5c800;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.3s;
}

.links-card:hover .links-card-title {
  color: #ffffff;
}

.links-card-desc {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.links-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 15px;
  margin-top: auto;
}

.links-card-link-text {
  color: #f5c800;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s;
}

.links-card:hover .links-card-link-text {
  gap: 8px;
}

/* Custom mini icon bottom right */
.links-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(245, 200, 0, 0.12);
  border: 1px solid rgba(245, 200, 0, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f5c800;
  transition: all 0.3s;
}

.links-card:hover .links-card-icon {
  background: #f5c800;
  color: #080808;
}

/* ─── Our Shared Process Section ────────────────────────────────────────── */
.links-section-title {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: #ffffff;
  margin-top: 80px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.links-section-title span {
  color: #f5c800;
}

.links-section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Process Timeline */
.process-timeline {
  display: flex;
  justify-content: space-between;
  max-width: 1100px;
  margin: 50px auto;
  position: relative;
  padding: 0 20px;
}

.process-timeline::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #f5c800, #f5c800 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 10px;
  transition: transform 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
}

.process-step-icon-wrap {
  width: 80px;
  height: 80px;
  background: #121212;
  border: 2px solid #f5c800;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: all 0.3s;
}

.process-step:hover .process-step-icon-wrap {
  background: #f5c800;
  color: #080808;
  box-shadow: 0 10px 25px rgba(245, 200, 0, 0.3);
}

.process-step-icon-wrap svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0.5;
  color: #f5c800;
  transition: color 0.3s;
}

.process-step:hover .process-step-icon-wrap svg {
  color: #080808;
}

.process-step h4 {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 700;
}

.process-step p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto;
}

/* ─── Our Shared Results Section ────────────────────────────────────────── */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 25px;
  max-width: 1100px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.result-card-links {
  background: rgba(18, 18, 18, 0.6);
  border: 1px dashed rgba(245, 200, 0, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: all 0.3s;
}

.result-card-links:hover {
  background: rgba(18, 18, 18, 0.95);
  border-color: #f5c800;
  border-style: solid;
  transform: translateY(-3px);
}

.result-card-links .result-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(245, 200, 0, 0.1);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f5c800;
  transition: all 0.3s;
}

.result-card-links:hover .result-icon {
  background: #f5c800;
  color: #080808;
}

.result-card-links .result-info h4 {
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 6px;
  font-weight: 700;
}

.result-card-links .result-info p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ─── Bottom Callout Text ───────────────────────────────────────────────── */
.links-end-container {
  max-width: 850px;
  margin: 80px auto 60px auto;
  padding: 0 20px;
  z-index: 2;
  position: relative;
}

.links-end-box {
  background: linear-gradient(135deg, rgba(20,20,20,0.9) 0%, rgba(10,10,10,0.9) 100%);
  border: 1px solid rgba(245, 200, 0, 0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(245, 200, 0, 0.1);
  backdrop-filter: blur(10px);
}

.links-end-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  font-style: italic;
}

/* ─── Footer Details ────────────────────────────────────────────────────── */
.links-footer-details {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 40px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.links-footer-logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.links-footer-logo-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.links-footer-logo-brand h3 {
  font-size: 1.1rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.links-footer-logo-brand p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

.links-footer-url-loc {
  text-align: center;
}

.links-footer-url-loc a {
  color: #f5c800;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  transition: color 0.3s;
}

.links-footer-url-loc a:hover {
  color: #ffffff;
}

.links-footer-url-loc span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.links-qr-section {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.links-qr-code {
  width: 85px;
  height: 85px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.links-qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.links-qr-text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.links-qr-text strong {
  color: #f5c800;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}


/* ─── Media Queries (Responsiveness) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .links-grid {
    grid-template-columns: 1fr;
    grid-gap: 30px;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .grid-connector-lines {
    display: none;
  }
  
  .links-center-badge {
    grid-column: 1;
    grid-row: 1; /* Center logo goes to top of list */
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }
  
  .links-card-1 { grid-column: 1; grid-row: 2; }
  .links-card-2 { grid-column: 1; grid-row: 3; }
  .links-card-3 { grid-column: 1; grid-row: 4; }
  .links-card-4 { grid-column: 1; grid-row: 5; }
  .links-card-5 { grid-column: 1; grid-row: 6; }
  .links-card-6 { grid-column: 1; grid-row: 7; }
  .links-card-7 { grid-column: 1; grid-row: 8; }
  
  .process-timeline {
    flex-direction: column;
    gap: 30px;
    max-width: 400px;
  }
  
  .process-timeline::after {
    display: none;
  }
  
  .process-step p {
    max-width: 100%;
  }
  
  .links-footer-details {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .links-qr-section {
    flex-direction: column;
    text-align: center;
  }
}
