:root {
    --bg-dark: #0b0c10;
    --bg-card: #1f2833;
    --orange-primary: #d64f38;
    --orange-glow: rgba(214, 79, 56, 0.4);
    --text-light: #c5c6c7;
    --text-bright: #ffffff;
    --badge-new: #4caf50;
    --badge-fix: #ff9800;
    --badge-update: #2196f3;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    overflow-x: hidden;
}

/* Background Blur Control */
#main-content { transition: filter 0.4s ease, transform 0.4s ease; }
body.menu-open #main-content {
    filter: blur(15px);
    transform: scale(0.98);
    pointer-events: none;
}

h1, h2, h3, h4, .navbar-brand, .menu-overlay-links a, .policy-tag, .btn-orange, .btn-outline-light, .btn-outline-discord, .log-badge, .page-link {
    font-family: 'Orbitron', sans-serif;
}

h1, h2, h3, h4, .navbar-brand, .menu-overlay-links a {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-bright);
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--orange-primary); border-radius: 4px; }

/* Full Screen Menu Overlay */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 12, 16, 0.85); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-overlay-links { text-align: center; list-style: none; padding: 0; }
.menu-overlay-links li { margin: 20px 0; transform: translateY(30px); opacity: 0; transition: all 0.4s ease; }
.menu-overlay.active .menu-overlay-links li { transform: translateY(0); opacity: 1; }
.menu-overlay-links a { font-size: 2.5rem; text-decoration: none; color: var(--text-bright); transition: color 0.3s ease; }
.menu-overlay-links a:hover { color: var(--orange-primary); text-shadow: 0 0 15px var(--orange-glow); }
.close-menu { position: absolute; top: 30px; right: 30px; font-size: 2rem; color: var(--text-bright); cursor: pointer; border: none; background: none; }

/* Navbar Styling */
.navbar {
    background-color: rgba(11, 12, 16, 0.95) !important;
    backdrop-filter: blur(10px); border-bottom: 2px solid rgba(255, 87, 34, 0.1);
    transition: all 0.3s ease; padding: 15px 0;
}
.navbar-brand span { color: var(--orange-primary); text-shadow: 0 0 10px var(--orange-glow); }
.nav-link { color: var(--text-light) !important; font-weight: 600; margin: 0 10px; transition: color 0.3s ease; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--orange-primary) !important; }
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0;
    background-color: var(--orange-primary); transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }
.hamburger-btn { background: none; border: none; color: var(--orange-primary); font-size: 1.8rem; cursor: pointer; }

/* Headers & Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

#galaxy-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-title { font-size: 3.8rem; font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-title span { color: var(--orange-primary); text-shadow: 0 0 20px var(--orange-glow); }

.page-header {
    padding: 150px 0 60px;
    background: linear-gradient(to bottom, rgba(255, 87, 34, 0.05), transparent);
}
.section-title { position: relative; margin-bottom: 60px; font-size: 2.5rem; color: var(--orange-primary); }
.section-title.text-center::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background-color: var(--orange-primary);
}

/* Image Carousel */
.ui-carousel-container {
    width: 100%; max-width: 600px; aspect-ratio: 1180 / 710; height: auto; 
    background: var(--bg-card); border: 2px solid var(--orange-primary); 
    box-shadow: 0 0 30px var(--orange-glow); border-radius: 12px;
    overflow: hidden; position: relative; margin: 0 auto;
}
#ui-carousel-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease-in-out; }

/* Buttons */
.btn-orange {
    background-color: var(--orange-primary); color: white; font-weight: 700;
    padding: 12px 30px; border: 2px solid transparent; border-radius: 4px;
    box-shadow: 0 4px 15px var(--orange-glow); transition: all 0.3s ease;
}
.btn-orange:hover {
    background-color: transparent; border-color: var(--orange-primary); color: var(--orange-primary);
    box-shadow: 0 0 25px var(--orange-glow); transform: translateY(-2px);
}
.btn-orange.btn-sm { padding: 6px 15px; border: 1px solid transparent; }

.btn-outline-light {
    font-weight: 700; padding: 12px 30px; border: 2px solid var(--text-light);
    color: var(--text-bright); border-radius: 4px; transition: all 0.3s ease;
}
.btn-outline-light:hover { background-color: var(--text-light); color: var(--bg-dark); transform: translateY(-2px); }
.btn-outline-light.btn-sm { padding: 6px 15px; border-width: 1px; color: var(--text-bright); border-color: rgba(255,255,255,0.2); }

.btn-outline-discord {
    background-color: transparent; color: #5865F2; border: 2px solid #5865F2;
    font-weight: 700; padding: 12px 30px; border-radius: 4px; transition: all 0.3s ease;
}
.btn-outline-discord:hover {
    background-color: #5865F2; color: white; box-shadow: 0 0 20px rgba(88, 101, 242, 0.4); transform: translateY(-2px);
}
.btn-outline-discord.btn-sm { padding: 6px 15px; border-width: 2px; }

