/* Import Google Font: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

/* --------------------------- */
/* Fullscreen Heart Loader */
/* --------------------------- */
#video-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease; /* Fade-out transition */
}

#video-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#video-loader video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart #line {
  fill: none;
  stroke: #00bdde;
  stroke-width: 1.5;
  stroke-linecap: butt;
  stroke-linejoin: round;
  stroke-miterlimit: 4;
  stroke-opacity: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: dash 3s linear infinite;
}
.heart #point {
  fill: none;
  stroke: #00bdde;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 0.1;
  stroke-opacity: 1;
  stroke-dasharray: 0.0001, 0.9999;
  stroke-dashoffset: 1;
  animation: dash 3s linear infinite;
}
@keyframes dash {
  0% {
    stroke-dashoffset: 1;
  }
  80% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* --------------------------- */
/* Navbar */
/* --------------------------- */
.navbar {
  background-color: #00bdde !important;
  font-family: 'Poppins', sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-item {
  margin-left: 15px;
  margin-top: -20px;
}

.nav-item1 {
  margin-top: 10px;
}

.nav-item1 .nav-link {
  color: #ffffff !important; /* Solid white text color */
}

.nav-item1 .nav-link:hover {
  color: #ffffff !important; /* Solid white on hover */
}

.navbar .nav-link,
.navbar .dropdown-toggle {
  display: flex;
  align-items: center;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.navbar .nav-btn {
  margin-left: 12px;
  transition: 0.3s ease;
  background-color: #00bdde;
  color: #ffffff !important;
}

.navbar .nav-btn:hover {
  background-color: #6eecf1;
  color: #00bdde !important;
  border-color: #00bdde;
}

.navbar .dropdown-menu {
  margin-top: 8px;
}

.navbar-brand img {
  vertical-align: middle;
}

/* --------------------------- */
/* Carousel */
/* --------------------------- */
.c-item {
  height: 480px;
}

.c-image {
  height: 100%;
  object-fit: initial;
  filter: brightness(0.6);
}

/* Text Overlay */
.text-overlay h1 {
  color: #f5f1e8;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

.text-overlay p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.btn-ima {
  width: auto;
  padding: 6px 20px;
  font-size: 1rem;
  border-radius: 8px;
  background-color: #08ac69;
  color: white;
  border: none;
}
.btn-ima:hover {
  background-color: #c0ddb8;
  color: white;
}

/* --------------------------- */
/* Infographic Section */
/* --------------------------- */
.infographic-section {
  padding: 50px 20px;
  width: 100%;
}

.infographic {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.infographic:hover {
  transform: scale(1.02);
}

/* --------------------------- */
/* Login Button */
/* --------------------------- */
.login-btn {
  background-color: #fff;
  color: #08ac69;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  margin-left: 10px;
  font-weight: 500;
  transition: 0.3s;
  font-family: 'Poppins', sans-serif;
}

.login-btn:hover {
  background-color: #c0ddb8;
  color: #fff;
}

/* --------------------------- */
/* Modal */
/* --------------------------- */
.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2000;
}
.modal[hidden] {
  display: none;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  z-index: 2100;
  width: 100%;
  max-width: 400px;
  animation: popUp 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

@keyframes popUp {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  background: none;
  border: none;
  color: #777;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

.modal-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}
.tab {
  background: none;
  border: none;
  font-size: 16px;
  padding: 8px 16px;
  cursor: pointer;
  transition: color 0.3s, border-bottom 0.3s;
  font-family: 'Poppins', sans-serif;
}
.tab.active {
  color: #08ac69;
  border-bottom: 2px solid #08ac69;
  font-weight: bold;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.submit-btn {
  width: 100%;
  background-color: #08ac69;
  color: #fff;
  border: none;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #c0ddb8;
}

/* --------------------------- */
/* Combined BODY Styles */
/* --------------------------- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f1e8; /* light cream background */
  margin: 0;
  padding-top: 0; /* remove space above content */
  scroll-padding-top: 100px; /* fixes scrollspy offset */
  opacity: 0;
  animation: fadeIn 1.5s ease-in forwards;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch; /* Changed to stretch for full width */
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --------------------------- */
/* Login Container */
/* --------------------------- */
.login-container {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 350px;
  margin: 50px auto;
}

@media (max-width: 480px) {
  .login-container {
    width: 90%;
    padding: 20px;
    margin: 20px auto;
  }
}

h2 {
  text-align: center;
  color: #08ac69;
  font-weight: 600;
}

label {
  display: block;
  margin-top: 10px;
  color: #333;
  font-weight: 500;
}

input, select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #08ac69;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  margin-top: 15px;
  cursor: pointer;
}
button:hover {
  background-color: #c0ddb8;
}

#loginMessage {
  text-align: center;
  margin-top: 10px;
  color: red;
  font-weight: bold;
}

.signup-text {
  color: #08ac69;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
}

/* --------------------------- */
/* Sign-up Page */
/* --------------------------- */
.signup-container {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 700px;
  margin: 50px auto;
}

@media (max-width: 768px) {
  .signup-container {
    width: 95%;
    padding: 20px;
    margin: 20px auto;
  }
}

.form-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.form-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

input:focus, select:focus {
  border-color: #008080;
  outline: none;
}

.btn {
  width: 70%;
  margin-top: 25px;
  background-color: #08ac69;
  color: white;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  background-color: #c0ddb8;
}

.btn-dark-blue {
  background-color: #00bdde;
  color: white;
  border: none;
}

.btn-dark-blue:hover {
  background-color: #0080a0;
  color: white;
}

.login-text {
  text-align: center;
  margin-top: 15px;
}
.login-text a {
  color: #08ac69;
  text-decoration: none;
  font-weight: 600;
}
.login-text a:hover {
  text-decoration: underline;
}

/* --------------------------- */
/* Record Audio Section */
/* --------------------------- */
h1 {
  color: #08ac69;
  font-weight: 600;
}

#recordBtn {
  transition: all 0.3s ease;
  width: auto;
  background-color: #00bdde;
  color: white;
}
#recordBtn:hover {
  transform: scale(1.05);
  background-color: #6eecf1;
}

/* ?? Sound Wave Animation */
.wave-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 60px;
  gap: 6px;
}

.bar {
  width: 6px;
  height: 20px;
  background-color: #00bdde;
  border-radius: 10px;
  animation: bounce 1s infinite ease-in-out;
}
.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.1s; }
.bar:nth-child(3) { animation-delay: 0.2s; }
.bar:nth-child(4) { animation-delay: 0.3s; }
.bar:nth-child(5) { animation-delay: 0.4s; }
.bar:nth-child(6) { animation-delay: 0.5s; }
.bar:nth-child(7) { animation-delay: 0.6s; }
.bar:nth-child(8) { animation-delay: 0.7s; }
.bar:nth-child(9) { animation-delay: 0.8s; }
.bar:nth-child(10) { animation-delay: 0.9s; }

