body {
  background-color: var(--bg-color-secondary);
  color: var(--text-primary);
  font-family: "Jost", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
}

/* -- Header -- */
header {
  position: fixed;
  display: flex;
  align-items: center;
  width: 100%;
  z-index: 99;
}
.logo{
  animation: rotateY 3s linear infinite;
}
.logo a img{
  width: 46px;
  height: 50px;
}
@keyframes rotateY {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
    
  }
}
nav {
  background-color: var(--bg-color-primary);
  box-shadow: var(--box-shadow);
  font-family: "Jost", sans-serif;
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 80px;
  width: 100%;
  height: 70px;
}

nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  right: -680px;
}

nav ul li {
  list-style: none;
  font-size: 1rem;
  letter-spacing: 1.5px;
  margin: 0 20px;
}

nav a {
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease-in;
}

nav a:hover {
  color: var(--cta-primary);
}

.resume-btn,
.back-btn {
  background-color: var(--bg-color-primary);
  border: 1px solid var(--highlight);
  border-radius: 10px;
  color: var(--cta-primary);
  cursor: pointer;
  outline: none;
  font-weight: bold;
  padding: 10px 20px;
  transition: all 0.3s ease-in;
}

.resume-btn:hover,
.back-btn:hover {
  border: none;
  background-color: var(--cta-primary);
  color: var(--color-white);
}

#resume {
  color: inherit;
}

/* -- Main -- */
main {
  background-color: var(--bg-color-secondary);
 
  background-size: 55px 55px;
  height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  
}

.hero {
  display: flex;
  align-items: center;
  padding: 0px 0px 0px 80px; 
}




.left {
  color: var(--text-secondary);
}

.left span {
  color: var(--text-secondary);
  font-family: "Roboto Mono", monospace;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.left h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.left p {
  font-family: "Roboto Mono", monospace;
  margin-bottom: 14px;
  line-height: 1.5;
  width: 60%;
}

.left a {
  color: var(--cta-primary);
  font-family: "Roboto Mono", monospace;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.left a:hover {
  color: var(--highlight);
}

.left a:hover i {
  padding-left: 5px;
}

/* -- About Me -- */
.about {
  padding: 60px 80px;
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.photo {
  width: 260px;
}

.photo-wrapper {
  position: relative;
}

.photo-wrapper::after {
  position: absolute;
  border: 4px solid var(--highlight);
  content: "";
  transform: translate(-94%, 4%);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.background {
  padding-left: 100px;
}

.background h2,
.background h4 {
  color: var(--text-secondary);
}

.background p {
  position: relative;
  animation: slide-up 3s ease-in 1s forwards;
}

@keyframes slide-up {
  from {
    bottom: -80px;
  }
  to {
    bottom: 0px;
  }
}

.title {
  font-family: "Roboto Mono", monospace;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.subtitle {
  color: var(--text-secondary);
}

.about p {
  color: var(--text-secondary);
  font-family: "Roboto Mono", monospace;
  line-height: 1.3;
  margin: 10px 0;
}
/* Skills Section */
.technologies {
  text-align: center;
  padding: 50px 20px;
}

.technologies h4 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--cta-primary);
}

.skills-section {
  margin-bottom: 40px;
}

.skills-section h5 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--cta-primary);
  text-align: left;
  border-bottom: 2px solid var(--cta-primary);
  display: inline-block;
  padding-bottom: 5px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
}

.skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  transition: transform 0.3s ease;
}

.skill img {
  width: 80px; /* Adjust size as needed */
  height: 80px; /* Maintain consistent size */
  object-fit: contain; /* Ensures the image fits without distortion */
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.skill p {
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-secondary);
}

.skill:hover {
  transform: scale(1.1);
}

