/* styles.css */

/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap");
/*===== VARIABLES CSS =====*/
:root {
  --header-height: 3rem;
  --font-semi: 600;
  /*===== Colores =====*/
  /*Purple 260 - Red 355 - Blue 224 - Pink 340*/
  /* HSL color mode */
  --hue-color: 224;
  --first-color: hsl(var(--hue-color), 89%, 60%);
  --second-color: hsl(var(--hue-color), 56%, 12%);
  /*===== Fuente y tipografia =====*/
  --body-font: "Poppins", sans-serif;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: 0.938rem;
  --smaller-font-size: 0.75rem;
  /*===== Margenes =====*/
  --mb-2: 1rem;
  --mb-4: 2rem;
  --mb-5: 2.5rem;
  --mb-6: 3rem;
  /*===== z index =====*/
  --z-back: -10;
  --z-fixed: 100;
}
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --smaller-font-size: 0.875rem;
  }
}

/*===== BASE =====*/

*,
::before,
::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--second-color);
}

h1,
h2,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/*===== CLASS CSS ===== */
.section-title {
  position: relative;
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-top: var(--mb-2);
  margin-bottom: var(--mb-4);
  text-align: center;
}
.section-title::after {
  position: absolute;
  content: "";
  width: 64px;
  height: 0.18rem;
  left: 0;
  right: 0;
  margin: auto;
  top: 2rem;
  background-color: var(--first-color);
}

.section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/*===== LAYOUT =====*/
.bd-grid {
  max-width: 1024px;
  display: grid;
  margin-left: var(--mb-2);
  margin-right: var(--mb-2);
}

.l-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(146, 161, 176, 0.15);
}

/*===== NAV =====*/
.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semi);
}
@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 80%;
    height: 100%;
    padding: 2rem;
    background-color: var(--second-color);
    transition: 0.5s;
  }
}
.nav__item {
  margin-bottom: var(--mb-4);
}
.nav__link {
  position: relative;
  color: #fff;
}
.nav__link:hover {
  position: relative;
}
.nav__link:hover::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}
.nav__logo {
  color: var(--second-color);
}
.nav__toggle {
  color: var(--second-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/*Active menu*/
.active-link::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0.18rem;
  left: 0;
  top: 2rem;
  background-color: var(--first-color);
}

/*=== Show menu ===*/
.show {
  right: 0;
}

/*===== HOME =====*/
.home {
  position: relative;
  row-gap: 5rem;
  padding: 4rem 0 5rem;
}
.home__data {
  align-self: center;
}
.home__title {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-5);
}
.home__title-color {
  color: var(--first-color);
}
.home__social {
  display: flex;
  flex-direction: column;
  margin-top: -1rem; /* Adjust this value as needed */
}
.home__social-icon {
  width: max-content;
  margin-bottom: var(--mb-2);
  font-size: 1.5rem;
  color: var(--second-color);
}
.home__social-icon:hover {
  color: var(--first-color);
}
.home__img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 260px;
}
.home__blob {
  fill: var(--first-color);
}
.home__blob-img {
  width: 360px;
}

/*BUTTONS*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: #fff;
  padding: 0.75rem 2.5rem;
  font-weight: var(--font-semi);
  border-radius: 0.5rem;
  transition: 0.3s;
}
.button:hover {
  box-shadow: 0px 10px 36px rgba(0, 0, 0, 0.15);
}

/* ===== ABOUT =====*/
.about__container {
  row-gap: 2rem;
  text-align: center;
}
.about__subtitle {
  margin-bottom: var(--mb-2);
}
.about__text {
  font-size: 14px;
  margin-bottom: 1.5rem; /* Adjust as needed for spacing */
  line-height: 1.6; /* Increases line height for better readability */
}
.about__img {
  justify-self: center;
}
.about__img img {
  width: 200px;
  border-radius: 0.5rem;
}

