/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
} */

/* Main Website Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.main-content h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.main-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    margin-bottom: 0;
}

/* ================== CHATBOT STYLES ================== */

/* Chatbot Toggle Button (Message Icon in Bottom Right) */
.chatbot-toggle {
    position: fixed;
    bottom: 60px;
    right: 12px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #04b037 0%, #04bba9 100%);
    border-radius: 40%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Pulse Animation for Toggle Button */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
}
.cycasoft-logo {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  object-fit: contain;
}
/* Chatbot Container (Desktop Default) */
.chatbot-container {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 350px;
    height: 450px; /* Keep full height for desktop */
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

/* 📱 Mobile Responsive Styling - only reduce height */
@media only screen and (max-width: 480px) {
    .chatbot-container {
        width: 95vw;
        height: 60vh; /* Reduced from 70vh */
        right: 2.5vw;
        bottom: 20px;
        border-radius: 10px;
    }
}
/* Show/Hide Animation */
.chatbot-container.show {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header h5 {
    margin: 0;
    font-weight: 600;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 1;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Message Bubbles */
.message {
    max-width: 80%;
    margin-bottom: 10px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
    font-size: 14px;
}

/* User Message (Right Side) */
.user-message {
    align-self: flex-end;
    margin-left: auto;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 8px;
}

/* Bot Message (Left Side) */
.bot-message {
    align-self: flex-start;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Input Area */
.chatbot-input {
    padding: 15px 20px;
    background: white;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top: 1px solid #e9ecef;
}

.input-group {
    display: flex;
    gap: 10px;
}

/* Input Field */
.input-field {
    border-radius: 20px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.input-field:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Send Button */
.send-btn {
    border-radius: 20px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    min-width: 70px;
    transition: all 0.3s ease;
}

.send-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.send-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    border-bottom-left-radius: 8px;
    max-width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ================== MOBILE RESPONSIVENESS ================== */
@media (max-width: 768px) {
    /* Chatbot Container */
    .chatbot-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 40px);
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    /* Main Content */
    .main-content {
        padding: 20px;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    /* Scroll Top Button */
    .scroll-top {
        width: 35px;
        height: 35px;
        right: 20px; /* Match chatbot container margin */
        bottom: 20px; /* Match chatbot container margin */
    }
    
    .scroll-top i {
        font-size: 20px;
    }
    
    /* Chatbot Toggle Button */
    .chatbot-toggle {
        width: 40px;
        height: 40px;
        bottom: 75px; /* Above scroll button (20px + 35px + 20px spacing) */
        right: 20px; /* Match chatbot container margin */
    }
}

@media (max-width: 480px) {
    /* Main Content */
    .main-content {
        padding: 15px;
        margin: 10px;
    }
    
    /* Chatbot Container */
    .chatbot-container {
        width: calc(100vw - 20px);
        height: calc(100vh - 20px);
        bottom: 10px;
        right: 10px;
        left: 10px;
    }
    
    /* Scroll Top Button */
    .scroll-top {
        width: 32px;
        height: 32px;
        right: 15px; /* Your original positioning */
        bottom: 15px; /* Your original positioning */
    }
    
    .scroll-top i {
        font-size: 18px;
    }
    
    /* Chatbot Toggle Button */
    .chatbot-toggle {
        width: 36px; /* Smaller than your 50px to avoid overlap */
        height: 36px;
        bottom: 65px; /* Above scroll button (15px + 32px + 18px spacing) */
        right: 15px; /* Match scroll button positioning */
    }
}

/* Optional: Additional breakpoint for very small screens */
@media (max-width: 360px) {
    .chatbot-container {
        width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        bottom: 8px;
        right: 8px;
        left: 8px;
    }
    
    .scroll-top {
        width: 30px;
        height: 30px;
        right: 12px;
        bottom: 12px;
    }
    
    .scroll-top i {
        font-size: 16px;
    }
    
    .chatbot-toggle {
        width: 34px;
        height: 34px;
        bottom: 58px; /* Above scroll button (12px + 30px + 16px spacing) */
        right: 12px;
    }
}

/* Optional: Hide scroll button when chatbot is open */
.chatbot-active .scroll-top {
    opacity: 0;
    visibility: hidden;
}

/* Optional: Adjust for landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .chatbot-container {
        height: calc(100vh - 30px);
        bottom: 15px;
    }
    
    .chatbot-toggle {
        bottom: 60px;
    }
    
    .scroll-top {
        bottom: 15px;
    }
}

/* ================== MENU OPTIONS STYLES ================== */
/* Add these styles to your existing style.css file */

/* Menu Options Container */
.menu-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    border-bottom-left-radius: 8px;
    max-width: fit-content;
}

/* Menu Option Buttons */
.menu-option-btn {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 10px 16px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-option-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.menu-option-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Back Button Specific Styles */
.menu-option-btn.back-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border-color: #6c757d;
    margin-top: 8px;
    font-weight: 600;
}

.menu-option-btn.back-btn:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Mobile Responsiveness for Menu Options */
@media (max-width: 480px) {
    .menu-option-btn {
        min-width: 180px;
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .menu-options {
        padding: 10px 12px;
        gap: 6px;
    }
}