/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-black: #0a0a0a;
    --color-charcoal: #1a1a1a;
    --color-dark-gray: #2a2a2a;
    --color-gray: #4a4a4a;
    --color-light-gray: #8a8a8a;
    --color-white: #ffffff;
    
    /* Professional Gold & Burgundy Color Palette */
    --color-gold: #D4AF37;
    --color-gold-light: #E5C158;
    --color-gold-dark: #B8941F;
    --color-gold-bright: #F4D03F;
    --color-gold-pale: #FDF2E9;
    
    --color-burgundy: #8B2635;
    --color-burgundy-light: #A03A4A;
    --color-burgundy-dark: #6B1B28;
    --color-burgundy-bright: #B84A5C;
    --color-burgundy-pale: #F5E6E8;
    
    --font-serif: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-sans: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* WhatsApp-Style Chatbot Component */
.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-sans);
}

/* Chat Toggle Button */
.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    position: relative;
}

.chatbot-toggle-btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

.chatbot-toggle-btn .chatbot-icon {
    font-size: 1.5rem;
    color: white;
}

/* Notification Badge */
.chatbot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    border-radius: 50%;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.chatbot-notification.show {
    display: flex;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Chat Container */
.chatbot-body {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.chatbot-body.active {
    display: flex;
    animation: slideInUp 0.3s ease-out;
}

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

/* Chat Header */
.chatbot-header {
    background: #f8fafc;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.chatbot-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.chatbot-info p {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.chatbot-controls {
    display: flex;
    gap: 0.5rem;
}

.chatbot-minimize-btn,
.chatbot-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-minimize-btn:hover,
.chatbot-toggle:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Messages Area */
.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    scroll-behavior: smooth;
}

.chatbot-message {
    display: flex;
    animation: messageSlideIn 0.3s ease-out;
}

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

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

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

.message-content {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.user-message .message-content {
    background: #25D366;
    color: white;
    border-bottom-right-radius: 6px;
}

.bot-message .message-content {
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.message-content p {
    margin: 0;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    display: block;
    text-align: right;
    margin-top: 0.25rem;
}

/* Input Area */
.chatbot-input-container {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1rem;
    flex-shrink: 0;
}

.chatbot-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}

.chatbot-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    background: #f9fafb;
    color: #1f2937;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    resize: none;
    min-height: 20px;
    max-height: 120px;
    line-height: 1.4;
    font-family: inherit;
}

.chatbot-input:focus {
    border-color: #25D366;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.chatbot-input::placeholder {
    color: #9ca3af;
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
    flex-shrink: 0;
}

.chatbot-send-btn:hover:not(:disabled) {
    background: #22c55e;
    transform: scale(1.05);
}

.chatbot-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
}

/* Suggestion Buttons */
.chatbot-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.suggestion-btn {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    max-width: 75%;
    animation: messageSlideIn 0.3s ease-out;
}

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

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chatbot-body {
        position: fixed !important;
        width: calc(100vw - 2rem) !important;
        height: 70vh !important;
        right: 1rem !important;
        left: 1rem !important;
        bottom: 80px !important;
        max-height: 600px !important;
        min-height: 500px !important;
        border-radius: 12px !important;
        z-index: 1001 !important;
    }
    
    .chatbot-toggle-btn {
        width: 55px;
        height: 55px;
    }
    
    .chatbot-toggle-btn .chatbot-icon {
        font-size: 1.3rem;
    }
    
    .chatbot-header {
        padding: 0.75rem;
    }
    
    .chatbot-avatar {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .chatbot-info h3 {
        font-size: 0.9rem;
    }
    
    .chatbot-info p {
        font-size: 0.75rem;
    }
    
    .chatbot-minimize-btn,
    .chatbot-toggle {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .chatbot-messages {
        padding: 0.75rem;
    }
    
    .chatbot-input-container {
        padding: 0.75rem;
    }
    
    .chatbot-suggestions {
        gap: 0.4rem;
    }
    
    .suggestion-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .chatbot-widget {
        bottom: 0.75rem;
        right: 0.75rem;
    }
    
    .chatbot-body {
        width: calc(100vw - 1.5rem) !important;
        height: 75vh !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        bottom: 75px !important;
        max-height: 550px !important;
        min-height: 450px !important;
        border-radius: 10px !important;
    }
    
    .chatbot-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .chatbot-toggle-btn .chatbot-icon {
        font-size: 1.2rem;
    }
    
    .chatbot-header {
        padding: 0.5rem;
    }
    
    .chatbot-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .chatbot-info h3 {
        font-size: 0.85rem;
    }
    
    .chatbot-info p {
        font-size: 0.7rem;
    }
    
    .chatbot-minimize-btn,
    .chatbot-toggle {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .chatbot-messages {
        padding: 0.5rem;
    }
    
    .chatbot-input-container {
        padding: 0.5rem;
    }
    
    .chatbot-input {
        padding: 0.6rem 0.8rem;
        font-size: 16px;
    }
    
    .chatbot-send-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .message-content {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .chatbot-suggestions {
        gap: 0.3rem;
    }
    
    .suggestion-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Prevent body scroll when chat is open */
body.chat-open {
    overflow: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 38, 53, 0.02) 0%, transparent 50%);
    background-size: 1000px 1000px, 800px 800px;
    background-position: 0 0, 400px 200px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo h2 {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-light-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-black);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-light-gray);
}

/* Services Section */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.services-grid .service-card:nth-child(1) {
    grid-column: 2 / 4;
    grid-row: 1;
}

.services-grid .service-card:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
}

.services-grid .service-card:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 2;
}

.services-grid .service-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 3;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.service-card p {
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* Workflow Section */
.workflow {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.workflow-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-gold);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.workflow-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.workflow-step p {
    color: var(--color-light-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: var(--color-gold);
    color: var(--color-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

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

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.contact-form select {
    cursor: pointer;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: var(--color-gold);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--color-light-gray);
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-light-gray);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem 0;
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .services-grid .service-card:nth-child(1),
    .services-grid .service-card:nth-child(2),
    .services-grid .service-card:nth-child(3),
    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}