* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.line{
  height: 1.9px;
  width: 94%;
  background-color: var(--blue-card);
  margin: auto;
}
:root {
  --bg-soft: #edf5fb;
  --bg-white: rgba(255, 255, 255, 0.6);
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: #ffffff;
  --line: rgba(83, 131, 202, 0.15);
  --text: #0d2e52;
  --text-soft: #4c6d8c;
  --blue: #2c7be5;
  --blue-deep: #1c4a98;
  --blue-light: #ddf0ff;
  --blue-card: #cfe3f9;
  --green: #a9d36a;
  --shadow: 0 18px 45px rgba(46, 92, 150, 0.12);
}
.fa-arrow-up{
  position: relative;
  left: -30px;
  background-color: var(--blue-deep);
  color: var(--bg-soft);
  font-size: 22px;
  border: none;
  margin-top: 10px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  transition:all 0.4s ease-in-out ;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  -webkit-transition:all 0.4s ease-in-out ;
  -moz-transition:all 0.4s ease-in-out ;
  -ms-transition:all 0.4s ease-in-out ;
  -o-transition:all 0.4s ease-in-out ;
}
@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(83, 131, 202, 0.2);
    border-radius: 18px;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 20;
  }

  .topbar.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(221, 240, 255, 0.35);
  }

  .main-nav a::after {
    display: none;
  }

  .nav-tools {
    margin-left: auto;
    gap: 8px;
  }

  .nav-btn {
    padding: 0 16px;
    min-height: 42px;
  }
}

@media (max-width: 450px) {
  .fa-arrow-up{
    right: 140px;
  }

  .brand {
    max-width: calc(100% - 60px);
  }

  .brand-text small {
    display: none;
  }
}
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(140, 177, 228, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(148, 196, 228, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(240, 247, 255, 0.9), rgba(235, 243, 250, 0.92)),
    url("../imgs/bg.jpg") center top / cover no-repeat fixed;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.dark-mode {
  --bg-soft: #071827;
  --bg-white: rgba(9, 19, 31, 0.72);
  --panel: rgba(13, 25, 39, 0.8);
  --panel-strong: #0d1d2d;
  --line: rgba(133, 180, 247, 0.14);
  --text: #eaf4ff;
  --text-soft: #b8d5f5;
  --blue: #75aef7;
  --blue-deep: #dfeeff;
  --blue-light: rgba(117, 174, 247, 0.14);
  --blue-card: rgba(117, 174, 247, 0.12);
  --green: #a9d36a;
  --shadow: 0 18px 45px rgba(4, 12, 20, 0.5);
  background:
    radial-gradient(circle at top left, rgba(62, 95, 154, 0.35), transparent 25%),
    radial-gradient(circle at bottom right, rgba(26, 69, 111, 0.32), transparent 30%),
    linear-gradient(180deg, rgba(7, 18, 29, 0.96), rgba(10, 21, 35, 0.98)),
    url("../imgs/bg.jpg") center top / cover no-repeat fixed;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none !important;
}

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  gap: 24px;
  position: relative;
}
.navbar {
  display: flex;
  justify-content: space-between;
  background-color: transparent;
  align-items: center;
  padding: 30px 8%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  transition: all 0.4s ease-in-out !important;
  -webkit-transition: all 0.4s ease-in-out !important;
  -moz-transition: all 0.4s ease-in-out !important;
  -ms-transition: all 0.4s ease-in-out !important;
  -o-transition: all 0.4s ease-in-out !important;
}
.navbar-brand {
  font-family: "Playfair Display", serif;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
}
.nav-link {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  width: 0;
  bottom: -5px;
  height: 2px;
  background-color: var(--blue-deep);
  transition: all 0.4s ease-in-out;
  -webkit-transition: all 0.4s ease-in-out;
  -moz-transition: all 0.4s ease-in-out;
  -ms-transition: all 0.4s ease-in-out;
  -o-transition: all 0.4s ease-in-out;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 90%;
}
@media (max-width: 768px) {
  .nav-shell {
    min-height: 78px;
    position: relative;
    padding-right: 62px;
  }

  .brand {
    width: calc(100% - 62px);
    min-width: 0;
  }

  .brand-mark {
    width: 44px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-text small {
    display: none;
  }

  .navbar-toggler {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(28, 74, 152, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(221, 240, 255, 0.88));
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(43, 84, 141, 0.12);
    z-index: 30;
    cursor: pointer;
  }

  .navbar-toggler:focus,
  .navbar-toggler:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(44, 123, 229, 0.2);
  }

  .navbar-toggler-icon {
    display: block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828, 74, 152, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 18px 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(83, 131, 202, 0.18);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(46, 92, 150, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    transform: translateY(-8px);
    z-index: 25;
  }

  .topbar.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(83, 131, 202, 0.16);
    color: var(--blue-deep);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-align: left;
    background: transparent;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav .nav-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin: auto;
    margin-top: 20px;
    padding-top:20px;
    border-top: 1px solid rgba(83, 131, 202, 0.16);
  }

  .main-nav .nav-tools #theme-btn {
    width: 58px;
    height: 42px;
    border-radius: 14px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(58, 116, 187, 0.18);
    box-shadow: 0 8px 18px rgba(43, 84, 141, 0.08);
  }

  .main-nav .nav-btn {
    min-height: 42px;
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(39, 96, 180, 0.2);
     background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  }
}

