@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    min-height: 100vh;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo-area {
    display: flex;
    align-items: center;
}
.logo-circle {
    display: block;
    width: 50px;
    height: 50px;
    background-image: url('https://cdn.discordapp.com/avatars/1130758576462364713/0f9f0878607e816744498fa81311833a.png?size=1024'); 
    background-size: cover;
    background-position: center;
    border: 2px solid #6c5ce7;
    border-radius: 50%;
    margin-right: 15px;
}
.logo-title {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
    color: white;
}
a {
    text-decoration: none;
    border: none;
    outline: none;
}
.logo-title:visited {
    color: white;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}
nav a {
    text-decoration: none;
    color: #f0f0f0;
    background-color: #2962ff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
nav a:hover {
    background-color: #0039cb;
    transform: translateY(-2px);
}
main {
    padding: 40px 0;
}
.main-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #ffffff;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px solid #6c5ce7;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}
.feature-card h3 {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    color: #a777e3;
    border-bottom: 1px solid rgba(108, 92, 231, 0.5);
    padding-bottom: 10px;
}
.feature-card p {
    font-size: 1em;
    line-height: 1.6;
    color: #dcdcdc;
}
footer {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #a0a0a0;
}
.footer-links a {
    color: #a0a0a0;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #e2dcdc;
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .main-title {
        font-size: 2em;
    }
    
    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-links a {
        margin: 0 10px;
    }
}
.lang-selector {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}
.search-box { margin-bottom: 20px; }
input[type="search"] {
    width: 100%; padding: 10px; font-size: 1em; border-radius: 5px; border: none;
    max-width: 400px;
}
.server-card {
    background:#4d4d4d; border-radius: 8px; padding: 15px; margin-bottom: 15px;
    display: flex; align-items: center; gap: 15px;
    transition: background-color 0.3s ease;
}
.server-card:hover {
    background-color: #6140f5;
}
.server-image {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    object-fit: cover;
}
.server-info {
    flex-grow: 1;
}
.server-name {
    font-size: 1.2em; font-weight: bold; margin: 0 0 5px 0;
}
.server-description {
    margin: 0 0 8px 0;
    font-size: 0.9em;
    color: #ccc;
}
.server-invite a {
    background: #7289da; color: white; padding: 8px 12px; border-radius: 4px; text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.server-invite a:hover {
    background-color: #5b6eae;
}
.server-invite {
    flex-shrink: 0;
}
.header-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex-wrap: wrap;
}
.header-section h2 {
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}
.search-box input {
    padding: 10px 80px;
    font-size: 18px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    background-color: #2f3136;
    border: 2px solid #202225;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.search-box {
    position: relative;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.search-box input:focus {
    border-color: #5865F2;
    box-shadow: 0 0 6px #5865F2;
}
.search-box input::placeholder {
    color: #b9bbbe;
    font-style: italic;
}
html, body {
  margin: 0; padding: 0; height: 100%;
  overflow-x: hidden;
}
.background {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  z-index: -1;
}
.square {
    position: absolute;
    bottom: -40px;
    background: rgba(114, 137, 218, 0.7);
    border-radius: 4px;
    opacity: 0.7;

    animation-name: floatDiagonal;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
@keyframes floatDiagonal {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(0vw, -120vh) rotate(360deg);
        opacity: 0;
    }
}