/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color variables - Dark Mode (default) - Minecraft Theme */
:root {
    --bg-primary: #0d1b0d;
    --bg-secondary: #12200f;
    --bg-tertiary: #0a150a;
    --bg-card: rgba(25, 40, 20, 0.8);
    --bg-feature: rgba(76, 175, 80, 0.06);
    --bg-stat: rgba(139, 195, 74, 0.05);
    
    --text-primary: #e8f5e9;
    --text-secondary: #c5e1a5;
    --text-muted: #a5d6a7;
    --text-footer: #aed581;
    
    --accent-primary: rgba(76, 175, 80, 0.20);
    --accent-secondary: rgba(139, 195, 74, 0.12);
    --accent-glow: rgba(76, 175, 80, 0.14);
    
    --border-primary: rgba(76, 175, 80, 0.30);
    --border-feature: rgba(139, 195, 74, 0.1);
    
    --glow-primary: rgba(76, 175, 80, 0.4);
    --glow-secondary: rgba(139, 195, 74, 0.25);
    --glow-tertiary: rgba(102, 187, 106, 0.15);
    
    --particle-color: rgba(76, 175, 80, 0.8);
    --particle-shadow: rgba(76, 175, 80, 0.6);
}

/* Light Mode - Minecraft Theme */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #e8f5e9;
        --bg-secondary: #f1f8e9;
        --bg-tertiary: #dcedc8;
        --bg-card: rgba(255, 255, 255, 0.95);
        --bg-feature: rgba(255, 255, 255, 0.9);
        --bg-stat: rgba(255, 255, 255, 0.9);
        
        --text-primary: #1b5e20;
        --text-secondary: #33691e;
        --text-muted: #558b2f;
        --text-footer: #689f38;
        
        --accent-primary: rgba(76, 175, 80, 0.20);
        --accent-secondary: rgba(139, 195, 74, 0.15);
        --accent-glow: rgba(76, 175, 80, 0.18);
        
        --border-primary: rgba(76, 175, 80, 0.5);
        --border-feature: rgba(76, 175, 80, 0.3);
        
        --glow-primary: rgba(76, 175, 80, 0.35);
        --glow-secondary: rgba(139, 195, 74, 0.25);
        --glow-tertiary: rgba(102, 187, 106, 0.15);
        
        --particle-color: rgba(76, 175, 80, 0.9);
        --particle-shadow: rgba(76, 175, 80, 0.7);
    }
    
    /* Ajustements spécifiques pour le mode clair - Minecraft Theme */
    .download-section {
        box-shadow: 
            0 30px 80px rgba(76, 175, 80, 0.2),
            0 0 60px rgba(76, 175, 80, 0.15),
            inset 0 2px 8px rgba(255, 255, 255, 0.8);
        border: 2px solid rgba(76, 175, 80, 0.5);
    }
    
    .feature-card {
        box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15);
        border: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    .stat-item {
        box-shadow: 0 8px 32px rgba(76, 175, 80, 0.15);
        border: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    .cursor-glow {
        background: radial-gradient(circle, rgba(76, 175, 80, 0.35), rgba(139, 195, 74, 0.25) 30%, rgba(102, 187, 106, 0.15) 50%, transparent 70%);
    }
    
    .cursor-glow.active {
        background: radial-gradient(circle, rgba(76, 175, 80, 0.5), rgba(139, 195, 74, 0.35) 30%, rgba(102, 187, 106, 0.25) 50%, transparent 70%);
    }
    
    /* Grille visible en mode clair */
    .background-animation::after {
        background-image:
            linear-gradient(rgba(76, 175, 80, 0.08) 1px, transparent 1px),
            linear-gradient(90deg, rgba(76, 175, 80, 0.08) 1px, transparent 1px);
        opacity: 0.4;
    }
    
    /* Particules plus visibles */
    .background-animation .particle {
        width: 4px;
        height: 4px;
        box-shadow: 0 0 15px var(--particle-shadow);
    }
    
    /* Titres plus contrastés - Minecraft Theme */
    .main-title {
        color: #33691e;
        text-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
    }
    
    .download-title {
        color: #33691e;
    }
    
    /* Boutons plus visibles */
    .download-btn {
        box-shadow: 
            0 10px 30px rgba(76, 175, 80, 0.4),
            0 0 20px rgba(76, 175, 80, 0.2);
    }
    
    .video-btn {
        box-shadow: 
            0 10px 30px rgba(139, 195, 74, 0.4),
            0 0 20px rgba(139, 195, 74, 0.2);
    }
}

