* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bar-height: 56px;
  --bar-pad: env(safe-area-inset-bottom);
}

body {
  padding-bottom: calc(var(--bar-height) + var(--bar-pad));
}

.aniSect {
  background: linear-gradient(180deg, #090d32 0%, #0a2447 51.12%, #2a0428 100%);
  min-height: 100vh;
  color: #fff;
  overflow-x: hidden;
  margin-top: -85px;
}

canvas {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
}

.top-bar {
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

.top-bar a:hover {
  text-decoration: underline;
}

.home-icon {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.greeting {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: start;
  justify-content: start;
  gap: 0.75rem;
  padding: 0 0 0 16rem;
}

.greeting-icon {
  font-size: 2rem;
}

.input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.3s ease;
  resize: none;
  min-height: 120px;
}

.chat-input {
  width: 100%;
  font-size: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0);
  color: #fff;
  transition: all 0.3s ease;
  resize: none;
  min-height: 120px;
}

/* .chat-input:focus {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.3);
            outline: none;
        } */

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.input-controls {
  /* display: flex;
            align-items: end;
            justify-content: end;
            margin-top: 0.75rem;
            padding: 0 0.5rem; */
}

textarea:focus-visible {
  outline: 0;
}

.control-buttons {
  display: flex;
  gap: 0.5rem;
}

.control-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.model-selector {
  display: flex;
  /* align-items: center; */
  gap: 0.5rem;
  justify-: space-between;
  justify-content: space-between;
}

.model-dropdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.3rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.model-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
}

.send-btn {
  width: 36px;
  height: 36px;
  background-image: linear-gradient(45deg, #0065d3, #641be1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.send-btn:hover {
  background-image: linear-gradient(-90deg, #0065d3, #641be1);
  transform: translateY(-2px);
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 24px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.chip i {
  font-size: 1rem;
}

.hero-content-mobile {
  display: none;
}

.mobile-header {}

.mobile-header h1 {
  text-align: center;
  margin-bottom: 30px !important;
}

.mobile-header h1 br {
  display: none;
}

.hero-content-mobile .mobile-header a {
  text-align: center;
  color: #fff;
  /* border: 1px solid #fff; */
  margin-bottom: 18px;
  border-radius: 30px;
  width: 100%;
  padding: 12px 10px;
  text-transform: capitalize;
  font-size: 18px;
  overflow: hidden;
}

.callUs {
  background-color: var(--primary);
  color: var(--white);
}


.wpMe {
  background-color: #2ab318;
  color: var(--white);
}

@media (max-width: 768px) {
  .greeting {
    font-size: 1.75rem;
  }

  .chat-input {
    min-height: 100px;
  }

  .suggestion-chips {
    flex-direction: column;
  }

  .chip {
    width: 100%;
    justify-content: center;
  }

}

#wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  /* z-index: -1; */
  /* behind chat UI */
}

.hero-section {
  position: relative;
  z-index: 1;
  /* above waves */
}

#wave-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Chat Window Styles */
.chat-window {
  display: block;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 10;
  transform: translateY(100%);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-x: hidden;
  overflow-y: auto;
}

.chat-window.active {
  background: linear-gradient(180deg,
      #090d32 0%,
      #0a2447 51.12%,
      #2a0428 100%) !important;
  opacity: 1;
  transform: translateY(0);
}

/* Make sure header stays on top */
header {
  position: relative;
  z-index: 1001 !important;
}

.hero-section {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-section.hiding {
  opacity: 0;
  transform: scale(0.95);
}

/* responsive */
/* .chatframe {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 52px);
  border: 0;
  border-radius: 12px;
} */

.ai-btn {
  padding: 2px !important;
}

.mobile-header .ai-btn .inner {
  width: 100%;
  border-radius: 20px;
  padding: 10px 10px;
  font-size: 16px;
}

@media screen and (min-width: 320px) and (max-width: 767px) {
  .hero-content {
    display: none;
  }

  .callFloating {
    bottom: 40%;
    right: -148px;
  }

  .whatsappFloating {
    bottom: 30%;
    right: -148px;
  }

  .hero-content-mobile {
    display: block;
  }


  /* .chatframe {
    top: 50px;
    height: 85vh;
  } */

  .greeting {
    margin-bottom: 0rem;
    padding: 0px 0px 0px 1rem;
    font-size: 1.5rem;
  }

  .navbarBg.scrolled img {
    width: 150px;
    top: 5px;
    position: relative;
  }

  .navbar-toggler svg {
    width: 24px;
    top: 5px;
    position: relative;
  }

  .topHeader .sctionTitle {
    font-size: 26px;
    line-height: 40px;
  }

  .hero-section {
    min-height: 54vh;
  }

  .topHeader {
    height: 55vh;
  }

  .hero-section {
    min-height: vh;
  }
}

/* @media screen and (max-height: 812px) {
  .chatframe {
    height: calc(100vh - 120px);
  }
} */



.chatframe {
  position: absolute;
  top: 56px;
  left: 0;
  width: 100%;
  border: 0;
  border-radius: 12px;

  /* ✅ Fallback for all browsers */
  height: calc(100vh - 56px);

  /* ✅ For modern browsers (including iOS 15.4+ and Android Chrome) */
  height: calc(100dvh - 56px);

  /* ✅ Handle iOS safe-area padding */
  padding-bottom: env(safe-area-inset-bottom);
}

/* ✅ Use dvh when available */
@supports (height: 100dvh) {
  .chatframe {
    height: calc(100dvh - 56px);
  }
}

/* ✅ Fallback for older iOS versions (before dvh) */
@supports (height: -webkit-fill-available) {
  .chatframe {
    height: calc(-webkit-fill-available - 56px);
  }
}

/* ✅ Prevent any outer scroll when chat is open */
.chat-window.active,
.chat-window.active html,
.chat-window.active body {
  overflow: hidden !important;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
