/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #f9f9ff;
  color: #333;
}

/* Navbar */
.navbar {
  background: white;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #6c63ff;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #6c63ff;
}


.nav-links li a.activeLink {
  color: #6c63ff;
  font-weight: 600;
}

/* Hamburger for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}


/* Chat/Image Section */
.chatHistory {
  flex: 1;
  width: 90%;
  max-width: 800px;
  margin: 80px auto 120px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chatBubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 18px;
  display: inline-block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chatBubble.user {
  align-self: flex-end;
  background: #dcf4ff;
}

.chatBubble.ai {
  align-self: flex-start;
  background: #f4f4f4;
}

.thumbnail {
  max-width: 200px;
  border-radius: 10px;
  cursor: pointer;
}

/* Prompt Input */
form {
  position: fixed;
  bottom: 0;
  width: 100%;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#prompt {
  width: 100%;
  max-width: 800px;
  height: 44px;
  text-indent: 18px;
}

/* Modal Viewer */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.closeBtn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: white;
    padding: 15px;
    position: absolute;
    top: 60px;
    right: 40px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .services .service-cards {
    flex-wrap: wrap;
  }

  .portfolio-gallery {
    flex-wrap: wrap;
  }
}


.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.hamburger div {
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    background-color: white;
    width: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger animation (optional) */
.hamburger.open div:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open div:nth-child(2) {
  opacity: 0;
}

.hamburger.open div:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@keyframes rainbow-move {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

.rainbow-input {
  padding: 10px 15px;
  font-size: 16px;
  border: 2px solid transparent;
  border-radius: 58px;
  background-clip: padding-box;
  position: relative;
  z-index: 0;
  outline: none;

  /* Create the rainbow border using a background gradient */
  background-image: linear-gradient(white, white),
    linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  animation: rainbow-move 4s linear infinite;
  box-shadow: 0 0 10px 2px transparent;
}

/* The trick: add a pseudo-element for the animated rainbow border + shadow */
.rainbow-input::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  border-radius: 12px;
  background: linear-gradient(90deg, red, orange, yellow, green, blue, indigo, violet, red);
  background-size: 200% 100%;
  animation: rainbow-move 4s linear infinite;
  z-index: -1;
  filter: drop-shadow(0 0 8px currentColor);
}

.rateInfo {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555;
}
