@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bonheur+Royale:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin:0;
    padding:0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

a{
    color: #fff;
    text-decoration: none;
}

a.logo{
  font-size: 40px;
  color: #4f46e5; 
    font-weight: 600;
    animation: glow 4s infinite ease-in-out;
}

:root {
  --brand: #868afc;
  --bg: #f6f8fb;
  --navbar-height: 80px;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #1f242d;
}


.navbar{
    position:fixed;
    left:0;
    top:0;
    width: 100%;
    height: var(--navbar-height);
    padding: 25px 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(31, 36, 45, 0.80); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(134, 138, 252, 0.1); 
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar ul{
    display: flex;
}

.navbar ul li{
    list-style: none;
    margin-left: 35px;
}

.navbar ul li a{
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    transition: .5s;
}

.navbar ul li:hover a,
.navbar ul li.active a{
    color: #868afc;
    transform: translateY(-2px);
}

@keyframes glow {
  0%, 100% { opacity: 1; }   
  50% { opacity: 0; }        
}


#chat-button {
  position: fixed;           
  bottom: 20px;
  right: 20px;
  background: var(--brand);
  border: 2px solid #868afc;
  color: #1f242d;
  border-radius: 30px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 10px #686dfb;
  z-index: 1000;
  user-select: none;
  font-weight: 600;
  transition: .5s;
  overflow: visible;
}


#chat-button::before,
#chat-button::after {
  content: "";
  position: absolute;
  inset: 0;                      
  border-radius: 30px;            
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(134, 138, 252, 0.45);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}

#chat-button::after {
  animation-delay: 1.2s;          
}

@keyframes pulse-ring {
  0% {
    opacity: 0.7;
    box-shadow: 0 0 0 0 rgba(134, 138, 252, 0.45);
  }
  80% {
    opacity: 0;
    box-shadow: 0 0 0 48px rgba(134, 138, 252, 0); 
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 10px rgba(134, 138, 252, 0);
  }
}

#chat-button:hover {
  background: transparent;
  color: #686dfb;
  box-shadow: none;
}

#chat-popup {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 360px;
  height: 520px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden; 
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

#chat-popup.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Header */
#chat-header {
  background: #686dfb;
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 400;
  opacity: 0.8;
}

#close-btn {
  border: 0;
  background: transparent;
  color: #212C36;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#webchat-container {
  position: relative;
  flex: 1;          
  min-height: 0;   
  display: flex;    
  overflow: hidden; 
}

#webchat {
  flex: 1;          
  min-height: 0;    
  width: 100%;
  height: 100%;   
}

@media (max-width: 480px) {
  #chat-popup {
    right: 12px;
    bottom: 80px;
    width: 92vw;
    height: 70vh;
  }
  .navbar {
        height: 70px; 
        padding: 15px 5%;
    }
    
    :root {
        --navbar-height: 70px; 
    }
}

.logo-group {
    margin-left: -50px;
  display: flex;
  align-items: center; 
  gap: 2px;            
}

.logo-animation {
  display: flex;
  gap: 4px;
  transform: rotate(-90deg);
}

.logo-animation span {
  width: 4px;
  height: 25px;               
  background: #4f46e5;
  border-radius: 10px;
  transform: scaleY(0.4);     
  transform-origin: bottom;   
  animation: pop 4s infinite;
}

.logo-animation span:nth-child(2) { animation-delay: 0.2s; }
.logo-animation span:nth-child(3) { animation-delay: 0.4s; }
.logo-animation span:nth-child(4) { animation-delay: 0.6s; }

@keyframes pop {
  0%, 100% { transform: scaleY(0.4); }  
  50% { transform: scaleY(1); }        
}