/* ============================================================
   Joe Egosi — joeegosi.com
   Personal manifesto site
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #0A1419;
  --bg-hero: #0D1B22;
  --bg-card: rgba(255,255,255,0.02);
  --teal-dark: #294555;
  --teal-mid: #4A8A99;
  --rose: #CC6B97;
  --gold: #FFD700;
  --gold-dark: #D4A800;
  --gold-glow: rgba(255,215,0,0.15);
  --text-primary: #E8ECF0;
  --text-muted: #8A9BAA;
  --text-subtle: #5A6A7A;
  --border-subtle: rgba(74,138,153,0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 900px;
  --section-padding: clamp(6rem, 15vw, 10rem) clamp(1.5rem, 5vw, 3rem);
  --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.7;
  font-size: 1.125rem;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Typography --- */
h1, h2, h3 { line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: clamp(3rem, 10vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
p { max-width: 680px; }
strong { font-weight: 600; color: var(--text-primary); }
em { font-style: italic; color: var(--gold); }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
}
section { position: relative; }

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: opacity 0.3s ease; transform: none; }
  .hero-orb { animation: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem clamp(1.5rem, 5vw, 3rem);
  background: var(--bg-hero);
  overflow: hidden;
}

/* Gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.hero-orb--gold {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
  top: -15%; right: -10%;
  animation: orbFloat1 20s ease-in-out infinite;
}
.hero-orb--teal {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,138,153,0.1) 0%, transparent 70%);
  bottom: -10%; left: -10%;
  animation: orbFloat2 25s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-tag {
  font-size: 1rem;
  color: var(--text-subtle);
  line-height: 1.6;
}
.hero-tag em {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.scroll-hint svg {
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   THE PATTERN (Timeline)
   ============================================================ */
.pattern {
  padding: var(--section-padding);
  background: var(--bg-deep);
}
.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--teal-mid) 50%, var(--gold) 100%);
  opacity: 0.3;
}

.timeline-entry {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-entry:last-child {
  margin-bottom: 0;
}
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateX(-4px);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 30px rgba(255,215,0,0.05);
}
.timeline-card h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.timeline-contrast {
  margin-bottom: 1rem;
}
.timeline-contrast p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.timeline-contrast strong {
  color: var(--text-subtle);
}

.timeline-result {
  color: var(--text-primary);
  font-weight: 500;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}
.timeline-insight {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gold);
  font-style: italic;
}
.timeline-amazon {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}
.timeline-question {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.timeline-entry--now .timeline-card {
  border-left-color: var(--rose);
  background: rgba(204,107,151,0.03);
}
.timeline-entry--now::before {
  background: var(--rose);
  box-shadow: 0 0 20px rgba(204,107,151,0.3);
}

/* ============================================================
   THE METHOD
   ============================================================ */
.method {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-hero) 100%);
}
.method .section-title {
  margin-bottom: 3rem;
}

.method-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}
.method-list li {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}
.method-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.method-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-glow);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.method-list strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.method-list p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ============================================================
   THE CALLING
   ============================================================ */
.calling {
  padding: var(--section-padding);
  background: var(--bg-hero);
  text-align: center;
}

.calling blockquote {
  position: relative;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.quote-mark {
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}
.calling blockquote p {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: none;
}

.calling-text {
  max-width: 600px;
  margin: 0 auto;
}
.calling-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-align: left;
}
.calling-final {
  color: var(--text-primary) !important;
  font-weight: 500;
  font-size: 1.15rem;
}

.cta-link {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--bg-deep);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

/* ============================================================
   EVIDENCE (Press/Awards)
   ============================================================ */
