/* ============================================
   Hero Improvements - Big, Bold, Premium
   Fixes and enhancements for visual impact
   ============================================ */

/* --- Fix Credentials Ticker --- */
.credentials-bar {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
}

.credentials-bar__wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.credentials-bar__logos {
  display: flex !important;
  gap: 4rem;
  flex-wrap: nowrap !important;
  animation: scroll-logos 30s linear infinite;
  will-change: transform;
  align-items: center;
}

.credentials-bar__logos img {
  flex-shrink: 0;
  height: 40px;
  width: auto;
}

/* Remove conflicting pseudo-element */
.credentials-bar__logos::after {
  content: none !important;
  display: none !important;
}

/* Pause animation on hover */
.credentials-bar:hover .credentials-bar__logos {
  animation-play-state: paused;
}

/* Gradient fade edges */
.credentials-bar::before,
.credentials-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.credentials-bar::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, var(--bg) 20%, transparent 100%);
}

.credentials-bar::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, var(--bg) 20%, transparent 100%);
}

/* Keyframe animation for smooth scrolling */
@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Bigger, Bolder Hero --- */
.hero--home {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

/* Optional: Subtle gradient background */
.hero--home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  opacity: 0.5;
  z-index: -1;
}

.hero__grid {
  gap: 4rem;
  align-items: center;
}

/* Make hero text bigger and bolder */
.hero--home h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero--home .hero__tagline {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.hero__credentials {
  margin: 2rem 0;
  gap: 1rem;
}

.hero__credential-tag {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
}

/* Larger hero image */
.hero__image-wrapper {
  position: relative;
  z-index: 1;
}

.hero__image-wrapper img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__image-wrapper:hover img {
  transform: scale(1.05);
}

/* Enhance image accent */
.hero__image-accent {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 2rem;
  left: 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  opacity: 0.15;
  z-index: -1;
  transition: transform 0.4s ease;
}

.hero__image-wrapper:hover + .hero__image-accent {
  transform: translate(0.5rem, 0.5rem);
}

/* Bigger buttons */
.hero .btn--large {
  font-size: 1.125rem;
  padding: 1rem 2.5rem;
  min-width: 200px;
}

/* --- Fix Speaking Hero Image --- */
.speaking-hero-image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.speaking-hero-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
}

/* --- Photo Gallery Section (New) --- */
.photo-gallery {
  padding: 4rem 0;
}

.photo-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.photo-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-gallery__item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.photo-gallery__item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-gallery__item:hover img {
  transform: scale(1.1);
}

.photo-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
  font-size: 0.875rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-gallery__item:hover .photo-gallery__caption {
  transform: translateY(0);
}

/* --- Hero Background Image for Pages Without Photos --- */
.hero--page {
  position: relative;
  padding: 8rem 0 6rem;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-image: url('../images/headshot-new-2.jpg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}

.hero--page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(27, 42, 74, 0.85) 0%,
    rgba(42, 157, 143, 0.75) 100%);
  z-index: 1;
}

.hero--page .container {
  position: relative;
  z-index: 2;
}

.hero--page h1,
.hero--page .subtitle,
.hero--page p {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero--page h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero--page .subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

/* --- Book Page Hero Override --- */
.hero--book {
  background-image: url('../images/book-sign-1.jpg');
  background-position: center 35%;
}

/* --- Blog Page Hero Override --- */
.hero--blog {
  background-image: url('../images/podcast-1.jpg');
  background-position: center 35%;
}

/* --- Club Page Hero Override --- */
.hero--club {
  background-image: url('../images/crowd-work-1.jpg');
  background-position: center 20%;
}

/* --- Contact Page Hero Override --- */
.hero--contact {
  background-image: url('../images/crowd-stage-4.png');
  background-position: center 35%;
}

/* --- Resources Page Hero Override --- */
.hero--resources {
  background-image: url('../images/whiteboard-1.jpg');
  background-position: center 40%;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .hero--home {
    min-height: auto;
    padding: 4rem 0;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__image-wrapper img {
    max-width: 400px;
    margin: 0 auto;
  }

  .photo-gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero--page {
    padding: 6rem 0 4rem;
    min-height: 40vh;
  }
}
