* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f8fc;
  color: #333;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 2rem 2rem 2rem; /* reduced bottom padding */
  max-width: 900px;
  margin: auto;
}

.logo.large-logo {
  width: 300px;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 2rem;
  color: #1b8cc0;
  margin-bottom: 2rem;
}

.animate-tagline {
  animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: center; /* changed from justify to center */
  color: #444;
  margin-bottom: 1.8rem;
}

.hero-text p:last-child {
  margin-bottom: 0; /* remove last paragraph spacing */
}

.launch {
  display: flex;
  justify-content: center;
}

.launch-gif {
  width: 350px;
  margin-bottom: 0; /* no extra space below gif */
  display: block;
}

/* Chat */
.chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  cursor: pointer;
  z-index: 999;
}

.chat-preview {
  background: white;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-preview-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-frame {
  border: 3px solid #f7941d;
  border-radius: 50%;
  padding: 3px;
}

.chat-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  z-index: 1000;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.chat-window.open {
  display: flex;
  animation: slideUp 0.3s ease-out;
}

.chat-window.closing {
  opacity: 0;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.chat-header {
  background: #f7941d;
  color: white;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.chat-close {
  position: absolute;
  right: 15px;
  top: 8px;
  cursor: pointer;
  font-size: 1.3rem;
}

.chat-content {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}

.chat-input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.chat-submit {
  margin-top: 0.8rem;
  background: #27AAE1;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.chat-submit:hover {
  background: #1b90c9;
}

.bot, .user {
  padding: 0.6rem;
  margin: 0.5rem 0;
  border-radius: 6px;
  font-size: 0.95rem;
}

.bot {
  background: #f0f0f0;
}

.user {
  background: #d9f0ff;
}

/* Footer */
.footer {
  background: #1b8cc0;
  color: white;
  padding: 1.5rem 1rem;
  margin-top: auto; /* ensures footer hugs the bottom */
}

.footer-top {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo img {
  width: 140px;
}

.footer-info, .footer-contact {
  min-width: 200px;
}

.footer-divider {
  max-width: 1100px;
  margin: 1.5rem auto;
  border-top: 1px solid rgba(255,255,255,0.3);
}

.footer-contact a {
  color: white;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
}

.social-icons a {
  margin: 0 0.5rem;
}

.social-icons img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: white;
  padding: 6px;
  transition: 0.3s;
}

.social-icons img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-copy {
  font-size: 1rem;
  margin-top: 0.8rem;
}

.brand {
  font-weight: bold;
}
.chat-social-icon {
  width: 26px;
  height: 26px;
  margin: 6px 4px;
  vertical-align: middle;
  border-radius: 6px;
}


/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero-text {
    text-align: center; /* keep it centered on mobile too */
    font-size: 0.95rem;
  }
  .tagline {
    font-size: 1.5rem;
  }
}
