/* Global styles */
html {
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

nav {
    position: sticky;
    top: 0;
    background: #363636;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    box-shadow: 0 2px 4px rgba(80,80,80,0.1);
    z-index: 100;
    height: 60px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #a8dadc;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
}

nav a:hover, nav a.active {
    color: #a8dadc;
}

.hero {
    background: linear-gradient(135deg, #363636 0%, #2a2a2a 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 16px 0;
    font-weight: 700;
    color: #a8dadc;
}

.hero p {
    font-size: 1.25rem;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

main {
    padding: 32px 5vw;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.05);
    padding: 28px 24px;
    margin-bottom: 32px;
}

h2 {
    color: #363636;
    font-size: 1.75rem;
    margin: 0 0 20px 0;
    font-weight: 600;
}

h3 {
    color: #457b9d;
    font-size: 1.25rem;
    margin: 20px 0 12px 0;
    font-weight: 600;
}

p {
    margin: 0 0 16px 0;
    color: #555;
    font-size: 1rem;
}

ul, ol {
    margin: 16px 0;
    color: #555;
}

li {
    margin-bottom: 6px;
}

.btn {
    display: inline-block;
    background: #a8dadc;
    color: #363636;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #61a5c2;
    color: #fff;
    transform: translateY(-1px);
}

.testimonial {
    background: #f8f9fa;
    border-left: 4px solid #a8dadc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 12px;
}

.testimonial .client {
    font-weight: bold;
    color: #363636;
    font-size: 0.9rem;
    text-align: right;
    margin-left: 8px;
}

.contact-cta {
    background: #363636;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.08);
    padding: 28px 24px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccd6df;
    font-size: 1rem;
}

.contact-form button {
    background: #a8dadc;
    color: #363636;
    border: none;
    border-radius: 5px;
    padding: 12px 0;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: #61a5c2;
    color: #fff;
}

.contact-info {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(80,80,80,0.05);
    padding: 24px;
}

footer {
    background: #232323;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1rem;
}

footer a {
    color: #a8dadc;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.2s;
}

footer a:hover {
    color: #fff;
}

/* Responsive layout */
@media (max-width: 700px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 12px;
        gap: 8px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    main {
        padding: 16px 2vw;
    }
    section {
        margin-bottom: 24px;
    }
    .contact-form {
        max-width: 100%;
    }
}

/* ======================================================
   MODERNIZED CHAT WIDGET STYLES - Replace existing chat widget CSS
   ====================================================== */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== MODERNIZED CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.06));
}

/* State 1: Button Form (minimized state) */
.chat-widget.button-state {
    width: 64px;
    height: 64px;
}

.chat-widget.button-state .chat-window {
    display: none;
}

.chat-widget.button-state .chat-toggle {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

/* State 2: Minimized Widget (default state) */
.chat-widget.minimized-state {
    width: 380px;
    max-width: calc(100vw - 48px);
}

.chat-widget.minimized-state .chat-window {
    display: flex;
    height: 580px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-widget.minimized-state .chat-toggle {
    display: none;
}

/* State 3: Expanded Widget */
.chat-widget.expanded-state {
    width: 720px;
    max-width: calc(100vw - 48px);
}

.chat-widget.expanded-state .chat-window {
    display: flex;
    height: 680px;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-widget.expanded-state .chat-toggle {
    display: none;
}

/* Modern chat toggle button */
.chat-toggle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    opacity: 0;
    transform: scale(0.8);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.35);
}

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

/* Premium chat window container */
.chat-window {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.5),
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.04);
    display: none;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Modern header with glass effect */
.chat-header {
    background: rgba(248, 250, 252, 0.95);
    color: #1f2937;
    padding: 20px 24px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    backdrop-filter: blur(20px);
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-button {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    color: #6b7280;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-button:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    transform: translateY(-1px);
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.025em;
}

/* Premium messages area */
.chat-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: rgba(249, 250, 251, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: rgba(203, 213, 225, 0.5) transparent;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(203, 213, 225, 0.5);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(203, 213, 225, 0.8);
}

/* Modern message styling */
.chat-message {
    display: flex;
    margin-bottom: 4px;
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

.message-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 20px;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
}

.chat-message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.chat-message.bot .message-bubble {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
}

/* Premium input area */
.chat-input-container {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    gap: 12px;
    align-items: flex-end;
    backdrop-filter: blur(20px);
}

.chat-input {
    flex: 1;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 400;
    resize: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    min-height: 22px;
    max-height: 80px;
}

.chat-input:focus {
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.chat-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.chat-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
    backdrop-filter: blur(10px);
}

.chat-send:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.chat-send:active {
    transform: translateY(0) scale(0.95);
}

.chat-send:disabled {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Premium typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    animation: messageSlideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.typing-indicator .message-bubble {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typing 1.6s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: -0.4s; }
.typing-dot:nth-child(2) { animation-delay: -0.2s; }

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 16px;
        right: 16px;
    }

    .chat-widget.minimized-state,
    .chat-widget.expanded-state {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 16px;
    }

    .chat-widget.minimized-state .chat-window,
    .chat-widget.expanded-state .chat-window {
        height: calc(100vh - 120px);
        max-height: 600px;
    }

    .chat-messages {
        padding: 20px;
    }

    .chat-input-container {
        padding: 16px 20px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .chat-widget,
    .chat-window,
    .chat-toggle,
    .header-button,
    .chat-send,
    .chat-message {
        transition: none;
        animation: none;
    }
}

/* Focus styles for keyboard navigation */
.header-button:focus,
.chat-input:focus,
.chat-send:focus,
.chat-toggle:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}