/* ===== SKILLS =====*/
.skills__container {
  row-gap: 2rem;
  text-align: center;
}
.skills__subtitle {
  margin-bottom: var(--mb-2);
}
.skills__text {
  margin-bottom: var(--mb-4);
}
.skills__data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  font-weight: var(--font-semi);
  padding: 0.5rem 1rem;
  margin-bottom: var(--mb-4);
  border-radius: 0.5rem;
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
}
.skills__icon {
  font-size: 2rem;
  margin-right: var(--mb-2);
  color: var(--first-color);
}
.skills__names {
  display: flex;
  align-items: center;
}
.skills__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--first-color);
  height: 0.25rem;
  border-radius: 0.5rem;
  z-index: var(--z-back);
}
.skills__html {
  width: 95%;
}
.skills__css {
  width: 85%;
}
.skills__powerbi {
  width: 90%;
}
.skills__excel {
  width: 85%;
}

.skills__ux {
  width: 85%;
}
.skills__img {
  border-radius: 0.5rem;
}

.skills__genai {
  width: 85%;
}

.skills__databricks {
  width: 85%;
}

.skills__sqlserver {
  width: 85%;
}

.skills__powerbi {
  width: 80%;
}

/* ===== WORK =====*/
.work__container {
  row-gap: 2rem;
}
.work__img {
  box-shadow: 0px 4px 25px rgba(14, 36, 49, 0.15);
  border-radius: 0.5rem;
  overflow: hidden;
}
.work__img img {
  transition: 1s;
}
.work__img img:hover {
  transform: scale(1.1);
}

/* ===== FOOTER =====*/
.footer {
  background-color: var(--second-color);
  color: grey;
  text-align: center;
  font-size: 14px;
  font-weight: var(--font-semi);
  padding: 2rem 0;
}

/* ===== MEDIA QUERIES=====*/
@media screen and (max-width: 320px) {
  .home {
    row-gap: 2rem;
  }
  .home__img {
    width: 200px;
  }
}

@media screen and (min-width: 576px) {
  .home {
    padding: 4rem 0 2rem;
  }
  .home__social {
    padding-top: 0;
    padding-bottom: 2.5rem;
    flex-direction: row;
    align-self: flex-end;
  }
  .home__social-icon {
    margin-bottom: 0;
    margin-right: var(--mb-4);
  }
  .home__img {
    width: 300px;
    bottom: 25%;
  }
  .about__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    text-align: initial;
  }
  .skills__container {
    grid-template-columns: 0.7fr;
    justify-content: center;
    column-gap: 1rem;
  }
  .work__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    padding-top: 2rem;
  }
}

@media screen and (min-width: 768px) {
  body {
    margin: 0;
  }
  .section {
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  .section-title {
    margin-bottom: var(--mb-6);
  }
  .section-title::after {
    width: 80px;
    top: 3rem;
  }
  .contact-title::after {
    /*height: 4px; /* Adjust thickness of the underline for Contact header */
    width: 100px;
    text-align: center;
    /* background-color: #ff6600; /* Adjust color of the underline for Contact header */
  }
  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__list {
    display: flex;
    padding-top: 0;
  }
  .nav__item {
    margin-left: var(--mb-6);
    margin-bottom: 0;
  }
  .nav__toggle {
    display: none;
  }
  .nav__link {
    color: var(--second-color);
  }
  .home {
    padding: 8rem 0 2rem;
  }
  .home__img {
    width: 400px;
    bottom: 10%;
  }
  .about__container {
    padding-top: 2rem;
  }
  .about__img img {
    width: 300px;
  }
  .skills__container {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
    align-items: center;
    text-align: initial;
  }
  .work__container {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2rem;
  }
}

@media screen and (min-width: 992px) {
  .bd-grid {
    margin-left: auto;
    margin-right: auto;
  }
  .home {
    padding: 10rem 0 2rem;
  }
  .home__img {
    width: 450px;
  }
}

/* ===== CONTACT START =====*/
/* ===== personal details  ==== */

/* Base styles for the .Personal_Details section */
.Personal_Details {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0px;
  background-color: #333;
  color: #fff;
  padding: 30px;
}

/* Flex container for contact items */
.Personal_Details .contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 1200px; /* Max width to prevent items from becoming too large */
  margin: 0 auto; /* Center the container */
}

