:root {
    --text-dark: #333;
    --text-light: #fff;
    --primary-color: #58ccfa;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: black;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    margin: 0;
    padding-top: 70px; /* Push content down to avoid overlap with the fixed navbar */
}

a {
    color: #000;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.custom-message {
    position: fixed;
    top: 10px;  /* Position at the top */
    right: 10px;  /* Position at the right */
    padding: 20px;
    font-size: 16px;
    background-color: red;  /* Red background */
    color: black;  /* Black text */
    border-radius: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
    font-weight: bold;
}

.custom-message2 {
    position: fixed;
    top: 10px;  /* Position at the top */
    right: 10px;  /* Position at the right */
    padding: 20px;
    font-size: 16px;
    background-color: rgb(6, 255, 6);  /* Red background */
    color: black;  /* Black text */
    border-radius: 30px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
    font-weight: bold;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

/* Disable text selection */
* {
    user-select: none;
}


@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}


/* *************** Navigation Bar Start *************** */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(51, 51, 51, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 2000;
}

/* Mobile Menu Button */
.nav__menu__btn {
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    right: 0rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

/* Brand Name */
.nav_name {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}


/* Navigation Links */
.nav_link {
    list-style: none;
    display: flex;
    gap: 3rem;
    padding: 0;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
}

.nav_link li {
    display: inline;
}

.nav_link a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav_link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* *************** Navigation Bar End *************** */




/* *************** Home Section Start *************** */

.home_main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-light);
    padding: 50px 10%;
    max-width: 1200px;
    margin: auto;
}

/* Left side (Text) */
.home_main .home_text {
    flex: 1;
    text-align: left;
}

.home_main h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.home_main h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 80px;
}

.home_main p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Right side (Image) */
.home_main .my_picher {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.my_picher:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}


.link_logo_main {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    gap: 30px;  /* Space between images */
    margin-top: 40px; /* Adjust top margin if needed */
}

.link_logo {
    width: 40px;  /* Adjust size as needed */
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.link_logo:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
    box-shadow: 2px 4px 18px rgba(29, 161, 242, 0.6); /* Shadow with #1da1f2 color */
}

