/* ==========================================================
   LANDING PAGE — index.html

   Overrides global theme.css / footer.css sticky footer
   so the footer hugs the content instead of leaving a gap.
   ========================================================== */

/* ---- Fix: Flexbox sticky footer (no white space gap) ---- */
#page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content-wrap {
  flex: 1 0 auto;
  padding-bottom: 0;
}

#footer {
  position: static;
  flex-shrink: 0;
}

/* ---- Hero Section ---- */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
}

.hero-headshot {
  margin-bottom: 1.25rem;
}

.hero-headshot img {
  width: clamp(130px, 10vw, 180px);
  height: clamp(130px, 10vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-name {
  font-size: clamp(2.2rem, 2.5vw + 1rem, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.3rem;
  letter-spacing: 0.5px;
}

.hero-name a {
  color: #fff;
  text-decoration: none;
}

.hero-name a:hover {
  text-decoration: underline;
}

.hero-title {
  font-size: clamp(1.15rem, 0.8vw + 0.7rem, 1.6rem);
  font-weight: 400;
  color: #b0c4de;
  margin: 0 0 1.25rem;
}

.hero-links {
  margin-bottom: 1.5rem;
}

.hero-links a {
  color: #fff;
  text-decoration: none;
  font-size: clamp(1rem, 0.5vw + 0.7rem, 1.3rem);
  margin: 0 0.6rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.hero-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero-links .linkedin-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
  background: #fff;
  color: #0f3460;
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  border-radius: 3px;
}

.hero-bio {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(1.05rem, 0.6vw + 0.7rem, 1.4rem);
  line-height: 1.7;
  color: #d0d8e8;
}

.hero-counter {
  margin: 1.25rem auto 0;
  font-size: clamp(0.95rem, 0.4vw + 0.65rem, 1.15rem);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

/* ---- Photo/Video Carousel ---- */
.carousel-section {
  background: #111;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.carousel-track {
  display: flex;
  animation: carousel-scroll 45s linear infinite;
  width: max-content;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  height: 187px;
  position: relative;
  overflow: hidden;
  margin: 0;
  cursor: default;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Video slides — clickable */
.video-slide {
  cursor: pointer;
}

.slide-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.9);
  font-size: 3rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.7);
  pointer-events: none;
  transition: transform 0.2s;
}

.video-slide:hover .slide-play {
  transform: translate(-50%, -50%) scale(1.15);
}

/* Inline video playing inside carousel slide */
.video-slide.playing {
  z-index: 5;
}

.video-slide.playing .inline-video {
  border-radius: 0;
}

/* @keyframes carousel-scroll is injected dynamically by carousel_init.js
   based on actual rendered slide widths — no fixed value needed */

/* ---- Section Headers ---- */
.section-header {
  font-size: clamp(1.3rem, 0.8vw + 0.8rem, 1.8rem);
  font-weight: 600;
  color: #1a1a2e;
  margin: 2rem 1.5rem 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #0f3460;
  display: inline-block;
}

/* ---- Latest Posts — Horizontal Scroll ---- */
.latest-posts-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.5rem 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #c0c0c0 transparent;
}

.latest-posts-scroll::-webkit-scrollbar {
  height: 6px;
}

.latest-posts-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.latest-posts-scroll::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 3px;
}

.latest-posts-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
}

.latest-posts-track .content-card {
  flex: 0 0 auto;
  width: clamp(300px, 22vw, 400px);
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.15s;
}

.latest-posts-track .content-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

/* ---- Card Internals (shared) ---- */
.card-category {
  font-size: clamp(0.8rem, 0.3vw + 0.6rem, 1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}

.card-category.playbooks { color: #0f3460; }
.card-category.sql       { color: #b33000; }
.card-category.ds        { color: #2e7d32; }
.card-category.stats     { color: #6a1b9a; }

.card-date {
  font-size: clamp(0.85rem, 0.3vw + 0.6rem, 1.05rem);
  color: #888;
  margin-bottom: 0.5rem;
}

.content-card h3 {
  font-size: clamp(1.1rem, 0.5vw + 0.7rem, 1.4rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.content-card h3 a {
  color: #1a1a2e;
  text-decoration: none;
}

.content-card h3 a:hover {
  color: #0f3460;
  text-decoration: underline;
}

.card-desc {
  font-size: clamp(0.95rem, 0.4vw + 0.65rem, 1.2rem);
  color: #555;
  line-height: 1.55;
  margin: 0;
}

/* ---- Footer Disclaimer ---- */
.landing-disclaimer {
  margin: 0 1.5rem 1rem;
  font-size: 0.85rem;
  color: #999;
  line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero { padding: 2rem 1.25rem 1.5rem; }
  .carousel-slide { width: 200px; height: 133px; }
  .latest-posts-scroll { padding: 0 1rem 1.5rem; }
  .section-header { margin-left: 1rem; margin-right: 1rem; }
}