@keyframes bounce {
  0%, 100% { height: 20px; opacity: 0.5; }
  50% { height: 60px; opacity: 1; }
}

audio {
  width: 80%;
  max-width: 400px;
}

/* --------------------------- */
/* About Page */
/* --------------------------- */
.about-page {
  background-color: #f5f1e8;
  padding-top: 70px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.about-page footer {
  margin-top: auto;
  text-align: center;
}

/* --------------------------- */
/* Video Cards Section */
/* --------------------------- */
.video-cards-section {
  padding: 50px 20px;
  background-color: #f5f1e8;
}

.video-cards-section .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.video-cards-section .card:hover {
  transform: translateY(-5px);
}

.video-cards-section iframe {
  border-radius: 8px;
}

/* --------------------------- */
/* Sticky Footer for All Pages */
/* --------------------------- */
main {
  flex: 1;
}

/* Remove top space above hero image on index page */
#main-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Scrollspy Fix */
.scrollspy-example-2 {
  position: relative;
  height: 85vh;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding-right: 10px;
  width: 100%;
}

.nav-pills .nav-link.active {
  background-color: #08ac69 !important;
  color: white !important;
}

@media (min-width: 992px) {
  #navbar-example3 {
    position: sticky;
    top: 100px;
  }
}

.nav-link.text{
  color:#00bdde !important;
}

