/* Hardware Acceleration & Performance Optimization */
.growth-hero-wrapper *,
.growth-hero-wrapper *::before,
.growth-hero-wrapper *::after {
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.gh-service-tag,
.gh-growth-tag,
.gh-explore-btn,
.gh-trusted-badge {
  will-change: transform, opacity, box-shadow;
}

/* Base Reset for Growth Hero */
.growth-hero-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Main Container */
.growth-hero-wrapper {
  font-family: var(--font-family-helvetica);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 160px 40px 20px;
}

/* Hero Section Layout */
.gh-hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* === LEFT SIDE CONTENT === */
.gh-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  opacity: 0;
  transform: translateX(-60px);
  animation: gh-slideInLeft 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.gh-trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 5px 15px;
  border: 2px solid var(--color-text);
  border-radius: 60px;
  font-family: var(--font-family-helvetica);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  background: var(--color-background);
  box-shadow: 0 4px 20px rgba(var(--color-text-rgb), 0.08);
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    box-shadow 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    border-color 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  transform: translateZ(0);
}

.gh-trusted-badge:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow: 0 12px 40px rgba(var(--color-text-rgb), 0.12);
  border-color: var(--color-text);
}

.gh-trusted-star {
  color: var(--color-text);
  font-size: 1.2em;
  animation: gh-starPulse 2s infinite ease-in-out;
}

.gh-hero-title {
  font-family: var(--font-family-montserrat);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin: 0;
  position: relative;
  letter-spacing: -0.02em;
}

.gh-title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: gh-titleReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.gh-title-line:nth-child(1) {
  animation-delay: 0.5s;
}

.gh-title-line:nth-child(2) {
  animation-delay: 0.7s;
}

.gh-title-line:nth-child(3) {
  animation-delay: 0.9s;
}

.gh-growth-tag {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-background);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  transform: rotate(-3deg) translateZ(0);
  position: relative;
  font-family: var(--font-family-helvetica);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  box-shadow: 0 8px 25px rgba(var(--color-text-rgb), 0.2);
  animation: gh-growthBounce 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.2s both,
    gh-growthFloat 6s infinite ease-in-out 3s;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.gh-growth-tag:hover {
  transform: rotate(-1deg) scale(1.08) translateZ(0);
  box-shadow: 0 15px 35px rgba(var(--color-text-rgb), 0.2);
}

.gh-hero-description {
  font-family: var(--font-family-helvetica);
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  font-weight: var(--font-weight-normal);
  opacity: 0;
  transform: translateY(20px);
  animation: gh-fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards;
}

.gh-explore-btn {
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    box-shadow 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  animation: gh-fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.6s forwards;
}

/* === RIGHT SIDE SERVICES === */
.gh-hero-right {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  align-content: center;
  opacity: 0;
  transform: translateX(60px);
  animation: gh-slideInRight 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.gh-service-tag {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-text);
  border-radius: 60px;
  font-family: var(--font-family-helvetica);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  cursor: pointer;
  background: var(--color-background);
  color: var(--color-text);
  transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1),
    color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  transform: translateZ(0);
}

.gh-service-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  transition: left 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: -1;
}

.gh-service-icon {
  width: 18px;
  height: 18px;
  background: var(--color-text);
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
  flex-shrink: 0;
  transform: translateZ(0);
}

.gh-service-tag:hover,
.gh-service-tag.gh-active {
  color: var(--color-background);
  border-color: var(--color-text);
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 20px 40px rgba(var(--color-text-rgb), 0.12);
}

.gh-service-tag:hover::before,
.gh-service-tag.gh-active::before {
  left: 0;
}

.gh-service-tag:hover .gh-service-icon,
.gh-service-tag.gh-active .gh-service-icon {
  background: var(--color-background);
  transform: rotate(360deg) scale(1.15) translateZ(0);
}

.gh-service-tag:active {
  transform: translateY(-2px) scale(0.98) translateZ(0);
  transition: transform 0.1s ease-out;
}

