body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-image 0.8s ease-in-out;
  background-image: url("assets/images/sa_notes2.png");
  
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 60px;
  height: auto;
}

#hero-name {
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  animation: pulseName 3s ease-in-out infinite;
  text-align: center;
  margin-top: 2rem;
}

@keyframes pulseName {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.85;
  }
}

header {
  background-color: #006699;
  color: white;
  padding: 1em;
}

.nav-bar {
  background: linear-gradient(135deg, #000E5A, #006699);
  padding: 1em;
  box-shadow: 0 10px 8px rgba(0,0,0,0.1);
}

.nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1em;
  margin: 0;
  padding: 0;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 0.5em 1em;
  transition: background 0.4s ease, transform 0.2s ease;
  display: inline-block;
}

.nav-list a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-radius: 4px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 110%; /* Slightly below nav item */
  left: 0;
  opacity: 0;
  transform: translateY(-10px);
  background: #004466;
  border-radius: 6px;
  list-style: none;
  padding: 0.5em 0;
  min-width: 160px;
  transition: all 0.4s ease;
  pointer-events: none;
  z-index: 999;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  color: #fff;
  padding: 0.7em 1.2em;
  display: block;
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-menu li a:hover {
  background-color: #005580;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/** background Coin Raining effect**/

.coin-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px; /* height of navbar + buffer */
  overflow: hidden;
  z-index: 0; /* Behind the nav */
  pointer-events: none;
}

.coin {
  position: absolute;
  top: -40px;
  width: 50px;
  height: 50px;
  background-image: url("/assets/icons/R5_icon.png");/* You can swap this with any coin icon */
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 3.9;
  animation-name: coinDrop;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}

@keyframes coinDrop {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(200px) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 1.2s ease-in-out;
}

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

/**Subtittle**/

.subtitle {
  font-size: 1.8rem;
  font-weight: 800;
  color: #000000;
  text-align: center;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
  animation: slideFadeIn 2s ease forwards;
}

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

footer {
  text-align: center;
  padding: 1em;
  background-color: #003f5c;
  color: white;
}

/**First Section on Home Page**/
.hero {
  padding: 4rem 2rem;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  background-color: rgba(0, 0, 0, 0, 0.5); /** dark semi-transparent overflow**/
  color: #fff;
  margin-bottom: 1em;
  animation: slideUp 1s ease-in-out;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px); /* optional: adds glass effect */
}

/**Financial Growth Section on Home Page**/
.growth-section {
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#growthChart {
  width: 100%;
  height: 400px;
}

/**Second Section on Home Page**/
.hero.alt {
  padding: 4rem 2rem;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  background-color: rgba(0, 0, 0, 0, 0.5); /** dark semi-transparent overflow**/
  color: #fff;
  margin-bottom: 1em;
  animation: slideUp 1s ease-in-out;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px); /* optional: adds glass effect */
}

/**Third Section on Home Page**/
.hero.highlight {
  padding: 4rem 2rem;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
  background-color: rgba(0, 0, 0, 0, 0.5); /** dark semi-transparent overflow**/
  color: #fff;
  margin-bottom: 1em;
  animation: slideUp 1s ease-in-out;
  border-radius: 12px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px); /* optional: adds glass effect */
}

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

.transaction-ticker {
  background-color: #eaf4ff;
  padding: 1em;
  border-radius: 6px;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
  margin-top: 2em;
}

/* Existing styles... */

.chart-section {
  padding: 2em;
  background-color: #f0f8ff;
  border-radius: 8px;
  margin-top: 1em;
  box-shadow: 2px 2px 10px rgba(0, 102, 153, 0.1);
  text-align: center;
}

.chart-section h3 {
  margin-bottom: 1em;
  color: #006699;
  font-weight: bold;
}

.popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #fffbea;
  padding: 1em 1.5em;
  border: 1px solid #ffc107;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  border-radius: 6px;
  animation: fadeInUp 0.8s ease;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup button {
  margin-top: 0.5em;
  background-color: #ffc107;
  border: none;
  color: #000;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
}

.popup button:hover {
  background-color: #ffda47;
}

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

/** Chatbot styles**/

#chatbot-icon {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #007bff;
  color: white;
  font-size: 1.8em;
  padding: 0.5em 0.6em;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 999;
  transition: transform 0.3s ease;
}

#chatbot-icon:hover {
  transform: scale(1.1);
}

#chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 300px;
  max-height: 400px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

.chat-header {
  background: #007bff;
  color: white;
  padding: 0.8em;
  font-weight: bold;
  text-align: center;
}

.chat-body {
  padding: 1em;
  height: 220px;
  overflow-y: auto;
  font-size: 0.95em;
  background: #f5f9f8;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
}

.chat-input input {
  flex: 1;
  padding: 0.6em;
  border: none;
  outline: none;
}

.chat-input button {
  background: #007bff;
  color: white;
  border: none;
  padding: 0 1em;
  cursor: pointer;
}

.bot-message {
  background: #e6f0ff;
  padding: 0.6em 0.8em;
  border-radius: 8px;
  margin-bottom: 0.5em;
}