.skill img:hover {
  transform: scale(1.2); /* Slight zoom effect on hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .skill img {
    width: 60px;
    height: 60px;
  }

  .skill p {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 768px){
  .toolslayout{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    
  }
  .technologies h4{
    font-size: 28px;
  }
  .logo a img{
    width: 40px;
    height: 46px;
  }
}
@keyframes slide-right {
  from {
    left: -800px;
  }
  to {
    left: 0px;
  }
}

.tools {
  font-family: "Roboto Mono", monospace;
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(6, 1fr);
}

.tools ul {
  list-style: none;
  padding-top: 10px;
}

.tools ul li {
  padding: 3px 40px 3px 0;
  margin-top: 2px;
  display: flex;
  flex-direction: row;
}

/* -- Projects -- */
.project {
  background-color: var(--bg-color-primary);
  color: var(--text-secondary);
  position: relative;
  padding: 60px 0;
  text-align: center;
  margin-top: 20px;
  width: 100%;
}

.filter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 20px 0;
}

.filter-btn {
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--text-secondary);
  margin: 0 8px;
  padding: 10px 14px;
  text-transform: uppercase;
  transition: all 0.3s ease-in;
}

.filter-btn.active {
  background-color: var(--cta-primary);
  color: var(--color-white);
  font-weight: bold;
}

.filter-btn:hover {
  border: 1.5px solid var(--highlight);
}

.project-container {
  margin-bottom: 20px;
  padding: 0 40px;
}

.projects {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 20px;
  animation: slide-right 1s ease-in-out;
}

.project-box:hover {
  box-shadow: inset 0 100px 1000px 60px var(--text-primary);
  border: 1.5px solid var(--highlight);
}

.project-details {
  display: flex;
  justify-content: space-between;
  opacity: 0;
  position: relative;
  transition: all 0.4s ease-in-out;
}

.project-box:hover .project-details {
  opacity: 1;
}

.project-text {
  display: flex;
  flex-direction: column;
  position: relative;
  top: 30px;
  text-align: left;
}

.project-text h3 {
  font-size: 1rem;
}

.project-text p {
  font-family: "Roboto Mono", monospace;
  font-size: 0.65rem;
  margin: 10px 0;
  line-height: 1.4;
}

.project-text .stack {
  color: var(--highlight);
  font-size: 0.6rem;
  font-weight: bold;
  text-transform: uppercase;
}

.project-link a {
  display: flex;
  padding: 5px;
  color: var(--color-white);
}

.project-link a .fab,
.project-link .fas {
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.project-link a i:hover {
  color: var(--highlight);
}

.project-box {
  background: var(--bg-color-secondary);
  border-radius: 5px;
  color: var(--color-white);
  cursor: pointer;
  padding: 1rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: all 0.3s ease-in-out;
  min-height: 250px;
  object-fit: contain;
  width: 100%;
  margin: 10px 5px 10px 0px;
}

.project-box:nth-child(1) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743947384/Screenshot_2025-04-06_191948_adsqrl.png);
  background-size: cover;
  background-repeat: no-repeat;
   object-fit: contain;
}

.project-box:nth-child(2) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743947909/Screenshot_2025-04-06_192831_grzkrs.png);
  background-size: cover;
  background-repeat: no-repeat;
  object-fit: contain;
}

.project-box:nth-child(3) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743948498/atminterface_b47g6u.jpg);
  background-size: cover;
  background-repeat: no-repeat;
   object-fit: contain;
}

.project-box:nth-child(4) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743948749/Screenshot_2025-04-06_194243_vc0sgv.png);
  background-size: cover;
  background-repeat: no-repeat;
   object-fit: contain;
}

.project-box:nth-child(5) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743949551/Screenshot_2025-04-06_195559_euxtxg.png);
  background-size: cover;
  background-repeat: no-repeat;
   object-fit: contain;
}

