.fade-slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1.1s cubic-bezier(.23,1.02,.32,1) forwards;
}

@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-slide-up-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeSlideUp 1.1s cubic-bezier(.23,1.02,.32,1) forwards;
}
.fade-slide-up-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.fade-slide-up-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.fade-slide-up-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.fade-slide-up-stagger > *:nth-child(4) { animation-delay: 0.55s; }
.fade-slide-up-stagger > *:nth-child(5) { animation-delay: 0.7s; }
.fade-slide-up-stagger > *:nth-child(6) { animation-delay: 0.85s; }
.fade-slide-up-stagger > *:nth-child(7) { animation-delay: 1s; }
.fade-slide-up-stagger > *:nth-child(8) { animation-delay: 1.15s; }

/* Modern Google Fonts for vibrant, stylish look */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Quicksand:wght@400;600&family=Fira+Sans:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Quicksand', 'Montserrat', 'Fira Sans', Arial, sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
  background: linear-gradient(120deg, #f8fdff 0%, #f3e5f5 100%);
  color: #222;
  animation: bgFadeIn 1.2s cubic-bezier(.4,2,.6,1);
}

@keyframes bgFadeIn {
  from { background: #fff; }
  to { background: linear-gradient(120deg, #f8fdff 0%, #f3e5f5 100%); }
}

/* Header */

header {
  position: relative;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.logo {
  width: 60px;
  height: auto;
  position: static;
  margin-right: 10px;
}

.header-center {
  width: 100%;
  text-align: center;
}

h1 {
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-size: 2.2rem;
  margin: 0;
  color: #3e2a59;
  font-weight: 900;
  letter-spacing: 2px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1);
}

@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* Reset default styles.............................*/
body, ul {
  margin: 0;
  padding: 0;
}

/* Basic navbar styling */
.navbar {
  background-color: #ffffff;
  padding: 10px 20px;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: flex-start; /* Align items to the left */
  flex-wrap: wrap;
  gap: 20px;
}

/* Menu items */
.nav-menu li a {
  text-decoration:none;
  color: #000000;
  font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .teachers-hero-img {
    width: 90vw;
    max-width: 160px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #ba68c833;
  }
  header {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    box-shadow: none;
  }
  .logo {
    margin-bottom: 8px;
    width: 48px;
  }
  h1 {
    font-size: 1.3rem;
    padding: 0 5px;
  }
  .nav-menu {
    flex-direction: row;
    gap: 10px;
  }
}

/* Slide Image */
#slideImage {
  width: 90%;
  max-height: 60vh;
  display: block;
  margin: 2rem auto;
  object-fit: cover;
  border-radius: 10px;
}


.head1, .chat1, .chat2, .features, .about-faculty {
  padding: 2rem;
}

.head1 h2 {
  font-size: 2rem;
  color: #6a11cb;
  text-align: center;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 10px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1);
}

.highlight{
    font-size: xx-large;
    color: rgb(68, 0, 255);
}
  
.head1 h3{
  font-size: 1.3rem;
  color: #333;
  text-align: center;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}


.about-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background-color: #f3f0fa;
  max-width: 1200px;
  margin: 40px auto;
  padding: 30px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}


.about-text {
  flex: 1;
  min-width: 220px;
  max-width: 500px;
  padding: 10px 10px;
}


.about-text h2 {
  font-size: 1.7rem;
  color: #6a11cb;
  margin-bottom: 16px;
  border-left: 4px solid #4b7bec;
  padding-left: 10px;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.1s both;
}


.about-text h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1609a2;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}


.about-text h4 {
  font-size: 1rem;
  margin-top: 12px;
  color: #1d3557;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}


.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}


.about-image {
  flex: 1;
  min-width: 180px;
  max-width: 400px;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}


.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  transition: transform 0.3s;
}
.about-image img:hover {
  transform: scale(1.03);
}


@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
    padding: 15px 5px;
    margin: 15px 0;
  }
  .about-text {
    padding: 5px 2px;
    min-width: unset;
    max-width: 100%;
  }
  .about-text h2 {
    font-size: 1.2rem;
    text-align: center;
    padding-left: 0;
    border-left: none;
  }
  .about-text p, .about-text h3, .about-text h4 {
    text-align: center;
    font-size: 0.98rem;
  }
  .about-image {
    padding-top: 10px;
    min-width: unset;
    max-width: 100%;
  }
  .about-image img {
    max-width: 90vw;
    border-radius: 8px;
  }
}




.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: linear-gradient(90deg,#e3f2fd,#fce4ec);
}

