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

body::-webkit-scrollbar {
  display: none;
}

body {
  font-family: "Anuphan", sans-serif !important;
  background-color: #FAFAFA;
  /* Light off-white minimal background */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Header */
.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  position: relative;
  z-index: 10;
}

.action-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.action-btn:hover {
  transform: scale(1.05);
  background: #222;
}

/* Main Layout */
.chatbot-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 120px;
  /* Space for sticky input */
}

/* Watermark */
.watermark-bg {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28vw;
  font-weight: 800;
  color: rgba(230, 230, 230, 0.4);
  z-index: -1;
  letter-spacing: -5px;
  pointer-events: none;
  font-family: "Anuphan", sans-serif !important;
  /* For better matching if needed, though English text */
}

/* Content Container */
.chat-content {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

/* Persona Section */
.persona-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

.glowing-cloud {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(230, 240, 255, 0.9) 0%, rgba(240, 245, 255, 0.5) 50%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
  filter: blur(20px);
}

.avatar-ring {
  position: relative;
  z-index: 1;
  width: 140px;
  height: 140px;
  background: #e2e8f0;
  border-radius: 40px 40px 50px 50px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.avatar-img {
  width: 95%;
  object-fit: contain;
  object-position: 0 60px;
  /* Adjust based on image crop */
}

.persona-name {
  position: relative;
  z-index: 1;
  font-size: 5rem;
  font-weight: 800;
  color: #638ef1;
  /* matches the blue text in the design */
  line-height: 1;
  margin-bottom: 20px;
}

.persona-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
}
.persona-badge .star-icon {
  width: 16px;
  height: 16px;
}
.persona-badge span {
  font-size: 0.9rem;
  font-weight: 600;
  color: #555;
}

/* Greeting Block */
.greeting-box {
  text-align: left;
  width: 100%;
  max-width: 850px;
  margin-bottom: 30px;
}
.greeting-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 5px;
}
.greeting-box p {
  font-size: 0.9rem;
  color: #666;
}

/* Suggestions Container */
.suggestions-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 850px;
  flex-wrap: wrap;
}

.suggestion-card {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border: 1px solid #eee;
  padding: 24px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  text-align: left;
}
.suggestion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
}
.suggestion-card i.fa-comment-dots {
  color: #888;
  font-size: 1.1rem;
}
.suggestion-card span {
  flex: 1;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}
.suggestion-card .arrow {
  color: #666;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.suggestion-card:hover .arrow {
  transform: translateX(3px);
}

/* Input Area */
.chat-input-wrapper {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
  z-index: 100;
}

.chat-input-box {
  background: #fff;
  border-radius: 40px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}
.chat-input-box .chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #333;
  font-family: "Anuphan", sans-serif !important;
  background: transparent;
}
.chat-input-box .chat-input::placeholder {
  color: #aaa;
}
.chat-input-box .send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease, background 0.2s ease;
}
.chat-input-box .send-btn:hover {
  transform: scale(1.05);
  background: #222;
}

/* Responsive */
@media (max-width: 768px) {
  .chatbot-header {
    padding: 15px 20px;
  }
  .persona-name {
    font-size: 4rem;
  }
  .watermark-bg {
    font-size: 35vw;
  }
  .suggestions-container {
    flex-direction: column;
  }
  .suggestion-card {
    width: 100%;
  }
  .chat-input-wrapper {
    bottom: 20px;
  }
}
/* === RESPONSIVE NAVBAR & MOBILE MENU OVERLAY === */
/* Mobile View adjustments */
@media (max-width: 900px) {
  /* Hide Desktop Nav Links */
  .navbar {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .nav-center-group,
  .nav-links-container,
  .btn-create-trip {
    display: none !important;
    /* Force hide on mobile across all pages */
  }
  /* Hamburger Menu Toggle Icon */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10005;
    /* Must be higher than the overlay */
    position: relative;
    margin-left: 15px;
  }
  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Bouncy smooth transition */
    transform-origin: left center;
    pointer-events: none;
    /* Allow clicks to pass through to the parent div */
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    width: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
  }
  /* Inverse color for dark hero backgrounds (if needed) */
  .navbar.dark-theme .hamburger-menu span {
    background: #fff;
  }
  /* Mobile Menu Overlay - Top Down Frosted Glass */
  .mobile-menu-overlay {
    position: fixed;
    top: -100vh;
    /* Start hidden above */
    left: 0;
    width: 100%;
    height: 100vh;
    /* Full screen */
    background: rgba(255, 255, 255, 0.85);
    /* Transparent white */
    backdrop-filter: blur(15px);
    /* Frosted glass effect */
    -webkit-backdrop-filter: blur(15px);
    z-index: 10010;
    /* Cover everything including the hamburger icon */
    transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    /* Extremely smooth easing */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center items vertically */
    align-items: center;
    /* Center items horizontally */
    pointer-events: none;
    /* Prevent blocking clicks when hidden */
  }
  .mobile-menu-overlay.active {
    top: 0;
    /* Slide down to cover screen */
    pointer-events: all;
    /* Enable clicks when visible */
  }
  .mobile-menu-overlay .mobile-menu-content {
    padding: 20px;
    position: relative;
    width: 100%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.5s ease 0.3s;
    /* Fade in and slide down after main menu slide */
  }
  .mobile-menu-overlay .mobile-menu-content .close-menu {
    position: fixed;
    top: 25px;
    right: 25px;
    font-size: 2.5rem;
    cursor: pointer;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  }
  .mobile-menu-overlay .mobile-menu-content .close-menu:hover {
    background: #fff;
    color: #F0BB1F;
    transform: scale(1.1) rotate(90deg);
  }
  .mobile-menu-overlay .mobile-menu-content .btn-create-trip-mobile {
    background: #000;
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .mobile-menu-overlay .mobile-menu-content .btn-create-trip-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  }
  .mobile-menu-overlay .mobile-menu-content ul {
    list-style: none;
    padding: 0;
  }
  .mobile-menu-overlay .mobile-menu-content ul li {
    margin-bottom: 30px;
  }
  .mobile-menu-overlay .mobile-menu-content ul li a {
    color: #333;
    text-decoration: none;
    font-size: 1.5rem;
    /* Larger font for full screen menu */
    font-weight: 600;
    display: block;
    letter-spacing: 1px;
    transition: color 0.3s ease, transform 0.3s ease;
  }
  .mobile-menu-overlay .mobile-menu-content ul li a:hover, .mobile-menu-overlay .mobile-menu-content ul li a.active {
    color: #F0BB1F;
    /* Brand yellow color */
    transform: scale(1.05);
  }
  .mobile-menu-overlay.active .mobile-menu-content {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Desktop View adjustments */
@media (min-width: 901px) {
  /* Hide Hamburger and Overlay on Desktop */
  .hamburger-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}
/* === RESPONSIVE FOOTER === */
@media (max-width: 768px) {
  .footer-curve-img {
    display: none !important;
    /* Hide the large curve image on mobile */
  }
  .footer {
    padding-top: 160px !important;
    /* Reduce the huge whitespace since curve is gone */
  }
}
body::-webkit-scrollbar {
  display: none;
}