/* Magnetic Effect - Ultra Smooth */
.gh-service-tag.gh-magnetic {
  transition: transform 0.08s ease-out,
    color 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    background 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* === ANIMATIONS === */
@keyframes gh-slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gh-slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gh-titleReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gh-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gh-growthBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-3deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.1) rotate(-3deg);
  }

  70% {
    transform: scale(0.95) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(-3deg);
  }
}

@keyframes gh-growthFloat {

  0%,
  100% {
    transform: rotate(-3deg) translateY(0px) translateZ(0);
  }

  33% {
    transform: rotate(-2deg) translateY(-6px) translateZ(0);
  }

  66% {
    transform: rotate(-4deg) translateY(-3px) translateZ(0);
  }
}

@keyframes gh-starPulse {

  0%,
  100% {
    transform: scale(1) translateZ(0);
    opacity: 1;
  }

  50% {
    transform: scale(1.3) translateZ(0);
    opacity: 0.8;
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .gh-hero-section {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .gh-hero-left {
    align-items: center;
    text-align: center;
  }

  .gh-hero-right {
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
  }

  .gh-hero-description {
    max-width: 85%;
  }
}

@media (max-width: 768px) {
  .growth-hero-wrapper {
    padding: 120px 0px 20px;
  }

  .gh-hero-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    max-width: 400px;
  }

  .gh-service-tag {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gh-hero-right {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  .gh-service-tag {
    width: 100%;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

  .growth-hero-wrapper *,
  .growth-hero-wrapper *::before,
  .growth-hero-wrapper *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.gh-explore-btn:focus,
.gh-service-tag:focus {
  outline: 3px solid var(--color-text);
  outline-offset: 2px;
}

/* ======================================================= */
/* Services Section */

.hls-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 0;
}

.hls-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.hls-header h2 {
  font-family: var(--font-family-montserrat);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-md) 0;
  line-height: normal;
  position: relative;
  display: inline-block;
}

.hls-header .hls-tag {
  position: absolute;
  top: 50%;
  left: 77%;
  background-color: var(--color-text);
  color: var(--color-background);
  font-family: var(--font-family-montserrat);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 999px;
  transform: rotate(-10deg);
  white-space: nowrap;
}

.hls-header p {
  font-family: var(--font-family-helvetica);
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.hls-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}

.hls-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-xl);
  transition: background-color 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.hls-list li:not(:last-child) .hls-item {
  border-bottom: 1px solid var(--color-border);
}

.hls-container.hls-is-visible .hls-item {
  opacity: 1;
  transform: translateY(0);
}

.hls-content {
  display: grid;
  grid-template-columns: 50px 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  width: 100%;
}

.hls-number {
  font-family: var(--font-family-helvetica);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  text-align: center;
}

.hls-title {
  font-family: var(--font-family-montserrat);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  margin: 0;
}

.hls-description {
  font-family: var(--font-family-helvetica);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin: 0;
  line-height: var(--line-height-normal);
}

.hls-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}

.hls-link-pill {
  width: 160px;
  height: 50px;
  background: linear-gradient(90deg, var(--color-emphasis), var(--color-text));
  border-radius: 25px;
  transition: width 0.4s ease;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.hls-link-pill video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  border-radius: 25px;
  display: block;
}

.hls-link-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: -25px;
  transition: background-color 0.3s ease, transform 0.3s ease,
    border-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(var(--color-text-rgb), 0.05);
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.hls-link-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-text);
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.hls-item:hover {
  background-color: var(--color-background-secondary);
}

.hls-item:hover .hls-link-pill {
  width: 180px;
}

.hls-item:hover .hls-link-icon {
  background-color: var(--color-text);
  border-color: var(--color-text);
  transform: translateX(10px);
}

.hls-item:hover .hls-link-icon svg {
  stroke: var(--color-background);
  transform: rotate(45deg);
}

/* Modal styles */
.hls-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--color-text-rgb), 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
  backdrop-filter: blur(0px);
}