/* Style for individual contact items */
.Personal_Details .contact-item {
  text-align: center;
  background-color: #444;
  padding: 20px;
  border-radius: 8px;
  margin: 5px;
  flex: 1 1 200px; /* Flex-grow, flex-shrink, flex-basis for responsive sizing */
  max-width: 300px; /* Max width to prevent items from becoming too large */
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* Hover effects */
.Personal_Details .contact-item:hover {
  background-color: #555;
  transform: scale(1.05);
}

/* Style for links */
.Personal_Details .contact-item a {
  text-decoration: none;
  color: #00bcd4;
  transition: color 0.3s;
}

.Personal_Details .contact-item a:hover {
  color: lightblue;
}

/* List view on small screens */
@media screen and (max-width: 576px) {
  .Personal_Details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .Personal_Details div {
    width: 90%;
    margin-bottom: 10px; /* Add spacing between items */
  }
}

/* Grid view on medium screens and larger */
@media screen and (min-width: 576px) {
  .Personal_Details .contact-container {
    flex-direction: row;
  }

  .Personal_Details .contact-item {
    flex: 1 1 200px; /* Adjust as needed */
    max-width: 300px; /* Max width for larger screens */
  }
}

@media screen and (min-width: 768px) {
  .Personal_Details .contact-container {
    flex-direction: row;
  }

  .Personal_Details .contact-item {
    flex: 1 1 200px; /* Adjust as needed */
    max-width: 300px; /* Max width for larger screens */
  }
}

#contact {
  min-height: 100vh; /* Adjust as needed to make sure it's scrollable */
  padding-bottom: 100px; /* Add some extra padding if needed */
}
.small-text {
  font-size: 28px; /* Slightly smaller than original size */
  font-weight: bold; /* Ensures text is bold */
  /* line-height: 1.2;    Adjust line height for better readability */
  /*letter-spacing: 0.5px;  Adds slight spacing between letters */
  color: #333; /* Keeps the text color the same */
}

/* ----- My chat Bot --------*/

/* ==== Akira Chatbot Styles ==== */

/* -- CONTAINER: Fixed bottom-right floating positioning -- */
#akira-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999; /* Keeps it above most elements */
  font-family: "Segoe UI", sans-serif;
}

/* CHAT BOT logo TOOL TIP */
.akira-launcher-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}
.akira-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.akira-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 16px;
  border-width: 6px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}


.akira-launcher-wrapper:hover .akira-tooltip {
  opacity: 1;
  transform: translateY(0);
}
/* ------- */

/* -- CHATBOX MAIN WRAPPER -- */
#akira-chatbox {
  width: 90vw; /* responsive width */
  max-width: 560px; /* limit on large screens */
  height: 80vh; /* relative to screen height */
  max-height: 700px; /* optional */
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 12px;
}

/* -- HEADER BAR -- */
/* -- HEADER BAR with aligned elements -- */
/* -- Align the header using Flexbox -- */
/* -- HEADER BAR -- */
* {
  box-sizing: border-box;
}

/* -- HEADER BAR -- */
#akira-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0611dabd;
  color: white;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
/* Left Title */
.ak-header-left {
  flex-shrink: 0;
}

/* Right Controls */
/* Right: Dropdown, Toggle, Menu - All aligned horizontally */
.ak-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 10;
}

.ak-header-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  z-index: 2;
  flex-shrink: 0;
}
.ak-header-card {
  flex-wrap: nowrap;
}

/* -- Controls container (intent dropdown, dark toggle, menu) -- */
.ak-header-controls {
  display: flex;
  align-items: center;
  gap: 16px; /* Adjust gap to control spacing */
  position: relative;
  z-index: 1;
}
.ak-header-item {
  display: flex;
  align-items: center;
  padding: 2px 4px;
}

/* (Optional) Responsive improvement */
@media (max-width: 480px) {
  .ak-header-controls {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }
}

