/***** deterrent only — hurts UX; optional *****/
html, body {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
}
:root {
  --primary: #6d0072;
  /* Cyan */
  --secondary: #620162;
  /* Vivid Purple */
  --accent: #00f5d4;
  /* Aqua Green */
  --dark: #0b132b;
  /* Deep Navy */
  --muted: #5c677d;
  --glass: rgba(255, 255, 255, 0.75);
  --bg-soft: #eef7ff;
  --brand-1: #057844;
  --brand-2: #98a202;
}

/* General */
html,
body {
  font-family: 'Roboto', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */

.navbar {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1030;
  /* margin-top: 40px;  */
}

.navbar-aurora {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  /* transition: background 0.3s ease;
  padding: 0.5rem 1rem; */
}

.navbar-brand img {
  margin-right: 10px;
}

.navbar-brand span {
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-link {
  color: var(--secondary);
  font-weight: 500;
  margin-left: 1.2rem;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: green !important;
}

/* Dropdown custom style to match your theme */
.navbar .dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 0.5rem 0;
}

.navbar .dropdown-item {
  color: rgb(83, 11, 109);
  transition: background 0.2s ease;
}

.navbar .dropdown-item:hover {
  background: rgba(11, 109, 32, 0.384);
  color: rgb(11, 109, 11);
}

.dropdown-scroll {
  max-height: 250px;
  overflow-y: auto;
  overflow-x: hidden;
}

.dropdown-scroll::-webkit-scrollbar {
  width: 6px;
}

.dropdown-scroll::-webkit-scrollbar-thumb {
  background: rgba(6, 112, 2, 0.742);
  border-radius: 10px;
}

.dropdown-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.btnexam,
.btnnav {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: transform .2s ease, filter .2s ease;
  text-decoration: none;
}

.btnexam:hover {
  background: #ffca28;
  color: purple !important;

}

.btnnav:hover {
  background: linear-gradient(90deg, var(--brand-2), var(--brand-1));
  color: #fff !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: transform .2s ease, filter .2s ease;
  text-decoration: none;
}

.btnexam:hover,
.btnnav:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Make nav links stack nicely on mobile */

/* ========== Responsive adjustments ========== */

/* On smaller screens */
@media (max-width: 991px) {
    .navbar-brand img {
        max-width: 70px;
        height: auto;
    }

    .navbar-brand span {
        font-size: 0.9rem;
    }

    .navbar-nav {
        gap: 10px;
        padding: 1rem 0;
    }

    .btnexam,
    .btnnav {
        display: block;
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
}

/* On very small phones (<576px) */
@media (max-width: 576px) {
    .contact-bar span {
        display: none;
        /* only show icons for space */
    }

    .contact-bar i {
        font-size: 1.2rem;
    }
}

/* Toggler icon contrast fix (hamburger visible on light bg) */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28109,11,109,0.9%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Contact Bar Styles */
.contact-bar {
    background: #02c09ad5;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
    padding: 0.4rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1031;
}

/* Push main navbar below contact bar */
/* .main-navbar {
  
} */

.contact-link {
    color: var(--ink);
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--brand);
}

/* Hero */
.hero {
  padding: 140px 0 40px;
  background: linear-gradient(180deg, #f7f6ff 0%, #ffffff 100%);

}

.hero-bg {
  position: absolute;
  inset: 0 auto auto 40%;
  width: 100%;
  /* max-width: 100%; */
  height: 100%;
  opacity: .1;
  background: rgb(0, 0, 0);
  background-blend-mode: multiply;
  /* background-position: center; */
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateX(-40%);
  pointer-events: none;
}

.text-aurora {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btnbanner {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 12px;
}

.btnban {
  border: 2px solid transparent;
  border-image: linear-gradient(to right, var(--brand-1), var(--brand-2)) 1;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2)) border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
}

.float-rise {
  animation: rise 7s ease-in-out infinite;
}

@keyframes rise {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-16px)
  }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero {
        padding: 160px 0 40px; /* More space for stacked navbar in tablet/mobile */
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 180px 0 40px; /* Extra space for small phones */
    }
}

/* Features */
#features {
  background: #f6feff;
}

.feature-card-atma {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 6px 20px rgba(0, 180, 216, 0.08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.feature-card-atma:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(106, 0, 244, 0.12);
}

.feature-icon-atma {
  font-size: 2.4rem;
  color: green;
  margin-bottom: 1rem;
}

/* Courses/Modules */
#courses {
  background: #ffffff;
}

