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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    padding-top: 70px; /* Space for fixed nav */
}

/* Sticky Navigation Bar */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 12px 0;
}

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

.nav-brand {
    font-size: 1.5em;
    font-weight: bold;
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #4facfe 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.5);
}

.nav-link.nav-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.nav-link.nav-primary:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6);
}

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

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px 0;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2em;
    color: #666;
    font-weight: 300;
    margin-bottom: 15px;
}

.server-status {
    margin-top: 15px;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
}

.status-badge.online {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    animation: pulse 2s infinite;
}

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

.hero {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px 40px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.hero h2 {
    color: #764ba2;
    font-size: 2em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

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

.links-section.quick-links {
    margin-bottom: 20px;
}

.links-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    color: #667eea;
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    font-size: 2em;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.feature-card li:last-child {
    border-bottom: none;
}

.feature-card li:before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 8px;
}

.info-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-section h2 {
    color: #764ba2;
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    text-align: center;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: scale(1.05);
}

.info-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1.1em;
    opacity: 0.9;
}

.links-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.links-section h2 {
    color: #764ba2;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.link-card-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.link-card {
    background: linear-gradient(135deg, #f093fb 0%, #4facfe 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
    display: block;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.5);
}

.link-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
}

.link-card p {
    font-size: 1em;
    margin-bottom: 15px;
    opacity: 0.95;
    line-height: 1.5;
}

.link-url {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.cta {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cta h2 {
    color: #764ba2;
    font-size: 2em;
    margin-bottom: 20px;
}

.cta-description {
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1em;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #4facfe 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 30px;
}

footer p {
    margin: 10px 0;
}

.footer-tagline {
    font-size: 1.1em;
    font-weight: bold;
    opacity: 0.95 !important;
}

.footer-hosting {
    font-size: 0.9em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }

    .nav-brand {
        font-size: 1.2em;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.85em;
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    h1 {
        font-size: 1.8em;
    }

    .hero {
        padding: 20px;
    }

    .hero h2 {
        font-size: 1.5em;
    }

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

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

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

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

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .links-section {
        padding: 25px;
    }
}

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Giảm z-index xuống -2 để chừa khoảng trống -1 cho canvas */
    background: linear-gradient(-45deg, #0b0710, #1a0b2e, #0f172a, #050510);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

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