@import url("variables.css");
@import url("reset.css");
@import url("components.css");
@import url("navbar.css");
@import url("hero.css");
@import url("about.css");
@import url("process.css");
@import url("services.css");
@import url("portfolio.css");
@import url("sections.css");
@import url("animations.css");
@import url("responsive.css");
@import url("ecosystem.css");
@import url("resources.css");
@import url("footer.css");
@import url("why-choose-us.css");
@import url("visual-effects.css");
@import url("contact.css");

/* ========================================
   ZAMASHO AI FLOATING LAUNCHER
======================================== */

.zs-ai-toggle {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 15px 22px;
  border: 1px solid rgba(217, 182, 90, 0.7);
  border-radius: 50px;
  background: linear-gradient(135deg, #d9b65a, #a88421);
  color: #151515;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(200, 162, 58, 0.2);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.zs-ai-toggle:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(200, 162, 58, 0.35);
}

.zs-ai-toggle i {
  font-size: 1.35rem;
}

.zs-ai-toggle:focus-visible {
  outline: 3px solid #f8f9fa;
  outline-offset: 4px;
}

@media (max-width: 650px) {
  .zs-ai-toggle {
    right: 16px;
    bottom: 18px;
    min-height: 56px;
    padding: 0 18px;
    font-size: 0.85rem;
  }
}

/* =====================================
   ZAMASHO AI FLOATING CHAT PANEL
===================================== */

.zs-ai-chat {
  position: fixed;
  left: 28px;
  bottom: 28px;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100dvh - 120px));
  z-index: 9997;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 90, 0.45);
  border-radius: 20px;
  background: #151515;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.5);
}

.zs-ai-chat[hidden] {
  display: none !important;
}

/* Existing assistant fills the floating panel */
.zs-ai-chat .portfolio-ai {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.zs-ai-chat .ai-header {
  flex-shrink: 0;
}

.zs-ai-chat .chat-window {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.zs-ai-chat .ai-actions {
  flex-shrink: 0;
  max-height: 40%;
  overflow-y: auto;
}

@media (max-width: 650px) {
  .zs-ai-chat {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    height: min(560px, calc(100dvh - 112px));
    border-radius: 18px;
  }
}

.zs-ai-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid rgba(217, 182, 90, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #d9b65a;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.zs-ai-close:hover {
  background: rgba(217, 182, 90, 0.12);
}

/* ZAMASHO AI — POSITION AND WIDTH FIX */

.zs-ai-chat {
  left: auto;
  right: 28px;
  width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
}

.zs-ai-chat .portfolio-ai {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

/* Make the chat content fill the panel width */
.zs-ai-chat .ai-header,
.zs-ai-chat .chat-window,
.zs-ai-chat .ai-actions {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Prevent message content from creating overflow */
.zs-ai-chat #chat-messages {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.zs-ai-chat .ai-message,
.zs-ai-chat .user-message {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* Keep the launcher aligned on the right */
.zs-ai-toggle {
  right: 28px;
  left: auto;
}

@media (max-width: 650px) {
  .zs-ai-chat {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .zs-ai-toggle {
    right: 16px;
    left: auto;
  }
}