/* Feature Cards (Home/About) */
.features-section { padding: 80px 0; background-color: rgba(31, 40, 51, 0.2); }
.separates-section { padding: 80px 0; background-color: var(--bg-dark); }
.about-card { background-color: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 40px; height: 100%; }

.feature-card {
    background-color: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; padding: 40px 30px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%; position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 0;
    background-color: var(--orange-primary); transition: height 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255, 87, 34, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.feature-card:hover::before { height: 100%; }
.feature-icon { font-size: 2rem; color: var(--orange-primary); text-shadow: 0 0 10px var(--orange-glow); }

/* Grid / Tiles (Plugins & Maps) */
.item-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .item-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .item-grid { grid-template-columns: repeat(4, 1fr); } }

.item-card {
    background-color: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px; overflow: hidden; transition: all 0.3s ease;
    display: flex; flex-direction: column; height: 100%;
}
.item-card:hover { transform: translateY(-5px); border-color: rgba(255, 87, 34, 0.3); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.item-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 2px solid rgba(255, 87, 34, 0.1); }
.item-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.item-title { font-size: 1.3rem; margin-bottom: 5px; }
.item-author { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; }

/* Input Search & Filter */
.form-control, .form-select {
    background-color: rgba(31, 40, 51, 0.5) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: var(--text-bright) !important;
}
.form-control::placeholder {
    color: #e0e0e0 !important; /* Very light gray */
    opacity: 1 !important;
}
.form-control:focus, .form-select:focus { border-color: var(--orange-primary) !important; box-shadow: 0 0 10px var(--orange-glow) !important; }
.form-select option { background-color: var(--bg-card); color: var(--text-bright); }
.input-group-text { background-color: rgba(31, 40, 51, 0.5); border: 1px solid rgba(255, 255, 255, 0.1); border-right: none; color: var(--text-light); }
.form-control { border-left: none; }

/* Pagination */
.pagination { margin-top: 50px; }
.page-link { background-color: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-light); }
.page-link:hover, .page-item.active .page-link { background-color: var(--orange-primary); border-color: var(--orange-primary); color: white; }

/* Download & Changelog */
.version-card {
    background-color: var(--bg-card); border: 2px solid var(--orange-primary);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.15); border-radius: 12px; padding: 40px; margin-bottom: 60px;
}
.changelog-box { background-color: rgba(31, 40, 51, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 12px; padding: 40px; }
.changelog-item { position: relative; padding-left: 30px; margin-bottom: 40px; border-left: 3px solid rgba(255, 87, 34, 0.3); }
.changelog-item:last-child { margin-bottom: 0; }
.changelog-item::before {
    content: ''; position: absolute; left: -9px; top: 5px; width: 15px; height: 15px;
    background-color: var(--bg-dark); border: 3px solid var(--orange-primary); border-radius: 50%;
}
.changelog-date { color: var(--orange-primary); font-size: 0.9rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; display: block; }
.log-list li { margin-bottom: 15px; line-height: 1.6; }
.badge-new { background-color: rgba(76, 175, 80, 0.15); color: var(--badge-new); border: 1px solid var(--badge-new); }
.badge-fix { background-color: rgba(255, 152, 0, 0.15); color: var(--badge-fix); border: 1px solid var(--badge-fix); }
.badge-update { background-color: rgba(33, 150, 243, 0.15); color: var(--badge-update); border: 1px solid var(--badge-update); }
.log-badge { font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; margin-right: 10px; font-weight: 700; display: inline-block; vertical-align: middle; }

/* Honesty Policy */
.honesty-policy {
    margin-top: 80px; padding: 60px; border: 2px dashed var(--orange-primary);
    border-radius: 15px; background-color: rgba(255, 87, 34, 0.02); position: relative;
}
.policy-tag {
    position: absolute; top: -15px; left: 30px; background-color: var(--orange-primary);
    color: white; padding: 2px 15px; font-size: 0.9rem; border-radius: 4px;
}

/* Discord Banner */
.discord-banner {
    background: linear-gradient(135deg, #1f2833 0%, #0b0c10 100%);
    border: 1px solid rgba(255, 87, 34, 0.2); border-radius: 12px;
    padding: 60px; box-shadow: 0 0 40px rgba(255, 87, 34, 0.05);
}

/* Footer */
footer { background-color: #050608; border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 30px 0; margin-top: 100px; }

/* Responsive Tweaks */
@media (max-width: 991px) { .navbar-collapse { display: none !important; } }
@media (max-width: 768px) {
    .hero-title { font-size: 2.8rem; }
    .hero-section { padding: 140px 0 80px 0; text-align: center; }
    .hero-buttons .btn { width: 100%; margin-bottom: 15px; }
    .discord-banner { padding: 30px 20px; text-align: center; }
}