:root {
    --primary-color: #8B0000; /* Deep Red */
    --secondary-color: #D4AF37; /* Gold */
    --dark-bg: #0A0A0A;
    --light-bg: #1A1A1A;
    --text-light: #F5F5F5;
    --text-muted: #888;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background: var(--dark-bg);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.98)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M0,0 L100,100 M100,0 L0,100" stroke="%238B0000" stroke-width="0.5" opacity="0.1"/></svg>');
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

.logo-text {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--secondary-color);
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.logo-text::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: drawLine 2s ease forwards 1s;
}

.slogan {
    font-size: 1.2rem;
    letter-spacing: 4px;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Main Content */
.main-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tagline {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 2s ease forwards 1.5s;
}

.cta-button {
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 2s ease forwards 2s;
}

.cta-button:hover {
    background: rgba(212, 175, 55, 0.1);
    letter-spacing: 3px;
    padding: 1.2rem 3.5rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

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

.chat-toggle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.chat-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
}

.chat-toggle::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    animation: pulse 2s infinite;
}

.butler-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
}

.chat-notification {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary-color);
    color: var(--dark-bg);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.floating-message {
    position: absolute;
    bottom: 85px;
    right: 0;
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    padding: 1rem;
    border-radius: 10px;
    max-width: 300px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    animation: floatMessage 5s ease-in-out 5s forwards;
    pointer-events: none;
}

.floating-message::before {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 15px;
    height: 15px;
    background: var(--light-bg);
    border-right: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    transform: rotate(45deg);
}

/* Chat Modal */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 1001;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.chat-container {
    width: 95%;
    max-width: 800px;
    height: 90vh;
    max-height: 700px;
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-title h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-chat:hover {
    color: var(--secondary-color);
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message {
    max-width: 80%;
    padding: 1.2rem 1.5rem;
    border-radius: 15px;
    line-height: 1.6;
    animation: messageAppear 0.3s ease forwards;
}

.message.user {
    align-self: flex-end;
    background: rgba(139, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
    border-bottom-right-radius: 5px;
}

.message.assistant {
    align-self: flex-start;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--secondary-color);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-align: right;
}

.chat-input-container {
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: var(--dark-bg);
}

.chat-input-wrapper {
    display: flex;
    gap: 1rem;
}

#chatInput {
    flex: 1;
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    min-height: 50px;
    max-height: 150px;
}

#chatInput:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

#sendButton {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#sendButton:hover {
    background: #9B0000;
    transform: scale(1.05);
}

.contact-form {
    display: none;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 10px;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease forwards;
}

.contact-form h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--light-bg);
    border: 1px solid var(--secondary-color);
    color: var(--text-light);
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    background: var(--secondary-color);
    color: var(--dark-bg);
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.contact-form button:hover {
    background: #E6C158;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes drawLine {
    to {
        width: 100%;
    }
}

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

@keyframes floatMessage {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .tagline {
        font-size: 1.4rem;
    }
    
    .chat-container {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    
    .chat-toggle {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }
    
    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}
/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    gap: 10px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.lang-switch {
    background: none;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    text-transform: uppercase;
}

.lang-switch:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.lang-switch.active {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background: rgba(212, 175, 55, 0.1);
}

/* System Messages */
.message.system {
    align-self: center;
    background: rgba(212, 175, 55, 0.05);
    border: 1px dashed var(--secondary-color);
    text-align: center;
    max-width: 60%;
}

/* Typing Indicator */
.typing-indicator .message-text {
    color: var(--text-muted);
    font-style: italic;
}

.typing-dots {
    display: inline-block;
}

.typing-dots::after {
    content: '...';
    animation: typingDots 1.5s infinite;
}

@keyframes typingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Contact Form */
#contactForm {
    animation: slideUp 0.5s ease forwards;
}

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