/***** 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-color: #6610f2; /* Indigo */
    --secondary-color: #fd7e14; /* Orange */
    --accent-color: #198754; /* Green */
    --background-light: #f6f6f6;
    --text-dark: #1c2526;
    --glass-bg: rgba(246, 246, 246, 0.85);
    --brand: #6610f2;
    --brand-2: #fd7e14;
}

html,body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-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-glass {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
     z-index: 1030;
    background: var(--glass-bg);
    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: purple;
    font-size: 1rem;
  font-weight: 600;
}

.nav-link {
    color: purple;
    font-weight: 500;
    margin-left: 1.5rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.btnexam {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.btnexam:hover {
    background: #ffca28;
    color: purple !important;
}

.dropdown-scroll {
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

.dropdown-scroll::-webkit-scrollbar {
    width: 6px;
}
.dropdown-scroll::-webkit-scrollbar-thumb {
    background: rgba(25, 135, 84, 0.6); /* Green thumb */
    border-radius: 10px;
}
.dropdown-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* 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(109, 11, 109);
  transition: background 0.2s ease;
}

.navbar .dropdown-item:hover {
  background: rgba(109, 60, 11, 0.221);
  color: rgb(109, 75, 11);
}

.btnnav {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btnnav:hover {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* 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 50px;
    background: linear-gradient(180deg, #e8def8 0%, #ffffff 100%);
}

.hero-bg {
    position: absolute;
    inset: 0 auto auto 40%;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: rgb(102, 16, 242);
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateX(-40%);
    pointer-events: none;
}

.btnbanner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.btnban {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-width: 3px;
    border-style: solid;
    border-image: linear-gradient(to right, var(--primary-color), var(--secondary-color)) 1;
    background-color: transparent;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* 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 Section (Rectangular cards with fade animation) */
#features {
    padding: 4rem 0;
    background: #e8def8;
}

.feature-card-gmat {
    background: #d1c4e9;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.4s ease;
    opacity: 0.8;
}

.feature-card-gmat:hover {
    opacity: 1;
}

.feature-icon-gmat {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Courses Section (Horizontal cards with slide animation) */
#courses {
    background: #ffffff;
}

.course-card-gmat {
    background: #f8d7da;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.6s ease;
}

.course-card-gmat:hover {
    transform: translateX(10px);
}

/* Syllabus Section (Columns with zoom animation) */
#syllabus {
    padding: 4rem 0;
    background: #e8def8;
}

.list-group-item {
    background: #d1c4e9;
    border: 1px solid var(--primary-color);
    margin-bottom: 1rem;
    animation: zoomIn 1s ease;
}

@keyframes zoomIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Question Bank (List with spin animation) */
#qb {
    background: #ffffff;
}

.qb-card {
    background: #f8d7da;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.6s ease;
}

.qb-card:hover {
    transform: rotateY(360deg);
}
/* Testimonials (Cards with bounce animation) */
#testimonials {
    padding: 4rem 0;
}

.testimonial-card {
    background: #d1c4e9;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    animation: bounceIn 1s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

/* FAQ (Standard accordion with rotate animation) */
#faq {
    background: #f4f4f4;
}

.accordion-item {
    transition: transform 0.3s ease;
}

.accordion-item:hover {
    transform: rotate(2deg);
}

/* Floating Circle */
#chat-circle {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  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(90deg, var(--primary-color), var(--secondary-color));
  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(90deg, var(--primary-color), var(--secondary-color));
  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(90deg, var(--primary-color), var(--secondary-color));   /* 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: #ffffff 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-enhanced {
    background: linear-gradient(135deg, var(--brand), 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-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.footer-enhanced .container {
    position: relative;
    z-index: 1;
}

.footer-enhanced .footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-enhanced .footer-link {
    color: #d1c4e9;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-enhanced .footer-link:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-enhanced .footer-social {
    color: #ffffff;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-enhanced .footer-social:hover {
    color: #d1c4e9;
    transform: scale(1.2);
}

.footer-enhanced .text-light {
    color: #e6e6fa !important;
}

.footer-enhanced .small {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .footer-enhanced .col-md-6 {
        text-align: center;
    }
    .footer-enhanced .footer-logo {
        justify-content: center;
    }
    .footer-enhanced .footer-social {
        font-size: 1.75rem;
    }
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 20px rgba(102, 16, 242, 0.5); /* Indigo shadow */
}

.modal-header {
    border-bottom: none;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.modal-body .form-control {
    border-radius: 10px;
    border-color: #6610f2; /* Indigo border */
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
}

.btnform {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    transition: background 0.3s ease;
    width: 50% !important;
    border-radius: 20px;
    padding: 10px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 16, 242, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: row;
        justify-content: flex-end;
    }
    .nav-link {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }
    .btnexam, .btnnav {
        padding: 0.25rem 0.75rem;
        font-size: 0.9rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .feature-card, .course-card, .qb-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        background: var(--glass-bg);
        padding: 1rem;
    }
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-item {
        margin-bottom: 0.5rem;
    }
    .nav-link {
        margin-left: 0;
    }
    .btnexam, .btnnav {
        width: 100%;
        text-align: center;
    }
}