/* About Page Hero Section - Clean Implementation 2025 */

/* Using BEM methodology with unique namespace to avoid conflicts */
.gj-about-hero {
  position: relative;
  width: 100%;
  padding: 10rem 0 6rem;
  box-sizing: border-box;
  background-color: var(--color-raw-white);
  overflow: hidden;
}

/* Background elements */
.gj-about-hero__bg-accent {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 40%;
  height: 40%;
  background: radial-gradient(circle, rgba(217, 45, 39, 0.04) 0%, rgba(217, 45, 39, 0.01) 70%);
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: float-slow 20s ease-in-out infinite alternate;
}

.gj-about-hero__bg-accent--secondary {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 40%;
  background: radial-gradient(circle, rgba(11, 31, 63, 0.03) 0%, rgba(11, 31, 63, 0.01) 70%);
  border-radius: 50%;
  filter: blur(100px);
  z-index: 1;
  animation: float-slow 25s ease-in-out infinite alternate-reverse;
}

@keyframes float-slow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(2%, 2%) rotate(3deg); }
}

/* Main container with proper max-width */
.gj-about-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Left content area */
.gj-about-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.gj-about-hero__title {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.gj-about-hero__title-accent {
  display: block;
  color: var(--color-brand-primary);
  margin-top: 0.5rem;
  animation: fade-in-up 0.8s 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.gj-about-hero__subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 90%;
  animation: fade-in-up 0.8s 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Badge styling with proper containment */
.gj-about-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fade-in-up 0.8s 0.7s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.gj-about-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.gj-about-hero__badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gj-about-hero__badge-icon {
  width: 1rem;
  height: 1rem;
  color: var(--color-brand-primary);
  flex-shrink: 0;
}

.gj-about-hero__badge-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
}

/* Right side image styling */
.gj-about-hero__image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gj-about-hero__image {
  position: relative;
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  animation: fade-in 1s 0.5s ease-out forwards;
  opacity: 0;
  transform: perspective(1000px) rotateY(-5deg) rotateX(3deg);
  transition: all 0.3s ease;
}

.gj-about-hero__image:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.gj-about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
}

/* Accent elements for image */
.gj-about-hero__image-accent {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 70%;
  height: 70%;
  border-radius: 1rem;
  background-color: var(--color-brand-primary);
  z-index: -1;
  opacity: 0.8;
  animation: fade-in 1s 0.7s ease-out forwards;
  opacity: 0;
}

.gj-about-hero__image-pattern {
  position: absolute;
  bottom: 1rem;
  left: -1.5rem;
  width: 6rem;
  height: 6rem;
  background: repeating-linear-gradient(
    45deg,
    rgba(217, 45, 39, 0.1),
    rgba(217, 45, 39, 0.1) 5px,
    transparent 5px,
    transparent 12px
  );
  border-radius: 50%;
  z-index: -1;
  animation: fade-in 1s 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}



/* Responsive Design */
@media (max-width: 992px) {
  .gj-about-hero__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gj-about-hero__content {
    order: 1;
  }
  
  .gj-about-hero__image-wrapper {
    order: 0;
    margin-bottom: 1rem;
  }
  
  .gj-about-hero__image {
    margin: 0 auto;
    max-width: 350px;
  }
  
  .gj-about-hero__subtitle {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .gj-about-hero {
    padding: 8rem 0 4rem;
  }
  
  .gj-about-hero__container {
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .gj-about-hero__title {
    font-size: 1.5rem;
  }
  
  .gj-about-hero__subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }
  
  .gj-about-hero__badges {
    gap: 0.5rem;
  }
  
  .gj-about-hero__badge {
    padding: 0.375rem 0.625rem;
  }
  
  .gj-about-hero__badge-icon {
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .gj-about-hero__badge-text {
    font-size: 0.7rem;
  }
  
  .gj-about-hero__image {
    max-width: 280px;
  }
  
  .gj-about-hero__scroll {
    bottom: 1rem;
  }
}