body.dark-mode .navbar-toggler {
  background: rgba(16, 27, 40, 0.8);
  border-color: rgba(143, 188, 255, 0.18);
}

body.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2395c7ff, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .main-nav {
  background: rgba(13, 25, 39, 0.9);
  border-color: rgba(143, 188, 255, 0.18);
}

body.dark-mode .main-nav a,
body.dark-mode .main-nav .nav-tools {
  color: var(--text);
  border-color: rgba(143, 188, 255, 0.14);
}
.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(43, 84, 141, 0.12);
  position: relative;
  z-index: 3;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-deep);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.topbar.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-deep);
}

.brand-mark {
  width: 70px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(73, 102, 160, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: clamp(1.5rem, 1.1rem + 0.8vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--blue-deep);
  margin-top: 4px;
  opacity: 0.9;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 0.9rem + 1vw, 2.5rem);
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.97rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue-deep);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--blue-deep);
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-transition: transform 0.2s ease, box-shadow 0.2s ease;
  -moz-transition: transform 0.2s ease, box-shadow 0.2s ease;
  -ms-transition: transform 0.2s ease, box-shadow 0.2s ease;
  -o-transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

#theme-btn,
.chat-theme-btn {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(58, 116, 187, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.68);
  color: var(--blue-deep);
  font-size: 1.08rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -webkit-transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -moz-transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -ms-transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -o-transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

#theme-btn:hover,
.chat-theme-btn:hover {
  transform: translateY(-1px);
  -webkit-transform: translateY(-1px);
  -moz-transform: translateY(-1px);
  -ms-transform: translateY(-1px);
  -o-transform: translateY(-1px);
}
#hometitle {
  margin-top: 5%;
  font-family: "poppins";
  font-size: 20px;
  font-weight: 600;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}
.welcome-text{
   letter-spacing: 1px;
   font-family: "poppins";
   font-size: 30px;
   font-weight: 600;
   margin-top: 10%;
   color: #2d86fb;
   transition: all 5s ease-in-out;
   -webkit-transition: all 5s ease-in-out;
   -moz-transition: all 5s ease-in-out;
   -ms-transition: all 5s ease-in-out;
   -o-transition: all 5s ease-in-out;
}
.welcome-text::after {
     content: "";
     animation: typing 4s infinite;
     -webkit-animation: typing 4s infinite;
     transition: all 5s ease-in-out;
     -webkit-transition: all 5s ease-in-out;
     -moz-transition: all 5s ease-in-out;
     -ms-transition: all 5s ease-in-out;
     -o-transition: all 5s ease-in-out;
}
@keyframes typing {
  0% {
    content: "Have";
  }
  50% {
    content: "Have A";
  }
  75% {
    content: "Have A Nice";
  }
  100% {
    content: "Have A Nice Time";
  }
}
body.dark-mode #theme-btn,
body.dark-mode .chat-theme-btn,
body.dark-mode .chat-settings,
body.dark-mode .back-link {
  background: rgba(16, 27, 40, 0.8);
  border-color: rgba(143, 188, 255, 0.18);
  color: var(--text);
}

.nav-btn {
  min-height: 46px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 11px 20px rgba(39, 96, 180, 0.25);
}

.nav-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
}

.auth-toast {
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(44, 123, 229, 0.2);
  border-radius: 10px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: var(--shadow);
  text-align: center;
  transform: translateX(-50%);
  animation: toast-in 0.25s ease-out;
}

