/* Hero Section Styles - Pixel Perfect Match */

.hero-section {
    background: #ffffff;
    padding: 35px 0;
    min-height: 55vh;
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-section {
        padding: 35px 0;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 20px 0;
    }
}

.hero-content {
    padding-right: 40px;
}

@media (max-width: 992px) {
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
}

.hero-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.625rem;
    }
}

.hero-title .text-primary {
    color: #3B82F6 !important;
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
    color: #6B7280;
    margin-bottom: 32px;
    max-width: 500px;
}

@media (max-width: 1200px) {
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 28px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
}

@media (max-width: 576px) {
    .hero-description {
        font-size: 0.875rem;
    }
}

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

@media (max-width: 992px) {
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

.hero-buttons .btn {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .hero-buttons .btn {
        min-width: 140px;
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    color: #ffffff;
    border-color: #3B82F6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25);
}

.hero-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    border-color: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.35);
    color: #ffffff;
}

.hero-buttons .btn-outline-primary {
    background: #ffffff;
    color: #3B82F6;
    border-color: #3B82F6;
    border-width: 2px;
}

.hero-buttons .btn-outline-primary:hover {
    background: #3B82F6;
    color: #ffffff;
    border-color: #3B82F6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.25);
}

.hero-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background: #f8fafc;
}

@media (max-width: 768px) {
    .hero-image-container {
        border-radius: 15px;
        box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.2);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 35px 0;
        min-height: auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 16px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 28px;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-buttons .btn {
        min-width: 140px;
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.625rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Animation Effects */
.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image-container {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

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

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

/* Hover Effects */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* Focus States for Accessibility */
.hero-buttons .btn:focus {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hero-title {
        color: #000000;
    }
    
    .hero-description {
        color: #333333;
    }
    
    .hero-buttons .btn-outline-primary {
        border-width: 3px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-image-container {
        animation: none;
    }
    
    .hero-buttons .btn {
        transition: none;
    }
    
    .hero-buttons .btn::before {
        display: none;
    }
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.chat-button i {
    color: white;
    font-size: 1.5rem;
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1001;
    overflow: hidden;
}

.chat-popup.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px 15px 0 0;
}

.chat-status-indicator {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

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

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

.chat-header .btn {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

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

.chat-header .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.chat-loading {
    padding: 20px;
    text-align: center;
}

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

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
    animation: slideInUp 0.3s ease;
}

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

.chat-message.user-message {
    justify-content: flex-end;
}

.chat-message.admin-message {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.admin-message .message-bubble {
    background: #f1f5f9;
    color: #334155;
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
    text-align: right;
}

.admin-message .message-time {
    text-align: left;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.chat-input form {
    margin: 0;
}

.chat-input .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 10px 15px;
    font-size: 0.9rem;
}

.chat-input .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.chat-input .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-welcome-form {
    padding: 20px;
    text-align: center;
}

.welcome-avatar {
    color: #667eea;
}

.chat-user-form {
    padding: 20px;
}

.chat-user-form .form-label {
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.chat-user-form .form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.9rem;
}

.chat-user-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.chat-user-form {
    padding: 0;
}

.chat-welcome-form {
    padding: 0;
}

.welcome-avatar {
    color: var(--primary-color);
}

.welcome-avatar i {
    opacity: 0.8;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.chat-input .form-control {
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 10px 15px;
}

.chat-input .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    position: relative;
}

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

.bot-message .message-content {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 5px;
}

.message-text {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    text-align: right;
}

.bot-message .message-time {
    text-align: left;
}

.message-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
}

.message-content {
    flex: 1;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 0;
}

/* Typing Indicator Styles */
.typing-indicator {
    opacity: 0.7;
}

.typing-dots {
    display: inline-block;
    margin-right: 8px;
}

.typing-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #666;
    margin-right: 2px;
    animation: typing 1.4s infinite ease-in-out;
}

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

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-style: italic;
    color: #666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 60px 0;
    }
    
    .floating-card {
        position: static;
        margin-top: 20px;
    }
    
    .demo-feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .chat-widget {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-popup {
        width: 280px;
    }
}
