/* ============================================
   3Bird — Visual Enhancements
   ============================================ */

/* ---- Hero split layout ---- */
.hero { min-height: 100vh; padding-top: 0; display: block; }
.hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 100vh;
  padding-top: 96px; padding-bottom: 3rem;
  position: relative; z-index: 2;
}
.hero-split .hero-text { max-width: 580px; }
.hero-split .hero-text h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero-split .hero-text p  { color: rgba(255,255,255,.82); font-size: clamp(1rem,1.8vw,1.15rem); margin-bottom: 1.75rem; }

/* ---- Hero visual right side ---- */
.hero-visual {
  position: relative; height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.hero-photo-frame {
  width: 100%; height: 100%;
  border-radius: 28px; overflow: hidden;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero-photo-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,.55) 0%, rgba(29,78,216,.25) 50%, rgba(124,58,237,.2) 100%);
  border-radius: 28px;
}
/* Animated gradient border ring */
.hero-photo-ring {
  position: absolute; inset: -3px;
  border-radius: 31px;
  background: linear-gradient(135deg, var(--blue-light), var(--violet), var(--sky), var(--gold));
  background-size: 300% 300%;
  animation: ringRotate 5s ease infinite;
  z-index: -1;
  opacity: .7;
}
@keyframes ringRotate {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* ---- Floating metric cards ---- */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: 18px;
  padding: .9rem 1.3rem;
  box-shadow: 0 16px 50px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.5);
  display: flex; align-items: center; gap: .85rem;
  z-index: 10; white-space: nowrap;
}
.float-card .fc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.float-card strong { display: block; font-size: 1.2rem; font-weight: 900; line-height: 1.1; color: var(--text); }
.float-card span   { display: block; font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }

/* Float positions */
.fc-1 { top: 12%; left: -5%; animation: floatUp 5s ease-in-out infinite; }
.fc-2 { bottom: 22%; left: -8%; animation: floatUp 5s ease-in-out 1.7s infinite; }
.fc-3 { top: 18%; right: -4%; animation: floatUp 5s ease-in-out 3.4s infinite; }
.fc-4 { bottom: 12%; right: -2%; animation: floatUp 5s ease-in-out .9s infinite; }

@keyframes floatUp {
  0%, 100% { transform: translateY(0)   rotate(0deg); }
  33%       { transform: translateY(-9px) rotate(1deg); }
  66%       { transform: translateY(5px)  rotate(-1deg); }
}

/* ---- Glow orbs ---- */
.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.go-blue   { background: rgba(59,130,246,.4); }
.go-violet { background: rgba(124,58,237,.4); }
.go-teal   { background: rgba(8,145,178,.3); }
.go-gold   { background: rgba(245,158,11,.3); }

/* ---- Shine sweep on cards ---- */
.shine-card { position: relative; overflow: hidden; }
.shine-card::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.14) 50%, transparent 65%);
  animation: shineSlide 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shineSlide {
  0%, 25%  { left: -100%; opacity: 0; }
  30%      { opacity: 1; }
  70%      { opacity: 0; }
  75%, 100%{ left: 140%; opacity: 0; }
}