.auth-toast a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline !important;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.hero {
  padding-top: 34px;
  padding-bottom: 32px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 20px;
  min-height: 620px;
}

.hero-inner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 210px;
  background: radial-gradient(100% 120% at 50% 0%, rgba(114, 172, 235, 0.38), rgba(222, 238, 255, 0) 72%);
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-left: clamp(0px, 1vw, 18px);
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 2rem + 2.3vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  font-weight: 900;
  margin-bottom: 22px;
  color: var(--blue-deep);
}

.hero-copy h1 span {
  display: block;
  color: var(--blue);
}

.hero-copy p {
  max-width: 560px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.primary-btn,
.secondary-btn {
  min-height: 54px;
  padding: 0 28px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 14px 28px rgba(44, 123, 229, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.7);
  color: var(--blue-deep);
  border: 1px solid rgba(58, 116, 187, 0.28);
}
.about-card{
  width: 80%;
  margin: auto;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition:all 0.4s ease-in-out ;
  -webkit-transition:all 0.4s ease-in-out ;
  -moz-transition:all 0.4s ease-in-out ;
  -ms-transition:all 0.4s ease-in-out ;
  -o-transition:all 0.4s ease-in-out ;
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
}
.about-card:hover{
  transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px);
}
.about-text{
  line-height: 1.9;
  padding-block: 50px;
  font-size: 20px;
  text-align: center;
  text-transform: capitalize;
  margin: auto;
  width: 85%;
  color: var(--text-soft);
}
.chat-page-body {
  background: linear-gradient(180deg, rgba(237, 245, 251, 0.95), rgba(226, 239, 250, 0.95)),
    url("../imgs/bg.jpg") center / cover no-repeat fixed;
}

.chat-page-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.chat-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 80px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(90, 131, 196, 0.12);
}

.chat-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-header .home {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
  white-space: nowrap;
}

.chat-header .home #hometitle,
.chat-header .home .welcome-text {
  margin: 0;
}

.chat-header .home #hometitle {
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
}

.chat-header .home .welcome-text {
  margin-top: 4px;
  font-size: clamp(0.8rem, 1.1vw, 1rem);
}

.chat-header .home[hidden] {
  display: none;
}

.back-link {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--blue-deep);
}

.chat-brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
}

.chat-brand-mini img {
  width: 36px;
  height: 36px;
}

.chat-brand-mini strong,
.chat-brand-mini span {
  display: block;
}

.chat-brand-mini strong {
  font-size: 1.02rem;
}
.chat-brand-mini span {
  font-size: 0.7rem;
  opacity: 0.8;
}

.chat-header-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-settings,
.chat-theme-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(58, 116, 187, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.52);
  color: var(--blue-deep);
}

.chat-sidebar-panel {
  margin-top: 80px;
  padding: 20px 14px 14px;
  border-right: 1px solid rgba(90, 131, 196, 0.12);
  background: rgba(255, 255, 255, 0.1);
}

.new-chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  margin-bottom: 16px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(46, 98, 186, 0.18);
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
}

.new-chat-btn[hidden] {
  display: none;
}

.new-chat-btn:hover {
  transform:translateY(-5px) ;
  -webkit-transform:translateY(-5px) ;
  -moz-transform:translateY(-5px) ;
  -ms-transform:translateY(-5px) ;
  -o-transform:translateY(-5px) ;
}
.chat-sidebar {
  display: grid;
  gap: 8px;
}

.chat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(96, 132, 198, 0.16);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.5s ease-in-out;
  -webkit-transition: all 0.5s ease-in-out;
  -moz-transition: all 0.5s ease-in-out;
  -ms-transition: all 0.5s ease-in-out;
  -o-transition: all 0.5s ease-in-out;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}
.chat-item:hover{
  transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px);
}
.chat-item.active {
  background: rgba(205, 228, 255, 0.7);
}

.chat-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(46, 98, 186, 0.08);
  color: var(--blue-deep);
  flex-shrink: 0;
}

.chat-main-panel {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
}

