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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Navigation bar styles */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.logo-img {
    height: 45px;
    width: 45px;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nav-logo h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex: 1;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}


/* Hamburger menu button - hidden by default */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Overlay - hidden by default */
.nav-overlay {
    display: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Hero section styles */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #ffd700;
    color: #333;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

/* Level guide styles */
.level-guide {
    padding: 4rem 0;
    background: white;
    scroll-margin-top: 80px;
}

.level-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.level-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.level-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #667eea;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.level-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.level-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.level-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    background: #fff;
}

.level-item h4 {
    padding: 1rem;
    font-size: 1rem;
    color: #333;
    text-align: center;
}

/* Image display area styles (removed) */

/* VIP level styles */
.vip-levels {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    scroll-margin-top: 80px;
}

.vip-levels h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.vip-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.vip-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.vip-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.game-icon {
    margin-bottom: 0.5rem;
}

.vip-item {
    text-decoration: none;
}

.vip-item h3 {
    font-size: 1.1rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

/* Footer styles */
footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffd700;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.language-switch {
    margin-bottom: 0.5rem;
}

.lang-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 0;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem;
        position: relative;
    }
    
    .nav-logo {
        flex: 1;
        justify-content: flex-start;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .nav-logo h1 {
        font-size: 1.4rem;
        margin-left: 0.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 1rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        margin-top: 2rem;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255,255,255,0.1);
        transform: translateX(5px);
    }
    
    
    /* Hamburger menu button */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1001;
    }
    
    .menu-toggle:hover {
        color: #ffd700;
    }
    
    /* Overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .level-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .vip-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 0.6rem 1rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .nav-logo h1 {
        font-size: 1.2rem;
        margin-left: 0.3rem;
    }
    
    .nav-menu {
        width: 260px;
        padding: 1.5rem 1rem;
    }
    
    .nav-list {
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .nav-link {
        padding: 0.8rem;
        font-size: 1rem;
    }
    
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .level-guide, .vip-levels {
        padding: 2rem 0;
    }
}

/* Code section styles */
.code-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    scroll-margin-top: 80px;
}

.code-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: white;
}

.code-content {
    max-width: 1000px;
    margin: 0 auto;
}

.code-category {
    margin-bottom: 3rem;
}

.code-category h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    text-align: center;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 0.5rem;
}

.code-info > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.code-item {
    background: rgba(255,255,255,0.1);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.code-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.code-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
}

.code-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffd700;
    letter-spacing: 1px;
}

.copy-btn {
    background: #ff7f50;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #ff6347;
    transform: scale(1.05);
}

.code-item p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

.code-instructions {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.code-instructions h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-align: center;
}

.code-instructions ol {
    padding-left: 1.5rem;
}

.code-instructions li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive design for code section */
@media (max-width: 768px) {
    .code-section {
        padding: 2rem 0;
    }
    
    .code-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .code-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .code-item {
        padding: 1rem;
    }
    
    .code-box {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .code-text {
        font-size: 1rem;
    }
    
    .code-instructions {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .code-section h2 {
        font-size: 1.5rem;
    }
    
    .code-category h3 {
        font-size: 1.4rem;
    }
    
    .code-item h4 {
        font-size: 1rem;
    }
    
    .code-instructions h4 {
        font-size: 1.1rem;
    }
}
