/* 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: #ffffff;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Landing page styles */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(1deg); }
    50% { transform: translate(10px, -15px) rotate(-1deg); }
    75% { transform: translate(-5px, 5px) rotate(0.5deg); }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

.logo-container::before,
.logo-container::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #ff4500, transparent);
    animation: pulse 2s ease-in-out infinite;
}

.logo-container::before {
    left: -30px;
    animation-delay: 0s;
}

.logo-container::after {
    right: -30px;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2);
    transition: all 0.3s ease;
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.4);
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2); }
    50% { box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3); }
}

.logo-icon i {
    font-size: 28px;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    color: #ff4500;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.tagline::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #ff4500;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 69, 0, 0.03) 0%, transparent 50%);
    animation: backgroundShift 15s ease-in-out infinite;
    z-index: -1;
}

.main-content::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.02) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: centerGlow 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes centerGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10px, -10px) scale(1.05); }
    66% { transform: translate(10px, 10px) scale(0.95); }
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    width: 100%;
    max-width: 1400px;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
    padding: 0 40px;
    box-sizing: border-box;
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    padding-left: 20px;
    animation: slideInLeft 1s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-heading {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff4500, #ff6b35, #ff4500);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main-description {
    font-size: 1.2rem;
    color: #666666;
    line-height: 1.7;
    max-width: 500px;
}

.cta-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.start-btn {
    background: linear-gradient(135deg, #ff4500, #ff6b35);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 69, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.start-btn:hover::before {
    left: 100%;
}

.start-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.4);
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.create-room-btn {
    background: linear-gradient(135deg, #0079d3, #005fa3);
    color: white;
    border: none;
    padding: 18px 36px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 121, 211, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s ease-in-out infinite;
}

.create-room-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.create-room-btn:hover::before {
    left: 100%;
}

.create-room-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 121, 211, 0.4);
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 69, 0, 0.3);
}

.cta-info {
    color: #888888;
    font-size: 0.95rem;
    font-weight: 500;
}

.stats-section {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4500;
    animation: numberGlow 2s ease-in-out infinite;
}