.course-card-atma {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-radius: 14px;
  padding: 1.7rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform .35s ease;
}

.hover-lift:hover {
  transform: translateX(8px);
}

/* Syllabus */
#syllabus {
  background: linear-gradient(180deg, #eef7ff 0%, #ffffff 100%);
}

.list-aurora .list-group-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  margin-bottom: 1rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.list-aurora .list-group-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--brand-1), var(--brand-2));
}

.btnstart {
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  transition: transform .2s ease, filter .2s ease;
  text-decoration: none;
}

.btnstart:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Question Bank */
#qb {
  background: #ffffff;
}

.qb-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform .35s ease, box-shadow .35s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.qb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

/* Ripple hover utility for cards */
.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: 50%;
  transform: scale(1);
  opacity: 0;
  transition: all .6s ease;
  left: var(--x, 50%);
  top: var(--y, 50%);
}

.ripple:hover::after {
  transform: scale(18);
  opacity: 1;
}

/* Testimonials */
#testimonials {
  background: #f6feff;
}

.testimonial-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 26px rgba(0, 180, 216, 0.08);
  animation: popIn .7s ease;
}

@keyframes popIn {
  0% {
    transform: scale(.94);
    opacity: 0
  }

  100% {
    transform: scale(1);
    opacity: 1
  }
}

/* FAQ */
#faq {
  background: #ffffff;
}

.accordion-item {
  transition: transform .18s ease;
  border-radius: 10px;
  overflow: hidden;
}

.accordion-item:hover {
  transform: translateY(-2px);
}

/* Floating Circle */
#chat-circle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, orange, green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9999;
}

#chat-circle img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.hidden {
  display: none !important;
}


/* ================= CHAT WIDGET ================= */
#chat-widget {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 340px;
  height: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  overflow: hidden;
  z-index: 9999;
}

#chat-widget.hidden {
  display: none;
}

/* ================== RESPONSIVE FIX ================== */
@media (max-width: 768px) {
  #chat-widget {
    width: 90%;        /* ✅ take almost full width */
    height: 70vh;      /* ✅ use viewport height */
    right: 5%;         /* ✅ center it with margins */
    bottom: 20px;      /* ✅ keep some gap from bottom */
  }
}

@media (max-width: 480px) {
  #chat-widget {
    width: 100%;       /* ✅ full width on very small screens */
    height: 50vh;      /* ✅ taller for usability */
    right: 0;
    bottom: 0;
    border-radius: 0;  /* ✅ flat edges like mobile apps */
  }
}

/* Header */
#chat-header {
  background: linear-gradient(135deg, orange, green);
  color: #fff;
  padding: 12px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
}

#chat-header .chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 8px;
}

#chat-header .chat-title {
  flex: 1;
  font-size: 14px;
}

#chat-header #chat-close {
  cursor: pointer;
  font-size: 16px;
}

/* Chat Body */
#chat-box {
  flex: 1 1 auto;
  min-height: 0;
  padding: 12px;
  overflow-y: auto;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bot-msg p {
  margin: 0;
}

/* Options */
.chat-options {
  margin-top: 8px;
}

.chat-options button {
  border: 1px solid #029273bf;
  background: #fff;
  color: #029273bf;
  padding: 6px 12px;
  margin-right: 6px;
  border-radius: 20px;
  cursor: pointer;
}

.chat-options button:hover {
  background: #029273bf;
  color: #fff;
}

/* Input Area */
#chat-input-area {
  display: flex;
  border-top: 1px solid #ddd;
  flex: 0 0 auto;
}

#chat-input {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

#chat-send {
  background: linear-gradient(135deg, orange, green);
  color: white;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  font-size: 16px;
}

/* Message bubbles */
.bot-msg, .user-msg {
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;        /* ✅ prevent overflow of long text */
  overflow-wrap: anywhere;      /* ✅ modern wrap for long URLs/words */
  font-size: 15px;
  line-height: 1.4;
}