.chat-body {
  flex: 1;
  padding: 26px 26px 10px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-message.user {
  align-items: flex-end;
}

.bubble {
  max-width: 82%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(86, 126, 188, 0.14);
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.6;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
  transition: all 0.7s ease-in-out;
  -webkit-transition: all 0.7s ease-in-out;
  -moz-transition: all 0.7s ease-in-out;
  -ms-transition: all 0.7s ease-in-out;
  -o-transition: all 0.7s ease-in-out;
}

.contact {
  padding: 80px 6% 60px 6%;

}
.contact-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; 
  max-width: 1400px;
  margin: 0 auto;
}
.brand-col{
  display: flex;
}
.contact-col-img{
  width: 40px;
  height: 40px;
}
.contact-brand-title {
  color: var(--blue);
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0;
}
.contact-brand-title-span {
color: var(--blue-deep);
}
.contact-brand-title-span2 {
color: var(--green);
}
.contact-brand-text{
  margin-top: 10px;
  color: var(--text-soft);
  width: 70%;
}
.contact-col h3 {
  color: var(--blue-deep);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase; 
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}


.contact-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-col ul li {
  margin-bottom: 10px;
}

.contact-col ul li a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: color 0.3s ease;
  -webkit-transition: color 0.3s ease;
  -moz-transition: color 0.3s ease;
  -ms-transition: color 0.3s ease;
  -o-transition: color 0.3s ease;
}

.contact-col ul li a:hover {
  color: var(--blue); 
}


.social-col {
  min-width: 180px;
}

.social-icons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icons a {
 color: var(--text-soft);
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  -webkit-transition: transform 0.3s ease, color 0.3s ease;
  -moz-transition: transform 0.3s ease, color 0.3s ease;
  -ms-transition: transform 0.3s ease, color 0.3s ease;
  -o-transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
  color: var(--blue);
  transform: translateY(-3px);
  -webkit-transform: translateY(-3px);
  -moz-transform: translateY(-3px);
  -ms-transform: translateY(-3px);
  -o-transform: translateY(-3px);
}


@media (max-width: 768px) {
    .contact {
    padding: 50px 20px;
    text-align: center;
  }
  .contact-container {
    grid-template-columns: 1fr; 
    gap: 35px;
  }
  .social-icons {
    justify-content: center; 
  }
}
/* footer start */
footer {
  text-align: center;
  margin-bottom: 10px;
}
footer span {
  font-size: 18px;
  margin-block: 15px;
}
/* dark mode start */
body.dark-mode .bubble,
body.dark-mode .chat-item,
body.dark-mode .message-suggestions button,
body.dark-mode .source-list,
body.dark-mode .chat-input-wrap input,
body.dark-mode .chat-sidebar-panel,
body.dark-mode .chat-body,
body.dark-mode .chat-main-panel,
body.dark-mode .source-box {
  background: rgba(12, 23, 35, 0.72);
  border-color: rgba(135, 181, 251, 0.14);
  color: var(--text);
}

body.dark-mode .bubble.secondary {
  background: rgba(23, 39, 57, 0.82);
}

body.dark-mode .user-bubble {
  background: rgba(117, 174, 247, 0.18);
}

body.dark-mode .chat-item {
  color: var(--text);
}

body.dark-mode .chat-item.active {
  background: rgba(117, 174, 247, 0.14);
}

body.dark-mode .source-box {
  background: rgba(117, 174, 247, 0.13);
  color: var(--blue-deep);
}

.bubble.secondary {
  background: rgba(255, 255, 255, 0.4);
}

.user-bubble {
  max-width: 72%;
  background: rgba(85, 137, 208, 0.12);
}

.message-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 16px;
}

.message-suggestions button {
  border: 1px solid rgba(58, 116, 187, 0.22);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue-deep);
  font-size: 0.78rem;
}

.source-box {
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(214, 233, 255, 0.8);
  color: var(--blue-deep);
  font-weight: 700;
}

.source-list {
  padding: 10px 12px 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(90, 131, 196, 0.18);
}

.source-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-weight: 700;
}

.source-item {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.82rem;
}

.chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(90, 131, 196, 0.12);
  background: rgba(255, 255, 255, 0.12);
}

.chat-input-wrap input {
  flex: 1;
  min-height: 46px;
  border: 1px solid rgba(58, 116, 187, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0 14px;
  color: var(--text);
}

body.dark-mode .chat-input-wrap input::placeholder {
  color: rgba(234, 244, 255, 0.7);
}

.chat-input-wrap button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
}

.process,
.benefits {
  padding-top: 35px;
  padding-bottom: 30px;
}