.project-box:nth-child(6) {
  background-image: url(https://res.cloudinary.com/diryolcmm/image/upload/v1743949776/Screenshot_2025-04-06_195947_vlgtsd.png);
  background-size: cover;
  background-repeat: no-repeat;
   object-fit: contain;
}

.project-box:nth-child(7) {
  background-image: url(../assets/images/projects/project-currency-converter.JPG);
}

.project-box:nth-child(8) {
  background-image: url(../assets/images/projects/project-Temperature-Converter.png);
}

.project-box:nth-child(9) {
  background-image: url(../assets/images/projects/project-SOON.jpg);
}

/* -- Blog -- */
.blog {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url(../assets/images/bg-image.png);
  padding: 35px 0 35px;
  overflow-x: hidden;
}

.blog-container {
  text-align: center;
}

.blog .text,
.blog .subtitle {
  color: var(--color-white);
  text-align: center;
  margin: 15px 0;
}

.blog .subtitle {
  padding: 0 30px;
}

.article-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  grid-gap: 20px;
  padding: 5px 80px 40px;
  text-align: left;
}

.thumbnail {
  display: block;
  position: relative;
  object-fit: cover;
  min-height: 80px;
  height: 250px;
  width: 100%;
}

.article {
  box-shadow: -1px 1px 3px -1px rgba(0, 0, 0, 0.75);
  background-color: var(--color-white);
  max-width: 380px;
  width: 100%;
  margin: 6px;
  overflow: hidden;
}

.article-preview {
  margin-top: 10px;
  padding: 15px;
}

.article-title {
  color: var(--text-primary);
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.article-intro {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.readmore {
  color: var(--box-shadow);
  font-size: 0.8rem;
  text-decoration: none !important;
}

.blog-btn,
.project-btn {
  background-color: var(--text-primary);
  border: 1.5px solid var(--color-white);
  color: var(--bg-color-primary);
  cursor: pointer;
  outline: none;
  text-align: center;
  height: 40px;
  width: 140px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

/* --Button hover effect-- */
.blog-btn span,
.project-btn span {
  transition: all 0.5s ease;
}

.blog-btn:hover span,
.project-btn:hover span {
  color: var(--text-primary);
}

.blog-btn::after,
.project-btn::after {
  position: absolute;
  content: "";
  left: -10%;
  width: 0;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all 0.6s cubic-bezier(0.75, 0.85, 0.165, 1.1);
}

.blog-btn:hover,
.project-btn:hover {
  border: 2px solid var(--text-primary);
  background-color: var(--color-white);
}

.blog-btn:hover::after,
.project-btn:hover::after {
  background-color: var(--color-white);
  border: 2px solid var(--text-primary);
  left: 100%;
}

/* -- Contact -- */
.contact {
  align-items: center;
  margin: 60px 80px;
}

.form-text {
  color: var(--text-secondary);
  text-align: center;
  padding-top: 30px;
}

.form-text p {
  font-family: "Roboto Mono", monospace;
  line-height: 1.5;
  padding: 5px 0 15px;
}

#contact-form {
  border: 0.5px solid var(--text-secondary);
  border-radius: 5px;
  padding: 20px 15px;
  margin: 0 auto 50px;
  max-width: 600px;
}

label {
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-family: "Roboto Mono", monospace;
}

input,
textarea {
  border: none;
  outline: none;
  border: 0.5px solid var(--text-secondary);
  border-radius: 5px;
  background-color: var(--box-color);
  color: var(--text-secondary);
  font-size: 1rem;
  padding: 10px 15px;
  margin: 10px 0 25px;
  width: 100%;
  transition: all 0.3s ease-in-out;
}

input {
  border-bottom: 2px solid var(--text-secondary);
}

textarea {
  resize: none;
  min-height: 100px;
}

input:focus,
textarea:focus {
  border: 2px solid var(--highlight);
}

.contact-btn {
  background-color: var(--cta-primary);
  border: none;
  border-radius: 5px;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 1.5px;
  padding: 12px 0;
  width: 100%;
}

.contact-btn:hover {
  background-color: var(--highlight);
}

/* -- Footer -- */
footer {
  background-color: var(--box-color);
  color: var(--text-secondary);
  font-family: "Roboto Mono", monospace;
  padding: 35px 0;
  text-align: center;
}

.footer-socials {
  margin: 25px 0;
}

.footer-socials i {
  padding: 5px;
  color: var(--text-secondary);
}

.footer-socials i {
  font-size: 20px;
  transition: all 0.3s ease-in-out;
}

.footer-socials i:hover {
  border: 1.5px solid var(--highlight);
  border-radius: 5px;
  padding: 3px;
}

.copyright {
  font-size: 0.8rem;
}

/*---professtional experience---*/
/* Professional Experience Section */
.experience {
  padding: 60px 80px;
  background-color: var(--bg-color-secondary);
  color: var(--text-primary);
}

.experience h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  text-align: center;
  color: var(--cta-primary);
}

.experience-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.experience-item {
  background-color: var(--bg-color-primary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.experience-item:hover {
  transform: scale(1.02);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
}

.experience-header span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.experience-details p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 10px 0;
}

.experience-details .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.experience-details .tags span {
  background-color: var(--cta-primary);
  color: var(--color-white);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .experience {
    padding: 40px 20px;
  }

  .experience-header h3 {
    font-size: 1rem;
  }

  .experience-header span {
    font-size: 0.8rem;
  }

  .experience-details p {
    font-size: 0.85rem;
  }
}


.project_change{
  background-color:var(--bg-color-primary);
  width: 300px;
  max-width: 600px;
  height: 440px;
 
  max-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  border-radius: 20px;
  border: 1px solid var(--highlight);
  color: var(--text-secondary);
}
.project_change:hover{
  transform: scale(1.05);
  border: 1.5px solid var(--highlight);
  box-shadow: var(--box-shadow);
  cursor: pointer;
}
.project_change img{
  height: 100px;
  width: 100px;
  border-radius: 10px;
  display: block;
}
.project_change h3{
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
}
.project_change p{
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary);
  padding: 0px 10px;
}
.project_change div{
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
}
.project_change div button{
  color: var(--text-secondary);
  background-color: var(--bg-color-primary);
  border: 1px solid var(--highlight);
  padding: 5px 10px;
 cursor: 
  pointer;
  border-radius: 5px;
  transition: all 0.3s ease-in-out;
}
.project_change p span{
  color: var(--highlight);
  font-weight: bold;
  margin-right: 4px;
}



/* -- chatbot styling  -- */
.chatbot{
  padding: 100px 20px 0px 0px ;
}
.chatbot_card_1{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.chatbot_card_1 img{
  width: 100px;
  height: 100px;

}
.chatbot_card_1 h1{
  color: white;
}




.chat-container {
  width: 900px;
  margin-top: 5rem;
  background: #0A0A1F;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  position: relative;
  margin-right: 2rem;
  transition: all 0.3s ease;
  z-index: 10001; /* Ensure it appears above blur overlay */
}

.chat-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
}



.sparkle-icon {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
  
}

.main-prompt {
  color: white;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 40px;
  text-align: center;
  
}

.suggestions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
  padding: 20px;
  gap: 12px;
  z-index: 1;
}

