body{
    background-image: url("images/Teens-savings-account.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    color: #fff;
    text-align: center;
}

/* === Container styling === */
.nav-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem 1rem;
  background-color: transparent;
  border-bottom: 4px solid #ffe07c;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

/* === Base tab style === */
.tab-link {
  position: relative;
  font-size: 1.3rem;
  font-weight: bold;
  color: #444;
  text-decoration: none;
  background-color: #ffeb99;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  border: 2px solid #ffc107;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  box-shadow: 2px 3px 0 #f4c430;
  animation: floatIdle 3s ease-in-out infinite;
}

/* === Wiggling hover === */
.tab-link:hover {
  animation: bounceWiggle 0.6s ease-in-out;
  background-color: #fff176;
  transform: translateX(5px) rotate(-2deg);
  color: #222;
}

/* === Active click bounce === */
.tab-link:active {
  animation: bouncePop 0.4s ease;
  transform: scale(0.95);
}

/* === IDLE floating === */
@keyframes floatIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* === wiggly hover === */
@keyframes bounceWiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(6px) rotate(2deg); }
  50% { transform: translateX(-6px) rotate(-2deg); }
  75% { transform: translateX(3px) rotate(1deg); }
  100% { transform: translateX(0); }
}

/* === Active bounce tap === */
@keyframes bouncePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.typewriter-glow {
  font-family: 'Courier New', Courier, monospace;
  font-size: clamp(1.5rem, 5vw, 3.2rem);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid rgba(255,255,255,0.75);
  width: 100%;
  animation:
    typing 3s steps(20, end) forwards,
    blink-caret 0.75s step-end infinite;
  text-shadow: 0 0 10px #00ffd5, 0 0 20px #00ffd5, 0 0 40px #00ffd5;
}

/* Typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor blink */
@keyframes blink-caret {
  50% { border-color: transparent }
}

.vibe-zone {
  height: 150px;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.floating-words {
  display: flex;
  gap: 1.5rem;
  animation: floatin 7s ease-in-out infinite alternate;
}

.floating-words span {
  font-size: clamp(1.1rem, 2.3vw, 1.8rem);
  font-weight: bold;
  color: #333;
  animation: floatUpDown 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
  background: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.1);
  }
}


.start-planning-btn {
  background-color: #ffc107;
  color: #333;
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.start-planning-btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.start-planning-btn a{
    text-decoration: none;
    color: #db0f83;
    font-family: cambria;
}
.start-planning-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.4);
}

@media (max-width: 600px) {
  .start-planning-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

.word-glow {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  animation: wordFadeIn 0.5s forwards;
  font-weight: 500;
  color: #f09604;
  position: relative;
}

.word-glow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6em;
  height: 0.6em;
  background: rgba(255, 235, 59, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: pulseLight 1s ease-out forwards;
  animation-delay: inherit;
  z-index: -1;
}

@keyframes wordFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseLight {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

#Scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem;
  background: transparent;
}

#Scenarios > div {
  width: clamp(260px, 50%, 300px);
  background: linear-gradient(135deg, #fff8e1, #e0f7fa);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  animation: floatBox 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

#Scenarios > div:hover {
  transform: scale(1.03) rotate(-1deg);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

/* Float animation */
@keyframes floatBox {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}


#Scenarios > .Scenario-1 { animation-delay: 0s; }
#Scenarios > .scenario-2 { animation-delay: 2s; }
#Scenarios > .scenario-3 { animation-delay: 4s; }


#Scenarios h2 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 0.5rem;
}

#Scenarios h3, #Scenarios h4 {
  margin-top: 1rem;
  font-weight: 600;
  color: #ff8f00;
}

#Scenarios p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}


@media (max-width: 768px) {
  #Scenarios {
    flex-direction: column;
    align-items: center;
  }

  #Scenarios > div {
    width: 100%;
  }
}

.main-footer {
  background-color: #222;
  color: #eee;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 3px solid #fdd835;
}

.main-footer p {
  margin: 0.2rem 0;
  font-family: 'Comic Neue', sans-serif;
}


