
/* ============================================
   BASE STYLES
   ============================================ */

/* Light mode (default) */
html, body {
  width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
}

body {
  background-color: #ffffff;
  color: #000000;
  transition: background 0.3s, color 0.3s;
}

/* Dark mode */
body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

/* Button styling */
#darkModeToggle {
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #333;
  color: #fff;
}
body {
  font-size: 16px;
  transition: font-size 0.3s;
}

body.text-small {
  font-size: 14px;
}

body.text-medium {
  font-size: 16px;
}

body.text-large {
  font-size: 18px;
}

.text-size-controls button {
  padding: 5px 8px;
  cursor: pointer;
}
/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: white;
  color: #222;
}

/* ---------- HEADER ---------- */
header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: #f1f1f1;
  gap: 15px;
}

.top-left {
  display: flex;
  align-items: center;
}

.top-center {
  flex: 1;
  max-width: 500px;
  margin: 0 auto;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Form */
.search-form {
  position: relative;
  width: 100%;
}

.search-container {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid #ddd;
  border-radius: 25px;
  padding: 4px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 15px;
  font-size: 14px;
  background: transparent;
  color: #333;
}

.search-input::placeholder {
  color: #999;
}

.search-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  color: white;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.search-button:active {
  transform: scale(0.98);
}

.search-results {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
  background-color: #f8f9ff;
  outline: none;
}

.search-result-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.search-result-title {
  flex: 1;
  font-weight: 500;
}

.search-result-title mark {
  background-color: #fff3cd;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.search-result-type {
  font-size: 12px;
  color: #999;
  text-transform: capitalize;
  padding: 4px 8px;
  background: #f0f0f0;
  border-radius: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}






#darkModeToggle {
  padding: 6px 10px;
  cursor: pointer;
   margin-left: 30px;
}

/* Text Size Buttons */
.text-size-controls button {
  padding: 5px 8px;
  cursor: pointer;
}

/* Language Select */
#languageSelect {
  margin-right: 30px;
  margin-left: 30px;
  padding: 6px;
  cursor: pointer;
}

/* Middle Header */
.middle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.middle-left img {
  max-width: 600px;
  height: auto;
}

.middle-right img {
  max-width: 290px;
  height: auto;
  margin-right: 70px;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* Content cards */
.main-content-left,
.main-content-right {
  flex: 1;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(4, 2, 86, 0.08);
  transition: background-color 0.4s ease, 
              transform 0.4s ease, 
              box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
}

/* FULL DIV hover effect */
.main-content-left:hover,
.main-content-right:hover {
  background-color: #e6f2ff;   /* light blue */
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 14px 30px rgba(2, 27, 64, 0.25);
}

/* Headings */
.main-content h1 {
  margin-bottom: 12px;
  color: #031735;
  text-align: center;
  letter-spacing: 1px;
}

/* Images (centered, not full width) */
.main-content img {
  display: block;
  max-width: 75%;
  height: 350px;
  margin: 15px auto;
  border-radius: 8px;
  transition: transform 0.4s ease;
}

/* Image hover zoom */
.main-content-left:hover img,
.main-content-right:hover img {
  transform: scale(1.05);
}
/* Paragraph */
.main-content p {
  font-size: 15px;
  line-height: 1.7;
  text-align: justify;
}



/* ---------- ANIMATION ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .main-content img {
    max-width: 85%;
    height: 200px;
  }
  .top-left{
    margin-right: 37px;
  }

  /* Search responsive */
  .top-center {
    max-width: 100%;
    margin: 0 10px;
  }

  .search-container {
    padding: 3px;
  }

  .search-input {
    font-size: 13px;
    padding: 6px 12px;
  }

  .search-button {
    padding: 6px 12px;
  }
}

@media (max-width: 600px) {
  .top-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-center {
    order: 3;
    width: 100%;
    margin: 10px 0 0 0;
  }

  .search-results {
    max-height: 300px;
  }

  .search-result-item {
    padding: 10px 12px;
    font-size: 14px;
  }

  .search-result-icon {
    font-size: 16px;
  }
}