.suggestion-btn {
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.suggestion-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 12px;
}

.input-container {
  width: 100%;
  padding: 12px 20px;
  position: relative;
  z-index: 1;
}

.chat-input {
  width: 100%;
  padding: 14px 50px 14px 20px;
  border-radius: 100px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  outline: none;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.send-button {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 20px;
}

.send-button:hover {
  color: white;

}

@media screen and (max-width: 768px) {
  /* Styles for medium mobile screens */
  main {
    background-color: var(--bg-color-secondary);
   
    background-size: 55px 55px;
    height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    
  }
  
}

/* Chatbot Section - Responsive Design */
@media screen and (max-width: 768px) {
  .chat-container {
    width: 100%; /* Full width for smaller screens */
    margin-top: 2rem;
    padding: 10px;
    border-radius: 8px; /* Slightly smaller border radius */
    margin-right: 0;

  }

  .chat-content {
    padding: 15px; /* Reduce padding for smaller screens */
  }

  .main-prompt {
    font-size: 20px; /* Adjust font size for the prompt */
    margin-bottom: 20px;
  }

  .suggestions {
    flex-direction: column; /* Stack suggestion buttons vertically */
    gap: 8px; /* Reduce gap between buttons */
    padding: 10px;
  }

  .suggestion-btn {
    font-size: 12px; /* Smaller font size for buttons */
    padding: 10px 12px; /* Adjust padding for buttons */
  }

  .chat-input {
    font-size: 14px; /* Smaller font size for input */
    padding: 12px 40px 12px 15px; /* Adjust padding for input */
  }

  .send-button {
    right: 20px; /* Adjust position of the send button */
    font-size: 18px; /* Slightly smaller icon size */
  }
}

.msg-container{
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  transition: background-color 0.2s;
  margin: 8px 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  max-width: 80%;
  height: auto;
  overflow-wrap: break-word;
  align-self: flex-end;
}
.msg_container_response{
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  font-size: 14px;
  transition: background-color 0.2s;
  margin: 8px 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  max-width: 80%;
  height: auto;
  overflow-wrap: break-word;
  align-self: flex-start;
}

/* Loading animation styles */
.loading-container {
  background-color: rgba(255, 255, 255, 0.1) !important;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.loading-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cta-primary);
  animation: loadingDot 1.4s ease-in-out infinite both;
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

.dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes loadingDot {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Typing effect styles */
.msg_container_response.typing {
  position: relative;
  overflow: hidden;
}

.msg_container_response.typing::after {
  content: '|';
  animation: blink 1s infinite;
  font-weight: bold;
  color: var(--cta-primary);
  margin-left: 2px;
  display: inline-block;
  vertical-align: baseline;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Smooth transition for text appearance */
.msg_container_response {
  transition: all 0.3s ease-in-out;
}

.msg-main-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.chat-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 400px;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
.chat-box::-webkit-scrollbar {
  width: 8px;
}

.chat-box::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.chat-box::-webkit-scrollbar-track {
  background: transparent;
}

/* Floating Chat Icon */
.floating-chat-icon {
  display: none;
  position: fixed;
  bottom: 86px;
  right: 30px;
  z-index: 9999;
  background: #6C63FF;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  cursor: pointer;
  padding: 6px;
  transition: all 0.3s ease;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.floating-chat-icon:hover {
  background: #5548c8;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.floating-chat-icon svg {
  width: 36px;
  height: 36px;
  transition: all 0.3s ease;
}

.floating-chat-icon:hover svg {
  transform: scale(1.1);
}

/* Chat Popup Modal */
.chat-popup-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(10,10,31,0.95);
  justify-content: center;
  align-items: center;
}
.chat-popup-content {
  background: #18182f;
  border-radius: 16px;
  width: 95vw;
  max-width: 420px;
  height: 90vh;
  max-height: 600px;
  margin: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  padding: 0;
}
.close-chat-popup {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

/* Make chat-content fit nicely in popup */
.chat-popup-content .chat-content {
  padding: 32px 12px 12px 12px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Hide main chat on mobile, show floating icon */
@media screen and (max-width: 768px) {
  .chat-container {
    display: none !important;
  }
  .floating-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Chat Guide Animations */
@keyframes sparkleBounce {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(15deg);
  }
  50% {
    transform: scale(1.1) rotate(-10deg);
  }
  75% {
    transform: scale(1.15) rotate(5deg);
  }
}

@keyframes mobileChatPulse {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(1.25);
  }
  75% {
    transform: scale(1.1);
  }
}

@keyframes mobileChatGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 35px rgba(108, 99, 255, 0.8), 0 0 50px rgba(108, 99, 255, 0.4);
  }
}

@keyframes mobileChatBorder {
  0%, 100% {
    border-color: rgba(108, 99, 255, 0.8);
  }
  50% {
    border-color: rgba(108, 99, 255, 1);
  }
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Chat Hint Styles */
.chat-hint {
  cursor: pointer;
  user-select: none;
}

.chat-hint .hint-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-hint .hint-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.chat-hint .hint-text {
  line-height: 1.4;
}

.chat-hint .hint-arrow {
  font-size: 18px;
  margin-left: 8px;
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}