/* Cursor glow effect - enhanced visibility - Minecraft Theme */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.45), rgba(139, 195, 74, 0.3) 30%, rgba(102, 187, 106, 0.2) 50%, transparent 70%);
    border-radius: 50%;
    will-change: transform;
    opacity: 1;
    filter: blur(22px);
}

.cursor-glow.active {
    background: radial-gradient(circle, rgba(76, 175, 80, 0.65), rgba(139, 195, 74, 0.45) 30%, rgba(102, 187, 106, 0.3) 50%, transparent 70%);
    opacity: 1;
    filter: blur(28px);
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(1200px 600px at 70% 30%, var(--accent-primary), transparent 60%),
                radial-gradient(900px 500px at 20% 70%, var(--accent-secondary), transparent 60%),
                linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 40%, var(--bg-tertiary) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

/* Static background */
.background-animation {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.background-animation::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1000px 500px at 10% 20%, var(--accent-glow), transparent 60%),
        radial-gradient(900px 500px at 90% 80%, var(--accent-secondary), transparent 60%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.background-animation::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px, 60px 60px;
    mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.9), transparent 70%);
    opacity: 0.25;
    pointer-events: none;
    animation: gridMove 20s linear infinite;
}

/* Floating particles */
.background-animation .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--particle-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--particle-shadow);
    animation: float 15s linear infinite;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.background-animation .particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.background-animation .particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; }
.background-animation .particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 18s; }
.background-animation .particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 14s; }
.background-animation .particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 16s; }
.background-animation .particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.background-animation .particle:nth-child(7) { left: 70%; animation-delay: 1.5s; animation-duration: 17s; }
.background-animation .particle:nth-child(8) { left: 80%; animation-delay: 3.5s; animation-duration: 11s; }
.background-animation .particle:nth-child(9) { left: 90%; animation-delay: 2.5s; animation-duration: 19s; }

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}


/* Header styles */
.header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out, floatHeader 6s ease-in-out infinite;
}

@keyframes floatHeader {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    animation: titleGlow 3s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes titleGlow {
    0%, 100% { 
        text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    50% { 
        text-shadow: 0 0 40px rgba(76, 175, 80, 0.8), 0 0 60px rgba(139, 195, 74, 0.6);
    }
}

.title-break {
    display: block;
    margin-top: 0.2em;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.main-title:hover {
    transform: scale(1.05) translateY(-2px);
    text-shadow: 0 0 50px rgba(76, 175, 80, 0.9);
    filter: brightness(1.1);
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    gap: 25px;
}

/* Download section - enhanced with animations */
.download-section {
    background: var(--bg-card);
    border: 2px solid var(--border-primary);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.3),
        0 0 70px var(--glow-primary),
        0 0 90px rgba(6, 182, 212, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: 
        fadeInUp 1s ease-out 0.6s both, 
        floatCard 8s ease-in-out infinite,
        borderPulse 3s ease-in-out infinite;
    width: 100%;
    max-width: 780px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes borderPulse {
    0%, 100% { 
        border-color: rgba(76, 175, 80, 0.5);
    }
    50% { 
        border-color: rgba(139, 195, 74, 0.6);
    }
}

/* Radial gradient background - Minecraft Theme */
.download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 200px at 50% 0%, rgba(76, 175, 80, 0.35), transparent 70%);
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease-out;
}

/* Animated border effect - Minecraft Theme */
.download-section::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, 
        rgba(76, 175, 80, 0.6), 
        rgba(139, 195, 74, 0.6), 
        rgba(102, 187, 106, 0.6),
        rgba(76, 175, 80, 0.6)
    );
    background-size: 300% 300%;
    opacity: 0.5;
    z-index: -1;
    filter: blur(15px);
    animation: gradientBorderRotate 5s linear infinite;
    transition: opacity 0.2s ease-out;
}

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

.download-section:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(76, 175, 80, 0.5),
        0 0 150px rgba(139, 195, 74, 0.3),
        inset 0 2px 8px rgba(255, 255, 255, 0.2);
    border-color: rgba(139, 195, 74, 0.8);
    transition: all 0.2s ease-out;
}