#save {
  background-image: url('images/IMG_9040.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#save h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff400;
  text-shadow: 2px 2px #000;
  margin-bottom: 1rem;
}

#save p,
#save label {
  font-size: 1rem;
  color: #fff;
  font-weight: 500;
}

#save input {
  padding: 0.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

#save button {
  padding: 0.75rem;
  background: #ff9800;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#save button:hover {
  transform: scale(1.05);
  background-color: #ff5722;
}

#save #results {
  color: #00ffcc;
  background: rgba(0,0,0,0.4);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  backdrop-filter: blur(5px);
}

#save #tip {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 1rem;
  border-left: 5px solid #ffeb3b;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

/* words */
.floating-word {
  position: absolute;
  font-size: 1.3rem;
  font-weight: bold;
  animation: floatWords 6s infinite ease-in-out;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  text-shadow: 1px 1px 2px #000;
  color: #00e5ff;
}

@keyframes floatWords {
  0% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-20px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.5; }
}

/* Individual word positions */
.word1 { top: 20px; left: 10%; animation-delay: 0s; }
.word2 { top: 60px; right: 15%; animation-delay: 1s; }
.word3 { bottom: 20px; left: 20%; animation-delay: 2s; }
.word4 { bottom: 60px; right: 10%; animation-delay: 3s; }


@media (max-width: 768px) {
  #save {
    padding: 1.5rem;
  }

  .floating-word {
    font-size: 1rem;
  }
}

#spend {
  background-image: url('images/ChatGPT\ Image\ Aug\ 1\,\ 2025\,\ 09_30_57\ PM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

#budget {
  background-image: url('images/IMG_9050.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.about-fnb {
  padding: 3rem 1rem;
  background: linear-gradient(to right, #fceabb, #f8b500);
  color: #2d3436;
  font-family: 'Poppins', sans-serif;
}

.fnb-message {
  max-width: 800px;
  margin: auto;
  background: rgba(5, 171, 151, 0.85);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  animation: fadeInFNB 1.5s ease;
}

.fnb-message h2 {
  font-size: 2rem;
  color: #d35400;
  margin-bottom: 1rem;
}

.fnb-message p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.fnb-message .signature {
  font-style: italic;
  text-align: right;
  font-weight: 600;
  color: #6d214f;
}

@keyframes fadeInFNB {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-learning-section {
  padding: 2rem;
  background: linear-gradient(to bottom right, #fff5e1, #ffefc0);
  border-radius: 20px;
  max-width: 900px;
  margin: auto;
  font-family: 'Poppins', sans-serif;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.learning-block {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-left: 5px solid #ffa502;
  border-radius: 12px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  font-weight: bold;
  animation: fadeSlideIn 1.2s ease both;
}

.section-title.orange { color: #f38600; }
.section-title.peach { color: #f38108; }
.section-title.yellow { color: #e67e22; }

.animated-list {
  list-style: none;
  color: #00e5ff;
  padding-left: 0;
  counter-reset: list;
}

.animated-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-20px);
  animation: popIn 0.6s ease forwards;
}

.animated-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
}

.animated-list li:nth-child(1) { animation-delay: 0.3s; }
.animated-list li:nth-child(2) { animation-delay: 0.6s; }
.animated-list li:nth-child(3) { animation-delay: 0.9s; }
.animated-list li:nth-child(4) { animation-delay: 1.2s; }

.animated-list.delay-1 li:nth-child(1) { animation-delay: 0.5s; }
.animated-list.delay-1 li:nth-child(2) { animation-delay: 0.8s; }
.animated-list.delay-1 li:nth-child(3) { animation-delay: 1.1s; }
.animated-list.delay-1 li:nth-child(4) { animation-delay: 1.4s; }

.animated-list.delay-2 li:nth-child(1) { animation-delay: 0.7s; }
.animated-list.delay-2 li:nth-child(2) { animation-delay: 1.0s; }
.animated-list.delay-2 li:nth-child(3) { animation-delay: 1.3s; }
.animated-list.delay-2 li:nth-child(4) { animation-delay: 1.6s; }

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateX(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

