:root {
    --primary-color: #e50914;
    --secondary-color: #0e0e0e;
    --text-color-light: #f0f0f0;
    --text-color-dark: #cccccc;
    --card-bg: #1e1e1e;
    --border-color: #333;
    --neon-glow: 0 0 5px rgba(229, 9, 20, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Starry background animation */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-repeat: repeat;
    animation: animateStars 1000s linear infinite;
    z-index: -1; 
}

@keyframes animateStars {
    from { background-position: 0 0; }
    to { background-position: 500px 500px; }
}

@keyframes animateTwinkle {
    0% { background-position: 0 0; opacity: 0.8; }
    50% { background-position: 50px 50px; opacity: 0.3; }
    100% { background-position: 100px 100px; opacity: 0.9; }
}

h1, h2, h3 {
    font-family: 'Play', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

header {
    background-color: transparent;
    position: fixed; 
    top: 0;        
    left: 0;     
    width: 100%; 
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    z-index: 3;
}

nav .logo {
    font-family: 'Play', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 30px;
}

nav a {
    color: var(--text-color-light);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

.btn-main {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    cursor: pointer;
}

.btn-main:hover {
    background-color: #ff202c;
    transform: translateY(-3px);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: var(--text-color-dark);
}

.server-info {
    font-family: 'Play', sans-serif;
    font-size: 1.2em;
    margin-top: 30px;
    padding: 10px 20px;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    border-radius: 5px;
    display: inline-block;
   /*border: 1px solid var(--primary-color);*/
}

.features {
    padding: 80px 20px;
    text-align: center;
}

.features h2 {
    font-size: 2.8em;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), var(--neon-glow);
    border-color: var(--primary-color);
}

.feature-item h3 {
    font-size: 1.8em;
    color: var(--text-color-light);
    margin-bottom: 15px;
}

.feature-item p {
    color: var(--text-color-dark);
}

footer {
    text-align: center;
    padding: 30px;
    background-color: transparent;
    margin-top: auto;
    z-index: 1;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    nav .logo {
        margin-bottom: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 15px;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px 0;
    }
}