/* ---- Visual strip (team photo banner) ---- */
.visual-strip-section { padding: 0; }
.visual-strip {
  position: relative; overflow: hidden;
  min-height: 420px; margin: 0;
  display: flex; align-items: center;
}
.visual-strip-img {
  position: absolute; inset: 0;
}
.visual-strip-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(.55) saturate(.8);
}
.visual-strip-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,40,.92) 0%, rgba(29,78,216,.55) 55%, rgba(124,58,237,.35) 100%);
}
.visual-strip-content {
  position: relative; z-index: 2;
  width: 100%; padding: 4rem 0;
}
.vs-grid {
  display: grid; grid-template-columns: 1fr auto;
  gap: 3rem; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
}
.vs-grid h2 { color: var(--white); margin-bottom: .75rem; }
.vs-grid p  { color: rgba(255,255,255,.8); max-width: 480px; font-size: 1.05rem; margin-bottom: 1.75rem; }
.vs-metrics { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.vs-metric {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  text-align: center; min-width: 100px;
}
.vs-metric strong {
  display: block; font-size: 1.9rem; font-weight: 900;
  color: var(--gold-light); line-height: 1;
}
.vs-metric span { font-size: .76rem; color: rgba(255,255,255,.65); display: block; margin-top: .3rem; }

.vs-cta-col { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }

/* ---- Testimonials with avatars ---- */
.testimonial-top {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.25rem;
}
.testimonial-avatar {
  width: 58px; height: 58px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 3px solid rgba(245,158,11,.45);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-stars { color: var(--gold-light); font-size: .85rem; margin-bottom: .2rem; }

/* ---- About page photo ---- */
.about-visual {
  position: relative; padding-bottom: 1.5rem; padding-right: 1.5rem;
}
.about-photo-main {
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.about-photo-main img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.about-visual:hover .about-photo-main img { transform: scale(1.03); }
/* Accent stat card bottom-right */
.about-stat-card {
  position: absolute; bottom: 0; right: 0;
  background: var(--white);
  border-radius: 20px;
  padding: 1.3rem 1.7rem;
  box-shadow: var(--shadow-lg);
  text-align: center; min-width: 150px;
  border: 1px solid var(--border);
}
.about-stat-card strong { display: block; font-size: 2.2rem; font-weight: 900; color: var(--blue); line-height: 1; }
.about-stat-card span  { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; display: block; }
/* Badge top-left */
.about-badge-card {
  position: absolute; top: -16px; left: -16px;
  background: linear-gradient(135deg, var(--violet), var(--violet-light));
  border-radius: 16px;
  padding: .85rem 1.2rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .5rem;
  color: var(--white); font-weight: 700; font-size: .9rem;
  z-index: 2;
}

/* ---- Services photo wrap ---- */
.service-photo-wrap {
  position: relative;
}
.service-photo-main {
  border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-photo-main img {
  width: 100%; display: block;
  object-fit: cover; max-height: 480px;
  transition: transform .6s ease;
}
.service-photo-wrap:hover .service-photo-main img { transform: scale(1.03); }
.service-photo-badge {
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 50px;
  padding: .65rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .6rem;
  font-size: .875rem; font-weight: 700;
  white-space: nowrap; border: 1px solid var(--border);
}

/* ---- Blog card photos ---- */
.blog-photo-wrap {
  height: 210px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
}
.blog-photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
  opacity: .92;
}
.blog-card:hover .blog-photo-wrap img { transform: scale(1.07); }
.blog-photo-badge {
  position: absolute; bottom: .75rem; left: .75rem;
  background: rgba(10,22,40,.8);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ---- AI Lab visualization ---- */
.ai-lab-hero-visual {
  position: relative;
  background: linear-gradient(135deg, #1a0a3c, #2d1270, #4c1d95);
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 30px 80px rgba(124,58,237,.4);
  overflow: hidden;
}
.ai-lab-hero-visual::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(168,85,247,.4) 0%, transparent 70%);
  border-radius: 50%;
}
.ai-lab-hero-visual::after {
  content: '';
  position: absolute; bottom: -80px; left: -40px;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(14,165,233,.3) 0%, transparent 70%);
  border-radius: 50%;
}
.ai-process-visual {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 1rem;
}
.ai-pv-row {
  display: flex; gap: .75rem; align-items: center;
}
.ai-pv-node {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}
.ai-pv-node:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ai-pv-icon { font-size: 1.75rem; margin-bottom: .4rem; }
.ai-pv-label { font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.9); }
.ai-pv-sub   { font-size: .68rem; color: rgba(255,255,255,.5); margin-top: .15rem; }
.ai-pv-arrow {
  font-size: 1.25rem; color: rgba(255,255,255,.35);
  flex-shrink: 0;
}
/* Code stream animation */
.code-stream {
  background: rgba(0,0,0,.3);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: 'Courier New', monospace;
  font-size: .75rem;
  color: #4ade80;
  line-height: 1.7;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(74,222,128,.2);
}
.code-stream .code-line { white-space: nowrap; overflow: hidden; }
.code-stream .code-line.typing {
  animation: typeLine 1.5s steps(40, end) forwards;
  width: 0;
}
.code-stream .code-comment { color: rgba(74,222,128,.45); }
.code-stream .code-kw  { color: #93c5fd; }
.code-stream .code-fn  { color: #fbbf24; }
.code-stream .code-str { color: #f9a8d4; }
/* Human check badge */
.human-check-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 8px;
  padding: .5rem .9rem;
  font-size: .78rem; font-weight: 700; color: var(--gold-light);
  margin-top: .75rem;
}

/* ---- Case study visual headers ---- */
.case-header-visual {
  position: relative; overflow: hidden; height: 100%;
}
.case-header-visual img {
  width: 100%; height: 100%;
  object-fit: cover; opacity: .25;
  filter: saturate(.5);
}

/* ---- Dot grid pattern ---- */
.dot-pattern-bg {
  background-image: radial-gradient(rgba(99,102,241,.12) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* ---- Avatar group for social proof ---- */
.avatar-proof {
  display: flex; align-items: center; gap: .75rem;
  margin-top: 1.5rem;
}
.avatar-stack { display: flex; }
.avatar-stack .av {
  width: 40px; height: 40px;
  border-radius: 50%; border: 2.5px solid rgba(255,255,255,.3);
  overflow: hidden; margin-left: -10px; flex-shrink: 0;
  background: var(--navy-mid);
}
.avatar-stack .av:first-child { margin-left: 0; }
.avatar-stack .av img { width: 100%; height: 100%; object-fit: cover; }
.avatar-proof-text { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.4; }
.avatar-proof-text strong { color: var(--gold-light); }

/* ---- Section with photo bg (subtle) ---- */
.section-bg-photo { position: relative; overflow: hidden; }
.section-bg-photo .sbp-img {
  position: absolute; inset: 0; z-index: 0;
}
.section-bg-photo .sbp-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .06; filter: grayscale(40%);
}
.section-bg-photo > *:not(.sbp-img) { position: relative; z-index: 1; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; padding-top: 80px; }
  .hero-visual { height: 360px; margin-top: 2rem; }
  .fc-1 { top: -5%; left: 5%;  }
  .fc-2 { bottom: -5%; left: 5%; }
  .fc-3 { top: -5%; right: 5%; }
  .fc-4 { bottom: -5%; right: 5%; }
  .vs-grid { grid-template-columns: 1fr; }
  .about-badge-card { top: 10px; left: 10px; }
  .about-stat-card { bottom: -10px; right: 5px; }
}
@media (max-width: 640px) {
  .hero-visual { display: none; }
  .vs-metrics { justify-content: center; }
  .vs-cta-col { display: none; }
}
