/* Base Styles */
:root {
    --primary-color: #079669; /* Tailwind green-500 */
    --primary-dark: #16a34a; /* Tailwind green-600 */
    --primary-darker: #15803d; /* Tailwind green-700 */
    --primary-darkest: #166534; /* Tailwind green-800 */
    --primary-light: #dcfce7; /* Tailwind green-100 */
    --secondary-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-light {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 50px;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px; /* Added padding to account for the wave */
    background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(59,130,246,0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-color);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.floating-cards-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.floating-card {
    position: relative;
    background-color: var(--white);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    margin: 15px;
    width: calc(50% - 40px);
    max-width: 250px;
}

.floating-card i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: var(--primary-color);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 0.7s;
}

.card-3 {
    animation-delay: 1.4s;
}

.card-4 {
    animation-delay: 0.3s;
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
    100% {
        transform: translateY(0px) scale(1);
    }
}

.hero-wave {
    position: absolute;
    bottom: -10px; /* Adjusted to prevent content overlap */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    height: 150px; /* Increased height */
    z-index: -1; /* Ensure it stays at the very back */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Problem Intro Section */
.problem-intro {
    background-color: var(--background-light);
}

.problem-intro .problem-text {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 6px solid var(--primary-color);
}

.problem-intro .problem-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.problem-intro .problem-text p:last-child {
    margin-bottom: 0;
}

.problem-intro .problem-text p strong {
    color: var(--primary-darker);
}

@media (max-width: 768px) {
    .problem-intro .problem-text {
        padding: 20px;
    }
    .problem-intro .problem-text p {
        font-size: 1rem;
    }
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.benefit-card p {
    color: var(--text-light);
}

/* Features Section */
.features {
    background-color: var(--background-light);
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-text p {
    color: var(--text-light);
    max-width: 500px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-image img:hover {
    transform: scale(1.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-cards {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.feature-card-space {
    flex: 0 0 calc(30% - 30px);
    margin-bottom: 20px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.feature-card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
}

/* Pricing Section */
.pricing {
    background-color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-tag {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom-left-radius: 8px;
}

/* Featured (Enterprise) badge and card styling */
.pricing-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 8px 16px;
    font-weight: 600;
    font-size: 0.8rem;
    border-bottom-right-radius: 8px;
}

.pricing-card.featured {
    border: 2px solid var(--secondary-color);
    z-index: 10;
}

.pricing-card.featured:hover {
    transform: translateY(-10px);
}

.pricing-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

.pricing-header h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    font-weight: 700;
    flex-wrap: wrap;
}

.currency {
    font-size: 1.2rem;
    margin-left: 4px;
    order: 2;
}

.amount {
    font-size: 2.2rem;
    line-height: 1;
    order: 1;
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    order: 3;
    width: 100%;
    margin-top: 5px;
}

.pricing-features {
    padding: 15px 20px;
    flex-grow: 1;
}

.pricing-features ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.4;
}

.pricing-features ul li i {
    margin-right: 12px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.pricing-features ul li i.fa-check {
    color: var(--primary-color);
}

.pricing-features ul li i.fa-times {
    color: #ef4444;
}

.pricing-action {
    padding: 0 20px 20px;
    margin-top: auto;
}

.price-options {
    margin-bottom: 20px;
}

.price-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
}

.price-option.annual {
    position: relative;
    padding-top: 10px;
}

.price-save {
    position: absolute;
    top: -5px;
    right: 0;
    background-color: var(--primary-light);
    color: var(--primary-darker);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.price-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.btn-group .btn {
    width: 80%;
    text-align: center;
    justify-content: center;
}

.custom-price {
    justify-content: center;
    margin-bottom: 0;
}

.custom-desc {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
    margin-bottom: 15px;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Section */
.faq {
    background-color: var(--background-light);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    padding-right: 40px;
}

.faq-toggle {
    position: absolute;
    right: 30px;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 20px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* Contact Section */
.contact {
    background-color: var(--background-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Footer */
footer {
    background-color: #1f2937;
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 16px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--white);
}

.footer-logo p {
    color: #9ca3af;
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #9ca3af;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white);
}

.footer-newsletter p {
    color: #9ca3af;
    margin-bottom: 16px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #374151;
}

.footer-bottom p {
    color: #9ca3af;
}

/* WhatsApp Chat Modal */
.chat-modal {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.chat-container {
    width: 350px;
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.chat-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    padding: 5px;
}

.chat-title h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-title p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
}

.message.sent {
    align-self: flex-end;
}

.message.received {
    align-self: flex-start;
}

.message-content {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
}

.message.sent .message-content {
    background-color: var(--primary-color);
    color: var(--white);
    border-bottom-right-radius: 0;
}

.message.received .message-content {
    background-color: #f3f4f6;
    border-bottom-left-radius: 0;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    align-self: flex-end;
}

.message-time-user {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 4px;
    align-self: flex-end;
}

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

.chat-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    resize: none;
    font-family: 'Poppins', sans-serif;
    height: 45px;
    max-height: 100px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input button {
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: var(--primary-dark);
}

.chat-footer {
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
}

.chat-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Form Success and Error Messages */
.form-success,
.form-error {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius);
    background-color: #f9fafb;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.form-success {
    border-left: 4px solid var(--primary-color);
}

.form-error {
    border-left: 4px solid #ef4444;
}

.success-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-icon i {
    color: var(--primary-color);
}

.error-icon i {
    color: #ef4444;
}

.form-success h3,
.form-error h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success p,
.form-error p {
    color: var(--text-light);
}

.form-error-message {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-group input:invalid:focus ~ .form-error-message,
.form-group textarea:invalid:focus ~ .form-error-message,
.form-group select:invalid:focus ~ .form-error-message {
display: block;
}

/* Media Queries */
@media (max-width: 992px) {
.hero-content {
flex-direction: column;
}
    
.hero-text h1 {
font-size: 2.5rem;
}
    
.feature-row {
flex-direction: column;
}
    
.feature-row.reverse {
flex-direction: column;
}
    .feature-row.reverse {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .floating-card {
        width: 100%;
        max-width: 100%;
        margin: 10px 0;
        animation: none;
        transform: none !important;
    }
    
    .floating-cards-container {
        flex-direction: column;
    }
    
    .pricing-card.popular {
        transform: scale(1);
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .chat-container {
        width: 300px;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.whatsapp-modal {
    background-color: #fff;
    width: 450px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

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

.modal-header {
    background-color: #079669;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 1.2rem;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

.modal-body {
    padding: 20px;
    flex: 1;
}

.phone-input-container {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.country-code-select {
    width: 40%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.phone-input {
    width: 60%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.assistant-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 5px;
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 350px;
    max-width: 90vw;
    height: 550px;
    max-height: 85vh;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden;
}

.chat-widget.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    visibility: visible; /* Added visibility property */
}

.chat-widget.minimized {
    height: 50px !important;
    overflow: hidden !important;
    max-height: 50px !important;
}

/* Chat Setup Form Styles */
.chat-setup {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #f9f9f9;
}

.setup-header {
    text-align: center;
    margin-bottom: 20px;
}

.setup-header h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.setup-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #444;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4a6cf7;
    outline: none;
}

.start-demo-btn {
    background: linear-gradient(45deg, #4a6cf7, #6e8ffb);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.start-demo-btn:hover {
    background: linear-gradient(45deg, #3a5ce6, #5d7fea);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.2);
}

.start-demo-btn:active {
    transform: translateY(0);
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: white;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-header .chat-controls {
    display: flex;
    gap: 10px;
}

.chat-header .chat-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.chat-header .chat-controls button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #f9f9f9;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

.message.bot {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #343a40;
    border-bottom-left-radius: 5px;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
    color: black;
}

.message-time-user {
    font-size: 10px;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
    color: white;
}

/* Button loading animation */
.button-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Typing animation styles */
.typing-indicator {
    display: flex;
    align-items: center;
    align-self: flex-start;
    background-color: #e9ecef;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 10px;
    order: 9999; /* Ensure it's always the last element in flex container */
    margin-top: 5px; /* Add some space from the previous message */
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    float: left;
    margin: 0 1px;
    background-color: #9E9EA1;
    display: block;
    border-radius: 50%;
    opacity: 0.4;
}

.typing-indicator span:nth-of-type(1) {
    animation: 1s blink infinite 0.3333s;
}

.typing-indicator span:nth-of-type(2) {
    animation: 1s blink infinite 0.6666s;
}

.typing-indicator span:nth-of-type(3) {
    animation: 1s blink infinite 0.9999s;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #e9ecef;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    border-radius: 20px;
    background-color: #f1f3f5;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-input button:hover {
    transform: scale(1.05);
}

.chat-input button:active {
    transform: scale(0.95);
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-darker));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.05);
}

.chat-toggle i {
    font-size: 24px;
}

.chat-widget.active + .chat-toggle {
    transform: scale(0);
    opacity: 0;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    max-width: fit-content;
    margin-bottom: 10px;
    align-self: flex-start;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    background-color: #343a40;
    border-radius: 50%;
    display: inline-block;
    margin: 0 1px;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: blink 1s infinite 0.3s;
}

.typing-indicator span:nth-child(2) {
    animation: blink 1s infinite 0.5s;
}

.typing-indicator span:nth-child(3) {
    animation: blink 1s infinite 0.7s;
}

@keyframes blink {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.4;
    }
}

/* Responsive chat widget and modal */
@media (max-width: 768px) {
    .chat-widget {
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        bottom: 0 !important;
        right: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        overflow: hidden !important;
    }
    
    .chat-toggle {
        bottom: 15px;
        right: 15px;
    }
    
    /* Completely redesign chat layout for mobile to avoid scrolling */
    .chat-header {
        padding: 10px;
        height: auto;
        min-height: 50px;
    }
    
    .chat-header h3 {
        font-size: 16px;
    }
    
    /* Make chat messages container take exactly the available space */
    .chat-messages {
        padding: 8px !important;
        max-height: calc(100vh - 120px) !important; /* Subtract header and input heights */
        flex: 1 !important;
        overflow-y: auto !important; /* Enable vertical scrolling for messages */
        -webkit-overflow-scrolling: touch !important; /* Smooth scrolling on iOS */
    }
    
    /* Make message bubbles smaller on mobile */
    .message {
        padding: 8px 12px;
        margin-bottom: 6px;
        font-size: 14px;
    }
    
    /* Adjust chat input for mobile */
    .chat-input {
        padding: 8px;
        height: auto;
        min-height: 50px;
    }
    
    .chat-input input {
        padding: 8px;
        font-size: 16px;
    }
    
    /* Make WhatsApp modal fit on screen without scrolling */
    .whatsapp-modal {
        max-width: 95% !important;
        height: auto !important;
        max-height: 90vh !important;
        margin: 10px !important;
        overflow: visible !important;
    }
    
    .modal-overlay {
        align-items: flex-start !important;
        padding-top: 20px !important;
    }
    
    .modal-header {
        padding: 10px 15px;
    }
    
    .modal-body {
        padding: 10px !important;
        overflow: visible !important;
        max-height: none !important;
    }
    
    /* Compact form elements */
    .form-group {
        margin-bottom: 8px !important;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select,
    .assistant-select,
    .country-code-select,
    .phone-input {
        padding: 6px !important;
        font-size: 14px !important;
        height: 36px !important;
    }
    
    /* Make setup form more compact */
    .chat-setup {
        padding: 10px !important;
        overflow: visible !important;
        max-height: none !important;
    }
    
    .setup-header h4 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .setup-header p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    /* Make buttons more compact */
    .btn,
    .start-demo-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Reduce size of assistant options text */
    .form-group p {
        font-size: 10px !important;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    /* Adjust modal for different device heights */
    @media (max-height: 700px) {
        .whatsapp-modal {
            max-height: 95vh;
        }
        
        .modal-body {
            padding: 8px;
        }
        
        .form-group {
            margin-bottom: 6px;
        }
    }
    
    /* For very small screens */
    @media (max-height: 600px) {
        .chat-header {
            min-height: 40px;
            padding: 8px;
        }
        
        .chat-input {
            min-height: 40px;
            padding: 5px;
        }
        
        .chat-messages {
            max-height: calc(100vh - 90px);
            padding: 5px;
        }
    }
}

/* Language Switcher Styles */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.language-btn:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.language-btn .fas {
    font-size: 12px;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 140px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-dropdown:hover .language-options,
.language-dropdown.active .language-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Mobile language switcher */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
        margin-top: 10px;
    }
    
    .language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 16px;
        background-color: var(--background-light);
        border-radius: 8px;
    }
    
    .language-options {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        margin-top: 8px;
        transform: none;
        background-color: transparent;
    }
    
    .language-option {
        background-color: var(--white);
        margin-bottom: 4px;
        border-radius: 6px;
        border: 1px solid #e5e7eb;
    }
}

/* Use Cases Section */
.use-cases {
    background-color: var(--white);
    padding: 100px 0;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.use-case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.5s ease;
}

.use-case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.use-case-card:hover::before {
    left: 0;
}

.use-case-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.use-case-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.use-case-card:hover .use-case-icon {
    transform: rotateY(360deg);
}

.use-case-card:hover .use-case-icon::before {
    width: 100%;
    height: 100%;
}

.use-case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.use-case-card:hover h3 {
    color: var(--primary-color);
}

.use-case-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.use-case-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.use-case-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--secondary-color));
    transition: left 0.5s ease;
    z-index: -1;
}

.use-case-btn:hover::before {
    left: 0;
}

.use-case-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 150, 105, 0.3);
}

.use-case-btn i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.use-case-btn:hover i {
    transform: scale(1.2) rotate(5deg);
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(7, 150, 105, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(7, 150, 105, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(7, 150, 105, 0);
    }
}

.use-case-card:nth-child(2n) {
    animation-delay: 0.1s;
}

.use-case-card:nth-child(3n) {
    animation-delay: 0.2s;
}

.use-case-card:nth-child(4n) {
    animation-delay: 0.3s;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .use-cases {
        padding: 60px 0;
    }
    
    .use-case-card {
        padding: 25px 15px;
    }
    
    .use-case-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .use-case-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .use-case-card p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .use-case-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