/* ---------- FOOTER ---------- */
footer {
  display: flex;
  width: 100%;
  background: #3D0C70;
  color: #ffffff;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Footer Sections (33.33% each) */

.footer-middle
 {
  width: 45%;
  padding: 20px;
}
.footer-left{
   width: 25%;
   padding: 20px;
}
.footer-right{
   width: 25%;
   padding: 20px;
}
/* Vertical border lines */
.footer-left,
.footer-middle {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

/* Headings */
footer h1 {
  font-size: 18px;
  margin-bottom: 12px;
}

/* Links */
footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* List styling */
.footer-left ul {
  list-style: none;
  font-size: 15px;
}

.footer-left ul li {
  margin-bottom: 10px;
  
}

.footer-left a {
  font-size: 18px;   /* icon size */
}
.footer-left p {
  margin-bottom: 10px;
}
.footer-middle p {
    text-align: justify;
}
.footer-right h1{
    color: red;
}
.footer-right ul {
  list-style: none;
  padding: 0;      /* remove default padding */
  margin: 0;       /* remove default margin */

}

.footer-right ul li {
  margin-bottom: 10px;
 
 
}
.footer-right i {
  font-size: 18px;   /* icon size */
}
.footer-right a {
  font-size: 18px;   /* icon size */
}
.footer-right p {
  margin-bottom: 10px;
}

/* Optional: link styling */
.footer-right ul li a {
  color: #ffffff;
  text-decoration: none;
  
}

.footer-right ul li a:hover {
  text-decoration: underline;
}


.footer-bottom {
  width: 100%;
  background: orange;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  font-size: 20px;
}

/* Left, Middle, Right sections */
.footer-bottom-left,
.footer-bottom-middle,
.footer-bottom-right {
  display: flex;
  align-items: center;
}

/* Middle: text + counter */
.footer-bottom-middle {
  gap: 6px;
}

/* Text spacing reset */
.footer-bottom p {
  margin: 0;
  color: #000;
}

/* Counter image size control (optional) */
.footer-bottom-middle img {
    margin-top: 10px;
  height: 28px;
  width: auto;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .footer-bottom-left,
  .footer-bottom-middle,
  .footer-bottom-right {
    justify-content: center;
  }
   .footer-bottom-right {
    order: 1;   /* Design By Nishant first */
  }

  .footer-bottom-middle {
    order: 2;   /* Visitor counter second */
  }

  .footer-bottom-left {
    order: 3;   /* Rights reserved last */
  }
}




/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
  }

  .footer-left,
  .footer-middle,
  .footer-right {
    width: 100%;
  }

  .footer-left,
  .footer-middle {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}



/* ---------- DARK MODE ---------- */
body.dark-mode {
  background: #121212;
  color: #eaeaea;
}

body.dark-mode header,
body.dark-mode .main-content-left,
body.dark-mode .main-content-right {
  background: #1e1e1e;
}

body.dark-mode footer {
  background: #000;
}

/* ---------- MEDIA QUERIES ---------- */

/* Tablet */
@media (max-width: 992px) {
  .main-content {
    flex-direction: column;
  }

  .middle-header {
    flex-direction: column;
    text-align: center;
  }

  .middle-left img,
  .middle-right img {
    max-width: 200px;
  }
  .middle-right
  {
    margin-left: 70px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .top-header {
    flex-direction: column;
    gap: 8px;
  }

  .top-right {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-content {
    padding: 10px;
  }

  
}
/* ===============================
   GO TO TOP BUTTON (MODERN)
================================ */

#goTopBtn,
.go-top-btn {
  position: fixed;
  bottom: 240px;
  right: 30px;
  z-index: 9997;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;

  color: #ffffff;
  background: linear-gradient(135deg, #0b6db7 0%, #1c8ce3 50%, #0b6db7 100%);
  background-size: 200% 200%;

  box-shadow: 
    0 6px 20px rgba(11, 109, 183, 0.4),
    0 0 20px rgba(11, 109, 183, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);

  animation: goTopGradient 3s ease infinite;

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);

  transition: 
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;

  /* Accessibility: Ensure button is accessible */
  outline: none;
}

#goTopBtn.show,
.go-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover and Focus States for Accessibility */
#goTopBtn:hover,
.go-top-btn:hover {
  background: linear-gradient(135deg, #0a5a9a 0%, #1673c4 50%, #0a5a9a 100%);
  box-shadow: 
    0 8px 25px rgba(11, 109, 183, 0.5),
    0 0 25px rgba(11, 109, 183, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

#goTopBtn:focus-visible,
.go-top-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  background: linear-gradient(135deg, #0a5a9a 0%, #1673c4 50%, #0a5a9a 100%);
}

#goTopBtn:active,
.go-top-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Ensure button is visible for keyboard users */
#goTopBtn[aria-hidden="false"],
.go-top-btn[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}



.main-content-leet {
  padding: 40px;
  font-family: Arial, sans-serif;
}

/* Remove link style */
.leet-link {
  text-decoration: none;
  color: inherit;
}

/* Container */
.leet-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
/* Card */
.leet-card {
  width: 300px;
  text-align: center;
  padding: 25px;
  border-radius: 15px;
  background: #f8f9ff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  cursor: pointer;

  /* Animation */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
}

/* Hover Effect */
.leet-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 15px 30px rgba(74,108,247,0.4);
}

/* Image */
.leet-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #4a6cf7;
  transition: transform 0.4s ease;
}

/* Image hover animation */
.leet-card:hover img {
  transform: rotate(8deg) scale(1.1);
}

/* Heading */
.leet-card h2 {
  color: #2c3e50;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

/* Heading hover color */
.leet-card:hover h2 {
  color: #4a6cf7;
}

/* Text */
.leet-card p {
  color: black;
  font-size: 15px;
}

/* Entrance Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Experience Section */
.experience-section {
  background: #eef2ff;
  padding: 40px;
  border-radius: 15px;
}

/* Heading */
.experience-heading {
  text-align: center;
  color: red;
  font-size: 32px;
  margin-bottom: 30px;
}

/* Image + Text */
.experience-content {
  display: flex;
  align-items: center;
  gap: 40px;
}



.experience-text p {
  color: black;
  font-size: 17px;
  line-height: 1.8;
}

/* ===============================
   LARGE DESKTOP (1200px and up)
================================ */
@media (min-width: 1200px) {
  .main-content-leet {
    max-width: 1200px;
    margin: auto;
  }
}

/* ===============================
   LAPTOPS & SMALL DESKTOPS
================================ */
@media (max-width: 1199px) {
  .leet-container {
    gap: 25px;
  }

  .leet-card {
    width: 280px;
  }

  .experience-content {
    gap: 30px;
  }
}

/* ===============================
   TABLETS (iPad, etc.)
================================ */
@media (max-width: 992px) {
  .leet-container {
    justify-content: center;
  }

  .leet-card {
    width: 260px;
  }

  .experience-content {
    flex-direction: column;
    text-align: center;
  }

  

  .experience-heading {
    font-size: 28px;
  }
}

/* ===============================
   LARGE MOBILE PHONES
================================ */
@media (max-width: 768px) {
  .main-content-leet {
    padding: 25px;
    margin-left: 20px;
  }

  .leet-container {
    flex-direction: column;
    align-items: center;
  }

  .leet-card {
    width: 90%;
  }

  .leet-card h2 {
    font-size: 22px;
  }

  .experience-heading {
    font-size: 26px;
  }

  .experience-text p {
    font-size: 15px;
  }
}

/* ===============================
   SMALL MOBILE PHONES
================================ */
@media (max-width: 480px) {
  .main-content-leet {
    padding: 15px;
    margin-left: 20px;
  }

  .leet-card {
    padding: 20px;
  }

  .leet-card img {
    width: 100px;
    height: 100px;
  }

 

  .experience-heading {
    font-size: 22px;
  }

  .experience-text p {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
  }
}
.main-content-btech-leet {
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

/* Page Heading */
.page-heading {
  text-align: center;
  font-size: 36px ;
  color: #4a6cf7;
  margin-bottom: 50px;
}

/* Grid */
.btech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* Cards */
.btech-card {
  background: #f8f9ff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
}

.btech-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #4a6cf7;
  transition: transform 0.4s ease;
}


.btech-card h3 {
  font-size: 20px;
  color: #2c3e50;
}

/* Hover Effects */
.btech-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 15px 30px rgba(74,108,247,0.35);
}

.btech-card:hover img {
  transform: rotate(8deg) scale(1.1);
}

/* Special Sample Paper */
.sample-paper-special {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.sample-paper-special a {
  width: 320px;
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: white;
  text-decoration: none;
  padding: 35px 25px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 30px rgba(221,36,118,0.4);
  transition: all 0.4s ease;
}
.sample-paper-special img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #fff;
}
.leet-sample-paper {
  padding: 50px 20px;
  font-family: Arial, sans-serif;
  max-width: 1100px;
  margin: auto;
}

/* Heading */
.page-heading {
  text-align: center;
  font-size: 36px;
  color: #4a6cf7;
  margin-bottom: 40px;
}

/* Grid */
.sample-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

/* Cards */
.sample-paper-card {
  background: #f8f9ff;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #2c3e50;
  font-size: 18px;
  font-weight: bold;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: all 0.35s ease;
}

/* Hover */
.sample-paper-card:hover {
  background: #4a6cf7;
  color: #fff;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(74,108,247,0.4);
}

/* Disclaimer */
.sample-disclaimer {
  text-align: center;
  margin-top: 30px;
}

.sample-disclaimer p {
  color: red;
  font-size: 15px;
  line-height: 1.6;
  max-width: 900px;
  margin: auto;
}


.sample-paper-special h3 {
  font-size: 22px;
}

/* Hover */
.sample-paper-special a:hover {
  transform: scale(1.08);
  box-shadow: 0 25px 40px rgba(221,36,118,0.6);
}
@media (max-width: 768px) {
  .page-heading {
    font-size: 28px;
  }

  .sample-paper-card {
    font-size: 16px;
    padding: 20px;
  }

  .sample-disclaimer p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .leet-sample-paper {
    padding: 30px 15px;
  }

  .sample-paper-grid {
    gap: 18px;
  }
}
.main-content-hsbte {
  padding: 60px 20px;
  font-family: Arial, sans-serif;
}

/* Heading */
.hsbte-heading {
  text-align: center;
  font-size: 38px;
  color: #2c3e50;
}

.hsbte-heading span {
  color: #e63946;
  
}

/* Subtext */
.hsbte-subtext {
  text-align: center;
  margin: 15px 0 45px;
  font-size: 18px;
  color: #555;
}

/* Grid */
.hsbte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: auto;
}

/* Card */
.hsbte-card {
  background: #f8f9ff;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  transition: all 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
}

/* Image (bigger & no border) */
.hsbte-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 18px;
  transition: transform 0.4s ease;
}

/* Text */
.hsbte-card p {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Hover */
.hsbte-card:hover {
  transform: translateY(-12px) scale(1.06);
  background: linear-gradient(135deg, #4a6cf7, #6a5cff);
  box-shadow: 0 22px 40px rgba(74,108,247,0.5);
}

.hsbte-card:hover img {
  transform: scale(1.15) rotate(5deg);
}

.hsbte-card:hover p {
  color: #fff;
}

/* My Experience - Premium Style */
.my-experience {
  margin-top: 90px;
  padding: 50px 30px;
  text-align: justify;
  background: linear-gradient(135deg, #fff1f1, #ffe6e6);
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}
.my-experience h2{
  text-align: center;
}
/* Decorative Glow */
.my-experience::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,0,0,0.15), transparent 60%);
  z-index: 0;
}

/* Heading */
.my-experience h2 {
  position: relative;
  z-index: 1;
  color: #e63946;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

/* Animated underline */
.my-experience h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #e63946, #ff7b7b);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* Text */
.my-experience p {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: auto;
  font-size: 17px;
  line-height: 1.8;
  color: black;
  animation: fadeInText 1.2s ease;
}

/* Fade animation */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 992px) {
  .hsbte-heading {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .hsbte-heading {
    font-size: 26px;
  }

  .hsbte-subtext {
    font-size: 16px;
  }

  .hsbte-card img {
    width: 90px;
    height: 90px;
  }
 
  .my-experience {
    padding: 35px 20px;
  }

  .my-experience h2 {
    font-size: 28px;
  }

  .my-experience p {
    font-size: 15px;
  }
}
/* ===============================
   COMPUTER PYQ SECTION
================================ */
.computer-pyq {
  padding: 80px 20px;
  text-align: center;
}

/* Heading */
.computer-pyq-heading {
  font-size: 36px;
  color: black;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  cursor: default;
  transition: color 0.4s ease;
}

/* Heading hover underline animation */
.computer-pyq-heading::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #457b9d, #1d3557);
  transition: all 0.4s ease;
  transform: translateX(-50%);
}

.computer-pyq-heading:hover::after {
  width: 80%;
}

/* Grid */
.computer-pyq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: auto;
   
  
  
}

/* Card */
.computer-pyq-card {
  text-decoration: none;
  color: black;
  padding: 35px 20px;
  border-radius: 20px;
  background-color: #f8f9ff !important;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);

  /* NEW animation (slide + glow) */
  animation: slideGlow 0.9s ease forwards;
  transition: all 0.45s ease;
}

/* Image */
.computer-pyq-card img {
  width: 115px;
  height: 115px;
  border-radius: 50%;
  margin-bottom: 18px;
  transition: transform 0.45s ease;
}

/* Text */
.computer-pyq-card span {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

/* Hover Effect */
.computer-pyq-card:hover {
  transform: translateY(-14px) scale(1.06);
  background: linear-gradient(135deg, #1d3557, #457b9d);
  color: red;
}



@media (max-width: 768px) {
  .computer-pyq-heading {
    font-size: 28px;
  }

  .computer-pyq-card img {
    width: 110px;
    height: 110px;
  }

  .computer-pyq-card span {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .computer-pyq {
    padding: 60px 15px;
  }

  .computer-pyq-grid {
    gap: 25px;
  }
}
/* ===============================
   COMPUTER 1ST SEMESTER
================================ */
.computer-1-semester {
  padding: 80px 20px;
  text-align: center;
  max-width: 1100px;
  margin: auto;
}

/* Heading */
.semester-heading {
  font-size: 34px;
  color: #1d3557;
  margin-bottom: 12px;
}

/* Subtext */
.semester-subtext {
  font-size: 18px;
  color: black;
  margin-bottom: 45px;
}

/* Grid - Enhanced */
.semester-subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 40px;
  padding: 0 10px;
}

/* Subject Card - Modern Enhanced Design */
.semester-subject-card {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  padding: 32px 24px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  
  /* Beautiful gradient backgrounds */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Enhanced shadows */
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35),
              0 0 0 0 rgba(102, 126, 234, 0.1);
  
  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  
  /* Staggered entrance animation */
  opacity: 0;
  animation: fadeSlideUp 0.7s ease forwards;
  
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
}

/* Staggered animation delays */
.semester-subject-card:nth-child(1) { animation-delay: 0.05s; }
.semester-subject-card:nth-child(2) { animation-delay: 0.1s; }
.semester-subject-card:nth-child(3) { animation-delay: 0.15s; }
.semester-subject-card:nth-child(4) { animation-delay: 0.2s; }
.semester-subject-card:nth-child(5) { animation-delay: 0.25s; }
.semester-subject-card:nth-child(6) { animation-delay: 0.3s; }
.semester-subject-card:nth-child(7) { animation-delay: 0.35s; }

/* Shine effect overlay */
.semester-subject-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

.semester-subject-card:hover::before {
  left: 100%;
}

/* Gradient variations for each session button - Beautiful colors */
.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(1) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
  box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
  box-shadow: 0 10px 30px rgba(67, 233, 123, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(5) {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
  box-shadow: 0 10px 30px rgba(250, 112, 154, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(6) {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
  box-shadow: 0 10px 30px rgba(48, 207, 208, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(7) {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
  color: #2d3748 !important;
  box-shadow: 0 10px 30px rgba(168, 237, 234, 0.4);
}

.semester-subject-grid .semester-subject-card:not(.main-subject):nth-child(7):hover {
  color: #1a202c !important;
}

/* Enhanced Hover Effect */
.semester-subject-card:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5),
              0 0 0 4px rgba(102, 126, 234, 0.1);
  color: #ffffff;
}

.semester-subject-card:hover::before {
  left: 100%;
}

/* Active state */
.semester-subject-card:active {
  transform: translateY(-8px) scale(1.05);
  transition: all 0.2s ease;
}

/* PDF link indicator */
.semester-subject-card[href*=".pdf"] {
  position: relative;
}

.semester-subject-card[href*=".pdf"]::after {
  content: "📄";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  opacity: 0.9;
  z-index: 2;
}

/* Blank links (no PDF) styling - Override gradient colors */
.semester-subject-card[href="#"] {
  opacity: 0.85;
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
  box-shadow: 0 8px 25px rgba(149, 165, 166, 0.3) !important;
  color: #ffffff !important;
}

.semester-subject-card[href="#"]:hover {
  opacity: 1;
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
  box-shadow: 0 15px 35px rgba(149, 165, 166, 0.4) !important;
  color: #ffffff !important;
}

/* Ensure text is above shine effect */
.semester-subject-card > * {
  position: relative;
  z-index: 2;
}

/* ================= MAIN SUBJECT CARDS (Subject Navigation) ================= */
.semester-subject-card.main-subject {
  font-size: 18px !important;
  min-height: 115px !important;
  padding: 36px 22px !important;
  background: linear-gradient(135deg, #f3f6ff, #e6ecff) !important;
  color: #0d6efd !important;
  border: 2px solid #cdd9ff !important;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.4s ease !important;
  animation: none !important;
}

/* Main subject shine effect */
.semester-subject-card.main-subject::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(13, 110, 253, 0.35),
    transparent
  );
  transition: 0.7s;
  z-index: 1;
}

.semester-subject-card.main-subject:hover::before {
  left: 120%;
}

.semester-subject-card.main-subject:hover {
  background: linear-gradient(135deg, orange, red) !important;
  color: #fff !important;
  transform: translateY(-10px) scale(1.06);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.45) !important;
  border-color: transparent !important;
}

.semester-subject-card.main-subject > * {
  position: relative;
  z-index: 2;
}

/* Enhanced Animation */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .semester-heading {
    font-size: 26px;
  }

  .semester-subtext {
    font-size: 16px;
  }

  .semester-subject-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
  }

  .semester-subject-card {
    font-size: 16px;
    padding: 26px 18px;
    min-height: 90px;
  }
}

@media (max-width: 480px) {
  .computer-1-semester {
    padding: 60px 15px;
  }

  .semester-subject-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .semester-subject-card {
    font-size: 15px;
    padding: 22px 16px;
    min-height: 85px;
  }
}

/* Dark mode support */
body.dark-mode .semester-subject-card[href="#"] {
  background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%) !important;
  opacity: 0.9;
}