@media (max-width: 900px) {
  .chat-page-shell {
    grid-template-columns: 1fr;
  }

  .chat-sidebar-panel {
    margin-top: 80px;
    border-right: none;
    border-bottom: 1px solid rgba(90, 131, 196, 0.12);
  }

  .chat-main-panel {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .chat-header {
    padding: 12px 14px;
    grid-template-columns: 1fr auto;
  }

  .chat-header .home {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
  }

  .chat-body {
    padding: 18px 14px 10px;
  }

  .bubble {
    max-width: 92%;
  }

  .message-suggestions {
    gap: 8px;
  }

  .message-suggestions button {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 600px) {
  .chat-page-shell {
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 20;
    min-height: 70px;
    gap: 8px;
    padding: 10px 12px;
  }

  .chat-brand-wrap {
    gap: 6px;
  }

  .back-link {
    width: 32px;
    height: 32px;
  }

  .chat-brand-mini {
    gap: 6px;
    min-width: 0;
  }

  .chat-brand-mini img {
    width: 30px;
    height: 30px;
  }

  .chat-brand-mini strong {
    font-size: 0.9rem;
  }

  .chat-brand-mini span {
    max-width: 130px;
    overflow: hidden;
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .chat-header-actions {
    gap: 5px;
  }

  .chat-settings,
  .chat-theme-btn {
    width: 32px;
    height: 32px;
  }

  .chat-sidebar-panel {
    grid-column: 1;
    grid-row: 1;
    margin-top: 70px;
    padding: 8px 3px;
    overflow: hidden;
  }

  .chat-sidebar-panel > .new-chat-btn {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 2px;
    font-size: 0.58rem;
    line-height: 1.15;
    margin-bottom: 5px;
  }

  .chat-sidebar {
    display: contents;
  }

  .chat-item {
    display: none;
  }

  .chat-sidebar #logout-btn {
    display: inline-flex;
    width: 100%;
    min-height: 36px;
    margin: 0 !important;
    padding: 0 2px;
    font-size: 0.56rem;
    line-height: 1.15;
  }

  .chat-main-panel {
    grid-column: 2;
    grid-row: 1;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    min-height: 0;
  }

  .chat-body {
    width: 100%;
    min-height: 0;
    padding: 14px 6px 8px;
  }

  .bubble,
  .user-bubble {
    max-width: 88%;
    padding: 10px 12px;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .chat-input-wrap {
    position: sticky;
    bottom: 0;
    padding: 8px 10px 10px;
  }

  .chat-input-wrap input {
    min-width: 0;
    min-height: 42px;
    font-size: 0.85rem;
  }

  .chat-input-wrap button {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }
}

.section-title {
  position: relative;
  font-size: clamp(2rem, 1.55rem + 0.9vw, 3.1rem);
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  color: var(--blue-deep);
  margin-bottom: 34px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -12px;
  width: 72px;
  height: 4px;
  background: rgba(55, 119, 198, 0.75);
  border-radius: 999px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 26px;
}

.info-card {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 220px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  text-align: left;
  transition:all 0.4s ease-in-out ;
  -webkit-transition:all 0.4s ease-in-out ;
  -moz-transition:all 0.4s ease-in-out ;
  -ms-transition:all 0.4s ease-in-out ;
  -o-transition:all 0.4s ease-in-out ;
}
.info-card:hover{
 transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px);
}
.icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(102, 163, 233, 0.15);
  color: var(--blue);
  font-size: 2rem;
  margin-bottom: 18px;
}

.info-card h3 {
  font-size: clamp(1.3rem, 1.2rem + 0.2vw, 1.7rem);
  font-weight: 800;
  color: var(--blue-deep);
  margin-bottom: 12px;
}

.info-card p {
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 12px 10px 6px;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(84, 130, 214, 0.12);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.benefit-item h4 {
  font-size: clamp(1.05rem, 0.95rem + 0.2vw, 1.5rem);
  font-weight: 800;
  color: var(--blue-deep);
}

.benefit-item p {
  max-width: 220px;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 0.96rem;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .benefit-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-shell {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
  }

  .card-grid,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 1.7rem + 3vw, 4rem);
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn,
  .nav-btn {
    width: min(100%, 290px);
  }

  .chat-panel {
    width: 100%;
    min-height: 620px;
    margin-left: 0;
  }

  .section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-text small {
    font-size: 0.58rem;
  }

  .nav-btn {
    min-height: 44px;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .info-card {
    padding: 22px 18px 20px;
  }
}
