/* 1. Base Setup */
body {
    background-color: #0a0a0a; 
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

.side-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 163px; 
    height: 100vh;
    z-index: 10;
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.container {
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin-left: 163px; /* Bach d-dfa3 l-site l-limen 3la l-image */
}

/* 2. Modal Style - Hna l-mohim */
.modal {
    display: none; /* BACH MAT-TLE3CH HTA T-CLICKI[cite: 8] */
    position: fixed;
    z-index: 8999; /* Bach t-ghatti kolchi */
    left: 0;
    top: 0;
    width: 50%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center; /* Bach i-ji l-video f l-center[cite: 9] */
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 700px;
    border: 1px solid #ff0000;
    border-radius: 15px;
    box-shadow: 0 0 30px #ff0000;
    background: #000;
}

.close-btn {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* 3. Button LED Style */
.download-btn {
    position: relative;
    display: inline-block;
    padding: 20px 45px;
    background: #111;
    color: white;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    border-radius: 12px;
    z-index: 1;
    overflow: hidden;
    transition: 0.5s;
    text-transform: uppercase;
    cursor: pointer;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        #ff0000, #ff7300, #fffb00, #48ff00, 
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    animation: rotateLED 4s linear infinite;
    z-index: -2;
}

.download-btn::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: #111; 
    border-radius: 9px;
    z-index: -1;
}

@keyframes rotateLED {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .side-banner { display: none; }
    .container { margin-left: 0; }
/* Had l-code kigol l-browser kifach i-تحرك l-LED */
@keyframes ledPulse {
    0% { 
        box-shadow: 0 0 10px #ff0000, inset 0 0 5px #ff0000; 
        transform: scale(1); 
    }
    50% { 
        box-shadow: 0 0 30px #ff4d4d, inset 0 0 15px #ff0000; 
        transform: scale(1.05); /* Kat-kber chwiya melli t-glowi */
    }
    100% { 
        box-shadow: 0 0 10px #ff0000, inset 0 0 5px #ff0000; 
        transform: scale(1); 
    }
}

/* Daba n-tabqo l-animation 3la l-fléche */
.next-arrow {
    cursor: pointer;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 50%;
    border: 3px solid #ff0000;
    position: relative;
    
    /* Hna fin kheddam l-animation */
    animation: ledPulse 1.5s infinite ease-in-out; 
}
}