body.dark-mode .semester-subject-card[href="#"]:hover {
  background: linear-gradient(135deg, #4a5568 0%, #718096 100%) !important;
  opacity: 1;
}
.text-small h1 { font-size: 26px; }
.text-small h2 { font-size: 22px; }
.text-small h3 { font-size: 20px; }
.text-small h4 { font-size: 18px; }
.text-large span{ font-size: 32px  !important ;}
.text-small p,
.text-small a,
.text-small span,
.text-small li,
.text-small button {
  font-size: 14px;
}
.text-medium h1 { font-size: 32px; }
.text-medium h2 { font-size: 28px; }
.text-medium h3 { font-size: 24px; }
.text-medium h4 { font-size: 20px; }
.text-large span{ font-size: 32px  !important ;}
.text-medium p,
.text-medium a,
.text-medium li,
.text-medium button {
  font-size: 16px;
}
.text-large h1 { font-size: 38px; }
.text-large h2 { font-size: 34px; }
.text-large h3 { font-size: 30px; }
.text-large h4 { font-size: 26px; }
.text-large span{ font-size: 38px  !important ;}
.text-large p,
.text-large a,
.text-large span,
.text-large li,
.text-large button {
  font-size: 20px;
}
body * {
  transition: font-size 0.25s ease;
}
/* ===============================
   SPECIAL SAMPLE PAPER SECTION
================================ */

.special-sample-paper {
  margin: 0px auto;
  padding: 40px 20px;
  max-width: 1200px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  text-align: center;
}

/* Heading */
.special-sample-paper h2 {
  font-size: 32px;
  color: #1e3a8a;
  margin-bottom: 10px;
  letter-spacing: 1px;

}

/* Sub heading */
.special-sample-paper p {
  font-size: 16px;
  color: #374151;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

/* Card container */
.special-paper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* Individual paper card */
.special-paper-card {
  background: #ffffff;
  border: 2px solid #2563eb;
  border-radius: 12px;
  padding: 25px 20px;
  text-decoration: none;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Card exam-style top strip */
.special-paper-card::before {
  content: "MOCK EXAM";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #2563eb;
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
  letter-spacing: 1px;
}

/* Hover effect */
.special-paper-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(37,99,235,0.25);
  background: #eff6ff;
}

/* Difficulty badge */
.special-paper-card span {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 13px;
  border-radius: 20px;
}

/* ===============================
   DARK MODE SUPPORT
================================ */
body.dark-mode .special-sample-paper {
  background: linear-gradient(135deg, #020617, #020617);
}

body.dark-mode .special-sample-paper h2 {
  color: #93c5fd;
}

body.dark-mode .special-sample-paper p {
  color: #e5e7eb;
}

body.dark-mode .special-paper-card {
  background: #020617;
  color: #bfdbfe;
  border-color: #3b82f6;
}

body.dark-mode .special-paper-card:hover {
  background: #020617;
}

/* ===============================
   RESPONSIVE DESIGN
================================ */

/* @media (max-width: 768px) {
  .special-sample-paper h2 {
    font-size: 26px;
  }

  .special-sample-paper p {
    font-size: 15px;
  }

  .special-paper-card {
    font-size: 16px;
    padding: 22px 16px;
  }
}

@media (max-width: 480px) {
  .special-sample-paper {
    padding: 30px 15px;
  }

  .special-sample-paper h2 {
    font-size: 22px;
  }

  .special-paper-card::before {
    font-size: 11px;
  }
} */
/* =========================
   TABLET (max-width: 1024px)
========================= */
@media (max-width: 1024px) {

.wrapper{
 width: 96%;
}

.main{
 grid-template-columns: 180px 1fr 180px;
}

.left{
 height: 450px;
}

.options label{
 font-size: 14px;
}

.controls button{
 padding: 6px 10px;
 font-size: 13px;
}

}

/* ===============================
   ROBOT IMAGE CHATBOT (FUTURISTIC)
================================ */

#robot-chatbot {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: robotFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(11, 109, 183, 0.5));
  transition: transform 0.3s ease;
}

#robot-chatbot:hover {
  transform: translateY(-2px);
}

/* Futuristic glow effect */
.robot-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 109, 183, 0.4), transparent 70%);
  animation: pulseGlow 2s ease-in-out infinite;
  pointer-events: none;
}