@keyframes numberGlow {
    0%, 100% { text-shadow: 0 0 5px rgba(255, 69, 0, 0.3); }
    50% { text-shadow: 0 0 15px rgba(255, 69, 0, 0.6); }
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.right-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
    animation: slideInRight 1s ease-out 0.4s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.chat-preview {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    animation: floatPreview 6s ease-in-out infinite;
    transition: all 0.3s ease;
}

.chat-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

@keyframes floatPreview {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.chat-header-preview {
    background: #ff4500;
    padding: 15px 20px;
    text-align: center;
}

.status-badge {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-messages-preview {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-preview {
    display: flex;
}

.message-preview.stranger {
    justify-content: flex-start;
}

.message-preview.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: messageSlide 0.5s ease-out;
    animation-fill-mode: both;
}

.message-preview:nth-child(1) .message-bubble { animation-delay: 0.1s; }
.message-preview:nth-child(2) .message-bubble { animation-delay: 0.2s; }
.message-preview:nth-child(3) .message-bubble { animation-delay: 0.3s; }

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-preview.stranger .message-bubble {
    background: #f0f0f0;
    color: #333333;
}

.message-preview.user .message-bubble {
    background: #ff4500;
    color: white;
}

/* Footer styles */
.footer {
    margin-top: auto;
    padding: 60px 0 30px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    animation: slideInUp 1s ease-out 0.8s both;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 1400px;
    justify-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}

.footer-section h3 {
    color: #333333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.footer-section p {
    color: #666666;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
}

.footer-section ul {
    list-style: none;
    text-align: center;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section ul li a:hover {
    color: #ff4500;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff4500;
    color: white;
    border-color: #ff4500;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    color: #888888;
    font-size: 0.9rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    color: #333333;
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-header p {
    color: #666666;
    font-size: 1rem;
}

.modal-body {
    padding: 30px;
}

.modal-body .input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-body label {
    color: #333333;
    font-weight: 600;
    font-size: 1rem;
}

.modal-body input {
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #333333;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-body input:focus {
    outline: none;
    border-color: #ff4500;
}

.modal-body input::placeholder {
    color: #999999;
}

.modal-body small {
    color: #888888;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #ff4500;
    color: white;
}

.btn-primary:hover {
    background: #ff6b35;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #e0e0e0;
    color: #666666;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-1px);
}

/* Chat page styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border: 1px solid #e0e0e0;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.chat-info .logo-container {
    margin: 0;
}

.chat-info .logo {
    font-size: 1.8rem;
}

.connection-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status {
    font-size: 1rem;
    color: #666666;
    font-weight: 600;
    transition: all 0.3s ease;
}

.status.connected {
    color: #4CAF50;
    font-weight: 700;
}

.status.waiting {
    color: #FF9800;
    font-weight: 600;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff4500;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #ff4500;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span: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;
    }
}

.typing-text {
    color: #666666;
}

.chat-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.next-btn {
    background: #0079d3;
    color: white;
}

.next-btn:hover:not(:disabled) {
    background: #005fa3;
    transform: translateY(-1px);
}

.end-btn {
    background: #ff4500;
    color: white;
}

.end-btn:hover {
    background: #ff6b35;
    transform: translateY(-1px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-area {
    display: flex;
    flex-direction: column;
    background: white;
    flex: 1;
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: white;
    max-height: calc(100vh - 200px);
}

.message {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.you {
    align-items: flex-end;
}

.message.stranger {
    align-items: flex-start;
}

.message-content {
    background: #f0f0f0;
    padding: 15px 20px;
    border-radius: 20px;
    max-width: 70%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.message.you .message-content {
    background: #ff4500;
    color: white;
}

.sender {
    font-weight: 600;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text {
    display: block;
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 1rem;
}

.message-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    margin-left: 15px;
    margin-right: 15px;
}

.message-time {
    font-size: 0.75rem;
    color: #888888;
    opacity: 0.7;
}

.message-status {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #888888;
}

.message-status.sent::before {
    content: '✓';
    color: #888888;
}

.message-status.delivered::before {
    content: '✓✓';
    color: #888888;
}

.message-status.read::before {
    content: '✓✓';
    color: #4CAF50;
}

.system-message {
    text-align: center;
    color: #666666;
    font-style: italic;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.system-message i {
    color: #ff4500;
    font-size: 1.2rem;
}

.chat-input-container {
    border-top: 1px solid #e0e0e0;
    padding: 25px 30px;
    background: #f8f9fa;
}

.input-group {
    margin-bottom: 15px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background: white;
    color: #333333;
}

#messageInput:focus {
    border-color: #ff4500;
}

#messageInput:disabled {
    background: #f0f0f0;
    color: #999999;
    cursor: not-allowed;
}

#messageInput::placeholder {
    color: #999999;
}

.send-btn {
    background: #ff4500;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
}

.send-btn:hover:not(:disabled) {
    background: #ff6b35;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.3);
}

.send-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-info-text {
    text-align: center;
}

.chat-info-text small {
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* Legal pages styles */
.legal-content {
    max-width: 800px;
    width: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.legal-section {
    margin-bottom: 30px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    color: #ff4500;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

.legal-section p {
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.7;
}

.legal-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.legal-section li {
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-section strong {
    color: #ff4500;
    font-weight: 600;
}

.back-home {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

/* Floating particles animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 50%;
    animation: particleFloat 20s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 12s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; animation-duration: 20s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; animation-duration: 16s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; animation-duration: 14s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; animation-duration: 19s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; animation-duration: 13s; }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive design */
@media (min-width: 1400px) {
    .content-grid {
        max-width: 1600px;
        gap: 100px;
        padding: 0 60px;
    }
    
    .footer-content {
        max-width: 1600px;
        padding: 0 60px;
    }
}

@media (max-width: 1200px) {
    .chat-container {
        border-radius: 0;
    }
    
    .content-grid {
        max-width: 100%;
        padding: 0 30px;
    }
    
    .footer-content {
        max-width: 100%;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .header {
        padding: 30px 0;
        margin-bottom: 30px;
    }
    
    .logo {
        font-size: 2.5rem;
    }
    
    .main-heading {
        font-size: 2.2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
        max-width: 100%;
    }
    
    .left-section {
        padding-left: 0;
        align-items: center;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        align-items: center;
    }
    
    .right-section {
        padding-right: 0;
        justify-content: center;
    }
    
    .chat-preview {
        max-width: 100%;
        width: 100%;
    }
    
    .stats-section {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .chat-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    
    .chat-actions {
        justify-content: center;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding: 0 20px;
    }
    
    .legal-content {
        padding: 25px;
        margin: 0 15px 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
    }
    
    .header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .main-heading {
        font-size: 1.8rem;
    }
    
    .content-grid {
        padding: 0 10px;
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .start-btn, .create-room-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .chat-preview {
        border-radius: 15px;
    }
    
    .chat-header-preview {
        padding: 12px 15px;
    }
    
    .chat-messages-preview {
        padding: 15px;
    }
    
    .chat-input-container {
        padding: 15px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .legal-content {
        padding: 20px;
        margin: 0 10px 20px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .stats-section {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .footer-content {
        padding: 0 15px;
    }
}

/* Scrollbar styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Loading animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}