*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Inter', sans-serif;
}

:root {
    /* Colour Styling */
    --primary-color: #37AF54;
    --secondary-color: #1FC8FF;
    --text-grey: #555555;
    --text-grey-light: #5E5E5E;
    --tag-colorL:#497FCC;
    --black-color: #282828;
    --stroke-color:#EFEFEF;
    --background-white:#FFFFFF;
    --send-bttn-bg:#FAFAFA;
    --send-bttn-stroke:#EDEDED;

    --grad-green:#0BDB3D;
    --grad-blue: #1FC8FF;

    --tag-color-blue:#497FCC;

    /* Padding Styling */
    --padding-8:8px;


    /* Text Styling */
    --h1-font-size: clamp(2rem, 5vw, 3.375rem);
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.25rem;  
    
    /* Border Radius */
    --border-rad-8:0.5rem;
}

body{
    position: relative;
    height: 100vh;
    width: 100%;
}
/* Global Function */
.cta-button {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.1875rem 3.375rem;
    border-radius: var(--border-rad-8);
    background-color: #000000;
}
.chat-text{
    background: linear-gradient(to right, #00ff3e, #00c1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 16px;
    font-weight: bold;
    font-family: sans-serif;
    text-align: center;
        background-image: repeating-linear-gradient(
        120deg,
        #00ff99 0%,
        #1FC8FF 20%,
        #00ff99 40%,
        #1FC8FF 60%,
        #00ff99 80%,
        #1FC8FF 100%
    );
    background-size: 200% 100%;
    animation: wavy-gradient 4s linear infinite;
}
@keyframes wavy-gradient {
        0% { background-position: 0% 50%; }
        100% { background-position: 100% 50%; }
}

.chat-text:hover {
    background: linear-gradient(90deg, #00ff3e, #00c1ff, #00ff3e);
    background-size: 600% 600%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: waveColor 9s ease infinite;
}

@keyframes waveColor {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}



/* Font Stylng */
h1{
    /* font-size:clamp(32px, 3.75vw, 54px); */
    font-size: var(--h1-font-size);
    color: var(--black-color);
    line-height: auto;
    margin-bottom: 1.25rem;
}
h1 span{
    background: linear-gradient(to right, var(--grad-green), var(--grad-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

/* Background Gradient  */

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -2;
}
.foreground-div {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-cell {
    position: relative;
    width: 100%;
    height: 100%;

    backdrop-filter: blur(180px);
    -webkit-backdrop-filter: blur(180px);
        background: linear-gradient(
    40deg,
    rgba(75, 75, 75, 0.644),  
    rgba(255, 255, 255, 0.324),           
    rgba(255, 255, 255, 0.018)   
    );
    mix-blend-mode: overlay;
    opacity: 0.14;
}
.background-circles {
    position: absolute;
    display: flex;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -5;
    overflow: hidden;
}

.circle1{
    position: absolute;
    left: 0;
    bottom: -400px;
    width: 50%;
    height: 70%;
    z-index: 0;
    background-color: #0BDB3D;
    border-radius: 100%;
    filter: blur(180px);
    animation: none;
    animation: moveLeft 46s ease-in-out infinite;
}

.circle2 {
    position: absolute;
    right: 0;
    bottom: -400px;
    width: 50%;
    height: 70%;
    background-color: #006FFF;
    border-radius: 100%;
    filter: blur(180px);
    animation: none;
    animation: moveRight 56s ease-in-out infinite;
}

@keyframes moveLeft {
0%   { left: -500px; }
50%  { left: calc(100% - 300px); }
100% { left: -500px; }
}

@keyframes moveRight {
0%   { right: -500px; }
50%  { right: calc(100% - 300px); }
100% { right: -500px; }
}

/* Main Content */
.main-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

/* Hero Section */
.hero-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 996px;
    text-align: center;
    flex: 8;
    padding: 0 4.375rem;
}

.hero-tag{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0.5px solid var(--stroke-color);
    border-radius: 8px;
    padding: 0.375rem 0.5rem;
    margin-bottom: 1.2rem;
}
.hero-tag p{
    font-size:1rem;
    line-height: auto;
    color: var(--tag-color-blue);
}

.hero-sub-text{
    font-size: 1.125rem;
    color: var(--text-grey-light);
    line-height: auto;
    font-weight: 300;
    max-width: 500px;
    margin-bottom: 3.75rem;
}


/* Footer Section */
footer{
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}
footer p{
    font-size: 1rem;
    color: var(--black-color);
    font-style: italic;
}

/* Media Screens  */

/* 4K Desktops (Ultra HD) – 2560px and above */
@media (min-width: 2560px) {
    .hero-content{
        max-width: 1800px;
    }
    h1{
        font-size: 64px;
    }
    .hero-sub-text{
        font-size: 22px;
        max-width: 1000px;
    }
}

/* Standard Desktops / Large Laptops – 1440px to 2559px */
/* @media (min-width: 1440px) and (max-width: 2559px) {


} */


/* Regular Laptops – 1024px to 1439px */
/* @media (min-width: 1024px) and (max-width: 1439px) {


} */


/* Tablets (Portrait & Landscape) – 768px to 1023px */
@media (min-width: 768px) and (max-width: 1023px) {


}

/* Mobile Large – 480px to 767px */
@media (min-width: 480px) and (max-width: 768px) {
  .hero-content{
    padding: 0 2rem;
  }

}

/* Mobile Small – 320px to 479px */
@media (min-width: 320px) and (max-width: 479px) {
    .hero-content{
        padding: 0 1.2rem;
    }
    .hero-content{
        display: flex;
        flex-direction: column;
        max-width: 996px;
        text-align: center;
        flex: 2;
    }

    .hero-sub-text{
        font-size: 16px;
        max-width: 350px;
    }
    .hero-tag{
        padding: 2px 8px;
    }
    .hero-tag p{
        font-size: 12px;
    }
    .circle1{
    bottom: -300px;
    width: 50%;
    height: 80%;
    filter: blur(120px);
    /* animation: moveLeft 6s ease-in-out infinite; */
    }
    .circle2 {
    bottom: -300px;
    width: 50%;
    height: 80%;
    filter: blur(120px);
    /* animation: moveRight 6s ease-in-out infinite; */
    }




    @keyframes moveLeft {
    0%   { left: -200px; }
    50%  { left: calc(100% - 100px); }
    100% { left: -500px; }
    }

    @keyframes moveRight {
    0%   { right: -200px; }
    50%  { right: calc(100% - 100px); }
    100% { right: -200px; }
    }

}


/* Ultra-Small Devices – Below 320px (Rare) */
@media (max-width: 319px) {
  /* Styles for very small or niche devices */
}


/* ================= EHA Bot Chat Page Sections =================*/

/* Main Content */
.ehabot-page .main-content{
    width:  100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
}

/* Nav Section */
.nav-section{
    width: 100%;
    /* height: 100%; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1204px;
    padding: 4rem 2rem;
    padding-bottom: 1rem;
}
.back-bttn{
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}


.ehabot-text{
    background: linear-gradient(to right, #00ff3e, #00c1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.75rem;
    font-weight: bold;
    font-family: sans-serif;
    text-align: center;
        background-image: repeating-linear-gradient(
        120deg,
        #00ff99 0%,
        #1FC8FF 20%,
        #00ff99 40%,
        #1FC8FF 60%,
        #00ff99 80%,
        #1FC8FF 100%
    );
    background-size: 200% 100%;
    display: none;
}

/* Chat Area Section */
.chat-area{
    background-color: var(--background-white);
    padding: 0 2.1875rem;
    height: 100vh;
    max-height: 792px;
    width: 864vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 864px;
    border-radius: 1rem;
    border: 1px solid var(--send-bttn-stroke);

}
.chat-area-top{
    margin-top:1.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4rem;
    height: 100%;
    overflow: auto;
}
.top-ctt-1{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.top-ctt-1 img{
    margin-bottom: 0.75rem;
    height: 4.25rem;

    /* height: 20px; */
}

h2{
    background: linear-gradient(to right, #00ff3e, #00c1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.75rem;
    font-weight: 700;
    font-family: sans-serif;
    text-align: center;
        background-image: repeating-linear-gradient(
        120deg,
        #00ff99 0%,
        #1FC8FF 20%,
        #00ff99 40%,
        #1FC8FF 60%,
        #00ff99 80%,
        #1FC8FF 100%
    );
    background-size: 200% 100%;
    margin-bottom: 0.75rem;
}

.top-ctt-1 p{
    font-size: 1rem;
    font-weight: 200;
    color: var(--text-grey-light);
    line-height: 1.2;
    max-width: 557px;
    text-align: center;
    margin-bottom: 1.875rem;
}
.top-ctt-2{
    display: flex;
    align-items: center;
    flex-direction: row;
    width: 100%;
    height: 9rem;   
    gap: 12px;

}
.question-bttn{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    flex-direction: column;
    background-color:var(--send-bttn-bg);
    height: fit-content;
    width: 100%;
    padding: 0.5rem;
    text-decoration: none;
    border: 1px solid var(--send-bttn-stroke);
    border-radius: var(--border-rad-8);
}
.chat-area-top::-webkit-scrollbar{
    width: 3px;
   
}
.chat-area-top::-webkit-scrollbar-thumb{
    background-color: #ffffff;
    border-radius: 3px;
}
.chat-area-top::-webkit-scrollbar-thumb:hover{
    background-color: white;
}

.question-bttn p{
    font-size: 0.7rem;
    color: #9E9E9E;
}
.sv-bg{
    padding: 0.5rem 0.5rem 0.4rem 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #F5F5F5;
    border-radius: 5px;
}

.chat-input-area{
    display: flex;
    align-items: center;
    /* justify-content: end; */
    flex-direction: column;
    /* height: 100%; */
    width: 100%;
    margin-bottom: 1.1875rem;
}
.chat-input-top{   
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.875rem 0.1875rem 0.1875rem 0.1875rem ;
    border-radius: var(--border-rad-8);
    background-image: linear-gradient(
        270deg,
        #1FC8FF 50%,
        #00ff99 100%,
        #1FC8FF 50%

    );
    background-size: 200% 100%;

}
.white-bg{
    background-color: white;
    border-radius: var(--border-rad-8);
}
.textarea-wrapper{
    position: relative;
    padding: 6px;
    width: 100%;
    background-color: var(--background-white);
    border-radius: var(--border-rad-8);
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

textarea{
    width: 100%;
    height: 100%;
    outline: none;
    resize: none;
    padding: 10px;
    border: none;
    outline: none;
    overflow-x: auto; 
    white-space: pre-wrap;
    word-wrap: break-word;
    padding-bottom: 0;
    padding-top: 0;
    font-size: 16px;
}


textarea::-webkit-scrollbar {
  width: 6px;
}

textarea::-webkit-scrollbar-track {
  background: white;
}

textarea::-webkit-scrollbar-thumb {
  background-color: #F6F6F6;
  border-radius: 3px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background-color: white;
}

.chat-input-bottom{
    width: 100%;
    height: 10%;
}

.bt-bg{
    width: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
    background-color: var(--background-white);
    padding: 8px 8px 8px 0;
    border-bottom-left-radius: var(--border-rad-8);
    border-bottom-right-radius: var(--border-rad-8);
}

.bt-bg a{
    display: flex;
    padding: 12px;
    border-radius: var(--border-rad-8);
    background-color: #040404;
}

.chat-input-bottom p{
    margin-top: 10px;
    color: #A0A0A0;
    font-size: 0.75rem;
    font-size: 200;
    font-style: italic;
}


/* Media Screens  */

/* 4K Desktops (Ultra HD) – 2560px and above */
/* @media (min-width: 2560px) {

} */

/* Standard Desktops / Large Laptops – 1440px to 2559px */
/* @media (min-width: 1440px) and (max-width: 2559px) {


} */


/* Regular Laptops – 1024px to 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .chat-area{
      width: 60%;  
    }
    .nav-section{
        padding-top: 30px;
    }
    .chat-area-top{
        gap: 1rem;
    }
     .top-ctt-1 img{

        margin-bottom: 0.75rem;
        height: 2.65rem;
    }
    h2{
        font-size: 1.9rem;
    }
    .top-ctt-1 p{
        font-size: 0.75rem;
        width: 24rem;
        margin-bottom: 0.75rem;
     }
     .top-ctt-2{
        gap: 3.5rem;
     }
    .question-bttn{
        height: 70%;
        margin-bottom: 0px;
    } 

}


/* Tablets (Portrait & Landscape) – 768px to 1025px */
@media (min-width: 768px) and (max-width: 1025px) {
    .chat-area-top{
        gap: 0.2rem;
    }
    .chat-area{
        margin: auto;
        height: 80%;
        width: 90%;
    }
    .question-bttn{
        height: 100%;
        margin-bottom: 0px;
    } 
}

/* Mobile Large – 480px to 767px */
@media (min-width: 480px) and (max-width: 768px) {
    .nav-section{
        padding-top: 20px;
    }
    .chat-area-top{
        gap: 0 rem;
    }
    .chat-area{
        width: 90%;
    }

    .nav-section{
        padding-top: 30px;
    }
    /* .chat-area-top{
        gap: 1rem;
    } */
     .top-ctt-1 img{
    margin-bottom: 0.75rem;
    height: 1.95rem;
    }
    h2{
        font-size: 1.4rem;
    }
    .top-ctt-1 p{
        font-size: 0.75rem;
        width: 24rem;
        margin-bottom: 0.75rem;
     }
     .top-ctt-2{
        gap: 3.5rem;
     }
    .question-bttn{
        height: 70%;
        margin-bottom: 0px;
    } 
}

/* Mobile Small – 320px to 479px */
@media (min-width: 320px) and (max-width: 479px) {
    body{
        height: screen-height;
        overflow: hidden;
    }
    .nav-section{
        padding: 16px 20px 0px 20px;
        margin-bottom: 0px;
    }
    .ehabot-page .background-circles{
        display: none;
    }
    .chat-area{
        background-color: white;
        border: none;
        padding: 0 20px;
        margin-bottom: 0;
        width: 100%;
        justify-content: unset;
    }
    .top-ctt-2{
        flex-direction: column;
        height: fit-content;
    }
    .question-bttn{
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 5px;
    }
    .question-bttn p{
        font-size: 10px;
    }
    .top-ctt-1 img{
        margin-bottom: 0px;
        width: 10%;
    }
    h2{
        font-size: 20px;
    }
    .top-ctt-1 p{
        font-size: 10px;
        margin-bottom: 10px;
    }
    .chat-area-top{
        margin-top: 0rem;
        margin-bottom: 0rem;
        overflow: none;
        height: 60%;
    }
    .chat-input-top{
        padding-top: 10px;
    }
    .textarea-wrapper{
        height: 60px;
    }
    .chat-input-area{
        margin-bottom: 0;
        padding-bottom: 0;
        margin-top: 0%;
        justify-content: end;
        
    }
    .chat-input-bottom{
        margin-bottom: 10px;
    }
    .bt-bg a{
        padding: 6px;
    }
    .sv-bg{
        margin-bottom: 0rem;
    }
}


/* Ultra-Small Devices – Below 320px (Rare) */
@media (max-width: 319px) {
  /* Styles for very small or niche devices */
}



/* Testing */
/* Message Area Container */
.message-area {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    /* background-color: green; */
    width: 100%;
    margin-top: 1rem;
}
.message-area{
    display: none;
}
/* Base Message Styling */
.message {
    max-width: 80%;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Message Content Bubble */
.message-content {
    /* padding: 0.25rem 1rem; */
    border-radius: 1rem;
    line-height: 1.4;
    font-size: 0.9rem;
    word-wrap: break-word;
    text-align: left;

}

/* User Message Specific Styling */
.user-message {
    
    align-self: flex-end;
    text-align: left;
}

.user-message .message-content {
    background: linear-gradient(135deg, #37AF54, #2d8f46);
    color: white;
    padding: 0.25rem 1rem;
    /* border-bottom-right-radius: 0.25rem; */
}

/* Bot Message Specific Styling */
.bot-message {
    align-self: flex-start;
}
.bot-message .message-content {
    padding: 0.1rem 0.2rem;
    background-color: none;
    color: #333;
}

/* For link to instagram */
/* .instagram-link {
    display: inline;
    font-size: 0.7rem;
    margin-left: 0.2rem;
    color: #ABABAB;
    text-decoration: none;
    cursor: pointer;
    padding: 0.2em 0.4em;
    background-color: #EAEAEA;
    border-radius: 0.6rem;
}

.instagram-link:hover {
    opacity: 0.9;
    color: #00FF3E; 
    background-color: #040404;
} */

/* For list items */
.list-item .instagram-link {
    margin-left: 0.2em;
}

/* Input Area Styling */
.chat-wrapper {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    
    /* margin: 0.5rem;
    padding: 0.5rem; */
}

#chat-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    resize: none;
    height: 30px;
    min-height: 30px;
    max-height: 200px;
    overflow-y: auto;
    font-family: inherit;
    padding: 0.5rem;
    margin-bottom: 35px;
}

/* Send Button Styling */
.chat-messages button {
    cursor: pointer;
    /* padding: 0.5rem; */
    transition: transform 0.2s;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
    z-index: 2;
    flex-shrink: 0;
    margin: 0;
    border: none;
}

.chat-messages button:hover {
    transform: scale(1.1);
} 


/* Message container */
.message {
  max-width: 85%;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

/* Bot messages (left side) */
.bot-name{
    display: flex;
    flex-direction: column;
    align-items: start; 
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}
.bot-message {
    flex-direction: row;
    align-self: flex-start;
}
.message-end{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
   
}
.timeDisplay{
    font-size: 0.6rem;
    color: #A0A0A0;
    margin-left: 0.5rem;
    justify-self: end;
}
.message-actions {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: auto 0;
    gap: 0.6rem;

}
.message-actions svg{
    padding: 0.3rem;
    border-radius: 0.2rem;
    width: 1.5rem;
    height: 1.5rem;
}
.message-actions svg:hover {
    cursor: pointer;
    background-color: #F2F2F2;
}
/* User messages (right side) */
.user-message {
  align-self: flex-end;
}

/* Bot message content row */
.bot-message > div:first-child {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

/* Bot icon styling */
.bot-icon {
  flex-shrink: 0;
  width: 49px;
  height: 45px;
  justify-content: center;
  /* border-radius: 100%; */
  align-items: center;
}

.bot-icon svg {
  width: 50px; /* Slightly smaller than container */
  height: 50px;
  margin-left: 0px;
  /* border: auto; */
  border-radius: 100%;
  /* position: relative; */
  /* bottom: -40px; */
}

/* User message bubble */
.user-message .message-content {
  background: #B6FFC8;
  color: #000000;
  border-radius: 1.25rem;
}

/* Bot message bubble */
.bot-message .message-content {
  background-color: none;
  color: #333;
  margin-left: 0px;
  border-bottom-left-radius: 0.25rem;
}


/* User message timestamp alignment */ 
.user-message .message-time {
  text-align: right;
}
/* Loading Spinner */
.loading-spinner { 
        align-self: flex-start; 
        border: 1px solid #f3f3f3; 
        border-top: 2px solid #37AF54; 
        border-radius: 50%; 
        width: 10px; /* Smaller size for dots-like appearance */
        height: 10px; 
        animation: spin 1s linear infinite; 
    }
    @keyframes spin { 
        0% { transform: rotate(0deg); } 
        100% { transform: rotate(360deg); } 
    }
.loading-spinner {

    display: flex;
    margin-top: 0.5rem;
    margin-left: 0px;
    padding: 0.5em;
}
.loading-spinner svg {
    width: 14px;
    height: 14px;
}
.message-actions {
    display: flex;
    transition: opacity 0.3s ease;
}

.message-actions.hidden {
    opacity: 0;
    pointer-events: none;
}