/* -- Intent Dropdown -- */
#akira-intent {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: none;
  background: white;
  color: #0611da;
  font-weight: 500;
  cursor: pointer;
}
/* -- Menu button (⋮) -- */
.ak-menu {
  font-size: 20px;
  cursor: pointer;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* -- Dropdown menu box -- */
.ak-dropdown {
  position: absolute;
  top: 24px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 120px;
  z-index: 999;
  font-size: 12px;
}

/* -- SCROLLABLE MESSAGE AREA -- */
/* -- SCROLLABLE MESSAGE AREA -- */
#akira-messages {
  flex: 1;
  padding: 6px;
  overflow-y: auto;
  font-size: 11px;
  background-color: #ffffff;
  max-height: 550px; /* ✅ Add this line or adjust as needed */
  max-width: 600;
}

#akira-messages::-webkit-scrollbar {
  width: 6px;
}

#akira-messages::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}


/* ==== INPUT SECTION ==== */

/* -- Horizontal layout: input + send button -- */
#akira-input {
  display: flex;
  padding: 10px;
  background-color: #fafafa;
  gap: 10px;
}

/* -- Input Field -- */
#akira-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* -- Container for input & disclaimer -- */
#akira-input-section {
  border-top: 1px solid #ddd;
  padding: 6px 8px;
  background-color: #f9f9f9;
}

/* -- Small gray disclaimer message -- */
#akira-disclaimer {
  font-size: 9px;
  text-align: center;
  color: #1b0000;
  max-width: 95%;
  margin: auto;
  line-height: 1;
}

/* -- SEND BUTTON -- */
#akira-send-btn {
  padding: 0 18px;
  font-size: 18px;
  background-color: #0611da;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#akira-send-btn:hover {
  background-color: #0510c2;
}

/* ==== MESSAGE STYLES ==== */

.ak-bubble ul {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  list-style-type: disc; /* ✅ This makes bullets appear */
}
.ak-bubble ol {
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
  list-style-type: decimal; /* ✅ For numbered lists */
}


.ak-bubble li {
  margin-bottom: 6px;
  line-height: 1.5;
}



/* -- Shared wrapper for each message -- */
.ak-msg {
  font-family: 'Calibri', sans-serif;
  display: flex;
  margin: 10px 0;
  align-items: flex-start;
}

/* -- USER message aligns right -- */
.ak-msg.user {
  justify-content: flex-end;
}

/* -- BOT message aligns left -- */
.ak-msg.bot {
  justify-content: flex-start;
}

/* -- Avatar image styling -- */
.ak-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10%; /* Slightly rounded (not circular) */
  margin: 0 6px;
  flex-shrink: 0;
}

/* user avtart */
.ak-msg.user .ak-avatar {
  width: 25px;
  height: 25px;
  border-radius: 50%;
}
/* bot size inside window */
/* .ak-msg.bot .ak-avatar {
  width: 30px;  
  height: 30px;
} */


/* -- Bubble base -- */
.ak-bubble {
  background: #ffffff;
  border-radius: 16px;
  padding: 6px 8px;
  font-size: 13px;
  max-width: 85%;
  line-height: 1.5;
}

/* -- User bubble customization -- */
.ak-msg.user .ak-bubble {
  background: #d9e7ff;
  text-align: right;
  border-radius: 10px 10px 2px 10px; /* Customize shape */
}

/* -- Slight left shift for bot's bubble -- */
.ak-msg.bot .ak-bubble {
  margin-left: -6px;
}

/* ==== RESPONSE CONTENT SECTIONS ==== */

/* -- Wrapper styles for references/feedback/etc. -- */
.ak-answer,
.ak-feedback,
.ak-links,
.follow-up-section {
  background: #f1f1f1;
  border-radius: 12px;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 13px;
}


/* -- Feedback thumbs -- */
.ak-feedback button {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  margin-right: 8px;
}
.ak-feedback-status {
  font-size: 12px;
  margin-top: 4px;
  color: #555;
}


/* -- Lists for links or suggested questions -- */
.ak-links ul,
.follow-up-section ul {
  margin-left: 16px;
  padding: 0;
}

.ak-links ul li,
.follow-up-section ul li {
  color: #004c99;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 4px;
}

/* -- Retry button (bottom right of reply) -- */
.ak-retry {
  background: #e8eaf6;
  color: #333;
  font-size: 13px;
  padding: 3px 10px;
  margin-left: 10px;
  border: 1px solid #c5cae9;
  border-radius: 5px;
  cursor: pointer;
}

