/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #2d3436;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Welcome section */
.welcome-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tyson-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    border: 3px solid #667eea;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tyson-image:hover {
    transform: translateY(-5px);
}

.speech-bubble {
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 280px;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #667eea;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 30px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #f8f9fa;
}

.quote {
    font-style: italic;
    font-size: 0.95rem;
    color: #495057;
    margin: 0;
    font-weight: 600;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
}

.description {
    font-size: 1.1rem;
    color: #636e72;
    margin-bottom: 20px;
}

.quotes-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quotes-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 10px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
}

.quote-item {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.quote-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.quote-item p {
    margin: 0;
    font-style: italic;
    color: #2d3436;
    font-weight: 500;
}

/* Chat section */
.chat-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #667eea;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.chat-header-info h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-status {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 70%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bot-message .message-content {
    background: #667eea;
    color: white;
}

.user-message .message-content {
    background: #e9ecef;
    color: #2d3436;
}

.message-content p {
    margin: 0;
    font-size: 0.95rem;
}

.typing-indicator .message-content {
    background: #667eea;
    padding: 16px;
}

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

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: typingDots 1.5s infinite;
}

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

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

@keyframes typingDots {

    0%,
    60%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #667eea;
}

.send-button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.send-button:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.send-button:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .welcome-section {
        padding: 20px;
    }

    .chat-container {
        height: 400px;
    }

    .message-content {
        max-width: 85%;
    }

    .chat-input-section {
        flex-direction: column;
        gap: 15px;
    }

    .chat-input {
        border-radius: 15px;
    }

    .send-button {
        border-radius: 15px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 0;
    }

    .welcome-section {
        padding: 15px;
    }

    .chat-header {
        padding: 15px;
    }

    .chat-messages {
        padding: 15px;
    }

    .chat-input-container {
        padding: 15px;
    }

    .tyson-image {
        max-width: 250px;
    }

    .speech-bubble {
        max-width: 250px;
    }
}