/* ============================================================
   Traffic Buddy - External Stylesheet
   Light theme · Poppins headings · Inter body
   ============================================================ */

html { scroll-behavior: smooth; }

/* ── LIVE BADGE ─────────────────────────────────────────── */
.live-badge {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}
.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%,100% { opacity:1; box-shadow:0 0 0 0 rgba(16,185,129,0.4); }
  50%      { opacity:0.8; box-shadow:0 0 0 6px rgba(16,185,129,0); }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 35%, #f0f9ff 65%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #bfdbfe 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  opacity: 0.55;
  pointer-events: none;
}

/* ── STAT CARDS (hero) ───────────────────────────────────── */
.hero-stat-card {
  background: white;
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(15,52,96,0.08);
  border: 1px solid #e0f2fe;
  border-top: 3px solid #1d4ed8;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(15,52,96,0.15);
}
.stat-val {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f3460;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── SECTION BADGE ───────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-badge.amber { background: #fef3c7; color: #92400e; }
.section-badge.green { background: #ecfdf5; color: #065f46; }

/* ── SECTION TITLE ───────────────────────────────────────── */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ── CARD ────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(15,52,96,0.06);
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(15,52,96,0.12);
}

/* ── STEP NUMBER ─────────────────────────────────────────── */
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f3460, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,0.35);
}

/* ── CAROUSEL ────────────────────────────────────────────── */
.carousel-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14);
  background: #1e293b;
}
.carousel-inner {
  position: relative;
  width: 100%;
  height: 540px;
}
@media (max-width: 768px) {
  .carousel-inner { height: 260px; }
}
.c-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.c-slide.active { opacity: 1; }
.c-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.c-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.88) 0%, rgba(10,20,50,0.25) 70%, transparent 100%);
  padding: 60px 28px 24px;
  color: white;
}
.c-caption p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}
.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}
.c-btn:hover { background: white; transform: translateY(-50%) scale(1.08); }
.c-prev { left: 16px; }
.c-next { right: 16px; }
.c-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}
.c-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.c-dot.active {
  background: #1d4ed8;
  width: 28px;
  border-radius: 4px;
}

/* ── PHOTO FRAME ─────────────────────────────────────────── */
.photo-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(15,52,96,0.16);
}
.photo-frame img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 768px) {
  .photo-frame img { height: 280px; }
}
.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.87) 0%, transparent 100%);
  padding: 60px 24px 24px;
  color: white;
}

/* ── IMPACT SECTION ──────────────────────────────────────── */
.impact-bg {
  background: linear-gradient(135deg, #0f3460 0%, #1a4f9f 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}
.impact-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(59,130,246,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(59,130,246,0.18) 0%, transparent 50%);
}
.impact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 36px 24px;
  text-align: center;
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.impact-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.15);
}

/* ── TECH DIVIDER ────────────────────────────────────────── */
.tech-divider {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  text-align: center;
  padding: 72px 24px;
  position: relative;
  overflow: hidden;
}
.tech-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(59,130,246,0.05) 40px, rgba(59,130,246,0.05) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(59,130,246,0.05) 40px, rgba(59,130,246,0.05) 41px);
}

/* ── TECH PILLS ──────────────────────────────────────────── */
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  background: #f0f4ff;
  border: 1px solid #c7d7fc;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e40af;
}
.tech-pill.green-pill  { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.tech-pill.amber-pill  { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.tech-pill.purple-pill { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }

/* ── ARCH BLOCK ──────────────────────────────────────────── */
.arch-block {
  background: white;
  border-radius: 18px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  box-shadow: 0 4px 20px rgba(15,52,96,0.07);
}
.arch-block.amber-top  { border-top-color: #f59e0b; }
.arch-block.green-top  { border-top-color: #10b981; }
.arch-block.purple-top { border-top-color: #8b5cf6; }

/* ── CHALLENGE CARD ──────────────────────────────────────── */
.challenge-card {
  background: white;
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(15,52,96,0.08);
  border: 1px solid #e2e8f0;
  border-left: 5px solid #f59e0b;
  transition: transform 0.3s ease;
}
.challenge-card:hover { transform: translateY(-4px); }
.solution-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── TEAM CARD ───────────────────────────────────────────── */
.team-card {
  background: white;
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(15,52,96,0.07);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 12px 36px rgba(59,130,246,0.14);
}
.team-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f3460, #3b82f6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.team-avatar.av-amber  { background: linear-gradient(135deg, #92400e, #f59e0b); }
.team-avatar.av-green  { background: linear-gradient(135deg, #065f46, #10b981); }
.team-avatar.av-purple { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }
.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0077b5;
  color: white;
  padding: 7px 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 14px;
  transition: background 0.2s ease;
}
.linkedin-btn:hover { background: #005885; }

/* ── NEWS CARD ───────────────────────────────────────────── */
.news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15,52,96,0.06);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.news-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 28px rgba(59,130,246,0.12);
  transform: translateY(-3px);
}
.news-source {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #3b82f6;
}

/* ── YOUTUBE EMBED ───────────────────────────────────────── */
.yt-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.yt-wrap:hover img { transform: scale(1.04); }
.yt-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: background 0.3s ease;
}
.yt-wrap:hover .yt-overlay { background: rgba(0,0,0,0.38); }
.yt-play {
  width: 82px;
  height: 82px;
  background: rgba(220,38,38,0.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 3px solid rgba(255,255,255,0.3);
}
.yt-wrap:hover .yt-play {
  transform: scale(1.12);
  background: rgba(220,38,38,1);
}
.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── CONFIDENTIALITY ─────────────────────────────────────── */
.conf-card {
  background: #fffbeb;
  border: 1.5px solid #fbbf24;
  border-left: 5px solid #f59e0b;
  border-radius: 18px;
  padding: 36px;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.from-left  { transform: translateX(-32px); }
.reveal.from-right { transform: translateX(32px); }
.reveal.visible    { opacity: 1; transform: none; }

/* ── GRADIENT TEXT ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0f3460 10%, #1d4ed8 55%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer { background: #0f172a; color: #94a3b8; }
footer a { color: #94a3b8; text-decoration: none; transition: color 0.2s ease; }
footer a:hover { color: #e2e8f0; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-title { font-size: 1.8rem !important; }
}
