/* ===================================
   Apex Cloud Advisors - Main Stylesheet
   =================================== */

/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #e8e4f3;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #1a252f;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
}

/* ===================================
   Layout Container
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===================================
   Title Bar & Header
   =================================== */

.title-bar {
    background: linear-gradient(135deg, #1a0033 0%, #2d0a4e 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.title-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 50px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.title-bar .brand {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    font-style: italic;
}

/* ===================================
   Navigation Menu
   =================================== */

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.2s ease;
    display: block;
    font-weight: 500;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-menu a.active {
    background: rgba(255, 255, 255, 0.25);
}

/* ===================================
   Authentication Display
   =================================== */

.auth-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-display .username {
    color: white;
    font-weight: 600;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-transform: uppercase;
}

.auth-display .login-btn,
.auth-display .logout-btn {
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
    font-weight: 500;
}

.auth-display .login-btn:hover,
.auth-display .logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* ===================================
   Main Content Area
   =================================== */

.content {
    flex: 1;
    padding: 2rem 0;
}

/* ===================================
   Footer
   =================================== */

footer {
    background: #2c3e50;
    color: white;
    padding: 1.5rem 0;
    margin-top: auto;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ===================================
   Home Page Styles
   =================================== */

.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.hero h2 {
    color: #1e3c72;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    color: #5a6c7d;
    margin-bottom: 0;
}

.intro {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.intro h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
}

.intro p {
    color: #5a6c7d;
    line-height: 1.8;
    margin-bottom: 0;
}

.features {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.features h3 {
    color: #1e3c72;
    text-align: center;
    margin-bottom: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h4 {
    color: #1e3c72;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: #5a6c7d;
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===================================
   Applications Page Styles
   =================================== */

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    color: white;
}

.back-button::before {
    content: '←';
    font-size: 1.1rem;
}

.applications-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.page-header-content {
    flex: 1;
    text-align: center;
}

.page-header h2 {
    color: #1e3c72;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.page-header p {
    color: #5a6c7d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.app-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.app-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.app-card h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.app-card p {
    color: #5a6c7d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.app-card .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.app-card .btn:hover {
    background: #0056b3;
    color: white;
}

.app-card .app-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.app-card .app-link:hover {
    background: #0056b3;
    color: white;
}

/* ===================================
   About Page Chat Interface
   =================================== */

.chat-toggle-btn {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-toggle-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.chat-icon {
    font-size: 16px;
}

.chat-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: scale(0);
    transform-origin: top right;
    opacity: 0;
}

.chat-panel.open {
    transform: scale(1);
    opacity: 1;
}

.chat-panel.expanded {
    width: 700px;
    height: 600px;
}

.chat-header {
    background: #1a0033;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.chat-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    color: white;
}

.chat-resize-btn,
.chat-close-btn {
    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 0.2s ease;
}

.chat-resize-btn:hover,
.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-panel .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.chat-panel.expanded .chat-messages {
    max-height: none;
}

.chat-panel .message {
    margin-bottom: 12px;
    max-width: 85%;
}

.chat-panel .message.user-message {
    background: #007bff;
    color: white;
    margin-left: auto;
    padding: 10px 14px;
    border-radius: 16px 16px 4px 16px;
}

.chat-panel .message.bot-message {
    background: white;
    color: #2c3e50;
    margin-right: auto;
    padding: 10px 14px;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid #e9ecef;
}

.chat-panel .message.bot-message h1,
.chat-panel .message.bot-message h2,
.chat-panel .message.bot-message h3 {
    margin: 8px 0 4px 0;
    color: #1a0033;
}

.chat-panel .message.bot-message code {
    background: #f8f9fa;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.chat-panel .message.bot-message ul {
    margin: 4px 0;
    padding-left: 16px;
}

.chat-panel .message.bot-message li {
    margin: 2px 0;
}

.message-content {
    margin-bottom: 3px;
    line-height: 1.4;
    font-size: 14px;
}

.message-time {
    font-size: 10px;
    opacity: 0.7;
}

.chat-panel .chat-input-container {
    padding: 15px;
    background: white;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 10px;
}

.chat-panel .chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

.chat-panel .chat-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.chat-send-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.chat-send-btn:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .chat-panel {
        width: 300px;
        right: 10px;
    }
    
    .chat-toggle-btn {
        right: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ===================================
   About & Contact Page Styles
   =================================== */

.about-page,
.contact-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
}

.content-section h3 {
    color: #2a5298;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section p {
    color: #5a6c7d;
    line-height: 1.8;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    color: #5a6c7d;
    margin-bottom: 0.5rem;
}

/* Contact Page Specific Styles */

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.contact-method {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-method h3 {
    color: #1e3c72;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-method p {
    color: #5a6c7d;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-method a {
    color: #007bff;
    text-decoration: none;
}

.contact-method a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-form-section {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.contact-form-section h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===================================
   Contact Form Styles
   =================================== */

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary,
.submit-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary:hover,
.submit-btn:hover {
    background: #0056b3;
}

.btn-primary:active,
.submit-btn:active {
    background: #004085;
}

.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-secondary:active {
    background: #545b62;
}

/* ===================================
   Chat Interface Styles
   =================================== */

.chat-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.chat-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #e9ecef;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #adb5bd;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #868e96;
}

.message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    background: #f0f0ff;
    color: #2c3e50;
    margin-left: auto;
    text-align: right;
    border: 1px solid #e6e6ff;
}

.message.assistant {
    background: #e9ecef;
    color: #2c3e50;
}

.message.system {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    max-width: 100%;
    font-style: italic;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    text-align: center;
    max-width: 100%;
}

.message-content strong {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
}

.message-timestamp {
    font-size: 0.75em;
    margin-top: 5px;
    opacity: 0.7;
}

.chat-welcome {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

.chat-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.chat-input-form,
.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #dee2e6;
}

.input-group {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1em;
}

.chat-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.chat-input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.send-button {
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.send-button:active:not(:disabled) {
    background: #004085;
}

.send-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ===================================
   WebSocket Connection Status
   =================================== */

.connection-status {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.connected {
    background: #28a745;
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
}

.status-indicator.disconnected {
    background: #dc3545;
}

.status-indicator.connecting {
    background: #ffc107;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    font-size: 0.9em;
    color: #495057;
    font-weight: 500;
}

.connection-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.connect-button,
.disconnect-button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connect-button {
    background: #28a745;
    color: white;
}

.connect-button:hover:not(:disabled) {
    background: #218838;
}

.connect-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.disconnect-button {
    background: #dc3545;
    color: white;
}

.disconnect-button:hover {
    background: #c82333;
}

/* ===================================
   Error Pages
   =================================== */

.error-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 20px;
    text-align: center;
}

.error-page h1 {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-page h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.error-page p {
    color: #5a6c7d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.error-page .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #007bff;
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.error-page .btn:hover {
    background: #0056b3;
    color: white;
}

/* ===================================
   Utility Classes
   =================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .title-bar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-bar .brand {
        font-size: 1.25rem;
    }

    .nav-menu ul {
        flex-wrap: wrap;
    }

    .nav-menu a {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }

    .auth-display {
        width: 100%;
        justify-content: flex-start;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .chat-messages {
        height: 400px;
    }

    .message {
        max-width: 90%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .content {
        padding: 1rem 0;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .chat-page {
        padding: 0 10px;
    }

    .chat-messages {
        height: 350px;
        padding: 15px;
    }

    .input-group {
        flex-direction: column;
    }

    .send-button {
        width: 100%;
    }
}