.robot-pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(11, 109, 183, 0.3);
  animation: pulseRing 2s ease-out infinite;
  pointer-events: none;
}

#robot-chatbot img {
  width: 96px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(11, 109, 183, 0.6)) drop-shadow(0 18px 35px rgba(0,0,0,0.55));
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#robot-chatbot:hover img {
  transform: scale(1.2) rotate(-5deg);
  filter: drop-shadow(0 0 25px rgba(11, 109, 183, 0.9)) drop-shadow(0 25px 45px rgba(0,0,0,0.6));
}

/* Futuristic tooltip */
.robot-tooltip {
  margin-top: 10px;
  position: relative;
  z-index: 3;
}

.tooltip-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #0b6db7, #1c8ce3, #0b6db7);
  background-size: 200% 200%;
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(11, 109, 183, 0.5),
              0 0 20px rgba(11, 109, 183, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  animation: gradientShift 3s ease infinite, tooltipFloat 2s ease-in-out infinite;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 11px;
}

.tooltip-arrow {
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0b6db7;
  margin: 2px auto 0;
  filter: drop-shadow(0 2px 4px rgba(11, 109, 183, 0.3));
}

/* Animations */
@keyframes robotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

@keyframes pulseRing {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes tooltipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===============================
   CHATBOT BOX (FUTURISTIC GLASS)
================================ */

#chatbot-box {
  position: fixed;
  bottom: 180px;
  right: 28px;
  width: 400px;
  max-height: calc(100vh - 220px);
  min-height: 400px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  
  /* Advanced Glassmorphism */
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 60px rgba(11, 109, 183, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: chatbotSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Ensure it doesn't go off screen */
  max-width: calc(100vw - 56px);
}

/* Animated background glow */
.chatbot-background-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, 
    rgba(11, 109, 183, 0.15) 0%,
    rgba(28, 140, 227, 0.1) 30%,
    transparent 70%);
  animation: rotateGlow 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay effect */