.feature {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.feature img {
  height: 50px;
  margin-bottom: 15px;
}

.features h3 {
  margin: 0;
  font-size: 18px;
  color: #6a11cb;
  text-align: center;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.1s both;
}

.feature p {
  margin-top: 5px;
  color: #666;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}

@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* About Faculty */

/* About Faculty (cleaned up, no duplicate body/h2) */
.educator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
}
.educator:nth-child(even) {
  flex-direction: row-reverse;
}
.educator img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin: 0 30px;
  /* flex-shrink: 0; */
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
}
.educator-text {
  max-width: 600px;
}
.educator h3 {
  font-size: 22px;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  margin: 0;
  text-align: left;
  letter-spacing: 1.5px;
  color: #6a11cb;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.1s both;
}
.educator h3 a {
  color: #000;
  text-decoration: none;
  border-bottom: 2px solid #000;
}
.educator p {
  line-height: 1.6;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}
@media (max-width:1000px){
  h2 {
    font-size: 28px;
    text-align: left;
    margin-bottom: 40px;
    color: #5c4b7d;
    padding: 0;
  }
}
@media screen and (max-width: 768px) {
  .educator {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .educator:nth-child(even) {
    flex-direction: row-reverse;
  }
  .educator img {
    margin: 10px 20px;
  }
  .educator-text {
    text-align: left;
  }
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .hamburger {
    display: block;
  }

  .chat1, .chat2 {
    flex-direction: column;
    text-align: center;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .educator {
    flex-direction: column;
    text-align: center;
  }

  #slideImage {
    height: auto;
  }
}
/* Desktop Menu */
.desktop-menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px;
  font-size: 1.1rem;
  list-style: none;
  margin: 0;
  background-color: #f1f1f1;
}

.desktop-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: color 0.3s;
}

.desktop-menu li a:hover {
  color: #210288;
}

/* Hide sidebar and hamburger in desktop */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  .menubar {
    display: none !important;
  }
}

/* Show sidebar & hide desktop nav on small screens */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .hamburger img {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
  }

  .menubar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background-color: #333;
    padding-top: 60px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
  }

  .menubar ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .menubar li {
    padding: 15px 20px;
    color: white;
    font-size: 18px;
    border-bottom: 1px solid #555;
  }

  .menubar li:hover {
    background-color: #444;
  }

  .menubar:not(.sidebargo) {
    transform: translateX(0);
  }
}
.slider-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
}

#slideImage {
  width: 70%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#prevBtn,
#nextBtn {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 2;
}

#prevBtn:hover,
#nextBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

#prevBtn {
  left: 10%;
}

#nextBtn {
  right: 10%;
}

@media (max-width: 768px) {
  #prevBtn,
  #nextBtn {
    padding: 10px;
    font-size: 20px;
  }

  #prevBtn {
    left: 5%;
  }

  #nextBtn {
    right: 5%;
  }

  #slideImage {
    width: 90%;
  }
}

/* Contact Section */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  background: linear-gradient(90deg, #f8fdff 60%, #f3e5f5 100%);
  border-radius: 16px;
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contact-info, .contact-form {
  flex: 1;
  min-width: 300px;
  margin: 20px;
}

.contact-info h2,
.contact-form h2 {
  font-size: 26px;
  color: #6a11cb;
  margin-bottom: 20px;
  text-align: left;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1);
}

.contact-info p {
  font-size: 16px;
  color: #444;
  margin-bottom: 12px;
  line-height: 1.6;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}

.contact-info i {
  margin-right: 8px;
  color: #210288;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.3s;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.2s both;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #5c4b7d;
  box-shadow: 0 0 5px rgba(92, 75, 125, 0.5);
}

.contact-form button {
  padding: 12px;
  font-size: 16px;
  background: linear-gradient(90deg,#43cea2,#6a11cb);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', 'Fira Sans', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px #43cea233;
  transition: background 0.3s, transform 0.2s;
  animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1) 0.3s both;
}