.ak-retry:hover {
  background: #d1d9ff;
}

/* -- Meta info: time + confidence -- */
.ak-meta {
  font-size: 11px;
  color: #555;
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.ak-meta .confidence {
  font-weight: 500;
}

/* -- Confidence level coloring -- */
.confidence.high {
  color: green;
}
.confidence.mid {
  color: #555;
}
.confidence.low {
  color: red;
}

/* -- Retry as text link -- */
.retry-link {
  color: #1a73e8;
  cursor: pointer;
  font-weight: 500;
}
.retry-link:hover {
  color: #004c99;
  text-decoration: none;
}

/* ==== VISIBILITY TOGGLE CLASSES ==== */

/* -- Hide the entire chatbox (JS adds this) -- */
.akira-hidden {
  display: none !important;
}

/* ==== HEADER DROPDOWN MENU ==== */

/* -- Top-right menu icon (⋮) -- */
/* Three-dot icon */
.ak-menu {
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 0 4px;
  user-select: none;
  z-index: 3;
}

/* -- Dropdown content box -- */
/* Dropdown menu fix */
.ak-dropdown {
  position: absolute;
  top: 26px;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  min-width: 120px;
  font-size: 12px;
  z-index: 10;
}

.ak-header-item.ak-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
/* -- Each item in dropdown -- */
.ak-dropdown .ak-menu-item {
  padding: 4px 10px;
  cursor: pointer;
  color: #333;
}
.ak-dropdown .ak-menu-item:hover {
  background: #f0f0f0;
}

/* ===== Smooth Chat Close Animation ===== */
/* ===== Diagonal Shrink & Fade Animation ===== */
@keyframes slideDiagonalOut {
  0% {
    opacity: 1;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) translate(100px, 100px); /* adjust to move diagonally down-right */
  }
}

.slide-diagonal-out {
  animation: slideDiagonalOut 0.4s ease forwards;
}

/* ===== Chatbot Open Animation (Bounce Zoom) ===== */
@keyframes bounceBack {
  0% {
    transform: scale(0.9) translateY(50px);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) translateY(-10px);
    opacity: 1;
  }
  80% {
    transform: scale(0.98) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

.bounce-back {
  animation: bounceBack 0.5s ease;
}

/* -- Utility to hide dropdown via JS -- */
.ak-hidden {
  display: none;
}

/* ==== Typing Bubble Animation ==== */
.typing-bubbles {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px; /* Space between dots */
  margin-left: 8px; /* Space from phrase */
}

.typing-bubbles span {
  width: 6px; /* Bubble size */
  height: 6px;
  background-color: #050000d0; /* Default bubble color */
  border-radius: 50%; /* Make it circular */
  display: inline-block;
  opacity: 0.4;
  animation: bubblePulse 1.2s infinite ease-in-out;
}

.typing-bubbles span:nth-child(1) {
  animation-delay: 0s;
}
.typing-bubbles span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-bubbles span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bubblePulse {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.4;
    background-color: #10000096; /* Starting color (grayish) */
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
    background-color: #ffffff; /* Transition to white */
  }
}

/* ==== Quick Question List on Landing ==== */

/* ==== Vertical Quick Start Questions ==== */
.ak-quick-box {
  background: #e6efff;
  color: #003366;
  padding: 9px 12px;
  border-radius: 10px 10px 0px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); /* 👈 subtle lift */
}
.ak-quick-box {
  font-weight: 500;
}
.ak-quick-box:hover {
  background: #ccdfff; /* slightly softer or match bot theme */
}
.ak-quick-list-vertical {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  margin-left: 20px;
  margin-right: 20px;
  padding-left: 12px; /* 👈 Indent from left */
  padding-bottom: 6px; /* 👈 Slight gap from input box */
}

/* ==== Typing animation bubble ==== */
.ak-greeting {
  background: #ccdfff;
  padding: 8px 10px;
  font-weight: 500;
  /* font-weight: bold;  */
  border-radius: 10px 10px 0px 10px;
  display: inline-block;
  font-size: 14px;
  /* font-family: "Segoe UI", sans-serif; */
  line-height: 1;
  max-width: 90%;
  word-wrap: break-word;
}

