:root {
    /* Default Palette - Blue (#0099ff) */
    --primary: #0099ff;
    --primary-dark: #007acc;
    --primary-light: #33adff;
    --accent: #00ccff;
    --dark: #0A0A0F;
    --darker: #050508;
    --light: #F0F0F0;
    --gray: #8A8A9E;
    --success: #00cc88;
    --sidebar-width: 350px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    padding: 20px;
    background-image: 
        linear-gradient(rgba(10, 10, 15, 0.92), rgba(10, 10, 15, 0.92)),
        url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: all 0.5s ease;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background-color: rgba(13, 13, 18, 0.95);
    border-radius: 16px;
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 153, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    margin-left: 30px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--primary);
    text-align: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
}

.download-info {
    background: rgba(20, 20, 30, 0.7);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-main-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px;
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    margin-bottom: 25px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.download-main-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.4);
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.download-details {
    margin-top: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.country-flag {
    width: 30px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.download-count {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(0, 153, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.download-stats {
    background: rgba(0, 153, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
}

.total-download-count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(0, 153, 255, 0.5);
}

.download-label {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
}

.mirror-list {
    margin-top: 25px;
}

.mirror-title {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 15px;
    font-weight: 600;
}

.mirror-link {
    display: block;
    background: rgba(40, 40, 50, 0.5);
    color: var(--light);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 4px solid var(--primary);
}

.mirror-link:hover {
    background: rgba(60, 60, 70, 0.7);
    border-left-color: var(--accent);
    transform: translateX(5px);
}

.country-stats {
    margin-top: 25px;
}

.country-stats-title {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}

.stats-chart {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-bar-bg {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin: 0 10px;
    overflow: hidden;
}

.stat-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 5px;
    width: 0%;
    transition: width 1s ease-in-out;
}

.main-content {
    flex: 1;
    max-width: 100%;
}

.container {
    width: 100%;
    text-align: center;
    padding: 40px;
    background-color: rgba(13, 13, 18, 0.85);
    border-radius: 16px;
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 50px rgba(0, 153, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.logo-section {
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.logo-icon {
    color: var(--primary);
    font-size: 3.5rem;
    text-shadow: 0 0 20px var(--primary);
    animation: pulse 2s infinite alternate;
    transition: all 0.5s ease;
}

@keyframes pulse {
    0% { text-shadow: 0 0 15px var(--primary); }
    100% { text-shadow: 0 0 25px var(--primary), 0 0 35px var(--accent); }
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 2px;
    text-shadow: 0 0 30px rgba(0, 153, 255, 0.3);
    transition: all 0.5s ease;
}

.tagline {
    font-size: 1.3rem;
    color: var(--gray);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 300;
}

.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: var(--light);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 153, 255, 0.5);
}

.description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

/* Buttons Section */
.buttons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.main-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(30, 30, 40, 0.9), rgba(20, 20, 30, 0.9));
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 30px 20px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    min-height: 180px;
    position: relative;
    overflow: hidden;
}

.main-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.1), transparent);
    transition: left 0.7s;
}

.main-button:hover:before {
    left: 100%;
}

.main-button:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, rgba(40, 40, 50, 0.9), rgba(30, 30, 40, 0.9));
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.3);
}

.button-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s;
}

.main-button:hover .button-icon {
    color: var(--accent);
    transform: scale(1.1);
}

.button-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.button-desc {
    color: var(--gray);
    font-size: 0.95rem;
}

/* Forum Enter Button */
.forum-enter {
    margin: 40px auto;
    text-align: center;
}

.enter-forum-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(0, 153, 255, 0.4);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.enter-forum-btn:after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: all 0.5s;
}

.enter-forum-btn:hover:after {
    left: 120%;
}

.enter-forum-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 153, 255, 0.6);
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
}

.enter-icon {
    font-size: 2rem;
}

/* Color Palette Selector */
.palette-selector {
    margin: 40px 0 30px;
    padding: 25px;
    background-color: rgba(20, 20, 30, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.palette-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light);
}

.palettes-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.palette-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
    width: 100px;
}

.palette-option:hover {
    transform: translateY(-5px);
}

.palette-option.active {
    transform: scale(1.05);
}

.palette-colors {
    display: flex;
    width: 100%;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.palette-color {
    flex: 1;
    height: 100%;
}

.palette-name {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

.change-color-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid var(--primary);
    padding: 10px 25px;
    border-radius: 6px;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.change-color-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 153, 255, 0.3);
    width: 100%;
    text-align: center;
}

.footer-info {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--primary);
}

.online-counter {
    display: inline-block;
    background-color: rgba(0, 153, 255, 0.15);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 15px;
    border: 1px solid rgba(0, 153, 255, 0.3);
    transition: all 0.5s;
}

/* Mobile Sidebar */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-top: 30px;
        position: static;
    }
    
    .main-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    .logo-text {
        font-size: 3rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .enter-forum-btn {
        padding: 18px 40px;
        font-size: 1.5rem;
    }
    
    .palette-option {
        width: 80px;
    }
    
    .sidebar {
        padding: 20px;
    }
    
    .sidebar-title {
        font-size: 1.5rem;
    }
    
    .mobile-toggle {
        display: flex;
        right: 20px;
    }
    
    .sidebar {
        display: none;
    }
    
    .sidebar.active {
        display: block;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .palettes-grid {
        gap: 10px;
    }
    
    .palette-option {
        width: 70px;
    }
    
    .total-download-count {
        font-size: 2.5rem;
    }
}