.bot-msg { background: #f1f1f1; align-self: flex-start; }
.user-msg { background: #dcf8c6; align-self: flex-end; }

/* Avatar tooltip */
.chat-tooltip{
  position: fixed;
  bottom: 150px;       
  right: 16px;
  background: linear-gradient(135deg, orange, green);   /* match your header green */
  color: #fff;
  padding: 8px 12px;
  border-radius: 9999px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  z-index: 10000;        /* above the avatar */
  pointer-events: none;  /* clicks pass through to the avatar */
  animation: tooltipFloat 2.6s ease-in-out infinite;
}
.chat-tooltip.hidden{ display: none; }

/* little arrow */
.chat-tooltip::after{
  content:"";
  position:absolute;
  right: 28px;           /* centers arrow under the pill */
  bottom: -6px;
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #029273 transparent transparent transparent;
}

/* gentle float to draw attention (optional) */
@keyframes tooltipFloat{
  0%,100%{ transform: translateY(0); opacity: 1; }
  50%    { transform: translateY(-2px); opacity: .95; }
}

/* small screens: nudge it a bit closer to the avatar */
@media (max-width:480px){
  .chat-tooltip{ bottom: 100px; right: 16px; }
}

/* On smaller screens */
@media (max-width: 576px) {
  .bot-msg, .user-msg {
    max-width: 90%;        /* ✅ allow more room on mobile */
    font-size: 14px;       /* ✅ slightly smaller text */
    padding: 8px 10px;     /* ✅ less padding for tight spaces */
  }

  .chat-tooltip {
    bottom: 150px;          /* ✅ move tooltip closer */
    right: 20px;
    font-size: 12px;       /* ✅ smaller text in tooltip */
    padding: 6px 10px;
  }

  .chat-tooltip::after {
    right: 22px;           /* ✅ center arrow under pill */
  }
}

/* Extra small devices (≤350px) */
@media (max-width: 350px) {
  .bot-msg, .user-msg {
    max-width: 95%;       /* ✅ almost full width on ultra-narrow screens */
    font-size: 13px;
  }

  .chat-tooltip {
    right: 20px;
    bottom: 150px;
  }
}


/* Footer */
.footer-aurora {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding-top: 3rem;
  padding-bottom: 2rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

.footer-aurora::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at -10% -10%, rgba(255, 255, 255, .12), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(0, 0, 0, .12), transparent 60%);
  z-index: 0;
}

.footer-aurora .container {
  position: relative;
  z-index: 1;
}

.footer-aurora .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-aurora .footer-link {
  color: #e7faff;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
  display: inline-block;
}

.footer-aurora .footer-link:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.footer-aurora .footer-social {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform .2s ease, color .2s ease;
}

.footer-aurora .footer-social:hover {
  color: #e7faff;
  transform: scale(1.15);
}

.footer-aurora .text-light {
  color: #e6f7ff !important;
}

.footer-aurora .small {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .footer-aurora .col-md-6 {
    text-align: center;
  }

  .footer-aurora .footer-logo {
    justify-content: center;
  }

  .footer-aurora .footer-social {
    font-size: 1.75rem;
  }
}

/* Modal */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 24px rgba(0, 180, 216, 0.35);
}

.modal-header {
  border-bottom: none;
  background: linear-gradient(45deg, var(--brand-1), var(--brand-2));
  color: #fff;
}

.modal-body .form-control {
  border-radius: 10px;
  border-color: var(--brand-1);
}

.form-label {
  font-weight: 600;
  color: var(--secondary);
}

.btnform {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(45deg, var(--brand-1), var(--brand-2));
  border: none;
  transition: background .3s ease;
  width: 50% !important;
  border-radius: 24px;
  padding: 10px;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

/* Scroll-to-Top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

/* Micro Interactions */
.tilt {
  transform-style: preserve-3d;
}

.tilt:hover {
  transform: perspective(800px) rotateX(4deg) rotateY(-6deg);
}

/* Responsive */
@media (max-width: 992px) {
  .navbar-nav {
    flex-direction: row;
    justify-content: flex-end;
  }

  .nav-link {
    margin-left: .75rem;
    font-size: .95rem;
  }

  .btnexam,
  .btnnav {
    padding: .35rem .9rem;
    font-size: .9rem;
  }
}

@media (max-width: 768px) {
  .navbar-collapse {
    background: var(--glass);
    padding: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-item {
    margin-bottom: .5rem;
  }

  .nav-link {
    margin-left: 0;
  }

  .btnexam,
  .btnnav {
    width: 100%;
    text-align: center;
  }
}