/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e1e2f 0%, #121212 100%);
    color: #ecf0f1;
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(52, 152, 219, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    color: #3498db;
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-link:hover {
    color: #3498db;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.discord-btn {
    background: #5865F2;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.discord-btn::after {
    display: none;
}

.facebook-btn {
    background: #1877F2;
    color: white !important;
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.facebook-btn:hover {
    background: #166FE5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.facebook-btn::after {
    display: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #3498db;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.8) 0%, rgba(30, 30, 47, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    color: #3498db;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: 1.2rem;
    color: #bdc3c7;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Welcome Message */
.welcome-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.welcome-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
}

.welcome-description {
    font-size: 1.1rem;
    color: #ecf0f1;
    text-align: center;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.non-steam-note {
    font-size: 0.9rem;
    color: #f39c12;
    text-align: center;
    font-style: italic;
    margin-bottom: 0;
}

/* Highlight styles */
.highlight-main {
    color: #3498db;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.3);
    white-space: nowrap;
}

.highlight-secondary {
    color: #e74c3c;
    font-weight: 600;
    text-shadow: 0 0 6px rgba(231, 76, 60, 0.3);
    white-space: nowrap;
}

.hero-info {
    margin-bottom: 2rem;
}

.server-info {
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.info-label {
    color: #bdc3c7;
    font-weight: 500;
}

.info-value {
    color: #3498db;
    font-weight: 700;
    font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    margin-left: 0.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 73, 94, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 73, 94, 0.4);
}

/* Sections */
.events-section, .download-section, .tutorial-section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.section-description {
    font-size: 1.2rem;
    color: #bdc3c7;
    max-width: 600px;
    margin: 0 auto;
}

/* Events */
.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    background: rgba(52, 73, 94, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.event-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.event-thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.event-info {
    flex: 1;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.event-description {
    color: #bdc3c7;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.event-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(52, 152, 219, 0.3);
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tutorial Video Section */
.tutorial-content {
    max-width: 800px;
    margin: 0 auto;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: rgba(52, 73, 94, 0.3);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 15px;
}

.video-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #bdc3c7;
}

.video-placeholder .play-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #e74c3c;
}

.video-placeholder h3 {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.video-placeholder p {
    color: #bdc3c7;
}

/* Download Section */
.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.download-card {
    background: rgba(52, 73, 94, 0.3);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.download-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ecf0f1;
    margin-bottom: 1rem;
}

.download-card p {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.version-info, .size-info {
    margin-bottom: 1rem;
}

.version-label, .size-label {
    color: #bdc3c7;
    font-weight: 500;
}

.version-value, .size-value {
    color: #3498db;
    font-weight: 700;
    font-family: 'Chakra Petch', 'Be Vietnam Pro', sans-serif;
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: rgba(18, 18, 18, 0.9);
    padding: 2rem 0;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(52, 152, 219, 0.8), 0 0 40px rgba(52, 152, 219, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(18, 18, 18, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu .discord-btn,
    .nav-menu .facebook-btn {
        justify-content: center;
        margin: 0 auto;
        width: 50px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .events-container {
        grid-template-columns: 1fr;
    }

    .download-cards {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .event-card, .download-card {
        padding: 1rem;
    }

    .event-content {
        flex-direction: column;
        text-align: center;
    }

    .event-thumbnail {
        width: 100%;
        height: 120px;
        margin-bottom: 1rem;
    }
    
    /* Responsive highlight styles */
    .highlight-main {
        font-size: 0.95em;
    }
    
    .highlight-secondary {
        font-size: 0.9em;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 80px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e1e2f;
}

::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}
