* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

:root {
  --accent: #2ecc71;
  --bg-dark: #061320;
  --bg-dark-soft: #0e2238;
  --border-soft: rgba(255, 255, 255, 0.1);
  --text-muted: #aaa;
}

body {
  background: #0b1b2b;
  color: #fff;
  scroll-padding-top: 5.5rem; /* Approximately 88px + some buffer */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER */
.header {
  background: #061320;
  padding: 15px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.logo img {
  height: 40px;
}

.nav a {
  color: #fff;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 500;
}

/* BUTTONS */
.btn {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
}

.btn-primary {
  background: #2ecc71;
  color: #000;
}

.btn-secondary {
  background: #1abc9c;
  color: #000;
}

/* HERO */
.hero {
  position: relative;
  height: 70vh;
  background: url("images/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 3rem;
  max-width: 700px;
}

.hero span {
  color: #2ecc71;
}

.hero-buttons {
  margin-top: 20px;
}

/* SECTIONS */
.section {
  padding: 60px 0;
}

.section.dark {
  background: #061320;
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.center {
  text-align: center;
  margin-bottom: 40px;
}

/* GRID */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* CARDS */
.card, .team-card {
  background: #0e2238;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 15px;
}

.card img, .team-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card h3, .team-card h3 {
  padding: 15px;
}

.card p {
  padding: 0 15px;
  opacity: 0.8;
}

.team-card a {
  margin: 0 15px;
}

/* FOOTER */
.footer {
  background: #020b14;
  padding: 40px 0;
  text-align: center;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin: 30px 0;
}

.sponsors img {
  max-width: 140px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.sponsors img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* ---------------- CHATBOT ---------------- */
@media (min-width: 768px) {
  .chatbot-launcher {
    width: 480px;
    height: 200px;
  }
}

.chatbot-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 180px;
  height: 60px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 8px; /* Slightly rounded corners for a modern look */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.2s;
  padding: 0 10px; /* Add some padding for content */
}

.chatbot-launcher img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px; /* Match the border-radius of the launcher */
}

.chatbot-launcher:hover {
  transform: scale(1.1);
}

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 350px;
  height: 500px;
  background: var(--bg-dark-soft);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.chatbot-container.active {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.chatbot-container.minimized {
    height: 60px;
    overflow: hidden;
    bottom: 24px; /* Move down to replace launcher area or sit at bottom */
}

.chatbot-container.minimized .chatbot-messages,
.chatbot-container.minimized .chatbot-input-area {
    display: none;
}

.chatbot-header {
  background: var(--bg-dark);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
  height: 60px; /* fixed height for consistent minimization */
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.chatbot-title img {
  height: 24px;
  width: 24px;
  object-fit: cover;
  border-radius: 50%;
}

.chatbot-controls button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  transition: color 0.2s;
}

.chatbot-controls button:hover {
  color: white;
}

.chatbot-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}


.message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.message-container {
    display: flex;
    gap: 8px;
}

.bot-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.bot-message-container {
    align-items: flex-end;
}

.bot-message {
  align-self: flex-start;
  background: rgba(255,255,255,0.05);
  border-bottom-left-radius: 4px;
}

.user-message-container {
    justify-content: flex-end;
}

.user-message {
  align-self: flex-end;
  background: var(--accent);
  color: #000;
  border-bottom-right-radius: 4px;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chatbot-input-area {
    padding: 12px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    gap: 8px;
}


.chatbot-input-area input {
    flex: 1;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-soft);
    padding: 10px;
    border-radius: 8px;
    color: white;
    outline: none;
}

.chatbot-input-area input:focus {
    border-color: var(--accent);
}

.chatbot-input-area button {
    background: var(--accent);
    color: #000;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.2s;
}

.chatbot-input-area button:hover {
    transform: scale(1.05);
}