.download-section:hover::after {
    opacity: 0.8;
    transition: opacity 0.2s ease-out;
}

.download-section:hover::before {
    opacity: 1;
    transition: opacity 0.2s ease-out;
}

.download-section:hover .download-title {
    color: #c5e1a5;
    text-shadow: 0 0 20px rgba(139, 195, 74, 0.8);
    transition: all 0.2s ease-out;
}

.download-section:hover .download-description {
    color: #dcedc8;
    opacity: 1;
    transition: all 0.2s ease-out;
}

.download-section:hover .download-icon {
    animation: bounce 0.6s ease-in-out, iconSpin 2s ease-in-out infinite;
    transition: all 0.2s ease-out;
}

@keyframes iconSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

/* Content line layout */
.content-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
}

/* Download section - now inline */

.download-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 0.6s both;
    flex: 1;
    min-width: 220px;
    max-width: 220px;
    min-height: 280px;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.35),
        0 0 60px rgba(76, 175, 80, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(76, 175, 80, 0.6);
    background: rgba(255, 255, 255, 0.12);
}

.download-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(76, 175, 80, 0.4));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(139, 195, 74, 0.6));
    }
}


.download-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-secondary);
    animation: titleShimmer 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes titleShimmer {
    0%, 100% { 
        color: #c5e1a5;
        text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    }
    50% { 
        color: #aed581;
        text-shadow: 0 0 20px rgba(139, 195, 74, 0.5);
    }
}

.download-card:hover .download-title {
    color: #dcedc8;
}

.download-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    animation: descriptionPulse 4s ease-in-out infinite;
    transition: color 0.3s ease;
}

@keyframes descriptionPulse {
    0%, 100% { 
        opacity: 0.8;
        transform: translateY(0px);
    }
    50% { 
        opacity: 1;
        transform: translateY(-2px);
    }
}

.download-card:hover .download-description {
    color: #dcedc8;
    opacity: 1;
}

/* Button group container */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

/* Sparkle effect around buttons */
.button-group::before,
.button-group::after {
    content: '✨';
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: sparkle 3s ease-in-out infinite;
}

.button-group::before {
    top: -10px;
    left: -20px;
    animation-delay: 0s;
}

.button-group::after {
    bottom: -10px;
    right: -20px;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

/* IP Button - Minecraft Theme */
.download-btn {
    position: relative;
    background: linear-gradient(135deg, #4CAF50, #8BC34A, #66BB6A);
    background-size: 200% 200%;
    border: 2px solid rgba(76, 175, 80, 0.6);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    overflow: visible;
    box-shadow: 
        0 10px 30px rgba(76, 175, 80, 0.45),
        0 0 0 0 rgba(76, 175, 80, 0);
    font-family: 'Inter', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    min-width: 300px;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gradientShiftBtn 3s ease infinite;
}

.ip-button .btn-text {
    font-family: 'Inter', 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.copy-message {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.download-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4CAF50, #8BC34A, #66BB6A, #4CAF50);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
    animation: glowRotate 3s linear infinite;
}

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

.download-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(76, 175, 80, 0.6),
        0 0 40px rgba(139, 195, 74, 0.5),
        0 0 80px rgba(76, 175, 80, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.3);
    border-color: rgba(139, 195, 74, 0.8);
    animation: pulse-glow 1.5s ease-in-out infinite, gradientShiftBtn 1.5s ease infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 20px 60px rgba(76, 175, 80, 0.6),
            0 0 40px rgba(139, 195, 74, 0.5),
            0 0 80px rgba(76, 175, 80, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 
            0 20px 80px rgba(76, 175, 80, 0.8),
            0 0 60px rgba(139, 195, 74, 0.7),
            0 0 120px rgba(76, 175, 80, 0.5),
            inset 0 2px 15px rgba(255, 255, 255, 0.4);
    }
}

.download-btn:hover::before {
    opacity: 1;
}

.download-btn:hover::after {
    opacity: 1;
}

.download-btn:hover .btn-text {
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(139, 195, 74, 0.6),
        0 0 30px rgba(76, 175, 80, 0.4);
}

/* Video button - Minecraft Theme */
.video-btn {
    position: relative;
    background: linear-gradient(135deg, #8BC34A, #9CCC65, #8BC34A);
    background-size: 200% 200%;
    border: 2px solid rgba(139, 195, 74, 0.6);
    border-radius: 12px;
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(139, 195, 74, 0.35);
    font-family: 'Inter', 'Poppins', sans-serif;
    letter-spacing: 0.2px;
    min-width: 220px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: videoBtnShine 3s ease-in-out infinite;
}

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

.video-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8BC34A, #AED581, #C5E1A5);
    opacity: 0;
    z-index: -1;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.video-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(139, 195, 74, 0.6),
        0 0 40px rgba(139, 195, 74, 0.4);
    background: linear-gradient(45deg, #8BC34A, #AED581, #C5E1A5);
    border-color: rgba(174, 213, 129, 0.8);
}

.video-btn:hover::before {
    opacity: 1;
}

.video-btn:hover .btn-text {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.video-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Video container - hidden by default, optimized for performance */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    will-change: opacity, transform;
    transform: translateZ(0);
}

.video-container.active {
    display: flex;
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    will-change: transform;
}

.video-container.active .video-wrapper {
    transform: scale(1);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: auto;
}

.close-video-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.close-video-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Small side buttons - HIDDEN */
.side-buttons {
    display: none;
}

.side-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.side-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.readme-btn:hover {
    background: rgba(76, 175, 80, 0.8);
    border-color: rgba(76, 175, 80, 0.6);
}

.help-btn:hover {
    background: rgba(139, 195, 74, 0.8);
    border-color: rgba(139, 195, 74, 0.6);
}

.settings-btn:hover {
    background: rgba(100, 100, 100, 0.8);
    border-color: rgba(100, 100, 100, 0.6);
}

/* Settings Button - Top Right - Minecraft Theme */
.settings-btn-top {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(139, 195, 74, 0.3));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 100;
    font-size: 20px;
    color: white;
    animation: floatButton 4s ease-in-out infinite;
    animation-delay: 0.5s;
}

.settings-btn-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    border-color: rgba(139, 195, 74, 1);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5), rgba(139, 195, 74, 0.5));
}

