/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #1a1a2e;
    --accent-color: #16213e;
    --text-light: #eee;
    --text-middle: #999;
    --text-dark: #333;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --error-color: #ff4757;
    --discord-color: #5865f2;
    --gradient-primary: linear-gradient(135deg, #ff6b35, #f7931e);
    --gradient-dark: linear-gradient(135deg, #1a1a2e, #16213e);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

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

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

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 107, 53, 0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

/* Right-align the last dropdown to prevent off-screen issues */
.nav-dropdown:last-of-type .dropdown-menu {
    left: auto;
    right: 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    transform: scale(1.02);
}

.dropdown-item.disabled {
    color: var(--text-middle);
    cursor: not-allowed;
    opacity: 0.5;
}

.dropdown-item.disabled:hover {
    background: none;
    transform: none;
    color: var(--text-middle);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.fire-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: inline-block;
    pointer-events: none;
}
.developer-credit {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
    margin-top: 20px;
}
.developer-credit a {
    color: var(--darkreader-text-ff7af2, #ff6ff1);
    text-decoration-color: initial;
}

.developer-credit a {
    color: #ff7af2;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
.developer-credit a:hover {
    color: var(--darkreader-text-ffffff, #e8e6e3);
}
.welcome-text {
    position: absolute;
    left: -20px;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--text-middle);
    opacity: 0.6;
    font-family: 'Roboto', sans-serif;
    text-transform: lowercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.splash-text {
    position: absolute;
    bottom: -25px;
    right: -20px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: splashFlash 3s ease-in-out infinite;
    transform-origin: center;
}

.glitch {
    position: relative;
    color: var(--text-light);
    animation: glitch 2s linear infinite;
}

.glitch:before,
.glitch:after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch:before {
    animation: glitch-1 0.5s linear infinite reverse;
    color: var(--primary-color);
    z-index: -1;
}

.glitch:after {
    animation: glitch-2 0.5s linear infinite reverse;
    color: var(--success-color);
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
}

@keyframes splashFlash {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
        color: var(--primary-color);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.05) rotate(1deg);
        color: var(--success-color);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.1) rotate(-1deg);
        color: var(--warning-color);
    }
    75% { 
        opacity: 0.9; 
        transform: scale(1.05) rotate(0.5deg);
        color: var(--discord-color);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-discord {
    background: var(--discord-color);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 4;
}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hero-scroll i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-scroll:hover .scroll-text {
    opacity: 1;
    color: var(--primary-color);
}

.hero-scroll:hover i {
    transform: translateY(3px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Server Status Section */
.server-status {
    padding: 20px 0;
    background: var(--accent-color);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.server-card {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-heavy);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.server-card:hover::before {
    left: 100%;
}

.server-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.server-name {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.server-status-indicator {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.server-status-indicator.online {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.1));
    color: #00ff88;
    border: 2px solid rgba(0, 255, 136, 0.6);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.server-status-indicator.offline {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), rgba(255, 71, 87, 0.1));
    color: #ff4757;
    border: 2px solid rgba(255, 71, 87, 0.6);
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}

.server-status-indicator.maintenance {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.3), rgba(255, 170, 0, 0.1));
    color: #ffaa00;
    border: 2px solid rgba(255, 170, 0, 0.6);
    text-shadow: 0 0 8px rgba(255, 170, 0, 0.4);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

.status-dot.online {
    background: var(--success-color);
}

.status-dot.offline {
    background: var(--error-color);
}

.status-dot.maintenance {
    background: var(--warning-color);
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.server-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.server-stat {
    text-align: center;
    padding: 15px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.server-stat:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 107, 53, 0.05));
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.server-stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

.server-stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Server Actions */
.server-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.server-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 107, 53, 0.1));
    color: var(--primary-color);
    border: 2px solid rgba(255, 107, 53, 0.4);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.server-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.server-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
    color: white;
    border-color: var(--primary-color);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.server-btn.primary:hover {
    background: linear-gradient(135deg, #ff8c5a, #ffaa77);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Server Loading States */
.server-loading,
.server-error {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
    opacity: 0.8;
}

.server-loading i,
.server-error i {
    margin-right: 10px;
    color: var(--primary-color);
}

.server-error {
    color: var(--error-color);
}

.server-error i {
    color: var(--error-color);
}

/* Gallery/Slider Section */
.gallery {
    padding: 100px 0;
    background: var(--secondary-color);
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 30px;
    color: white;
    text-align: center;
}

.slide-caption h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.slide-author {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 8px;
    font-style: italic;
}

/* Empty Gallery State */
.empty-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
}

.empty-content {
    text-align: center;
    padding: 60px 20px;
}

.empty-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.empty-content p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.supported-formats {
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0.7;
    font-weight: 500;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Discord Section */
.discord-section {
    padding: 20px 0;
    background: var(--accent-color);
}

.discord-banner {
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
}

.discord-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(88, 101, 242, 0.1) 50%, transparent 70%);
    animation: discordGlow 3s ease-in-out infinite;
}

@keyframes discordGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.discord-icon {
    font-size: 4rem;
    color: var(--discord-color);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.discord-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-light);
}

.discord-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.discord-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--discord-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--secondary-color);
}