.chatbot-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(11, 109, 183, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 109, 183, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* Header */
#chatbot-header {
  background: linear-gradient(135deg, 
    rgba(11, 109, 183, 0.95) 0%,
    rgba(9, 74, 122, 0.95) 50%,
    rgba(11, 109, 183, 0.95) 100%);
  background-size: 200% 200%;
  color: #fff;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: headerGradient 5s ease infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.icon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

.header-icon i {
  position: relative;
  z-index: 1;
  font-size: 18px;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header-title {
  font-size: 16px;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
  text-transform: uppercase;
  letter-spacing: 1px;
}

#chatbot-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
}

#chatbot-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#chatbot-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Animations */
@keyframes chatbotSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes headerGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes iconPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

/* Model status */
#model-status {
  padding: 8px 16px;
  font-size: 12px;
  color: #555;
  background: #f1f4f9;
}

/* ===============================
   CHAT MESSAGES (FUTURISTIC)
================================ */

#chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.02);
}

/* Custom scrollbar */
#chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

#chatbot-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0b6db7, #1c8ce3);
  border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1c8ce3, #0b6db7);
}

.chatbot-msg {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 20px;
  font-size: 14.5px;
  line-height: 1.6;
  word-wrap: break-word;
  position: relative;
  animation: messageSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* User bubble */
.chatbot-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #0b6db7 0%, #1c8ce3 50%, #0b6db7 100%);
  background-size: 200% 200%;
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 
    0 4px 20px rgba(11, 109, 183, 0.4),
    0 0 20px rgba(11, 109, 183, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: messageSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
             userGradient 3s ease infinite;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Bot bubble */
.chatbot-msg.bot {
  align-self: flex-start;
  background: linear-gradient(135deg, 
    rgba(238, 242, 247, 0.95) 0%,
    rgba(255, 255, 255, 0.95) 100%);
  color: #1a1a1a;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(11, 109, 183, 0.1);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.chatbot-msg.bot::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid rgba(238, 242, 247, 0.95);
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.1));
}