.evidence {
  padding: var(--section-padding);
  background: var(--bg-deep);
}
.evidence .section-title {
  margin-bottom: 3rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.evidence-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.evidence-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.evidence-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.evidence-card-body {
  padding: 1.25rem;
}
.evidence-card-kind {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.evidence-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ============================================================
   CONNECT
   ============================================================ */
.connect {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-hero) 100%);
  text-align: center;
}
.connect h2 {
  margin-bottom: 0.75rem;
}
.connect > .container > p {
  color: var(--text-muted);
  margin: 0 auto 2rem;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.connect-email {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  transition: opacity 0.3s;
}
.connect-email:hover {
  opacity: 0.8;
}
.connect-social {
  color: var(--text-muted);
  font-size: 1rem;
  transition: color 0.3s;
}
.connect-social:hover {
  color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-subtle);
  font-size: 0.85rem;
  background: var(--bg-hero);
  border-top: 1px solid var(--border-subtle);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .hero { min-height: 90vh; }
  .hero-orb--gold { width: 300px; height: 300px; }
  .hero-orb--teal { width: 250px; height: 250px; }

  .timeline { padding-left: 1.5rem; }
  .timeline-entry::before { left: -1.5rem; }
  .timeline-card { padding: 1.25rem 1.5rem; }

  .method-list li { flex-direction: column; gap: 1rem; }
  .method-num { width: 36px; height: 36px; font-size: 0.9rem; }

  .evidence-grid { grid-template-columns: 1fr; }

  .connect-links { flex-direction: column; gap: 1rem; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.5rem; }
  .timeline-card { padding: 1rem 1.25rem; }
  .calling blockquote p { font-size: 1.25rem; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 25, 0.95);
  cursor: pointer;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.lightbox.active .lightbox-content {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.lightbox-close:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-pdf {
  width: 80vw;
  height: 85vh;
  border: none;
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: -45px;
    right: 5px;
  }
  .lightbox-pdf {
    width: 95vw;
    height: 80vh;
  }
}

/* ============================================================
   VISUAL ENHANCEMENTS - Make it alive
   ============================================================ */

/* Animated gradient on hero headline */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero h1 {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 50%, var(--text-primary) 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pulsing timeline dots */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px var(--gold-glow); }
  50% { box-shadow: 0 0 25px var(--gold-glow), 0 0 40px rgba(255,215,0,0.1); }
}
.timeline-entry::before {
  animation: pulse 3s ease-in-out infinite;
}
.timeline-entry--now::before {
  animation: pulse 2s ease-in-out infinite;
}

/* Glowing timeline line */
.timeline::before {
  background: linear-gradient(180deg, 
    var(--gold) 0%, 
    var(--teal-mid) 30%,
    var(--teal-mid) 70%,
    var(--rose) 100%
  );
  opacity: 0.4;
}

/* Hover glow on timeline cards */
.timeline-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.timeline-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 4px 40px rgba(255,215,0,0.1), inset 0 0 30px rgba(255,215,0,0.02);
}

/* Method numbers glow */
.method-num {
  transition: all 0.3s ease;
}
.method-list li:hover .method-num {
  background: rgba(255,215,0,0.2);
  box-shadow: 0 0 20px var(--gold-glow);
  transform: scale(1.1);
}

/* Quote mark animation */
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}
.quote-mark {
  animation: float 6s ease-in-out infinite;
}

/* CTA button glow pulse */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(255,215,0,0.3); }
  50% { box-shadow: 0 8px 40px rgba(255,215,0,0.5); }
}
.cta-link {
  animation: ctaGlow 3s ease-in-out infinite;
}

/* Evidence cards hover enhancement */
.evidence-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.evidence-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(255,215,0,0.15);
}

/* Subtle text glow on key phrases */
.timeline-result {
  text-shadow: 0 0 30px rgba(255,215,0,0.1);
}
.timeline-insight {
  text-shadow: 0 0 20px rgba(255,215,0,0.2);
}

/* Section fade-in enhancement */
section {
  position: relative;
}
section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}
section:last-of-type::after {
  display: none;
}

/* Connect email glow */
.connect-email {
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  transition: text-shadow 0.3s ease;
}
.connect-email:hover {
  text-shadow: 0 0 30px rgba(255,215,0,0.5);
}