/* OpenStarbound Section */
.openstarbound-section {
    padding: 100px 0;
    background: var(--accent-color);
}

.openstarbound-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.openstarbound-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.openstarbound-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.openstarbound-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.openstarbound-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 10px;
    width: 140px;
}

.stat-item .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.openstarbound-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Terminal & Game Window Visual */
.openstarbound-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.terminal-window,
.game-window {
    width: 100%;
    max-width: 500px;
    background: #0c0c0c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.terminal-header,
.game-header {
    background: #1a1a1a;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #333;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.close {
    background: #ff5f57;
}

.control.minimize {
    background: #ffbd2e;
}

.control.maximize {
    background: #28ca42;
}

.window-title {
    color: #ccc;
    font-size: 0.9rem;
    margin-left: auto;
}

/* Terminal Content */
.terminal-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    height: 400px;
    overflow-y: auto;
    background: #0c0c0c;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for WebKit browsers */
.terminal-content::-webkit-scrollbar {
    display: none;
}

.terminal-line {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    min-height: 18px;
}

.prompt {
    color: #00ff88;
    margin-right: 8px;
    font-weight: bold;
}

.cursor {
    color: #00ff88;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-text {
    color: #fff;
}

.terminal-success {
    color: #00ff88;
}

.terminal-warning {
    color: #ffaa00;
}

.terminal-error {
    color: #ff4757;
}

.terminal-info {
    color: #5865f2;
}

.terminal-bacon {
    color: #ff6b35;
    font-weight: bold;
}

.terminal-loading {
    color: #ffaa00;
}

.loading-dots {
    color: #ffaa00;
    font-weight: bold;
    margin-left: 5px;
    min-width: 20px;
    display: inline-block;
}

/* Game Window */
.game-window {
    position: absolute;
    top: 30px;
    right: 20px;
    width: 100%;
    max-width: 500px;
    z-index: 10;
    opacity: 0;
    transform: translate(0, 0) scale(0.95);
}

.game-content {
    position: relative;
    height: 400px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 10px 10px;
}

.game-placeholder {
    text-align: center;
    color: #fff;
    padding: 40px;
}

.starbound-logo {
    margin-bottom: 30px;
}

.starbound-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.starbound-logo h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.starbound-logo p {
    opacity: 0.8;
    font-size: 1rem;
}

.game-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.game-stats .stat {
    padding: 8px 15px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    opacity: 0.9;
}

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

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(10px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 20px;
    background: var(--accent-color);
    padding: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-heavy);
}

.about-actions {
    margin-top: 30px;
    text-align: center;
}

/* Footer */
.footer {
    padding: 60px 0 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.footer-main {
    text-align: center;
    max-width: 400px;
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    opacity: 0.7;
}

.developer-credit {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.developer-credit a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: var(--text-light);
    text-shadow: 0 0 5px var(--primary-color);
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-color);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
    border: 2px solid var(--primary-color);
    position: relative;
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    padding: 20px 30px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.modal-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* History Timeline Modal */
.history-modal {
    max-width: 900px;
    max-height: 90vh;
    background: var(--secondary-color);
    display: flex;
    flex-direction: column;
}

.history-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Custom Scrollbar for Timeline Modal Body */
.history-modal .modal-body::-webkit-scrollbar {
    width: 12px;
}

.history-modal .modal-body::-webkit-scrollbar-track {
    background: var(--accent-color);
    border-radius: 6px;
    margin: 10px 0;
}

.history-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
    border: 2px solid var(--accent-color);
}

.history-modal .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8c5a, #ffaa77);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.4);
}

.history-modal .modal-body::-webkit-scrollbar-corner {
    background: var(--accent-color);
}

.timeline-container {
    padding: 20px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    text-align: right;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: left;
}

.timeline-marker {
    top: 26px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
    z-index: 2;
}

.timeline-marker i {
    font-size: 1.5rem;
    color: white;
}

.timeline-content {
    background: linear-gradient(135deg, var(--accent-color), rgba(22, 33, 62, 0.8));
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 107, 53, 0.3);
    width: calc(50% - 40px);
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--accent-color), rgba(255, 107, 53, 0.1));
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 80px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 80px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
    border-left-color: var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
    border-right-color: var(--accent-color);
}

