/* === RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
}

/* === BACKGROUND VIDEO === */
#bg-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* === MZU LOGO === */
#mzu-brand {
    position: fixed;
    top: 260px;
    left: 670px;
    z-index: 20;
}

#mzu-logo {
    width: 190px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
}

/* === CHAT FLOATING BUTTON === */
#chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#chatbot-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0px 0px 10px rgba(255,255,255,0.8));
}

/* === CHAT WINDOW === */
#chatbot-window {
    position: fixed;
    right: 30px;
    bottom: 110px;
    width: 380px;
    height: 560px;
    display: none;
    flex-direction: column;

    background: rgba(255,255,255,0.08);
    border-radius: 18px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 20px rgba(0,255,150,0.5);
    overflow: hidden;
    z-index: 9999;
}

/* === HEADER (bot icon visible & aligned) === */
#chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(180deg,#007bff,#006be0);
    color: white;
    z-index: 3;
    overflow: visible !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#chatbot-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.2);
}

.title-block .title {
    font-size: 17px;
    font-weight: bold;
    color: #fff;
}

.subtitle {
    font-size: 12px;
    opacity: 0.9;
}

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

#github-link {
    background: rgba(255,255,255,0.85);
    padding: 3px 8px;
    border-radius: 6px;
    color: #003b99;
    text-decoration: underline;
    font-size: 12px;
}

#chatbot-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* === SUGGESTION BUTTONS === */
#suggestions {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.04);
    z-index: 2;
}

#chatbot-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#chatbot-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;       /* ← this makes it circular */
    box-shadow: 0px 0px 25px rgba(255,255,255,0.6);  /* glow */
}

.suggestion-btn:hover {
    background: #e9e9e9;
}

/* === MESSAGE AREA === */
#chatbot-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* USER MESSAGE */
.user-msg {
    background: #007bff;
    color: white;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 75%;
    align-self: flex-end;
    box-shadow: 0 0 8px rgba(0,123,255,0.5);
}

/* BOT MESSAGE */
.bot-msg {
    background: rgba(255,255,255,0.15);
    color: #d6ffd6;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 75%;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    align-self: flex-start;
}

/* ERROR MESSAGE */
.error-msg {
    background: rgba(255,255,255,0.25);
    color: #000;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 75%;
    align-self: flex-start;
}

/* === INPUT AREA === */
#chatbot-input-area {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.12);
    border-top: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
}

#chatbot-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.25);
    border: none;
    outline: none;
    color: white;
}

#chatbot-send {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 17px;
    cursor: pointer;
}

/* === FOOTER (center aligned) === */
#chatbot-footer {
    padding: 8px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    background: transparent;
}
#mzu-info {
    position: fixed;
    top: 460px; /* adjust positioning */
    left: 550px; /* adjust for your layout */
    width: 420px;
    color: white;
    text-align: center;
    z-index: 25;

    background: rgba(0,0,0,0.35);
    padding: 18px 22px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

#mzu-info h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

#mzu-info p {
    font-size: 14.5px;
    line-height: 1.45;
    opacity: 0.9;
    margin-bottom: 12px;
}

#mzu-info a {
    color: #00c3ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

#mzu-info a:hover {
    text-decoration: underline;
    color: #4ddfff;
}
#it-link {
  margin-top: 10px;
  text-align: center;
  animation: fadeSlide 1.8s ease forwards;
  opacity: 0;
}

#it-link a {
  color: #00eaff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

#it-link a:hover {
  color: #4df6ff;
  text-decoration: underline;
}

.arrow {
  display: inline-block;
  margin-left: 5px;
  animation: arrowMove 1s infinite alternate ease-in-out;
}

@keyframes arrowMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(6px); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* === Title Container (Perfect Center) === */
#main-title-container {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    white-space: nowrap;
}

/* === Typing Title === */
#main-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(0,255,255,0.8);
    white-space: nowrap;
    border-right: 3px solid #fff;   /* typing cursor */
    padding-right: 5px;
    animation: blinkCursor 0.7s infinite;
}

/* Cursor blink */
@keyframes blinkCursor {
    0% { border-color: #fff; }
    50% { border-color: transparent; }
    100% { border-color: #fff; }
}

/* Subtitle */
#sub-title {
    position: fixed;
    top: 95px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: 500;
    color: #dffcff;

    opacity: 0;
    animation: fadeInSubtitle 1.2s ease forwards;
    animation-delay: 2.8s; /* appears after typing ends */
}

/* Fade animation */
@keyframes fadeInSubtitle {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Responsive text sizes */
@media (max-width: 900px) {
    #main-title { font-size: 32px; }
    #sub-title { font-size: 18px; }
}

@media (max-width: 600px) {
    #main-title { font-size: 26px; }
    #sub-title { font-size: 16px; }
}
