/* Global Styles */
:root {
    --primary-color: #7364D9;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Navbar Styles */
.navbar {
    background-color: white !important;
    padding: 20px 0;
    width: 100%;
}

.navbar-brand {
    margin: 0 auto;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 0;
    }
    
    .navbar-brand img {
        height: 24px;
    }
}

/* Hero Section */
.hero-section {
    background: #F6F8FA;
    min-height: calc(100vh - 88px - 48px);
    width: 100%;
    border-radius: 48px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 0;
    background-image: url('../images/herobg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 768px) {
    .hero-section {
        background-image: url('../images/mobile-herobg.png');
    }
}

.hero-logo {
    height: 50px;
    width: auto;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .hero-logo {
        height: 42px;
        margin-bottom: 20px;
    }
}

.hero-section h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 48px;
    color: #272835;
}

@media (max-width: 768px) {
    .hero-section h1 {
        text-align: center;
        width: 70%;
    }
}

.hero-section p {
    font-size: 16px;
    font-weight: 300;
    line-height: 24px;
    color: #36394A;
    margin-top: 8px;
    margin-bottom: 150px;
}

@media (max-width: 768px) {
    .hero-section p {
        text-align: center;
        width: 90%;
    }
}

.search-container {
    width: 70%;
    position: relative;
    margin-top: 24px;
}

@media (max-width: 768px) {
    .search-container {
        width: 90%;
    }
}

.search-container .robot-avatar {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 164px;
    height: auto;
}

.search-container .robot-avatar.v2 {
    top: -136px;
}

.hero-section #searchTextarea {
    width: 100%;
    border-radius: 16px;
    padding: 16px;
    color: #818898;
    font-size: 14px;
    background-color: #F8FAFB;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    resize: none;
    font-family: 'Poppins', sans-serif;
    min-height: 127px;
    position: relative;
    z-index: 2;
}

.hero-section #searchTextarea:focus {
    outline: none;
}

.send-button {
    background: none;
    border: none;
    padding: 0 !important;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease;
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 3;
}

.send-icon {
    width: 30px;
    height: 30px;
}

.input-group-text {
    border-radius: 100px;
}

/* Chat Interface Styles */
.chat-container {
    width: 100%;
    border-radius: 16px;
    background-color: #F8FAFB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    z-index: 2;
    min-height: 127px !important;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    max-height: 192px;
}

@media screen and (max-width: 768px) {
    .chat-messages {
        max-height: 140px;
    }
}

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

.message-content {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 14px !important;
}

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

.user-message .message-content {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message {
    align-items: flex-start;
    position: relative;
}

.bot-message .message-content {
    background-color: #E9ECEF;
    color: #272835;
    border-bottom-left-radius: 4px;
    margin-left: 28px;
}

.bot-message::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background-image: url('../images/robot.svg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.chat-input-container {
    display: flex;
    padding: 12px;
    border-top: 1px solid #E9ECEF;
}

.chat-input {
    flex: 1;
    border: 1px solid #ECEFF3;
    border-radius: 16px;
    padding: 10px 16px;
    background-color: #F6F8FA;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    resize: none;
    outline: none;
}

.chat-input:focus {
    box-shadow: 0 0 0 2px rgba(115, 100, 217, 0.25);
}

/* Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(24px);
    background: #090E1DA3 !important;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-body {
    padding: 24px;
}

.modal-body p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 24px;
    color: #272835;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 16px 24px;
}

.form-group {
    margin-bottom: 40px;
}

.input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group-text img {
    width: 20px;
    height: auto;
}

#phoneInput {
    border-left: none;
    padding: 12px 16px;
}

#phoneInput:focus {
    box-shadow: none;
    border-color: #ced4da;
}

#phoneModal .input-group {
    border-radius: 100px;
    box-shadow: none;
}

#phoneModal .form-control {
    border-top-right-radius: 100px;
    border-bottom-right-radius: 100px;
}

#phoneModal .form-control:focus {
    box-shadow: none;
}

#phoneModal .modal-body {
    padding-top: 40px !important;
    padding: 32px;
}

#phoneModal .btn-close:focus {
    box-shadow: none;
}

.input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(115, 100, 217, 0.25);
    border-radius: 8px;
}

.count-me-in-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.count-me-in-btn:hover {
    background-color: #5f52c0;
    color: white;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5f52c0 !important;
    border-color: #5f52c0 !important;
}

/* Footer Styles */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 1;
}

