/* Brand Message Section - GSAP Version */
.brand-trigger {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.brand-animation-section {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateZ(0);
  transform-origin: center center;
  background: #1b4332;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Performance optimizations */
  will-change: transform, width, height, border-radius;
  contain: layout style paint;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* Set relative positioning when expanded */
.brand-animation-section.is-expanded {
  position: relative;
  transform: none;
  top: auto;
  left: auto;
}

.brand-animation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1b4332;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  z-index: -1;
  pointer-events: none;
}

/* Simplified gradient background */
.brand-animation-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

/* Background text */
.brand-bg-text {
  position: absolute;
  top: 10%; 
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  color: rgba(255, 255, 255, 0.05);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 0;
  max-width: 90%;
  text-align: center;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
}

.brand-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 40px;
  max-width: 1200px;
  width: 90%;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  /* Performance optimization */
  will-change: opacity, transform;
}

.brand-content-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: flex-start;
  width: 100%;
}

.brand-left {
  padding-top: 20px;
}

.brand-right {
  max-width: 800px;
}

.section-header {
  position: relative;
}

.section-title-ja {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  position: relative;
  padding-left: 20px;
}

.section-title-ja::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}

.main-message {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

.sub-messages {
  margin-bottom: 3rem;
}

.sub-message {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

/* Remove cta-button styles as it's no longer needed */

/* Text animation classes */
.smooth {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  /* Performance optimization */
  will-change: opacity, transform;
}

/* About Us Marquee Animation */
.about-us-marquee {
  position: absolute;
  bottom: -5%;
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.about-us-marquee:hover .marquee-text {
  opacity: 0.8;
}

.about-us-marquee:hover .marquee-circle {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.1);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 6rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding-right: 6rem;
}

.marquee-content:nth-child(2) {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-text {
  font-size: clamp(8.5rem, 17vw, 13.6rem);
  font-weight: 900;
  font-family: "Poppins", sans-serif;
  color: #ffffff;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.marquee-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 136px;
  background: #ffffff;
  border-radius: 50%;
  color: #1b4332;
  font-size: 3.4rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .brand-content {
    padding: 40px 30px;
  }
  
  .brand-content-inner {
    grid-template-columns: 220px 1fr;
    gap: 50px;
  }
  
  .brand-bg-text {
    font-size: clamp(5rem, 10vw, 8rem);
  }
  
  .main-message {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }
  
  .sub-message {
    font-size: clamp(0.9rem, 1.3vw, 1rem);
  }
}

@media (max-width: 768px) {
  .brand-trigger {
    height: 100vh;
    position: relative;
    overflow: hidden;
  }

  .brand-animation-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .brand-animation-section.is-expanded {
    position: relative;
    transform: none;
    top: auto;
    left: auto;
  }

  .brand-bg-text {
    font-size: clamp(3rem, 15vw, 5rem);
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.05);
    z-index: 0;
    max-width: 90%;
    text-align: center;
    letter-spacing: 0.1em;
    font-weight: 900;
  }

  .brand-content {
    padding: 40px 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-content-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }

  .brand-left {
    padding-top: 0;
    text-align: left;
  }

  .section-title-ja {
    padding-left: 15px;
    text-align: left;
    font-size: 0.85rem;
  }

  .section-title-ja::before {
    display: inline-block;
    left: 0;
  }

  .main-message {
    font-size: clamp(1.4rem, 5vw, 2rem);
    text-align: left;
    margin-bottom: 1.2rem;
    line-height: 1.3;
  }

  .sub-message {
    font-size: 0.8rem;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 0.8rem;
  }

  .sub-messages {
    margin-bottom: 2rem;
  }

  .marquee-text {
    font-size: 4rem;
  }

  .marquee-circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .about-us-marquee {
    position: absolute;
    bottom: 10%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    margin-top: 0;
    z-index: 2;
  }

  .marquee-content {
    gap: 3rem;
  }
  
  .marquee-text {
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 700;
  }
  
  .marquee-circle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}