:root {
    --bg-dark: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.85);
    --s2-gold: #d4af37;
    --laerad-red: #e63946;
    --new-blue: #00b4d8;
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --font-titles: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.wallpapersden.com/image/download/mu-online-art_a21ubGWUmZqaraWkpJRmbmdlrWZlbWU.jpg');
    background-size: cover;
    background-position: center;
}

.portal-container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    text-align: center;
    z-index: 1;
}

.logo-container {
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.main-logo {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.tagline {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-top: 15px;
    letter-spacing: 2px;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.server-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.server-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.card-header {
    margin-bottom: 25px;
}

.card-header h3 {
    font-family: var(--font-titles);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.since {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.stats-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.stats-list li i {
    width: 25px;
    margin-right: 10px;
    color: var(--text-main);
}

.card-footer {
    margin-top: auto;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* S2 Gold Style */
.s2-classic { border-top: 4px solid var(--s2-gold); }
.s2-classic h3 { color: var(--s2-gold); }
.btn-s2 {
    background: transparent;
    border: 2px solid var(--s2-gold);
    color: var(--s2-gold);
}
.btn-s2:hover {
    background: var(--s2-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Laerad Red Style */
.s6-laerad { border-top: 4px solid var(--laerad-red); }
.s6-laerad h3 { color: var(--laerad-red); }
.btn-laerad {
    background: transparent;
    border: 2px solid var(--laerad-red);
    color: var(--laerad-red);
}
.btn-laerad:hover {
    background: var(--laerad-red);
    color: #fff;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

/* New Blue Style */
.s6-classic-new { border-top: 4px solid var(--new-blue); }
.s6-classic-new h3 { color: var(--new-blue); }
.btn-new {
    background: transparent;
    border: 2px solid var(--new-blue);
    color: var(--new-blue);
}
.btn-new:hover {
    background: var(--new-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4);
}

.badge-new {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--new-blue);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 180, 216, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 2;
}

.s6-classic-new:hover .hover-info {
    opacity: 1;
    visibility: visible;
}

.hover-info p {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
}

.social-footer {
    margin-top: 40px;
    animation: fadeInUp 1s ease-out;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--text-dim);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-main);
}

.social-footer p {
    font-size: 0.8rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 180, 216, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}

@media (max-width: 768px) {
    .servers-grid {
        grid-template-columns: 1fr;
    }
    .main-logo {
        max-width: 250px;
    }
}