.contact-form button:hover {
  background: linear-gradient(90deg,#6a11cb,#43cea2);
  transform: scale(1.04);
}

/* Social icons */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  font-size: 20px;
  color: #5c4b7d;
  transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #210288;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 30px 10px;
    box-shadow: none;
    margin: 20px 0;
  }

  .contact-info, .contact-form {
    margin: 10px 0;
    padding: 0;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 15px;
    padding: 10px 10px;
  }

  .contact-form button {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  .social-icons a {
    font-size: 18px;
    margin-right: 8px;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 10px 0;
  }
  .logo {
    position: static;
    margin-bottom: 10px;
    width: 60px;
  }
  h1 {
    font-size: 1.3rem;
    padding: 0 5px;
  }
  .about-section {
    padding: 20px 5px;
    margin: 20px 0;
  }
  .about-text {
    padding: 10px 5px;
    min-width: unset;
    max-width: 100%;
  }
  .about-image {
    padding: 10px 0;
    min-width: unset;
    max-width: 100%;
  }
  .about-image img {
    max-width: 90vw;
  }
  .features {
    gap: 10px;
    padding: 10px 0;
  }
  .feature {
    padding: 10px 5px;
    font-size: 15px;
  }
  .educator {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 0 5px;
  }
  .educator img {
    width: 120px;
    height: 120px;
    margin: 0 0 10px 0;
  }
  .educator-text {
    max-width: 100%;
    text-align: left;
    font-size: 15px;
  }
  .desktop-menu {
    font-size: 0.9rem;
    gap: 15px;
    padding: 10px;
  }
  .slider-container {
    margin-top: 10px;
  }
  #slideImage {
    width: 98vw;
    border-radius: 6px;
  }
  #prevBtn, #nextBtn {
    padding: 6px;
    font-size: 16px;
  }
}
  /* --- Mobile Vibrant & Dynamic Styles --- */
  @media (max-width: 600px) {
    body {
      background: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 50%, #ba68c8 100%);
      animation: bgMobileFade 2s ease-in-out;
    }
    .container {
      background: linear-gradient(120deg, #f8fdff 0%, #ba68c8 100%);
      box-shadow: 0 8px 32px rgba(186,104,200,0.10);
      border-radius: 18px;
      padding: 24px 8px;
      margin: 18px 0;
    }
    .contact-info h2, .contact-form h2 {
      color: #7c4dff;
      background: linear-gradient(90deg,#ba68c8,#4dd0e1);
      -webkit-background-clip: text;
    background-clip: text;
      -webkit-text-fill-color: transparent;
      font-size: 1.3rem;
      text-align: center;
    }
      .teachers-hero-img {
        width: 80vw;
        max-width: 240px;
        height: 120px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px #ba68c833;
      }
    }
    .feature {
      background: linear-gradient(120deg, #e0f7fa 0%, #ba68c8 100%);
      color: #333;
      box-shadow: 0 2px 12px #ba68c833;
      border-radius: 14px;
      margin-bottom: 12px;
      animation: fadeSlideUp 1.1s cubic-bezier(.23,1.02,.32,1);
    }
    .feature h3 {
      color: #4a148c;
      font-size: 1.1rem;
      font-weight: 700;
      letter-spacing: 1px;
      text-shadow: 1px 2px 8px #e1bee7;
    }
    .feature p {
      color: #7c4dff;
      font-size: 0.98rem;
      font-weight: 600;
    }
    .teachers-hero-section {
      background: linear-gradient(120deg, #e0f7fa 0%, #ba68c8 100%);
      box-shadow: 0 8px 32px #ba68c833;
      border-radius: 0 0 24px 24px;
      padding: 10px 0;
    }
    .teachers-hero-card {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 4px 18px #ba68c833;
      padding: 18px 6px;
      margin: 0 2vw;
      animation: fadeInSection 1.1s cubic-bezier(.4,2,.6,1);
    }
    .teachers-hero-title {
      color: #7c4dff;
      font-size: 1.18rem;
      text-shadow: 1px 2px 8px #e1bee7;
    }
    .hero-badge {
      background: linear-gradient(90deg,#ba68c8,#4dd0e1);
      color: #fff;
      font-size: 0.95rem;
      font-weight: 700;
      border-radius: 8px;
      padding: 2px 10px;
      margin-left: 6px;
      box-shadow: 0 2px 8px #ba68c833;
    }
    .teachers-hero-list li {
      background: rgba(186,104,200,0.15);
      border-left: 6px solid #ba68c8;
      font-size: 0.97rem;
      padding: 8px 6px;
      margin-bottom: 8px;
      color: #333;
      box-shadow: 0 2px 8px #ba68c81a;
      transition: background 0.3s, transform 0.3s;
    }
    .teachers-hero-list li:hover {
      background: rgba(186,104,200,0.25);
      transform: scale(1.03);
    }
  }
  @keyframes bgMobileFade {
    0% { background: #fff; }
    100% { background: linear-gradient(135deg, #e0f7fa 0%, #f3e5f5 50%, #ba68c8 100%); }
  }