/* Index Page Specific Styles */

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: -2rem;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    padding-bottom: 2rem;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    color: var(--primary-color);
    margin-top: 1rem;
}

.hero h2 {
    font-size: 1.9rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.2s forwards;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.3s forwards;
    color: var(--primary-color);
    margin-bottom: 0rem;
}

/* Typing Animation */
.typing-animation {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--primary-color);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.5px;
    text-align: center;
    line-height: 1.2;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

#typedText {
    position: relative;
    color: var(--primary-color);
    font-weight: 700;
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
    0% { border-color: var(--primary-color); }
    50% { border-color: transparent; }
    100% { border-color: var(--primary-color); }
}

/* Trust Banner */
.trust-banner {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.6s forwards;
}

.trust-banner p {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    background: var(--secondary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    position: relative;
}

.trust-banner p::before {
    content: '🌟';
    margin-right: 10px;
    display: inline-block;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Chat Container */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 550px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 2rem 0;
    border: 1px solid rgba(0, 77, 64, 0.1);
    position: relative;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.6s;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header-icon {
    margin-right: 12px;
}

.chat-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-text {
    display: flex;
    flex-direction: column;
}

.chat-header-text h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 2px;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: #f9fafb;
    scrollbar-width: thin;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 77, 64, 0.2);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 0.9rem 1.2rem;
    border-radius: 18px;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.25rem;
}

.bot-message {
    align-self: flex-start;
    background-color: #e8f5e9;
    color: #1b5e20;
    border-bottom-left-radius: 4px;
    margin-right: auto;
    opacity: 0;
    animation: messageAppear 0.4s ease-out forwards;
}

.bot-message.delay-1 {
    animation-delay: 0.3s;
}

.bot-message.delay-2 {
    animation-delay: 0.6s;
}

.bot-message.delay-3 {
    animation-delay: 0.9s;
}

.user-message {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
    margin-left: auto;
}

.bot-message + .bot-message {
    margin-top: -0.1rem;
}

/* Message appearance animation */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typing indicator */
.typing-indicator {
    align-self: flex-start;
    background-color: #e8f5e9;
    padding: 0.8rem;
    border-radius: 18px;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

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

.typing-indicator span:nth-child(1) {
    animation: pulse 1s infinite 0.1s;
}
.typing-indicator span:nth-child(2) {
    animation: pulse 1s infinite 0.3s;
}
.typing-indicator span:nth-child(3) {
    animation: pulse 1s infinite 0.5s;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.chat-input input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    font-size: 1rem;
    background-color: #f5f7f9;
    transition: all 0.3s ease;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.chat-input button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-left: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input button svg {
    width: 20px;
    height: 20px;
    transform: translateX(-1px);
}

.chat-input button:hover {
    background-color: #006a5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.chat-input button:active {
    transform: translateY(0);
}

/* WhatsApp Promo Section */
.whatsapp-promo {
    background: linear-gradient(135deg, #075e54 0%, #128c7e 100%);
    border-radius: 20px;
    margin: 3rem 0;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.7s forwards;
}

.whatsapp-promo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.07) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.07) 0%, transparent 20%);
    opacity: 0.7;
}

.whatsapp-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.whatsapp-icon {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    color: white;
    margin-right: 1.5rem;
    animation: pulse 2s infinite;
}

.whatsapp-text {
    flex: 1 1 auto;
    text-align: left;
}

.whatsapp-text h3 {
    color: white;
    font-size: 1.7rem;
    margin: 0 0 0.3rem 0;
    font-weight: 700;
}

.whatsapp-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 400;
}

.whatsapp-button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: #075e54;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 1.5rem;
}

.whatsapp-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-button .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .arrow {
    transform: translateX(3px);
}

/* Voice Agents Promo Section */
.voice-agents-promo {
    background: linear-gradient(to bottom, #ffffff, #e0f2f1);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.6s forwards;
}

.promo-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.promo-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

.avatars-showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.avatar-item:hover {
    transform: translateY(-5px);
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.2);
    background-color: #009688;
}

.avatar-name {
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
}

.promo-action {
    margin-top: 1.5rem;
}

.voice-agents-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.3);
}

.voice-agents-button:hover {
    background-color: #006a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 77, 64, 0.4);
}

.promo-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Hexagon Section */
.hexagon-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.9s forwards;
}

#animationCanvas {
    width: 100%;
    height: 300px;
    margin-bottom: 1rem;
}

.hexagon-caption {
    background-color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 1.2s forwards;
    width: fit-content;
    margin: 0 auto;
}