.hls-modal.hls-is-active {
  background-color: rgba(var(--color-text-rgb), 0.7);
  backdrop-filter: blur(5px);
}

.hls-modal-content {
  position: relative;
  background-color: var(--color-text);
  padding: var(--space-md);
  border-radius: 12px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  transform: scale(0.7) translateY(50px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease,
    translate 0.5s ease;
}

.hls-modal.hls-is-active .hls-modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.hls-modal-video {
  width: 100%;
  height: auto;
  max-height: 70vh;
  border-radius: 8px;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
    opacity 0.6s ease 0.1s;
}

.hls-modal.hls-is-active .hls-modal-video {
  transform: scale(1);
  opacity: 1;
}

/* Custom video controls */
.hls-modal-video::-webkit-media-controls-panel {
  background-color: var(--color-text);
  border-radius: 8px;
  padding: 5px;
}

.hls-modal-video::-webkit-media-controls-play-button,
.hls-modal-video::-webkit-media-controls-volume-slider,
.hls-modal-video::-webkit-media-controls-timeline {
  filter: brightness(1.2);
}

.hls-modal-video::-webkit-media-controls-current-time-display,
.hls-modal-video::-webkit-media-controls-time-remaining-display {
  color: var(--color-background);
  text-shadow: 0 1px 2px rgba(var(--color-text-rgb), 0.5);
}

.hls-modal-close {
  position: absolute;
  top: -30px;
  right: -30px;
  background: var(--color-text);
  color: var(--color-background);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hls-modal-close:hover {
  background: var(--color-emphasis-hover);
  transform: rotate(90deg);
}

/* Accessibility */
.hls-modal-close:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.hls-link-pill:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 992px) {
  .hls-content {
    grid-template-columns: 50px 1fr;
    gap: var(--space-lg);
  }

  .hls-description {
    display: none;
  }

  .hls-link-pill {
    width: 120px;
    height: 40px;
    border-radius: 20px;
  }

  .hls-link-pill video {
    border-radius: 20px;
  }

  .hls-link-icon {
    width: 40px;
    height: 40px;
    margin-left: -20px;
  }

  .hls-link-icon svg {
    width: 16px;
    height: 16px;
  }

  .hls-item:hover .hls-link-pill {
    width: 140px;
  }

  .hls-item:hover .hls-link-icon {
    transform: translateX(8px);
  }

  .hls-modal-content {
    width: 80%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body {
    padding: var(--space-xl) var(--space-md);
  }

  .hls-header {
    margin-bottom: var(--space-xl);
  }

  .hls-list {
    border: none;
    border-radius: 0;
  }

  .hls-list li:not(:last-child) .hls-item {
    border-bottom: none;
  }

  .hls-item {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background-color: var(--color-background-secondary);
  }

  .hls-content {
    display: grid;
    grid-template-areas:
      "number title"
      "number description";
    grid-template-columns: 40px 1fr;
    gap: var(--space-xs) var(--space-md);
    width: 100%;
  }

  .hls-number {
    grid-area: number;
    align-self: center;
  }

  .hls-title {
    grid-area: title;
  }

  .hls-description {
    grid-area: description;
    display: block;
  }

  .hls-link {
    align-self: flex-end;
  }

  .hls-link-pill {
    width: 100px;
    height: 36px;
    border-radius: 18px;
  }

  .hls-link-pill video {
    border-radius: 18px;
  }

  .hls-link-icon {
    width: 36px;
    height: 36px;
    margin-left: -18px;
  }

  .hls-link-icon svg {
    width: 14px;
    height: 14px;
  }

  .hls-item:hover .hls-link-pill {
    width: 120px;
  }

  .hls-item:hover .hls-link-icon {
    transform: translateX(6px);
  }

  .hls-item:hover {
    background-color: var(--color-background-secondary);
  }

  .hls-modal-content {
    width: 95%;
  }

  .hls-modal-close {
    top: -25px;
    right: -25px;
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }
}

/* --- End of High-Level Services (hls) Component Styles --- */