.timeline-content h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.timeline-date {
    color: var(--text-light);
    opacity: 0.8;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content p:last-child {
    margin-bottom: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Donation Section */
.donate-section {
    padding: 100px 0;
    background: var(--secondary-color);
    position: relative;
}

.donate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.donate-info {
    text-align: left;
}

.donate-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
}

.donate-icon i {
    font-size: 2.5rem;
    color: white;
}

.donate-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
}

.donate-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 30px;
}

.donate-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.donate-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.donate-feature:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(10px);
}

.donate-feature i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.donate-feature span {
    font-weight: 500;
    color: var(--text-light);
}

.donate-box {
    display: flex;
    justify-content: center;
}

.donate-card {
    background: var(--accent-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-heavy);
    border: 2px solid rgba(255, 107, 53, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.donate-card:hover::before {
    left: 100%;
}

.donate-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-heavy);
}

.donate-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.donate-header i {
    font-size: 2rem;
    color: #0070ba; /* PayPal blue */
}

.donate-header h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0;
}

.donate-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.donate-body p {
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-donate {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 15px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-donate:hover {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.donate-note {
    font-size: 0.9rem;
    color: var(--text-middle);
    opacity: 0.8;
    margin: 0;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 1024px) {
    .nav-logo{
        font-size: 1.2rem;
    }
}
/* Mobile Navigation - Flat List */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-dropdown {
        width: 100%;
        display: block;
    }
    
    .dropdown-toggle {
        padding: 20px 25px 10px;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 107, 53, 0.3);
        pointer-events: none; /* Header only, not clickable */
        background: rgba(255, 107, 53, 0.05);
    }
    
    .dropdown-toggle i {
        display: none; /* Hide chevron icons on mobile */
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        margin: 0;
        border-radius: 0;
        max-height: none;
        overflow: visible;
    }
    
    .dropdown-item {
        padding: 15px 40px;
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1rem;
        color: var(--text-light);
        text-decoration: none;
    }
    
    .dropdown-item:hover {
        background: rgba(255, 107, 53, 0.1);
        transform: none;
        padding-left: 45px;
    }
    
    .dropdown-item.disabled {
        color: var(--text-middle);
        opacity: 0.5;
    }
    
    .dropdown-item.disabled:hover {
        background: none;
        padding-left: 40px;
    }
    
    /* Direct nav links (like Home) */
    .nav-link:not(.dropdown-toggle) {
        padding: 20px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.1rem;
        color: var(--text-light);
    }
    
    .nav-link:not(.dropdown-toggle):hover {
        background: rgba(255, 107, 53, 0.1);
        color: var(--primary-color);
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Timeline Mobile Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 30px !important;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
    }
    
    .timeline-marker i {
        font-size: 1.2rem;
    }
    
    .timeline-content {
        width: calc(100% - 80px) !important;
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -15px !important;
        right: auto !important;
        border-right-color: var(--accent-color) !important;
        border-left-color: transparent !important;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    .game-window{
        transform: translate(20px, 30px) scale(1) !important;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .discord-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .discord-content {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .openstarbound-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .openstarbound-features {
        grid-template-columns: 1fr;
    }

    .openstarbound-stats {
        
        gap: 15px;
        align-items: center;
    }

    .openstarbound-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-main {
        max-width: 100%;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .welcome-text {
        left: 50%;
        top: -20px;
        transform: translateX(-50%);
        font-size: 0.7rem;
    }

    .splash-text {
        right: 0;
        bottom: -25px;
        transform: translateX(50%);
        font-size: 0.8rem;
        width: 100%;
    }
}
@media (max-width: 540px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 500px) {
    .openstarbound-info {
        width: calc(100vw - 40px);
    }
    .openstarbound-stats{
        flex-direction: column;
    }
    .stat-item{
        width: calc(100vw - 40px);
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .welcome-text {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        font-size: 0.6rem;
    }



    .section-title {
        font-size: 2rem;
    }

    .discord-banner {
        padding: 30px;
    }

    .server-card {
        padding: 20px;
    }

    .slide-caption {
        padding: 20px 15px 15px;
    }

    .slide-caption h3 {
        font-size: 1.4rem;
    }
    .timeline-content{
        width: calc(100vw - 40px) !important;
        margin-left: 0px !important;
    }
    .timeline::before{
        display: none;
    }
    .timeline-marker{
        left: 50% !important;
        top: -26px !important;
    }
}
@media (max-width: 362px) {
    .glitch:before, .glitch:after{
        display: none;
    }
}

/* Mobile responsiveness for donation section */
@media (max-width: 768px) {
    .donate-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .donate-info {
        text-align: center;
    }
    
    .donate-card {
        padding: 30px 20px;
    }
    
    .donate-features {
        gap: 10px;
    }
    
    .donate-feature {
        justify-content: center;
    }
}
