/* ============================================
   Home Banner Enhancement
   Clean White + Indigo Theme
============================================ */

/* Banner Background Enhancement */
.home_banner_area {
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.home_banner_area::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.home_banner_area .banner_inner {
  position: relative;
  z-index: 1;
}

/* Banner Content Text Enhancement */
.home_banner_area .banner_content {
  margin-top: 20px !important;
  /* Reduced from 80px to 20px */
  margin-left: -50px;
  /* Moved left as requested */
}

.home_banner_area .banner_content h3 {
  color: #4338ca;
  font-weight: 600;
}

.home_banner_area .banner_content h3:after {
  background: linear-gradient(90deg, #4f46e5 0%, transparent 100%);
}

.home_banner_area .banner_content h1 {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3rem;
  /* Slightly smaller as requested */
}

.home_banner_area .banner_content h5 {
  color: #6366f1;
}

/* Profile Container Enhancement */
.home_right_img {
  position: relative;
}

.home_right_img::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + 30px), -50%);
  /* Shifted to match profile container - reduced from 60px to prevent overflow */
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease;
}

/* Animated Background Shapes */
@keyframes floatShape {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.home_banner_area::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: floatShape 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

/* Button Enhancements */
.home_banner_area .primary_btn {
  position: relative;
  overflow: hidden;
}

.home_banner_area .primary_btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.home_banner_area .primary_btn:hover::before {
  width: 300px;
  height: 300px;
}

/* ============================================
   Hero Chat Sequence Positioning
   ============================================ */

/* Shift the profile image and circles to the right */
.profile-image-container.shift-content-right {
  transform: translateX(30px);
  /* Push right - reduced from 60px to prevent overflow on mid-size screens */
  transition: transform 0.3s ease;
}

/* Chat Container Positioning */
.hero-chat-sequence {
  position: absolute;
  top: 40%;
  /* Moved up slightly as requested */
  left: -230px;
  /* Position slightly right of image center, then shifted right by transform */
  transform: translate(-10%, -50%);
  /* Moved significantly right to overlap with the image */
  width: 380px;
  /* Slightly wider */
  z-index: 110;
  /* Above orbiting icons (z-35) and all other layers */
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: flex-end;
  /* Align to the right (towards image) */
  pointer-events: none;
  /* Allow clicks to pass through empty space */
}

.hero-chat-sequence>* {
  pointer-events: auto;
  /* Re-enable pointer events on messages */
}

/* Specific styling for Hero Chat to look like "Me Speaking" */
.hero-chat-sequence .chat-message {
  flex-direction: row-reverse;
  /* Icon on the right */
  align-self: flex-end;
  width: 100%;
  /* Ensure full width for alignment */
  justify-content: flex-start;
  /* Because row-reverse, start is right */
}

/* Fix tail for "Me Speaking" (Right side) */
.hero-chat-sequence .chat-msg-1 .chat-bubble::after {
  left: auto;
  right: -8px;
  border-left: none;
  border-right: 1px solid rgba(102, 126, 234, 0.15);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 8px;
  transform: scaleX(-1);
  /* Flip horizontally to point right */
}

.hero-chat-sequence .chat-sender-wrapper {
  margin-right: 0;
  margin-left: 12px;
}

.hero-chat-sequence .chat-message-content {
  align-items: flex-end;
  /* Align text bubbles to right */
}

.hero-chat-sequence .chat-bubble {
  border-radius: 18px 18px 4px 18px;
  /* Point to bottom-right */
  background: #ffffff;
  /* Fully opaque */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  /* Stronger shadow */
  border: 1px solid rgba(0, 0, 0, 0.05);
  /* Subtle border for definition */
}

.hero-chat-sequence .chat-bubble p {
  color: #1a1a1a;
  /* Darker text for better readability */
  font-weight: 500;
  margin-bottom: 0;
}

.hero-chat-sequence .chat-list {
  direction: ltr;
  /* Ensure list content is LTR */
  text-align: left;
  /* Keep list text left aligned for readability */
}

.hero-chat-sequence .chat-reply-suggestions {
  margin-left: 0;
  margin-right: 44px;
  /* Align with text */
  justify-content: flex-end;
}

/* Responsive Enhancements */
@media (max-width: 1200px) {
  .home_banner_area .banner_content {
    margin-left: -20px;
  }

  /* Reset shifts on medium screens to prevent right overflow */
  .home_right_img::before {
    transform: translate(-50%, -50%);
  }

  .profile-image-container.shift-content-right {
    transform: translateX(0);
  }

  .hero-chat-sequence {
    width: 320px;
    left: -150px;
    transform: translate(-20%, -50%);
  }
}

@media (max-width: 991px) {
  .home_banner_area .banner_content {
    margin-top: 20px !important;
    /* Reduced for tablet */
    margin-left: 0;
    /* Reset left margin on smaller screens */
  }

  .home_banner_area::before {
    right: -50%;
    width: 100%;
  }

  /* Reset background alignment for small screens */
  .home_right_img::before {
    transform: translate(-50%, -50%);
  }

  .home_banner_area::after {
    width: 60px;
    height: 60px;
  }

  /* Chat Stacked on Mobile/Tablet */
  .profile-image-container.shift-content-right {
    transform: none;
    /* Reset shift */
    margin-top: 60px;
    /* More space for stacked layout */
  }

  .hero-chat-sequence {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 450px;
    margin: 0 auto 40px auto;
    /* Center and add margin */
    align-items: center;
  }
}

@media (max-width: 768px) {
  .home_banner_area .banner_content {
    margin-top: -50px !important;
    /* Reduced for mobile */
  }

  .home_banner_area {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  }

  .home_banner_area::before,
  .home_banner_area::after {
    display: none;
  }
}

/* Enhanced Sender Icon (Pop-out Effect) */
.hero-chat-sequence .chat-sender-icon,
.portfolio-image-chat-sequence .chat-sender-icon {
  width: 48px;
  /* Bigger (was 28px) */
  height: 48px;
  padding: 2px;
  /* Less padding to show more image */
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* Pop out shadow */
  border: 3px solid #ffffff;
  /* White border */
  object-fit: cover;
  transform: scale(1.05);
  /* Slight pop out scale */
  z-index: 2;
  /* Ensure it sits on top */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-chat-sequence .chat-sender-icon:hover,
.portfolio-image-chat-sequence .chat-sender-icon:hover {
  transform: scale(1.15);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Chat List Icon (3D Luxury Icons) */
.chat-list .chat-list-icon {
  width: 22px;
  /* Smaller as requested */
  height: 22px;
  flex: 0 0 22px;
  /* Prevent flex shrinking */
  object-fit: contain;
  /* Contain to show full 3D shape */
  margin-right: 0;
  /* Use flex gap instead */
  vertical-align: middle;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
  /* Adjusted shadow for smaller size */
  border: none;
  border-radius: 0;
  transform: translateZ(0);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-list .chat-list-icon:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

/* Adjust online status position for larger icon */
.hero-chat-sequence .online-status,
.portfolio-image-chat-sequence .online-status {
  width: 12px;
  height: 12px;
  bottom: 2px;
  right: 2px;
  border: 2px solid #fff;
}