.social-icons svg {
    width: 24px;
    height: 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

.copyright {
    color: #A4ACB9;
}

/* Animation Styles */
/* Hero section animations */
.hero-logo {
    animation: fadeInDown 1s ease-out;
}

.hero-section h1 {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.robot-avatar {
    animation: float 3s ease-in-out infinite;
}

.search-container {
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Chat interface animations */
.chat-container {
    animation: slideUp 0.5s ease-out;
}

.message {
    animation: messageSlideIn 0.3s ease-out;
}

.user-message {
    animation: messageSlideInRight 0.3s ease-out;
}

.bot-message {
    animation: messageSlideInLeft 0.3s ease-out;
}

/* Button animations */
.send-button {
    transition: margin-left 0.2s ease;
}

.send-button:hover {
    margin-left: 2px;
}

.count-me-in-btn {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.count-me-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Modal animations */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Typing indicator animation */
.typing-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 18px;
    width: 60px;
}

.typing-dots span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #888;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.6;
}

.typing-dots span:nth-child(1) {
    animation: typing 1s infinite;
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation: typing 1s infinite;
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation: typing 1s infinite;
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/* Animation keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -10px);
    }
}

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

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

@keyframes messageSlideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes messageSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes starScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}

/* Mobile textarea improvements */
@media (max-width: 768px) {
    #searchTextarea, #chat-input {
        font-size: 14px !important; /* Prevents iOS zoom */
        padding: 12px 15px !important; /* Larger touch target */
        line-height: 1.4 !important;
    }

    #chat-input {
        min-height: 50px !important; /* Taller for better touch */
    }
    
    .search-container {
        padding: 15px !important;
    }
    
    .send-button {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
}

/* Star Icon */
.star-icon {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 40px;
    height: 40px;
    animation: starScale 3s ease-in-out infinite;
}

/* Star Icon */
.star-icon2 {
    position: absolute;
    top: 120px;
    right: 135px;
    width: 62px;
    height: 62px;
    animation: starScale 3s ease-in-out infinite;
}

/* Close Button */
.btn-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    padding: 0;
    z-index: 1;
    cursor: pointer;
}

/* Chat Send Button */
#chat-send-button {
    position: static;
    margin-left: 8px;
}

/* Testimonials Section */
.testimonials {
    padding: 36px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-head .title {
    flex: 1;
}

.section-head .title h2 {
    font-size: 3٠px;
    font-weight: 700;
    margin-bottom: 0px;
    color: #333;
}

.section-head .title h2 span {
    color: var(--primary-color);
}

.section-head .title p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.nav-btn i {
    font-size: 14px;
}

.testimonial-item {
    border-radius: 16px;
    background-color: rgba(94, 79, 190, 0.1);
    padding: 20px;
}

.testimonial-item .item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.testimonial-item .stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.testimonial-item .stars img {
    width: 15px;
    height: 15px;
}

.testimonial-item .quote-icon {
    width: 20px !important;
    height: 20px;
}

.testimonial-item p {
    font-size: 16px;
    font-weight: 400;
    color: #36394A;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 20px;
}

.testimonial-item .clinet {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-item .clinet p {
    margin: 0;
    padding: 0;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 16px;
}

.testimonial-item .clinet span {
    font-size: 14px;
    line-height: 14px;
    color: #666;
}

.testimonial-item .clinet img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Phone Input Styles */
.phone-input-container {
    position: relative;
    flex: 1;
}

.phone-input-container::before {
    content: "5";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #212529;
    z-index: 5;
}

#phoneInput {
    padding-left: 25px;
} 