:root {
    --primary-color: #ffaa00;
    --secondary-color: #cc0033;
    --bg-dark: #110505; 
    --bg-darker: #000000;
    --text-light: #ffffff;
    --text-muted: #d48c8c;
    --nav-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-highlight { color: var(--secondary-color); }
.text-danger { color: var(--secondary-color); }
.text-muted { color: var(--text-muted); }
.bg-darker { 
    background-color: var(--bg-darker); 
}
.bg-dark { 
    background-color: var(--bg-dark);
    border-top: 1px solid var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(204, 0, 51, 0.1);
}
.section-padding { padding: 80px 0; }
.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

p {
    color: var(--text-light);
    opacity: 0.9;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover { background-color: #cc0000; box-shadow: 0 0 15px var(--primary-color); }

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover { background-color: var(--secondary-color); color: white; box-shadow: 0 0 15px var(--secondary-color); }

.btn-block { display: block; width: 100%; text-align: center; }

.navbar {
    background: rgba(15, 15, 15, 0.95);
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item { margin-left: 20px; }

.nav-link {
    margin-left: 25px;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-link:hover::after { width: 100%; }

.btn-download-nav {
    background-color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
}
.btn-download-nav:hover { background-color: #cc0000; }
.btn-download-nav::after { display: none; }

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: var(--nav-height);
}

.back-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,15,0.7), rgba(15,15,15,1));
    z-index: -1;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--text-muted);
}

.hero-buttons .btn { margin: 0 10px; }

.server-ip {
    margin-top: 30px;
    font-family: 'Roboto Mono', monospace;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p { margin-bottom: 1.5rem; }

.info-box {
    background-color: rgba(142, 68, 173, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    display: flex;
    align-items: center;
}

.info-box i { font-size: 1.5rem; margin-right: 15px; }
.info-box code { background: #333; padding: 2px 5px; border-radius: 3px; font-family: monospace;}

.features-list ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features-list i {
    color: var(--primary-color);
    margin-right: 12px;
    margin-top: 5px;
}

.note-text { font-size: 0.9rem; color: var(--text-muted); margin-top: 20px; font-style: italic; }

.mechanic-box {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    margin-bottom: 30px;
}

.mechanic-box h3 { margin-bottom: 20px; color: var(--secondary-color); display: flex; align-items: center;}
.mechanic-box h3 i { margin-right: 10px; }

.accessories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.acc-item {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 8px;
}
.acc-item h4 { margin-bottom: 15px; color: var(--text-light); }
.acc-item ul li { margin-bottom: 5px; }

.cursed-ring { border: 2px solid var(--primary-color); }

.curses-blessings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cb-col {
    padding: 30px;
    border-radius: 10px;
    background-color: var(--bg-dark);
}

.cb-col h3 { display: flex; align-items: center; margin-bottom: 25px; font-size: 1.8rem;}
.cb-col h3 i { margin-right: 15px; }
.cb-col ul li { margin-bottom: 15px; position: relative; padding-left: 25px; }
.cb-col ul li::before { content: '•'; position: absolute; left: 0; font-size: 1.2em; }

.curses h3, .curses li::before { color: var(--primary-color); }
.blessings h3, .blessings li::before { color: var(--secondary-color); }
.blessings ul li { color: var(--text-light); }

.difficulty-scaling li { list-style: disc; margin-left: 20px; margin-bottom: 10px; }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    
    border-radius: 15px; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    border: 2px solid var(--secondary-color);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.discord-section {
    position: relative;
    overflow: hidden;
}

.discord-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3) blur(3px);
    z-index: -1;
    transition: 0.5s;
}
.discord-section:hover .discord-bg { filter: brightness(0.5) blur(0); transform: scale(1.05);}

.discord-icon { font-size: 4rem; color: #5865F2; margin-bottom: 20px; }
.btn-discord { background-color: #5865F2; color: white; }
.btn-discord:hover { background-color: #4752c4; box-shadow: 0 0 15px #5865F2;}

.download-guide {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.steps ol { margin-left: 20px; margin-bottom: 30px; }
.steps ol li { margin-bottom: 15px; }
.steps strong { color: var(--primary-color); }

.resource-pack-box {
    background: #252525;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.resource-pack-box pre {
    background: #111;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 10px;
}

.version-card {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: 0.3s;
}

.version-card:hover { transform: translateY(-5px); border-color: var(--secondary-color); }
.version-card h4 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-light); }
.version-card p { margin-bottom: 25px; color: var(--text-muted); }

.celeritas h4 i { color: var(--secondary-color); }
.optifine h4 i { color: var(--primary-color); }

.footer-credits {
    padding: 40px 0;
    border-top: 2px solid var(--secondary-color);
    background: #111;
}

.credits-box {
    margin-top: 20px;
}

.credit-line {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-light);
    font-weight: 300;
}

.credit-name {
    font-weight: bold;
    color: var(--secondary-color);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(142, 68, 173, 0.3);
}

.credit-line.special {
    margin-top: 20px;
    font-style: italic;
    color: #ccc;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo {
    max-width: 1000px;
    height: auto;
    margin-bottom: 260px;
    display: inline-block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
}

@media screen and (max-width: 768px) {
    .hero-logo {
        max-width: 400px;
        margin-bottom: 100px;
    }
}

@media screen and (max-width: 992px) {
    .about-grid, .curses-blessings-grid, .download-guide {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-content h1 { font-size: 3rem; }
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background-color: var(--bg-darker);
        width: 100%;
        height: calc(100vh - var(--nav-height));
        text-align: center;
        transition: 0.3s;
        padding-top: 40px;
        border-top: 1px solid #333;
        overflow-y: auto;
    }

    .nav-menu.active { left: 0; }
    .nav-link { margin: 20px 0; font-size: 1.2rem; display: block;}
    .menu-toggle { display: block; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-buttons .btn { display: block; width: 100%; margin: 10px 0; }
    
    .accessories-grid { grid-template-columns: 1fr; }
    
    .section-title { font-size: 2rem; }
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    padding: 5px 10px;
    margin-left: 15px;
    cursor: pointer;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-lang:hover {
    background: var(--primary-color);
    color: #000;
}

.warning-box {
    background: rgba(50, 0, 0, 0.6);
    border: 2px solid red;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    animation: pulse-border 2s infinite;
}

.warning-box h4 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-content p {
    color: #ffcccc;
    margin-bottom: 15px;
}

.warning-images {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.warning-images img {
    max-width: 48%;
    height: auto;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.2); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.2); }
}

@media screen and (max-width: 768px) {
    .btn-lang {
        margin: 20px auto;
        display: block;
        border-color: var(--text-light);
    }
}