@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@800&family=Dancing+Script:wght@700&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0e0e0e;
  color: #ffffff;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #0c0c0c;
  border-bottom: 1px solid #1f1f1f;
  flex-wrap: wrap;
  transition: top 0.4s ease-in-out;
}



.nav-logo {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  gap: 8px; /* Better visual gap */
  line-height: 1;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 0 4px rgba(0, 255, 255, 0.3); /* optional glow */
}


/* .nav-logo {
      font-size: 1.5em;
      font-weight: bold;
      color: #00f0ff;
    } */
.nav-links {
  display: flex;
  flex-wrap: wrap;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-links a:hover {
  color: #00f0ff;
}

/* Mobile menu active state */
.nav-links.active {
  display: flex;
  /* already defined in your responsive CSS */
}


/* Hamburger Icon */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: #00f0ff;
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #0c0c0c;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 20px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  }

  .nav-links a {
    margin: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}



main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 120px 30px 100px;
  flex-wrap: wrap;
}

.intro-section {
  max-width: 100%;
  flex: 1 1 300px;
}

.intro-section h1 {
  font-size: 3em;
  color: #00f0ff;
  animation: glow 2s ease-in-out infinite alternate;
}

.intro-section p {
  font-size: 1.2em;
  color: #aaa;
  margin: 10px auto 30px;
}

/* .chatbox {
      margin-top: 40px;
      width: 100%;
      max-width: 700px;
      position: relative;
    }
    .chatbox textarea {
      width: 100%;
      height: 80px;
      padding: 10px 50px 10px 10px;
      font-size: 1em;
      border-radius: 8px;
      border: none;
      resize: none;
      background-color: #1e1e1e;
      color: #ffffff;
    }
    .chatbox button {
      position: absolute;
      right: 10px;
      bottom: 15px;
      background-color: #1e1e1e;
      border: none;
      font-size: 1.2em;
      color: #00f0ff;
      cursor: pointer;
    }
    .chatbox button:hover {
      color: #00c2d3;
    }
    #chatResponse {
      margin-top: 20px;
      padding: 15px;
      background-color: #1e1e1e;
      border-radius: 8px;
      min-height: 50px;
    }*/
.chatbox {
  width: 100%;
  max-width: 700px;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-history {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble {
  background: #2b2b2b;
  padding: 10px 15px;
  border-radius: 8px;
  max-width: 100%;
  animation: fadeIn 0.3s ease;
}

.chat-bubble.user {
  background: #222;
  color: #fff;
  align-self: flex-end;
}

.chat-bubble.bot {
  background: #444;
  color: #fff;
  align-self: flex-start;
}

.typing {
  color: #777;
  font-style: italic;
  animation: blink 1.2s infinite;
}

.chat-input {
  display: flex;
  border: 2px solid #333;
  border-radius: 8px;
  background-color: #121212;
  position: relative;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1em;
}

.chat-input button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5em;
  cursor: pointer;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.robot-placeholder {
  flex: 1 1 300px;
  max-width: 500px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0e0e0e;
  border-radius: 12px;
}

.robot-placeholder img {
  max-width: 100%;
  max-height: 100%;
}

footer {
  background: #0c0c0c;
  padding: 40px 20px 60px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-social {
  flex: 1;
}

.footer-social h3 {
  color: #ccc;
  margin-bottom: 10px;
}

.buttons a {
  text-decoration: none;
  padding: 10px 20px;
  margin: 6px;
  border-radius: 6px;
  font-weight: bold;
  display: inline-block;
  background-color: #00f0ff;
  color: #000;
  transition: background-color 0.3s;
}

.buttons a:hover {
  background-color: #00c2d3;
}

.about-footer {
  flex: 1;
  padding-left: 20px;
}

.about-footer h3 {
  color: #ccc;
  margin-bottom: 10px;
}

.about-footer p {
  font-size: 0.9em;
  color: #aaa;
}

.footer-copy {
  text-align: center;
  width: 100%;
  margin-top: 30px;
  font-size: 0.85em;
  color: #777;
  /* position: fixed; */
  bottom: 0;
  left: 0;
  background: #0c0c0c;
  padding: 10px 0;
}

.contact-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.contact-modal-content {
  background-color: #1f1f1f;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.contact-modal-content h2 {
  margin-bottom: 20px;
}

.contact-modal-content button {
  padding: 10px 20px;
  margin: 10px;
  border: none;
  background-color: #00f0ff;
  color: #000;
  border-radius: 5px;
  cursor: pointer;
}

.contact-modal-content button:hover {
  background-color: #00c2d3;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 100px 20px 120px;
  }

  .intro-section h1 {
    font-size: 2.2em;
  }

  .robot-placeholder {
    height: 300px;
    margin-top: 20px;
  }

  .nav-links a {
    margin: 10px 10px 0 0;
  }

  footer {
    flex-direction: column;
  }

  .about-footer {
    margin-top: 20px;
    padding-left: 0;
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px #00f0ff;
  }

  to {
    text-shadow: 0 0 20px #00f0ff;
  }
}