.hexagon-caption:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.hexagon-caption .emoji {
    font-size: 1.4rem;
    animation: pulse 2s infinite;
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.feature {
    flex-basis: calc(33.333% - 20px);
    background-color: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.feature.animate {
    animation: fadeInUp 1s forwards;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0rem;
}

/* Performance Comparison Section */
.performance-comparison {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.performance-comparison h2 {
    font-size: 1.8rem;
    color: #004d40;
    margin-bottom: 0.5rem;
    text-align: left;
}

.performance-comparison p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.chart-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    width: 100%;
    height: auto;
    min-height: 400px;
}

.performance-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Suggestions & Feedback Section */
.suggestions-feedback {
    display: flex;
    gap: 2rem;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.8s forwards;
}

.suggestions, .feedback {
    flex: 1;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.suggestions:hover, .feedback:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.suggestions h3, .feedback h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
    position: relative;
    display: inline-block;
}

.suggestions h3::after, .feedback h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 3px;
}

.suggestions p, .feedback p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.suggestion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestion-list li {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.suggestion-list li:hover {
    background: #e8f5e9;
    border-color: #c8e6c9;
    transform: translateX(5px);
}

.suggestion-list li:active {
    transform: scale(0.98);
}

.suggestion-icon {
    font-size: 1.3rem;
    margin-right: 0.8rem;
    display: inline-block;
}

.suggestion-text {
    font-weight: 500;
    color: #444;
}

#feedback-text {
    width: 100%;
    min-height: 150px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#feedback-text:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 77, 64, 0.1);
}

.feedback-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.feedback-button:hover {
    background-color: #00695c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.15);
}

.feedback-button:active {
    transform: translateY(0);
}

.button-icon {
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

/* Privacy Statement */
.privacy-statement {
    background-color: #e8f5e9;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #1b5e20;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s 0.9s forwards;
}

.privacy-statement p {
    margin: 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .typing-animation {
        font-size: 1.6rem;
    }
    
    .trust-banner p {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    /* Chat Container Mobile */
    .chat-container {
        height: 520px;
        border-radius: 22px;
    }
    
    .message {
        max-width: 90%;
        padding: 0.8rem 1rem;
        margin-bottom: 0.2rem;
        font-size: 0.95rem;
        border-radius: 16px;
    }
    
    .bot-message {
        border-bottom-left-radius: 5px;
    }
    
    .user-message {
        border-bottom-right-radius: 5px;
    }
    
    .chat-input input {
        padding: 0.8rem 1rem;
        border-radius: 25px;
    }
    
    .chat-avatar {
        width: 30px;
        height: 30px;
    }
    
    .chat-messages {
        gap: 0.4rem;
    }

    /* WhatsApp Promo Mobile */
    .whatsapp-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .whatsapp-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .whatsapp-text {
        text-align: center;
        margin-bottom: 1.2rem;
    }
    
    .whatsapp-text h3 {
        font-size: 1.3rem;
    }
    
    .whatsapp-text p {
        font-size: 0.95rem;
    }
    
    .whatsapp-button {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    /* Voice Agents Mobile */
    .voice-agents-promo {
        padding: 2rem 1rem;
    }
    
    .promo-header h2 {
        font-size: 1.6rem;
    }
    
    .avatars-showcase {
        gap: 1rem;
    }
    
    .avatar-image {
        width: 60px;
        height: 60px;
    }

    /* Features Mobile */
    .features {
        flex-direction: column;
    }
    
    .feature {
        flex-basis: 100%;
    }
    
    .feature h3 {
        font-size: 1.2rem;
    }
    
    .feature p {
        font-size: 0.9rem;
    }

    /* Performance Chart Mobile */
    .chart-container {
        padding: 0.2rem;
        min-height: 550px;
        margin: 1rem 0;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    
    .performance-comparison {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }

    /* Suggestions & Feedback Mobile */
    .suggestions-feedback {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .suggestions, .feedback {
        padding: 1.5rem;
    }
    
    .suggestions h3, .feedback h3 {
        font-size: 1.4rem;
    }
    
    .suggestion-list li {
        padding: 0.8rem 1rem;
    }
    
    #feedback-text {
        min-height: 120px;
    }
    
    .feedback-button {
        width: 100%;
    }

    /* Hexagon Section Mobile */
    #animationCanvas {
        height: 250px;
    }
    
    .hexagon-caption {
        font-size: 1.1rem;
        padding: 0.8rem 1.2rem;
        gap: 0.3rem;
    }
    
    .hexagon-caption .emoji {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 480px;
        border-radius: 24px;
    }
    
    .chat-header {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }
    
    .chat-header-text h3 {
        font-size: 1rem;
    }
    
    .chat-messages {
        padding: 1rem 0.8rem;
    }
    
    .message {
        font-size: 0.9rem;
    }

    .avatars-showcase {
        gap: 0.8rem;
    }
    
    .avatar-image {
        width: 50px;
        height: 50px;
    }
    
    .avatar-name {
        font-size: 0.8rem;
    }
} 