.chatbot-msg.user::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid #0b6db7;
  filter: drop-shadow(2px 0 2px rgba(11, 109, 183, 0.3));
}

/* Animations */
@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes userGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===============================
   INPUT AREA (FUTURISTIC)
================================ */

#chatbot-input {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: rgba(11, 109, 183, 0.5);
  font-size: 14px;
  z-index: 1;
  transition: all 0.3s ease;
}

#chatbot-input input {
  flex: 1;
  padding: 14px 16px 14px 42px;
  border-radius: 25px;
  border: 2px solid rgba(11, 109, 183, 0.2);
  font-size: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  color: #1a1a1a;
  box-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#chatbot-input input::placeholder {
  color: rgba(11, 109, 183, 0.5);
}

#chatbot-input input:focus {
  border-color: #0b6db7;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 4px 20px rgba(11, 109, 183, 0.3),
    0 0 0 4px rgba(11, 109, 183, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

#chatbot-input input:focus + .input-icon,
#chatbot-input input:focus ~ #chatbot-send {
  color: #0b6db7;
}

#chatbot-input input:focus ~ .input-icon {
  color: #0b6db7;
  transform: scale(1.1);
}

#chatbot-input button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #0b6db7 0%, #1c8ce3 50%, #0b6db7 100%);
  background-size: 200% 200%;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 
    0 6px 20px rgba(11, 109, 183, 0.4),
    0 0 20px rgba(11, 109, 183, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sendButtonGradient 3s ease infinite;
}