/* Theme indicator badge */
.theme-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
    pointer-events: none;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    20% { opacity: 1; transform: translateY(0px); }
    80% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; transform: translateY(-20px); }
}

.download-btn:active {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 
        0 15px 50px rgba(76, 175, 80, 0.7),
        0 0 30px rgba(139, 195, 74, 0.6),
        0 0 60px rgba(76, 175, 80, 0.4),
        inset 0 2px 8px rgba(255, 255, 255, 0.35);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.footer-content p {
    color: var(--text-footer);
    opacity: 0.7;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Responsive design */
@media (max-width: 1200px) {
    .content-line {
        gap: 15px;
    }
    
    .feature-card, .stat-item {
        min-width: 200px;
        max-width: 200px;
        min-height: 260px;
    }
    
    .download-section {
        max-width: 650px;
        min-height: 260px;
    }
    
    .download-btn {
        min-width: 280px;
        min-height: 55px;
    }
    
    .video-btn {
        min-width: 220px;
        min-height: 45px;
    }
}

@media (max-width: 768px) {
    .content-line {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .feature-card, .stat-item {
        min-width: 180px;
        max-width: 180px;
        min-height: 240px;
    }
    
    .download-section {
        max-width: 90%;
        min-height: 240px;
        padding: 18px 20px;
    }
    
    .download-btn {
        min-width: 250px;
        min-height: 50px;
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .video-btn {
        min-width: 200px;
        min-height: 45px;
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-line {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .feature-card, .stat-item {
        min-width: 100%;
        max-width: 100%;
    }
    
    .download-section {
        max-width: 95%;
        min-height: 200px;
        padding: 15px 15px;
    }
    
    .download-btn {
        min-width: 200px;
        min-height: 45px;
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .video-btn {
        min-width: 180px;
        min-height: 40px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* Additional hover effects for interactive elements */
.download-card:hover .download-icon {
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Features Section - now inline */

.feature-card {
    background: var(--bg-feature);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-feature);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out both, floatCardDelay1 7s ease-in-out infinite;
    flex: 1;
    min-width: 220px;
    max-width: 220px;
    min-height: 280px;
}

.feature-card:nth-child(2) {
    animation: fadeInUp 1s ease-out 0.2s both, floatCardDelay2 7s ease-in-out infinite;
}

@keyframes floatCardDelay1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes floatCardDelay2 {
    0%, 100% { transform: translateY(0px); }
    25% { transform: translateY(-8px); }
    75% { transform: translateY(-16px); }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(76, 175, 80, 0.25);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 25px rgba(76, 175, 80, 0.6));
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: #c5e1a5;
}

.feature-card p {
    color: var(--text-muted);
    opacity: 0.9;
    line-height: 1.4;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.feature-card:hover p {
    color: #dcedc8;
    opacity: 1;
}

/* Stats Section - now inline */

.stat-item {
    text-align: center;
    padding: 20px 25px;
    background: var(--bg-stat);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-feature);
    border-radius: 16px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both, floatCardDelay3 6s ease-in-out infinite;
    flex: 1;
    min-width: 220px;
    max-width: 220px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@keyframes floatCardDelay3 {
    0%, 100% { transform: translateY(0px); }
    33% { transform: translateY(-10px); }
    66% { transform: translateY(-5px); }
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 20px rgba(76, 175, 80, 0.25);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #c5e1a5, #aed581, #9ccc65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-footer);
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #c5e1a5;
    opacity: 1;
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}


/* Collapsible Demo Monitor - HIDDEN */
.demo-window {
    display: none;
}

.demo-window.visible {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
}

.demo-window.dragging {
    transition: none;
}

/* Preview Button - HIDDEN */
.preview-button {
    display: none;
}

.preview-button:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.65);
    border-color: rgba(99, 102, 241, 1);
}

.preview-button::before {
    content: "👁";
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.preview-button::after {
    content: "Preview";
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.preview-button:hover::after {
    opacity: 1;
}

.demo-window::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(300px 150px at 50% 0%, rgba(76, 175, 80, 0.12), transparent 70%);
    pointer-events: none;
}

/* Minecraft Style Header */
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.22), rgba(76, 175, 80, 0.12));
    border-bottom: 1px solid rgba(76, 175, 80, 0.35);
    height: 50px;
}

.demo-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c5e1a5;
    font-size: 1rem;
    font-weight: 700;
    flex: 1;
}

.roblox-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8BC34A;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #8BC34A;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Minecraft Style Content Area */
.demo-content {
    padding: 30px 20px;
    height: calc(100% - 50px);
    background: radial-gradient(1200px 600px at 70% 30%, rgba(76, 175, 80, 0.18), transparent 60%),
                radial-gradient(900px 500px at 20% 70%, rgba(102, 187, 106, 0.12), transparent 60%),
                linear-gradient(180deg, #0d1b0d 0%, #12200f 40%, #0a150a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 30px;
}

/* Minecraft Style Bottom Bar */
.demo-taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: rgba(18, 25, 15, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(76, 175, 80, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.taskbar-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.taskbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c5e1a5;
    font-size: 0.8rem;
    font-weight: 500;
}

.taskbar-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.25);
}

.taskbar-icon:hover {
    background: rgba(76, 175, 80, 0.25);
    transform: scale(1.05);
}

.roblox-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.fps-counter {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.fps-counter:hover {
    border-color: rgba(76, 175, 80, 0.65);
    background: rgba(76, 175, 80, 0.12);
    transform: scale(1.05);
}

.fps-label {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fps-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #c5e1a5;
    font-family: 'Courier New', monospace;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fps-value.animating {
    animation: fpsBoost 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fpsBoost {
    0% { transform: scale(1); color: #c5e1a5; }
    25% { transform: scale(1.2); color: #8BC34A; }
    50% { transform: scale(1.1); color: #66BB6A; }
    75% { transform: scale(1.15); color: #4CAF50; }
    100% { transform: scale(1); color: #c5e1a5; }
}

.python-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 8px 20px rgba(55, 118, 171, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
    background: white;
    padding: 8px;
}

.python-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(55, 118, 171, 0.5);
}

/* Scroll trigger for demo window - removed media query */

/* Music Toggle Button - Top Right - Minecraft Theme */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 80px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(139, 195, 74, 0.3));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    z-index: 100;
    animation: floatButton 4s ease-in-out infinite;
}

@keyframes floatButton {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.music-toggle:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 35px rgba(76, 175, 80, 0.6);
    border-color: rgba(139, 195, 74, 1);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5), rgba(139, 195, 74, 0.5));
}

.music-toggle::before {
    content: "🔇";
    font-size: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.music-toggle.playing::before {
    content: "🔊";
}

.music-toggle::after {
    content: "Music";
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.music-toggle:hover::after {
    opacity: 1;
}

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
