/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1e1e2e;
    color: #f5f5f5;
    line-height: 1.6;
}

/* Navbar */
header {
    background: #2a2a3b;
    padding: 15px 30px;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ade80;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #f5f5f5;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #4ade80;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #2a2a3b, #1e1e2e);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.1rem;
    color: #cccccc;
}

/* Servers Section */
.servers {
    padding: 60px 20px;
    text-align: center;
}

.servers h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.server-card {
    background: #2a2a3b;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

.server-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.server-card h3 {
    margin-bottom: 10px;
    color: #4ade80;
}

.server-card p {
    margin-bottom: 10px;
    color: #ccc;
}

/* Copy IP Button */
.copy-ip-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4ade80;
    color: #1e1e2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.copy-ip-btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #2a2a3b;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #999;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        background-color: #1e1e1e;
        padding: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .copy-ip-btn {
        width: 100%;
    }
}

/* Search Bar - Always visible */
.search-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

#searchBar {
    width: 90%;
    padding: 10px 15px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    background-color: #ffffff; /* changed to white */
    color: #1e1e2e; /* dark text for readability */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#searchBar::placeholder {
    color: #666666; /* darker placeholder for contrast */
}