/* Global Responsive Fixes */
img, video {
    max-width: 100%;
    height: auto;
}

* {
    box-sizing: border-box;
}

/* Gradient Button */
.gradient-button {
    display: inline-block;
    background: linear-gradient(270deg, brown, white, gray);
    background-size: 500%;
    color: black;
    font-size: large;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    width: 100%;
    max-width: 220px;
    height: 60px;
    animation: gradientAnimation 8s ease infinite;
}

.gradient-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-item {
    padding: 5px;
    font-weight: bold;
    animation: gradientAnimation 8s ease infinite;
}

.nav-item:hover {
    background-image: linear-gradient(to bottom, blue, aqua);
    border-radius: 18px;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

/* Footer */
.nav-item1 {
    padding: 5px;
    font-weight: bold;
}

.nav-item1:hover {
    background-image: linear-gradient(to bottom, gray, black);
    border-radius: 18px;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

/* ENG CSS */
.ENG {
    border-radius: 20px;
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    transition: 0.5s ease;
}

.ENG:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

/* Main Heading */
.main-heading {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Image Hover Effects */
.zoom-on-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Text Gradient */
.text1 {
    background: linear-gradient(90deg, #ff0000, #0000ff, #00cc00, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Nav */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* Media Queries for Responsiveness */
@media (max-width: 767px) { /* Phone */
    .main-heading {
        font-size: 2rem;
    }
    .display-6 {
        font-size: 1.8rem;
    }
    .lead {
        font-size: 1rem;
    }
    .container-fluid > .d-flex {
        flex-wrap: wrap;
        text-align: center;
    }
    .container-fluid img {
        margin: auto;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) { /* Tablet */
    .main-heading {
        font-size: 2.5rem;
    }
    .display-6 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) { /* Laptop */
    .main-heading {
        font-size: 3rem;
    }
    .display-6 {
        font-size: 2.5rem;
    }
}

/* Remove Right-Side White Space */
html, body {
    overflow-x: hidden !important;
}
#chatbot-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #007bff;
  color: white;
  width: 60px;
  height: 60px;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
}

#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 320px;
  height: 420px;
  background: white;
  border-radius: 15px;
  display: none;
  flex-direction: column;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.3);
  z-index: 9999;
}

#chatbot-header {
  background: #007bff;
  color: white;
  padding: 10px;
  display: flex;
  justify-content: space-between;
}

#chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

.bot-msg, .user-msg {
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 10px;
  max-width: 80%;
}

.bot-msg {
  background: #e3f2fd;
}

.user-msg {
  background: #d1ffd1;
  margin-left: auto;
}

#chatbot-input-area {
  display: flex;
  border-top: 1px solid #ddd;
}

#chatbot-input {
  flex: 1;
  border: none;
  padding: 10px;
}

#send-btn {
  width: 60px;
  border: none;
  background: #007bff;
  color: white;
}