/* --------------------------- */
/* Entrance Animations */
/* --------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Clickable overlay on activities.jpg */
.card-body.position-relative {
  position: relative;
}

.clickable-overlay {
  position: absolute;
  left: 364px;
  top: 74px;
  width: 406px;
  height: 525px;
  cursor: pointer;
  z-index: 10;
  display: block;
  background: transparent;
}

.clickable-overlay-2 {
  position: absolute;
  left: 31px;
  top: 624px;
  width: 372px;
  height: 387px;
  cursor: pointer;
  z-index: 10;
  display: block;
  background: transparent;
}

.clickable-overlay-3 {
  position: absolute;
  left: 472px;
  top: 1035px;
  width: 294px;
  height: 398px;
  cursor: pointer;
  z-index: 10;
  display: block;
  background: transparent;
}

.clickable-overlay-4 {
  position: absolute;
  left: 425px;
  top: 622px;
  width: 352px;
  height: 395px;
  cursor: pointer;
  z-index: 10;
  display: block;
  background: transparent;
}

@media (max-width: 768px) {
  .clickable-overlay,
  .clickable-overlay-2,
  .clickable-overlay-3,
  .clickable-overlay-4 {
    display: none;
  }
}

/* Button group inline container for Log In and Sign Up buttons */
.btn-group-inline {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 12px;
}

/* Remove underline from Login and Signup text buttons */
.btn1 {
  text-decoration: none !important;
}


/* Smaller button size for inline buttons */
.btn-smaller {
  padding: 6px 14px;
  font-size: 0.9rem;
  border-radius: 6px;
  min-width: 200px;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.animate-zoom-in {
  opacity: 0;
  animation: zoomIn 0.8s ease forwards;
}

.animate-slide-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

/* Staggered delays for entrance effects */
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1.0s; }
.animate-delay-6 { animation-delay: 1.2s; }
.animate-delay-7 { animation-delay: 1.4s; }
.animate-delay-8 { animation-delay: 1.6s; }

/* --------------------------- */
/* Assessment Page Styles */
/* --------------------------- */
.chat-container {
  width: 90%;
  max-width: 600px;
  height: 80vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  animation: zoomIn 0.8s ease forwards;
}

.chat-header {
  background: #f8f9fa;
  color: rgb(64, 126, 69);
  padding: 20px;
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  border-bottom: 1px solid #e9ecef;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

.message {
  max-width: 70%;
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 1em;
  line-height: 1.4;
  word-wrap: break-word;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.message.user {
  align-self: flex-end;
  background: #007bff;
  color: white;
}

.message.bot {
  align-self: flex-start;
  background: #f1f1f1;
  color: #333;
}

.chat-input-container {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.6s;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 1em;
  outline: none;
}

.chat-input:focus {
  border-color: #35743f;
}

.record-button {
  padding: 12px 15px;
  background: #ffae63;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s;
}

.record-button:hover {
  background: #e67e22;
}

.send-button {
  padding: 12px 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s;
}

.send-button:hover {
  background: #218838;
}

@media (max-width: 768px) {
  .chat-container {
    width: 95%;
    height: 90vh;
  }

  .chat-header {
    font-size: 1.2em;
    padding: 15px;
  }

  .chat-messages {
    padding: 15px;
  }

  .message {
    max-width: 80%;
    font-size: 0.9em;
  }

  .chat-input-container {
    padding: 15px;
  }

  .chat-input {
    padding: 10px 15px;
  }

  .record-button {
    padding: 10px 12px;
    font-size: 0.8em;
  }

  .send-button {
    padding: 10px 15px;
  }
}
