* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body{
    font-family: Cambria ;
}

:root {
  --blue: #1b78a6;
  --dark-blue: #1f4e8c;
  --light-bg: #f1f5f9;
  --text: #1e293b;
  --border: #e2e8f0;
}


body {
  font-family: cambria;
  background: var(--light-bg);
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 30px;
  background: transparent;
  
  border-bottom: 1px solid var(--border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 2000;
  /*transition: 0.3s ease;*/
  transform: translateY(0); 
transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease ;
  
}


.navbar.scrolled {
  background: linear-gradient(to right, #0b1f3a, #0f4c81);
  height: 70px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  border-bottom: none;
  
}

.navbar.scrolled .logo-img {
  height: 100px; 
}

.navbar.nav-hidden {
    transform: translateY(-115%) ; 
}

.logo {
    margin-left: 0px;
    display: flex;
    align-items: center;

    height: 100%; 
    padding: 0px 15px;
    z-index: 2001;
} 


.logo-img {
 
    height: 150px; 
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    display: block;
}


.logo:hover .logo-img {
  transform: scale(1.08);
  filter: brightness(1.2) drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4));
}


.nav-links {
  display: flex;
  align-items: center;
  
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 35px;
  list-style: none;
  
}


.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 22px;
  font-weight: 800px;
  padding: 5px 0;
  position: relative;
  transition: 0.3s;
  white-space: nowrap; 
  display: inline-block;
}

.nav-links > ul > li >a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #1b78a6;
  transition: 0.3s;
}



.nav-links a:hover::after {
  width: 100%;
}


.nav-links a:hover {
  color: #1b78a6;
   background: rgba(27, 120, 166, 0.08);  
}

/* ACTIVE PAGE */
.nav-links a.active {
  color: var(--blue);
  background: rgba(153, 178, 191, 0.12);
  font-weight: 600;
}


/*  MEGA MENU  */

.mega-parent {
  position: relative;
}



.mega-menu {
  position: fixed;
  top: 100%;
  left: 0;
  width: 100%;

  background: linear-gradient(to right, #0b1f3a, #0f4c81);
  border-top: 1px solid var(--border);

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);

  transition: 0.3s ease;
}



.mega-parent:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); 
}


.mega-content {
  width: 85%;
  margin: auto;
  padding: 40px 0;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* LEFT TEXT */
.mega-column h1  {
  font-size: 22px;
  font-weight: bold;
  color:white;
  margin-bottom: 10px;
}

.mega-column p {
  font-size: 18px;
  color: #e1dede;
  line-height: 1.6;
}

/* RIGHT LINKS */
.mega-column a {
  display: block;
  padding: 8px 0;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: 0.3s;
}

.mega-column a:hover {
  color: #1b78a6;
  padding-left: 6px;
}


#menu-toggle {
  display: none ;
}

/* HAMBURGER ONLY MOBILE */
.menu-icon {
  display: none;
}


/*chatbot css*/



/* ===== Container ===== */
#eva-ai-chat {
  font-family: Cambria, serif;
  /* No position needed here, children are fixed */
}

/* ===== Chat Button (ALWAYS VISIBLE ON SCROLL) ===== */
#eva-chat-btn {
  position: fixed !important;   /* Sticks to the viewport */
  right: 20px;
  bottom: 20px;      /* Anchored to bottom right */
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0052ff, #00c6ff);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;    /* Highest priority */
  transition: transform 0.2s ease;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

#eva-chat-btn:hover {
  transform: scale(1.1);
}

/* ===== Chat Box (FIXED POSITIONING) ===== */
#eva-chat-box {
  display: none;     /* Controlled by JS toggle */
  position: fixed !important
  ;   /* Sticks to the viewport */
  right: 20px;
  bottom: 90px;      /* Sits right above the button */
  width: 350px;
  height: 520px;     /* Set a standard height */
  max-height: 80vh;  /* Prevents it from being taller than the screen */
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  flex-direction: column;
  z-index: 10000;
}

/* ===== Header ===== */
.eva-header {
  padding: 14px;
  background: linear-gradient(135deg, #0052ff, #00c6ff);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

/* ===== Chat Body (THE ONLY SCROLLABLE PART) ===== */
#eva-chat-body {
  flex: 1;           /* Takes up remaining space */
  overflow-y: auto;  /* Scroll inside the chat only */
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background: #fff;
}

/* ===== Form (LEAD CAPTURE - STAYS VISIBLE) ===== */
.eva-form {
  padding: 15px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  flex-shrink: 0;    /* IMPORTANT: Prevents form from shrinking/cutting off */
}

/* Inputs & Selects */
.eva-form input,
.eva-form select {
  padding: 10px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't break width */
}

.phone-row {
  display: flex;
  gap: 6px;
}

.country-code {
  width: 60px !important;
  background: #f5f7ff;
  text-align: center;
}

/* Submit Button */
#eva-submit {
  background: linear-gradient(135deg, #0052ff, #00c6ff);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

/* ===== Popup (Success Message) ===== */
/* ===== Popup (Premium Toast Style) ===== */
#eva-popup {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 10002;

  opacity: 0;
  pointer-events: none;

  transform: translateY(30px) scale(0.95);
  transition: all 0.35s ease;

  /* Glass effect */
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);

  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);

  padding: 14px 18px;
  min-width: 260px;
  max-width: 320px;
}