.fade-slide-in {
  animation: fadeSlideIn 0.5s ease-out both;
}

@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Slight delay before questions appear */
.ak-quick-list-vertical {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ak-show-quick {
  opacity: 1;
}

/* ----- */
@media (max-width: 480px) {
  /* Header adjustments */
  .ak-header-right {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  #akira-intent {
    font-size: 11px;
  }

  .ak-menu {
    font-size: 18px;
  }

  /* Chatbox adjustments */
  #akira-chatbox {
    width: 92vw;
    height: 80vh;
    max-height: 600px;
    border-radius: 10px;
  }

  #akira-header {
    font-size: 14px;
    padding: 10px;
  }

  .ak-bubble {
    font-size: 12px;
  }

  #akira-input input {
    font-size: 12px;
    padding: 8px 12px;
  }

  #akira-send-btn {
    padding: 0 14px;
    font-size: 16px;
  }

  /* ✅ Markdown bold/italic fix for mobile */
  .ak-bubble strong,
  .ak-answer strong,
  .ak-bubble b,
  .ak-answer b {
    font-family: "Segoe UI", Arial, sans-serif !important; /* fallback for phones */
    font-weight: 700 !important;  /* enforce bold */
    color: #000 !important;       /* darker for contrast */
    letter-spacing: 0.2px;        /* improves clarity */
  }

  .ak-bubble em,
  .ak-answer em,
  .ak-bubble i,
  .ak-answer i {
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-style: italic !important;
    color: #333 !important;
  }
}

/* --------- */


.ak-switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.ak-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.ak-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 34px;
}

.ak-slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.ak-switch input:checked + .ak-slider {
  background-color: #4a4a4a;
}

.ak-switch input:checked + .ak-slider:before {
  transform: translateX(16px);
}


/* CHAT BOT logo TOOL TIP */
.akira-launcher-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
}
.akira-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.akira-launcher-wrapper:hover .akira-tooltip {
  opacity: 1;
  transform: translateY(0);
}
/* ------- */

/* === ANIMATED CHATBOT LAUNCHER === */
.akira-launcher-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;

  opacity: 0;
  animation: akiraModernEntrance 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes akiraModernEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* === CHATBOT TOGGLE BUTTON === */
/* === CHATBOT TOGGLE BUTTON === */
#akira-toggle {
  background-color: transparent;
  border-radius: 50%;
  border: 2px solid red; /* Red ring */
  padding: 0;            /* No extra white space */
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* === Image: Fill properly without distortion === */
#akira-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* === Hover Effect === */
#akira-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.4); /* Reddish glow */
}




/* === block input === */
.red-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid red;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ==== Markdown Rendering Fix (Desktop + Mobile) ==== */
.ak-answer p {
  margin: 0.4em 0;
  line-height: 1.5;
}

.ak-answer strong,
.ak-bubble strong {
  font-weight: bold;
  color: #222; /* darker for visibility */
}

.ak-answer em,
.ak-bubble em {
  font-style: italic;
  color: #444;
}

.ak-answer ul,
.ak-answer ol,
.ak-bubble ul,
.ak-bubble ol {
  margin: 0.5em 0 0.5em 1.2em;
  padding: 0;
}

.ak-answer li,
.ak-bubble li {
  margin: 0.2em 0;
  line-height: 1.4;
}

.ak-answer code,
.ak-bubble code {
  font-family: monospace;
  background: #f5f5f5;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 90%;
}

/* Ensure text and references wrap neatly inside bubbles */
.ak-answer,
.ak-links,
.follow-up-section {
  word-wrap: break-word;   /* Old fallback */
  overflow-wrap: break-word; /* Modern */
  white-space: normal;     /* Allow wrapping */
  max-width: 100%;         /* Prevent overflow */
}

/* Lists inside bubbles */
.ak-answer ul, .ak-answer ol {
  padding-left: 18px;
  margin: 6px 0;
}

/* Links inside bot replies */
.ak-answer a,
.ak-links a {
  color: #1a73e8; 
  text-decoration: underline;
  word-break: break-word;
}