/* Typing Cursor Effect */
.cursor {
    font-size: 2.5rem;
    color: white;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.cv_view_container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cv_view {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 10px;
    width: 200px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 50px;
    text-align: center;
}

.cv_view:hover {
    background: #1da1f2;
}

/* *************** Home Section End *************** */




/* *************** Education Section Start *************** */

/* Center the Education Header */
.header_name {
    display: flex;
    justify-content: center; /* Centers horizontally */
    align-items: center; /* Centers vertically */
    width: 100%; /* Ensures it takes full width */
    text-align: center; /* Centers text inside */
    margin-bottom: -10px; /* Adds space below */
}

/* Home Section - Education */
.education_main {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers everything horizontally */
    color: var(--text-light);
    padding: 100px 10%;
    max-width: 1200px;
    margin: auto;
}

/* Education Title Styling */
.education_main h1 {
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 100px;
}

.edu_wrapper {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    position: relative;
    width: 100%;
}

/* Align Education Details Box to the Left */
.edu_details_box {
    width: 100%; /* Full width */
    display: flex;
    justify-content: flex-start; /* Align content to the left */
    margin-bottom: 0px; /* Remove extra gap */
}

/* Align Education Details Box to the Right */
.edu_details_box2 {
    width: 100%; /* Full width */
    display: flex;
    justify-content: flex-end; /* Align content to the right */
    margin-top: 50px; /* Add space between boxes */
}

/* Add Vertical Line */
.edu_wrapper::after {
    content: "";
    position: absolute;
    width: 2px; /* Line thickness */
    height: 100%; /* Full height */
    background-color: white; /* Line color */
    left: 50%; /* Position in the middle */
    transform: translateX(-50%);
}

/* Fix Card Positioning */
.card {
    position: relative;
    width: 500px;
    height: 250px;
    border-radius: 14px;
    z-index: 500; /* Lower than navbar */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 20px 20px 60px var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

/* Background should also have a lower z-index */
.bg {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 490px;
    height: 240px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid black;
    transition: transform 0.3s ease-in-out;
}

/* Ensure text is above the background */
.card p {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center; /* Center-align text */
}

/* Specific styling for .edu_sub_text */
.card .edu_sub_text {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1rem;
    font-weight: normal; /* Normal weight for sub-text */
    text-align: center; /* Center-align sub-text */
    margin-top: 5px; /* Space between main text and sub-text */
}

.blob {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 150px;
    border-radius: 50%;
    background-color: #e81cff;
    opacity: 1;
    filter: blur(12px);
    animation: blob-bounce 5s infinite ease;
    transition: transform 0.3s ease-in-out;
}

.card:hover, 
.card:hover .bg, 
.card:hover .blob {
    transform: scale(1.1); /* Slight zoom effect */
}

/* If you want links inside the card to change color on hover */
.card a:hover {
    color: var(--primary-color);
}



@keyframes blob-bounce {
    0% {
      transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
  
    25% {
      transform: translate(-100%, -100%) translate3d(100%, 0, 0);
    }
  
    50% {
      transform: translate(-100%, -100%) translate3d(100%, 100%, 0);
    }
  
    75% {
      transform: translate(-100%, -100%) translate3d(0, 100%, 0);
    }
  
    100% {
      transform: translate(-100%, -100%) translate3d(0, 0, 0);
    }
}

/* *************** Education Section End *************** */





/* *************** Certifications Section Start *************** */

.certifications_main {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers everything horizontally */
    color: var(--text-light);
    padding: 100px 10%;
    max-width: 1200px;
    margin: auto;
}

/* Education Title Styling */
.certifications_main h1 {
    font-size: 2.5rem;
    margin-bottom: 100px;
}


.cer_wrapper {
    display: flex;
    flex-direction: row; /* Arrange elements in a row */
    justify-content: space-between; /* Ensure they are on opposite sides */
    align-items: center;
    width: 100%;
    margin-bottom: 50px;
}

/* Align Certification Box to the Left */
.cert_box {
    width: 48%; /* Adjust width to fit two boxes */
    display: flex;
    justify-content: flex-start; /* Align to the left */
}

/* Align Certification Box to the Right */
.cert_box2 {
    width: 48%; /* Adjust width to fit two boxes */
    display: flex;
    justify-content: flex-end; /* Align to the right */
}

/* Ensure Cards Take Full Width of Their Parent */
.card2 {
    width: 100%;
}

/* Fix Card Positioning */
.card2 {
    position: relative;
    width: 500px;
    height: 200px;
    border-radius: 14px;
    z-index: 500; /* Lower than navbar */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 10px 10px 20px var(--primary-color);
    transition: transform 0.3s ease-in-out;
}

/* Background should also have a lower z-index */
.bg2 {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 490px;
    height: 190px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid black;
    transition: transform 0.3s ease-in-out;
}

.blob2 {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 150px;
    border-radius: 50%;
    background-color: #e81cff;
    opacity: 1;
    filter: blur(12px);
    animation: blob-bounce 5s infinite ease;
    transition: transform 0.3s ease-in-out;
}

.card2:hover, 
.card2:hover .bg, 
.card2:hover .blob {
    transform: scale(1.1); /* Slight zoom effect */
}

/* If you want links inside the card to change color on hover */
.card2 a:hover {
    color: var(--primary-color);
}

/* Ensure text is above the background */
.card2 p {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center; /* Center-align text */
}

/* Specific styling for .edu_sub_text */
.card2 .edu_sub_text {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1rem;
    font-weight: normal; /* Normal weight for sub-text */
    text-align: center; /* Center-align sub-text */
    margin-top: 5px; /* Space between main text and sub-text */
}

/* *************** Certifications Section End *************** */




/* *************** Projects Section Start *************** */

.projects_main {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers everything horizontally */
    color: var(--text-light);
    padding: 100px 10%;
    max-width: 1200px;
    margin: auto;
}

/* Education Title Styling */
.projects_main h1 {
    font-size: 2.5rem;
    margin-bottom: 100px;
}

/* Wrapper for the cards */
.cards_wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 cards per row */
    gap: 100px; /* Space between cards */
    justify-items: center; /* Centers cards horizontally */
    margin-top: 30px;
  }
  
  /* Card styling */
  .cardp {
    position: relative;
    width: 190px;
    height: 254px;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 12px;
    gap: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.cardp::before {
    content: '';
    position: absolute;
    inset: 0;
    left: -5px;
    margin: auto;
    width: 200px;
    height: 264px;
    border-radius: 10px;
    background: linear-gradient(-45deg, #e81cff 0%, var(--primary-color) 100%);
    z-index: -10;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cardp::after {
    content: "";
    z-index: -1;
    position: absolute;
    inset: 0;
    background: linear-gradient(-45deg, #fc00ff 0%, var(--primary-color) 100%);
    transform: translate3d(0, 0, 0) scale(0.95);
    filter: blur(20px);
}

.pp_heading {
    font-size: 20px;
    text-transform: capitalize;
    font-weight: 700;
}

.cardp p:not(.pp_heading) {
    font-size: 14px;
}

.cardp p:last-child {
    color: #e81cff;
    font-weight: 600;
}

.cardp:hover::after {
    filter: blur(30px);
}

.cardp:hover::before {
    transform: rotate(-90deg) scaleX(1.34) scaleY(0.77);
}

.more_data_txt {
    position: absolute;
    bottom: -7px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.4s ease-in-out; /* Smooth transition */
}

.cardp:hover .more_data_txt {
    opacity: 1; /* Show the more_data_txt on hover */
}

.proj_subd_txt {
    color: white; /* Ensures the text inside <p> is white */
}

.cardp .more_data_txt .proj_subd_txt {
    color: white; /* Ensures the text inside <p> is white */
    font-size: 13px;
}



/* *************** Projects Section End *************** */




/* *************** Skills Section Start *************** */

.skills_main {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers everything horizontally */
    color: var(--text-light);
    padding: 100px 10%;
    max-width: 1200px;
    margin: auto;
}

/* Education Title Styling */
.skills_main h1 {
    font-size: 2.5rem;
    margin-bottom: 100px;
}


/* From Uiverse.io by eslam-hany */ 
.book {
    position: relative;
    border-radius: 10px;
    width: 220px;
    height: 300px;
    background-color: black;
    -webkit-box-shadow: 1px 1px 12px var(--primary-color);
    box-shadow: 1px 1px 12px var(--primary-color);
    -webkit-transform: preserve-3d;
    -ms-transform: preserve-3d;
    transform: preserve-3d;
    -webkit-perspective: 2000px;
    perspective: 2000px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: #ffffff;
  }
  
  .cover {
    top: 0;
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    cursor: pointer;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform-origin: 0;
    -ms-transform-origin: 0;
    transform-origin: 0;
    -webkit-box-shadow: 1px 1px 12px #e81cff;
    box-shadow: 1px 1px 12px #e81cff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }
  
  .book:hover .cover {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotatey(-80deg);
    -ms-transform: rotatey(-80deg);
    transform: rotatey(-80deg);
  }
  
  .skills_main p {
    font-size: 30px;
    color: white;
    font-weight: bolder;
  }
  
  .book img {
    width: 100%; /* Makes the image fill the width of the container */
    height: 100%; /* Makes the image fill the height of the container */
    object-fit: contain; /* Ensures the image is fully contained without cropping */
    border-radius: 10px; /* Optional, to match the border radius of the .book */
  }
  
/* *************** Skills Section End *************** */






/* *************** Contact Section Start *************** */

.contact_main {
    display: flex;
    flex-direction: column; /* Stacks elements vertically */
    align-items: center; /* Centers everything horizontally */
    color: var(--text-light);
    padding: 100px 10%;
    max-width: 1200px;
    margin: auto;
    margin-top: 100px;
}

/* Education Title Styling */
.contact_main h1 {
    font-size: 2.5rem;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    margin-top: 0px;
    margin-top: -10px;
}

.con_wrapper {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 100%;
    margin-bottom: 100px;
}

.con_box {
    width: 550px; /* Adjust width */
    display: flex;
    justify-content: center; /* Center content */
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.contact-form h2 {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-form label {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    background: #222;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-form button {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 10px;
    width: 105%;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold; /* Makes input text bold */
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 40px;
}

.contact-form button:hover {
    background: #1da1f2;
}

/* Fix Card Positioning */
.card3 {
    position: relative;
    width: 1000px;
    height: 750px;
    border-radius: 14px;
    z-index: 500; /* Lower than navbar */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px var(--primary-color), 0 -7px 15px #e81cff; /* Top and bottom shadows */
    transition: transform 0.3s ease-in-out;
}

.card3 p {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center; /* Center-align text */
}

/* Specific styling for .edu_sub_text */
.card3 .edu_sub_text {
    position: relative;
    z-index: 2; /* Higher than the background */
    font-size: 1rem;
    font-weight: normal; /* Normal weight for sub-text */
    text-align: center; /* Center-align sub-text */
    margin-top: 5px; /* Space between main text and sub-text */
}

/* *************** Contact Section End *************** */





/* *************** Footer start *************** */

footer {
    position: relative;
    bottom: 0;
    left: 0;
    width: auto; /* Full width */
    height: 210px; /* Auto height to adjust content */
    background-color: rgba(51, 51, 51, 0.9); /* Semi-transparent background */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center;
    padding: 20px 2rem;
    color: white;
}

/* Footer navigation links centered */
.footer_nav_link {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, auto); /* 3 links per row */
    gap: 25px 120px; /* Space between links */
    padding: 0;
    margin: 0 auto; /* Centers the grid inside the footer */
    justify-content: center; /* Centers the grid horizontally */
    text-align: center;
    margin-bottom: 25px;
}

.footer_nav_link li {
    display: inline;
}

.footer_nav_link a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer_nav_link a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer bottom bar */
.footer_bar {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
}

.link_logo_fo {
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;  /* Center vertically */
    gap: 30px;  /* Space between images */
    margin-bottom: 40px; /* Adjust top margin if needed */
}

/* *************** Footer End *************** */




/* *************** Project pop_view start *************** */

/* Modal container */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    padding-top: 30px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    overflow: auto; /* Ensures scrolling if content overflows */
}

/* Modal content (the large image) */
.modal-content {
    background-color: rgb(24, 24, 24);
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px;
    width: 90%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: auto;
}

/* Close button (X) */
.close {
    position: absolute;
    top: 60px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Wrapper to centralize and contain modal content */
.modal-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* pro details styling */
.pro-details {
    text-align: center;
    margin-bottom: 20px;
}

/* pro image styling */
.pro-images {
    display: flex;
    justify-content: space-between; /* Distribute images evenly */
    align-items: center; /* Align images vertically */
    width: 100%;
}

.pro-image {
    width: 45%; /* Adjust size as needed */
    height: auto;
}

#pro-name{
    color: white;
    font-size: 30px;
}

#pro-lan{
    text-align: left;
    color: white;
}

#pro-year{
    text-align: left;
    color: #e81cff;
}

#pro-dis {
    white-space: pre-line;
}

/* *************** Project pop_view End *************** */




/* *************** Chatbot start *************** */
/* Chatbot icon button */
.chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.chatbot-button:hover {
transform: scale(1.2); /* Slight zoom effect on hover */
}

.chatbot-button img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%; 
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Chatbot container */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chatbot header */
.chatbot-header {
    background-color: var(--primary-color);
    padding: 10px;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: bold;
}

/* Close button */
.close-chatbot {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Chat messages */
.chatbot-messages {
    padding: 10px;
    height: 330px;
    overflow-y: auto;
    background: #f5f5f5;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

/* Input wrapper */
.input-wrapper {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 5px;
    gap: 5px;
}

/* Text input */
#userInput {
    flex: 1;
    padding: 10px;
    border: 2px solid #ccc; /* Added border */
    outline: none;
    font-size: 14px;
    border-radius: 5px; /* Optional: Add rounded corners */
}

/* On focus, change border color */
#userInput:focus {
    border-color: var(--primary-color); /* Change border color when input is focused */
    box-shadow: 0 0 5px rgba(88, 204, 250, 0.5); /* Optional: Add a light shadow when focused */
}

/* Send button */
#sendButton {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
}

/* Voice typing button */
#voiceBtn {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    font-size: 20px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    margin-right: 2px;
}

#voiceBtn:hover {
    background-color: #0097d3;
}

/* Chat messages */
.message {
    max-width: 80%;
    padding: 10px;
    margin: 5px 10px;
    border-radius: 8px;
    word-wrap: break-word;
    display: inline-block;
}

/* User message style */
.user {
    background-color: var(--primary-color);
    color: white;
    align-self: flex-end;
    text-align: right;
}

/* Bot message style */
.bot {
    background-color: #e0e0e0;
    color: black;
    align-self: flex-start;
    text-align: left;
}

/* Chat container (ensure flex column layout if needed) */
#chatbot-messages {
    display: flex;
    flex-direction: column;
}

/* *************** Chatbot End *************** */
