/* CSS Variables for Theming */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0b0e;
    --bg-secondary: #12141a;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #f59e0b; /* Amber/Gold accent */
    --accent-hover: #d97706;
    --card-bg: #1a1d24;
    --border-color: #262a33;
    --nav-bg: rgba(10, 11, 14, 0.85);
    --glow-color: rgba(245, 158, 11, 0.15);
}

/* Light Theme Overrides */
.light-theme {
    --bg-primary: #f9fafb;
    --bg-secondary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --nav-bg: rgba(249, 250, 251, 0.85);
    --glow-color: rgba(0, 0, 0, 0.08);
}

/* Reset & Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

*, *::before, *::after {
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.3s ease;
}

h1, h2, h3 { font-weight: 600; color: var(--text-primary); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.bg-alt { background-color: var(--bg-secondary); }

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-primary); letter-spacing: -0.5px; }
.logo span { color: var(--accent-color); }

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Nav Link Underline Animation */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

#theme-toggle { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-primary); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
#theme-toggle:hover { transform: rotate(45deg) scale(1.1); }

/* Sections */
.section { padding: 100px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 20px; text-align: center; letter-spacing: -1px; }
.section-badge {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.section-text { text-align: center; max-width: 700px; margin: 0 auto; color: var(--text-secondary); font-size: 1.1rem; }

/* Animated Gradient Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Beautiful animated dark gradient */
    background: linear-gradient(-45deg, #0a0b0e, #1a1d24, #2d2216, #0a0b0e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    padding: 0 20px;
}

@keyframes gradientBG {
    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%;
    /* Adds a subtle dot pattern overlay to make it look technical/complex */
    background-image: radial-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: floatUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 { font-size: 4.5rem; margin-bottom: 10px; letter-spacing: -2px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 35px; }
.hero-buttons { display: flex; gap: 15px; justify-content: center; }

.early-access-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.early-access-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    text-align: center;
}

.early-access-banner .badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.early-access-banner p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary { background-color: var(--accent-color); color: #fff; }
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary { background-color: transparent; color: var(--text-primary); border: 1px solid var(--border-color); backdrop-filter: blur(5px); }
.btn-secondary:hover { background-color: var(--card-bg); transform: translateY(-3px); }

.btn-sm { padding: 8px 16px; font-size: 0.9rem; background: var(--accent-color); color: white; }

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

.card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-glow:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px var(--glow-color);
    border-color: var(--accent-color);
}

.card h3 { margin-bottom: 15px; font-size: 1.4rem; }
.card p { color: var(--text-secondary); }

/* Staff Section Specifics */
.staff-grid { max-width: 900px; margin: 40px auto 0; }
.staff-card { padding: 30px; display: flex; flex-direction: column; gap: 15px; }
.staff-header { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 15px; }

.staff-role {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    width: fit-content;
}
.owner-role { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.coowner-role { background-color: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

.staff-details { list-style: none; color: var(--text-secondary); font-size: 0.95rem; display: flex; flex-direction: column; gap: 10px; }
.staff-details strong { color: var(--text-primary); }

/* Server Info Section */
.info-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; max-width: 600px; margin: 40px auto 0; text-align: center; }

.ip-container {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    background-color: var(--bg-primary); padding: 15px; border-radius: 8px;
    border: 1px solid var(--border-color); margin-bottom: 25px; flex-wrap: wrap;
}

.ip-label { color: var(--text-secondary); font-weight: 600; }
.ip-address { font-family: monospace; font-size: 1.2rem; font-weight: bold; color: var(--text-primary); }

/* Copy Animation Classes */
.copy-success { background-color: #10b981 !important; transform: scale(0.95); }

.status-container { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; }
.status-indicator { width: 12px; height: 12px; border-radius: 50%; background-color: #6b7280; transition: background-color 0.3s; box-shadow: 0 0 10px rgba(0,0,0,0.2); }
.status-indicator.online { background-color: #10b981; box-shadow: 0 0 15px rgba(16, 185, 129, 0.5); }
.status-indicator.offline { background-color: #ef4444; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }

.refresh-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border-color: var(--accent-color);
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Discord Button */
.discord-btn { margin-top: 30px; background-color: #5865F2; }
.discord-btn:hover { background-color: #4752C4; box-shadow: 0 10px 20px rgba(88, 101, 242, 0.4); }

/* News Section */
.news-card { text-align: left; }
.news-date { 
    font-size: 0.8rem; 
    color: var(--accent-color); 
    margin-bottom: 8px;
    display: inline-block;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.news-card h3 { margin-bottom: 12px; }
.news-excerpt { color: var(--text-secondary); margin-bottom: 15px; line-height: 1.6; }
.read-more { color: var(--accent-color); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.read-more:hover { text-decoration: underline; }

/* Blog Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
}

.modal-close:hover { color: var(--text-primary); }

.modal-title { margin-bottom: 10px; }
.modal-date { color: var(--accent-color); margin-bottom: 20px; font-size: 0.9rem; }
.modal-body { color: var(--text-secondary); line-height: 1.8; }

/* Calendar/Events Section */
.event-card { text-align: left; }
.event-date-badge {
    background: var(--accent-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}
.event-name { margin-bottom: 10px; }
.event-desc { color: var(--text-secondary); font-size: 0.95rem; }
.event-time { color: var(--accent-color); font-size: 0.85rem; margin-top: 10px; }

/* Footer */
.footer { background-color: var(--bg-secondary); padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-secondary); }
.disclaimer { font-size: 0.8rem; margin-top: 10px; opacity: 0.7; }

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