@import url('https://fonts.googleapis.com/css2?family=Orbitron&family=Roboto&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
  color: #fff;
  transition: background 0.5s ease, color 0.5s ease;
}

header {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Orbitron', sans-serif;
  border-bottom: 2px solid #00ffff;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-emoji {
  font-size: 1.8em;
  margin-right: 10px;
}

.site-title {
  font-size: 1.6em;
}

#theme-toggle {
  background: #00ffff;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease, color 0.3s ease;
}

nav {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 0;
  text-align: center;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-links li a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

section {
  padding: 40px;
  max-width: 800px;
  margin: auto;
  animation: fadeIn 1.5s ease-in-out;
}

.card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.5s ease;
}

.card:hover {
  transform: scale(1.02);
  background-color: rgba(255, 255, 255, 0.2);
}

footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  background-color: rgba(0, 0, 0, 0.6);
  border-top: 1px solid #00ffff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

body.light-mode {
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  color: #222;
}

body.light-mode header,
body.light-mode nav,
body.light-mode footer {
  background-color: #f0f4f8;
  color: #000;
}

body.light-mode .card {
  background-color: #ffffff;
  color: #000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.light-mode .nav-links li a {
  color: #0077aa;
}

body.light-mode .nav-links li a:hover,
body.light-mode #theme-toggle:hover {
  background-color: #d0eaff;
}

body.light-mode #theme-toggle {
  background: #b2ebf2;
  color: #004d40;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
  background-color: #111;
  color: white;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

#chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #7289da;
  color: white;
  font-size: 24px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

#chatbot {
  display: none;
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 300px;
  background: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
}

.chat-header {
  background: #444;
  color: white;
  padding: 10px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-close {
  cursor: pointer;
}

.chat-body {
  background: #2a2a2a;
  height: 200px;
  overflow-y: auto;
  padding: 10px;
  color: white;
}

#chat-input {
  width: 100%;
  padding: 10px;
  border: none;
  background: #333;
  color: white;
  box-sizing: border-box;
}

.chat-message.user {
  color: #00ffff;
}

.chat-message.bot {
  color: #ffffff;
}
