/* BIT2025 “We’ve moved” (standalone Netlify) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  --white: #ffffff;
  --dark-gray: #2c3e50;
  --medium-gray: #7f8c8d;
  --lighter-gray: #f8f9fa;
  --danger: #DE3163;
  --danger-dark: #c42a56;
  --primary: #3498db;
  --shadow: 0 4px 12px rgba(44, 62, 80, 0.1);
  --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.12);
  /* Match main site `css/styles.css` :root --border-radius-lg (hero .btn-primary / .btn-secondary) */
  --border-radius-lg: 16px;
  --font-display: 'Playfair Display', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--lighter-gray);
  color: var(--dark-gray);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Background mesh (matches main site energy) */
.moved-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(222, 49, 99, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(52, 152, 219, 0.1), transparent 45%),
    var(--lighter-gray);
}

/* Floating glass nav (logo only) */
header.floating-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.6rem 1.75rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.floating-nav.scrolled {
  top: 10px;
  width: 95%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.15);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin: 0 auto;
  justify-content: center;
  width: 100%;
}

/* Match main site header logo (floating-nav) */
.udsm-logo {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: transform 0.3s ease-out;
}

.logo-container:hover .udsm-logo {
  transform: scale(1.05);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-gray);
  letter-spacing: -0.02em;
}

.logo .by {
  font-weight: 600;
  color: var(--danger);
}

/* Main */
main {
  flex: 1;
  padding: 7rem 1.25rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.moved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .moved-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Illustration */
.moved-illustration {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.moved-illustration::before {
  content: '';
  position: absolute;
  width: min(100%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 49, 99, 0.15) 0%, transparent 70%);
  filter: blur(2px);
}

.moved-illustration img {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: auto;
  z-index: 1;
}

/* Copy column: flat on page bg, width capped for readability */
.moved-content {
  max-width: 38rem;
  width: 100%;
  padding: 0.35rem 0;
  animation: fadeUp 0.55s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--danger);
  margin-bottom: 0.75rem;
}

.moved-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.moved-content .lead {
  font-size: 1.1rem;
  color: var(--medium-gray);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.moved-content p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.moved-content p.trust {
  margin-bottom: 1.5rem;
}

.highlight {
  color: var(--danger);
  font-weight: 600;
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.25rem;
}

.btn-primary-moved {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 6px 20px rgba(222, 49, 99, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-moved:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(222, 49, 99, 0.45);
}

.btn-primary-moved:focus-visible {
  outline: 3px solid rgba(222, 49, 99, 0.45);
  outline-offset: 3px;
}

.link-subtle {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.link-subtle:hover {
  border-bottom-color: var(--primary);
}

/* Feature chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(44, 62, 80, 0.08);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: rgba(222, 49, 99, 0.08);
  color: var(--dark-gray);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.chip i {
  color: var(--danger);
  font-size: 0.85rem;
}

/* Trust line */
.trust {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--medium-gray);
  font-style: italic;
}

/* Footer (profile style) */
.profile-footer {
  background: var(--dark-gray);
  color: #e5e7eb;
  padding: 1.2rem 1rem;
  margin-top: auto;
}

.profile-footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  text-align: center;
}

.profile-footer .footer-center {
  text-align: center;
}

.profile-footer a {
  color: #fde6ee;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.profile-footer a:hover {
  border-bottom-color: #fde6ee;
}

.pulse {
  display: inline-block;
  color: var(--danger);
  animation: pulse-heart 1.4s ease-in-out infinite;
}

@keyframes pulse-heart {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

@media (max-width: 480px) {
  header.floating-nav {
    width: 94%;
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .moved-content {
    padding: 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-moved {
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .moved-bg {
    background: var(--lighter-gray);
  }

  header.floating-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .moved-content {
    animation: none;
  }
}

/* Print (posters, save as PDF) */
@media print {
  .moved-bg,
  header.floating-nav {
    position: static !important;
    box-shadow: none !important;
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #ccc !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
    min-height: auto;
  }

  main {
    padding-top: 1rem !important;
    max-width: 100% !important;
  }

  .moved-grid {
    display: block !important;
  }

  .moved-illustration {
    max-width: 280px;
    margin: 0 auto 1rem;
    page-break-inside: avoid;
  }

  .moved-illustration::before {
    display: none;
  }

  .moved-illustration img {
    max-width: 100%;
    filter: none;
  }

  .moved-content {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  .highlight {
    color: #000 !important;
    font-weight: 700;
    text-decoration: underline;
  }

  .btn-primary-moved {
    border: 2px solid #000 !important;
    border-radius: var(--border-radius-lg) !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-decoration: none !important;
  }

  .link-subtle {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .chips {
    border-top-color: #ccc !important;
  }

  .chip {
    border: 1px solid #999;
    background: #f5f5f5 !important;
  }

  .profile-footer {
    background: #fff !important;
    color: #000 !important;
    border-top: 2px solid #000;
    margin-top: 1.5rem;
  }

  .profile-footer a {
    color: #000 !important;
    text-decoration: underline !important;
  }

  .pulse {
    animation: none !important;
  }

  .page-404 .moved-content h1::after {
    content: " (bit2025.isaiah.me.tz)";
    font-size: 0.85em;
    font-weight: 600;
  }
}

/* Redirection Modal Styles */
.redirect-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(44, 62, 80, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.redirect-modal.active {
  opacity: 1;
  visibility: visible;
}

.redirect-card {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.redirect-modal.active .redirect-card {
  transform: scale(1) translateY(0);
}

.redirect-header {
  background: #ffffff;
  padding: 3rem 2rem 1.5rem;
  text-align: center;
  color: var(--dark-gray);
  position: relative;
  border-bottom: 1px solid rgba(44, 62, 80, 0.08);
}

.redirect-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(44, 62, 80, 0.05);
  border: none;
  color: var(--dark-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 1.1rem;
}

.redirect-close:hover {
  background: rgba(44, 62, 80, 0.1);
  transform: rotate(90deg);
}

.redirect-logo-wrap {
  width: auto;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.redirect-logo-wrap .logo-container {
  pointer-events: none; /* Already on the page, don't need it to be clickable inside modal */
}

.redirect-logo-wrap .udsm-logo {
  height: 48px;
}

.redirect-logo-wrap .logo {
  font-size: 1.5rem;
}

.redirect-header h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.redirect-body {
  padding: 2rem;
  text-align: center;
}

.redirect-text {
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.redirect-timer-wrap {
  margin-bottom: 2rem;
}

.timer-circle {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.timer-bg {
  fill: none;
  stroke: #f0f0f0;
  stroke-width: 6;
}

.timer-progress {
  fill: none;
  stroke: var(--danger);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.timer-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--danger);
  font-family: var(--font-display);
}

.redirect-footer {
  padding: 0 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-now {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--danger), var(--danger-dark));
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 10px 25px rgba(222, 49, 99, 0.3);
  transition: all 0.3s;
}

.btn-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(222, 49, 99, 0.4);
}

.btn-cancel {
  background: none;
  border: none;
  color: var(--medium-gray);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-cancel:hover {
  color: var(--dark-gray);
}

@keyframes pulse-timer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.timer-value.pulse {
  animation: pulse-timer 0.5s ease-in-out infinite;
}
