/* GLOBAL RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}

/* Global safety */
* {
    box-sizing: border-box;
    max-width: 100% !important;
}

/* Bootstrap row fix */
.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}


img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* GRADIENT BUTTON */
.gradient-button {
    display: inline-block;
    background: linear-gradient(270deg, brown, white, gray);
    background-size: 500%;
    color: black;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 18px;
    width: 100%;
    max-width: 220px;
    height: 55px;
    animation: gradientAnimation 8s ease infinite;
    transition: transform 0.3s, box-shadow 0.3s;
}

.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 ITEMS */
.nav-item, .nav-item1 {
    padding: 6px 12px;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 18px;
}

.nav-item:hover {
    background: linear-gradient(to bottom, blue, aqua);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

.nav-item1:hover {
    background: linear-gradient(to bottom, gray, black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px black;
}

/* STICKY NAV */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #fff;
}

/* CONTACT DETAILS */
.contact-details h3 {
    color: #333;
    margin-top: 20px;
}

.contact-details p {
    margin-bottom: 10px;
}

/* MAP CONTAINER */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px #999;
}

/* TEXT GRADIENT */
.text1 {
    background: linear-gradient(90deg, #ff0000, #0000ff, #00cc00, #ff9900);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* SCROLL FADE ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.9s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   RESPONSIVENESS
   =============================== */

/* TABLETS (768px - 992px) */
@media (max-width: 992px) {
    .container-fluid > .d-flex {
        flex-wrap: wrap;
        text-align: center;
    }
    .container-fluid img {
        margin: auto;
    }
    .gradient-button {
        height: 50px;
        max-width: 200px;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 10px;
    }
}

/* MOBILE (up to 768px) */
@media (max-width: 768px) {
    h1, .fs-4 {
        font-size: 1.4rem !important;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center !important;
        gap: 8px;
    }

    .nav-item, .nav-item1 {
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .gradient-button {
        height: 50px;
        max-width: 180px;
        font-size: 0.9rem;
    }

    .map-container iframe {
        height: 220px;
    }
}

/* VERY SMALL PHONES (below 500px) */
@media (max-width: 500px) {
    h1 {
        font-size: 1.2rem !important;
    }
    .nav-item, .nav-item1 {
        font-size: 0.85rem;
        padding: 6px 8px;
    }
    .gradient-button {
        height: 48px;
        max-width: 160px;
    }
}
#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;
}
