@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-color: #00f3ff;
    --secondary-color: #9d00ff;
    --accent-color: #ff00c8;
    --background-dark: #0a0e17;
    --background-darker: #050811;
    --background-panel: #101826;
    --text-light: #e0f7fa;
    --text-dim: #a0d2eb;
    --glow-primary: 0 0 10px #00f3ff, 0 0 20px #00f3ff;
    --glow-secondary: 0 0 10px #9d00ff, 0 0 20px #9d00ff;
    --grafana-color: #f46824;
    --nacos-color: #42b983;
    --skywalking-color: #42b983;
    --infra-color: #00f3ff;
    --nimbus-color: #9d00ff;
    --portal-color: #ff00c8;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 39, 173, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(157, 0, 255, 0.1) 0%, transparent 20%);
    overflow-x: hidden;
}

/* Grid background effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(16, 24, 38, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 24, 38, 0.9) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 15px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
}

.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: var(--glow-primary);
}

.header .title {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-primary);
    letter-spacing: 1px;
    animation: pulse 3s infinite;
}

.header-links {
    display: flex;
    gap: 15px;
}

.header .link {
    text-decoration: none;
    font-size: 14px;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.header .link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.header .link:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
    cursor: pointer;
}

.header .link:hover::before {
    transform: translateX(100%);
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    padding: 15px 0;
    background: rgba(16, 24, 38, 0.7);
    border-bottom: 1px solid rgba(160, 210, 235, 0.1);
    backdrop-filter: blur(5px);
}

.tab {
    list-style-type: none;
    margin: 0 10px;
    padding: 10px 25px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    background: transparent;
    color: var(--text-dim);
    position: relative;
    overflow: hidden;
    font-size: 14px;
}

.tab::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab:hover {
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.tab:hover::before {
    opacity: 0.1;
}

.active-tab {
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.2), rgba(157, 0, 255, 0.2));
}

.active-tab::before {
    opacity: 0.2;
}

.content-container {
    padding: 20px;
    margin-top: 15px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin: 5px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(160, 210, 235, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .section-logo {
    font-size: 24px;
}

.section-title.infra .section-logo {
    color: var(--infra-color);
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.section-title.nimbus .section-logo {
    color: var(--nimbus-color);
    text-shadow: 0 0 10px rgba(157, 0, 255, 0.5);
}

.section-title.portal .section-logo {
    color: var(--portal-color);
    text-shadow: 0 0 10px rgba(255, 0, 200, 0.5);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 10px 0 20px 0;
}

.card {
    background: rgba(16, 24, 38, 0.7);
    color: var(--text-light);
    border: 1px solid rgba(160, 210, 235, 0.1);
    border-radius: 8px;
    padding: 15px 12px;
    text-align: center;
    align-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 243, 255, 0.1), rgba(157, 0, 255, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.2) 0%, transparent 70%);
    transform: rotate(30deg);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), var(--glow-primary);
    border-color: rgba(0, 243, 255, 0.5);
}

.card:hover::before {
    opacity: 0.3;
}

.card:hover::after {
    opacity: 0.5;
}

.card-logo {
    font-size: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.card-logo.grafana {
    color: var(--grafana-color);
    text-shadow: 0 0 10px rgba(244, 104, 36, 0.5);
}

.card-logo.nacos {
    color: var(--nacos-color);
    text-shadow: 0 0 10px rgba(66, 185, 131, 0.5);
}

.card-logo.skywalking {
    color: var(--skywalking-color);
    text-shadow: 0 0 10px rgba(66, 185, 131, 0.5);
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.card-description {
    font-size: 12px;
    color: var(--text-dim);
}

/* Animation for the header */
@keyframes pulse {
    0% { text-shadow: 0 0 5px #00f3ff, 0 0 10px #00f3ff; }
    50% { text-shadow: 0 0 15px #00f3ff, 0 0 30px #00f3ff; }
    100% { text-shadow: 0 0 5px #00f3ff, 0 0 10px #00f3ff; }
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 10px;
    }
    
    .header-links {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .header .link {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .tabs-container {
        margin-top: 110px;
        padding: 10px 0;
    }
    
    .tab {
        padding: 8px 15px;
        font-size: 12px;
        margin: 0 5px;
    }
    
    .content-container {
        padding: 15px;
    }
    
    .section-title {
        margin: 5px 0 8px 0;
        font-size: 18px;
    }
    
    .card-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .card {
        padding: 10px 8px;
        height: 100px;
    }
    
    .card-logo {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .card-title {
        font-size: 12px;
    }
    
    .card-description {
        font-size: 10px;
    }
}