/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #f4f4f9, #e0e0f5);
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    padding: 1rem 2rem;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 600;
    animation: fadeIn 1s ease-in-out;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin-left: 1.5rem;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-links a:hover {
    color: #ffdd57;
}

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

header {
    text-align: center;
    margin-bottom: 2rem;
    animation: slideIn 1s ease-in-out;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

header p {
    font-size: 1.2rem;
    color: #666;
}

/* Server Buttons */
.server-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.server-buttons button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* Chat Box */
#chat-box {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in-out;
}

#chat-messages {
    height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
    padding: 0.5rem;
}

#typing-indicator {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    transition: border-color 0.3s ease;
}

.chat-input input:focus {
    border-color: #4a90e2;
    outline: none;
}

.chat-input button {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-input button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.chat-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chat-actions button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-actions button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* Video Container */
#video-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

#video-container video {
    width: 48%;
    border-radius: 15px;
    background-color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Online Users */
#online-users {
    background-color: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

#online-users h3 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

#user-list {
    list-style: none;
}

#user-list li {
    padding: 0.5rem;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

#user-list li:hover {
    background-color: #f4f4f9;
}

/* Services Section */
.services-section {
    padding: 2rem;
    background-color: white;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.services-section h2 {
    margin-bottom: 2rem;
    color: #4a90e2;
}

.service-box {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f4f4f9, #e0e0f5);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4a90e2;
}

.service-box p {
    color: #666;
}

/* About Section */
.about-section {
    padding: 2rem;
    background-color: white;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.about-section h2 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

/* Contact Section */
.contact-section {
    padding: 2rem;
    background-color: white;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1rem;
    color: #4a90e2;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    margin-top: 2rem;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer .social-links {
    margin-top: 0.5rem;
}

footer .social-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #ffdd57;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .server-buttons {
        flex-direction: column;
    }

    #video-container {
        flex-direction: column;
    }

    #video-container video {
        width: 100%;
    }
}