/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: #050811;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    padding: 30px 20px;
    gap: 20px;
}

/* Navbar Style */
.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(20, 32, 52, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 172, 254, 0.05);
    flex-shrink: 0;
}

.nav-brand {
    font-size: 0.85rem;
    color: #64ffda;
    font-weight: 500;
}

.nav-brand span {
    color: #4facfe;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Framed Nav Links Style */
.nav-links a {
    text-decoration: none;
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #64ffda;
    background: rgba(79, 172, 254, 0.12);
    border-color: rgba(100, 255, 218, 0.4);
    box-shadow: 0 0 12px rgba(100, 255, 218, 0.2);
}

.nav-links a.active {
    color: #64ffda;
    background: rgba(79, 172, 254, 0.15);
    border-color: rgba(100, 255, 218, 0.5);
    box-shadow: 0 0 15px rgba(100, 255, 218, 0.25);
}

/* Enhanced Glassmorphism Widget Container */
.container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px;
    background: rgba(15, 25, 42, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 30px rgba(79, 172, 254, 0.08);
    max-width: 900px;
    width: 100%;
    animation: containerEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Live Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.75rem;
    color: #64ffda;
    letter-spacing: 0.05em;
}

.pulse-dot-wrapper {
    position: relative;
    width: 8px;
    height: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #64ffda;
    border-radius: 50%;
    box-shadow: 0 0 10px #64ffda;
}

.pulse-ring {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 1px solid #64ffda;
    border-radius: 50%;
    animation: radarPulse 2s infinite ease-out;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #64ffda, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}

p {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 300;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Hub Grid Cards */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.hub-card {
    text-align: left;
    padding: 20px;
    background: rgba(10, 17, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hub-card:hover {
    border-color: rgba(100, 255, 218, 0.5);
    transform: translateY(-4px);
    background: rgba(15, 25, 42, 0.8);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.1);
}

.card-tag {
    font-size: 0.65rem;
    color: #4facfe;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.hub-card h3 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 6px;
    font-weight: 500;
}

.hub-card p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Footer Credit Style */
.footer-credit {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.6);
    letter-spacing: 0.05em;
    text-transform: lowercase;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 18px;
    width: 100%;
}

.footer-credit span {
    color: #4facfe;
    opacity: 0.9;
}

.dot {
    color: #4facfe;
}

/* Interactive Cyber-Matrix Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1; /* Sits right above background, behind your glassmorphism containers */
}



/* Keyframes */
@keyframes containerEntrance {
    from { opacity: 0; transform: translateY(35px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes radarPulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Responsive layout adjustments for mobile screens */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 12px; }
    .nav-links { gap: 8px; flex-wrap: wrap; justify-content: center; }
}