:root {
    --primary-color: #111314;
    --secondary-color: #4bb679;
    --accent-color: #4bb679;
    --background-color: #141d26;
    --text-color: #ecf0f1;
    --card-background: #0f1214;
    --feature-hover: #4bb679;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navbar Styles */
.navbar {
    background-color: var(--primary-color);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 32px;
    height: 32px;
}

.project-name {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(rgba(17, 19, 20, 0.1), rgba(17, 19, 20, 0.9)),
                url('minetest.png') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
    margin-top: 0;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.primary {
    background-color: var(--secondary-color);
    color: white;
}

.secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: var(--card-background);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    text-align: center;
    background-color: var(--background-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--feature-hover);
    color: white;
}

.feature-card:hover i {
    color: white;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

/* Installation Section */
.installation {
    padding: 5rem 2rem;
    background-color: var(--background-color);
}

.installation h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.installation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background-color: var(--card-background);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.step h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.step h3 i.fas.fa-angle-down {
    transition: transform 0.3s ease;
}

.step h3 i.fas.fa-angle-down.rotate {
    transform: rotate(180deg);
}

.step div {
    display: none;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.step div.unfold {
    display: block;
    max-height: 1000px;
    opacity: 1;
}

.install-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.install-button:hover {
    background-color: var(--feature-hover);
    transform: translateY(-2px);
}

pre {
    background-color: #1f2a35;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid #141d26;
}

code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    color: #ecf0f1;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var (--secondary-color);
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a i {
    margin-right: 0.5rem;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.about-text {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}