#chatbot-input button:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 
    0 8px 25px rgba(11, 109, 183, 0.5),
    0 0 30px rgba(11, 109, 183, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#chatbot-input button:active {
  transform: scale(0.95) rotate(15deg);
}

.send-ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.6s, opacity 0.6s;
}

#chatbot-input button:active .send-ripple {
  transform: scale(2);
  opacity: 0;
}

.chatbot-msg {
  white-space: pre-line;
}

/* Animations */
@keyframes sendButtonGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===============================
   DARK MODE SUPPORT
================================ */

body.dark-mode #chatbot-box {
  background: linear-gradient(135deg, 
    rgba(18, 18, 18, 0.95) 0%,
    rgba(30, 30, 30, 0.95) 100%);
  border: 1px solid rgba(11, 109, 183, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(11, 109, 183, 0.2) inset,
    0 0 60px rgba(11, 109, 183, 0.3);
}

body.dark-mode .chatbot-msg.bot {
  background: linear-gradient(135deg, 
    rgba(40, 40, 40, 0.95) 0%,
    rgba(30, 30, 30, 0.95) 100%);
  color: #e0e0e0;
  border: 1px solid rgba(11, 109, 183, 0.2);
}

body.dark-mode .chatbot-msg.bot::before {
  border-right-color: rgba(40, 40, 40, 0.95);
}

