/* ==========================================================
   Components – Reusable UI building blocks
   ========================================================== */

/* Feature slide */
.feature-slide {
    transition: all 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}
.feature-slide:hover { transform: translateY(-2px); }

/* Feature card */
.feature-card {
    background: rgba(10, 10, 12, 0.8);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-align: right;
    direction: rtl;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    will-change: transform;
    transform: translateZ(0);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 163, 255, 0.2);
    border-color: var(--accent-blue);
    background: rgba(10, 10, 12, 0.9);
}

/* Glowing button */
.glowing-button {
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 0 rgba(0, 102, 204, 0.5);
    cursor: pointer;
    text-align: center !important;
}
.glowing-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px 0 rgba(0, 163, 255, 0.7);
}
.glowing-button::after {
    content: '';
    position: absolute;
    top: -50%; right: -50%; bottom: -50%; left: -50%;
    background: linear-gradient(to bottom, rgba(229,172,142,0), rgba(255,255,255,0.5) 50%, rgba(229,172,142,0));
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    animation: shine 3s infinite;
    animation-delay: 0.5s;
    pointer-events: none;
}

@keyframes shine {
    0%   { transform: rotateZ(60deg) translate(-5em,  7.5em); }
    100% { transform: rotateZ(60deg) translate(12em, -10em);  }
}

/* Feature icon */
.feature-icon {
    color: var(--accent-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center !important;
    display: block;
}

/* Search box */
.search-box {
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: var(--text-color);
    width: 100%;
    transition: all 0.3s ease;
    text-align: center !important;
    direction: rtl;
    backdrop-filter: blur(10px);
}
.search-box:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 163, 255, 0.3);
    background: rgba(30, 30, 35, 0.8);
}
.search-box::placeholder {
    color: rgba(224, 224, 224, 0.6);
    text-align: center;
}

/* Scroll-down indicator */
.scroll-down { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Divider line */
.divider {
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    height: 1px;
    width: 100%;
    margin: 30px 0;
}

/* Parallax background container */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

/* Demo window */
.demo-window {
    background: rgba(15, 15, 20, 0.8);
    border: 1px solid rgba(0, 102, 204, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    direction: rtl;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 100%;
    position: relative;
    z-index: 1;
    will-change: transform;
    transform: translateZ(0);
}
.demo-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 163, 255, 0.2);
}

/* CRITICAL: Help / download section – no GSAP delays */
#download .feature-card,
#help .feature-card,
.help-section .feature-card,
[id*="help"] .feature-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: none !important;
    transition: all 0.3s ease !important;
}

#download .glowing-button,
#help .glowing-button,
.help-section .glowing-button,
[id*="help"] .glowing-button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: none !important;
    transition: all 0.3s ease !important;
}

#download div[class*="grid"],
#help div[class*="grid"],
.help-section div[class*="grid"] {
    opacity: 1 !important;
    visibility: visible !important;
}

#download h2, #download h3, #download p,
#help h2,     #help h3,     #help p {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}