/* SHOW STATE */
#eva-popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* CONTENT */
.popup-content {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 500;
}

/* ICON */
.popup-icon {
  background: linear-gradient(135deg, #0052ff, #00c6ff);
  color: #fff;
  border-radius: 50%;
  padding: 6px 9px;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0,82,255,0.3);
}

/* TEXT */
.popup-text {
  flex: 1;
}

/* OPTIONAL: PROGRESS BAR */
#eva-popup::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #0052ff, #00c6ff);
  border-radius: 0 0 14px 14px;

  animation: progress 3s linear forwards;
}
/* Chat body background */
#eva-chat-body {
  background: #f7f9fc;
}

/* Bot message */
.eva-msg.bot {
  background: #eaf1ff;
  color: #333;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 8px;
  max-width: 80%;
}

/* Typing message */
.typing {
  font-style: italic;
  opacity: 0.7;
  animation: blink 1s infinite;
}

/* Typing animation */
@keyframes blink {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}









/*logo responsiveness*/
/* ===== RESPONSIVE NAVBAR (1024px and below) ===== */
@media (max-width: 1024px) {
    /* Navbar Container - Solid background on mobile to avoid overlap */
    header.navbar {
        background: transparent; 
        transition: background 0.4s ease, height 0.4s ease;
       padding: 0 15px;
        height: 70px;
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    header.navbar.scrolled {
        background: linear-gradient(to right, #0b1f3a, #0f4c81) !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        border-bottom: none;
    }

    /* Logo scaling on mobile */
   .logo-img {
        height: 80px ;
    }
    .navbar.scrolled .logo-img {
        height: 60px !important;
    }

    /* Hamburger Menu Icon */
    .menu-icon {
        display: block;
        font-size: 30px;
        color: white;
        cursor: pointer;
        z-index: 2005;
        order: 2;
    }

    /* Slide-in Navigation Drawer */
    .nav-links {
        position: fixed;
        top: 0; 
        left: -100%; 
        width: 80%; /* Drawer width */
        height: 100vh;
        background: linear-gradient(to right, #0b1f3a, #0f4c81); /* Dark Solid Background */
        display: block; 
        padding-top: 80px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2004;
        overflow-y: auto;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        text-align: left; /* Essential for professional look */
    }

    /* Menu Open Logic */
    #menu-toggle:checked ~ .nav-links {
        left: 0;
    }

    /* Nav List Items */
    .nav-links ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-links ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-links a {
        display: block;
        padding: 18px 25px;
        font-size: 18px;
        color: white;
        width: 100%;
    }

    /* Underline animation remove for mobile */
    .nav-links a::after {
        display: none !important;
    }

    /* Mobile Mega Menu Styling */
    .mega-menu {
        position: static; /* Static list view on mobile */
        display: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0,0,0,0.2); 
        transform: none;
        padding: 0;
    }

    /* Show submenu when parent is active */
    .mega-parent.active .mega-menu {
        display: block !important;
    }

    .mega-content {
        display: flex;
        flex-direction: column;
        padding: 10px 35px;
        gap: 15px;
        width: 100%;
    }

    .mega-column h1 {
        font-size: 14px;
        color: #1b78a6; /* Theme Blue */
        text-transform: uppercase;
        margin-bottom: 5px;
    }

    .mega-column p {
        display: none; /* Mobile par description hide karein space bachane ke liye */
    }

    .mega-column a {
        padding: 10px 0;
        font-size: 16px;
        color: #ddd;
        border: none;
    }

    /* Arrow rotation icon for mobile */
    .mega-parent > a::after {
        content: ' \f107'; /* FontAwesome angle down if used, otherwise ▼ */
        font-family: serif;
        float: right;
        transition: 0.3s;
    }

    .mega-parent.active > a::after {
        transform: rotate(180deg);
    }
}

/* Extra Small Mobile (480px) */
@media (max-width: 480px) {
    .nav-links { width: 100%; } /* Full screen for small phones */
    header.navbar { height: 65px; }
}