body.dark-mode #chatbot-input {
  background: linear-gradient(180deg, 
    rgba(30, 30, 30, 0.8) 0%,
    rgba(18, 18, 18, 0.8) 100%);
  border-top: 1px solid rgba(11, 109, 183, 0.2);
}

body.dark-mode #chatbot-input input {
  background: rgba(40, 40, 40, 0.9);
  color: #e0e0e0;
  border-color: rgba(11, 109, 183, 0.3);
}

body.dark-mode #chatbot-input input:focus {
  background: rgba(50, 50, 50, 0.95);
  border-color: #0b6db7;
  box-shadow: 
    0 4px 20px rgba(11, 109, 183, 0.4),
    0 0 0 4px rgba(11, 109, 183, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .input-icon {
  color: rgba(11, 109, 183, 0.6);
}

body.dark-mode #chatbot-messages {
  background: rgba(0, 0, 0, 0.1);
}

body.dark-mode #chatbot-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

/* ===============================
   TABLET & MEDIUM SCREENS
================================ */

@media (max-width: 1024px) {
  #chatbot-box {
    width: 380px;
    right: 20px;
    bottom: 160px;
    max-height: calc(100vh - 200px);
  }
}

@media (max-width: 768px) {
  #chatbot-box {
    width: 360px;
    right: 15px;
    bottom: 150px;
    max-height: calc(100vh - 180px);
    min-height: 350px;
  }
  
  #robot-chatbot {
    bottom: 20px;
    right: 20px;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 480px) {
  #chatbot-box {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 140px;
    max-height: calc(100vh - 160px);
    min-height: 300px;
    max-width: none;
  }

  #robot-chatbot {
    bottom: 15px;
    right: 15px;
  }

  #robot-chatbot img {
    width: 70px;
  }

  .robot-glow {
    width: 90px;
    height: 90px;
  }

  .robot-pulse {
    width: 110px;
    height: 110px;
  }

  .tooltip-text {
    font-size: 9px;
    padding: 5px 12px;
  }

  #chatbot-header {
    padding: 14px 16px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
  }

  .header-icon i {
    font-size: 14px;
  }

  .header-title {
    font-size: 13px;
  }

  .header-status {
    font-size: 10px;
  }

  .chatbot-msg {
    max-width: 88%;
    padding: 11px 14px;
    font-size: 13px;
  }

  #chatbot-input {
    padding: 12px;
  }

  #chatbot-input input {
    padding: 11px 12px 11px 36px;
    font-size: 12.5px;
  }

  #chatbot-input button {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
  
  .input-icon {
    left: 14px;
    font-size: 12px;
  }
}

/* ===============================
   SMALL MOBILE
================================ */

@media (max-width: 360px) {
  #chatbot-box {
    width: calc(100vw - 16px);
    right: 8px;
    left: 8px;
    bottom: 130px;
    max-height: calc(100vh - 150px);
    min-height: 280px;
  }

  #robot-chatbot {
    bottom: 12px;
    right: 12px;
  }

  #robot-chatbot img {
    width: 60px;
  }

  .robot-glow {
    width: 80px;
    height: 80px;
  }

  .robot-pulse {
    width: 100px;
    height: 100px;
  }

  .tooltip-text {
    font-size: 8px;
    padding: 4px 10px;
  }

  #chatbot-header {
    padding: 12px 14px;
  }

  .header-title {
    font-size: 12px;
  }

  .chatbot-msg {
    max-width: 85%;
    padding: 10px 12px;
    font-size: 12px;
  }

  #chatbot-input {
    padding: 10px;
  }

  #chatbot-input input {
    padding: 10px 10px 10px 32px;
    font-size: 12px;
  }

  #chatbot-input button {
    width: 40px;
    height: 40px;
    font-size: 12px;
  }
}




