/* =============================================
   DOWNLOADS PAGE - Modern Interactive Design
   Colors: #12C9FF, #FF9EF0, #161316, #000, #FFF
   ============================================= */

* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* --- ANIMATED BACKGROUND --- */
body {
    margin: 0;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    background: #000000;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 600px 600px at 20% 30%, rgba(18, 201, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 500px 500px at 80% 70%, rgba(255, 158, 240, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 400px 400px at 50% 50%, rgba(18, 201, 255, 0.03) 0%, transparent 70%);
    animation: bgFloat 20s ease-in-out infinite alternate;
    z-index: 0;
    pointer-events: none;
}

@keyframes bgFloat {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -20px) rotate(1deg); }
    66% { transform: translate(-20px, 15px) rotate(-1deg); }
    100% { transform: translate(10px, -10px) rotate(0.5deg); }
}

/* --- MAIN CONTAINER --- */
.content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 60px;
    position: relative;
    z-index: 1;
}

/* --- HEADER SECTION --- */
.header-section {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.header-section h1 {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.header-section h1 img {
    height: 48px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 0 20px rgba(18, 201, 255, 0.5));
}

.header-section .subtitle {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #12C9FF, #FF9EF0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.header-section .description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* --- FEATURES SECTION --- */
.features-section {
    margin-bottom: 100px;
}

.features-section h3 {
    text-align: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.features-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #12C9FF, #FF9EF0);
    margin: 16px auto 40px;
    border-radius: 3px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 28px 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #12C9FF, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: rgba(18, 201, 255, 0.06);
    border-color: rgba(18, 201, 255, 0.25);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(18, 201, 255, 0.08);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:nth-child(2):hover {
    border-color: rgba(255, 158, 240, 0.25);
    background: rgba(255, 158, 240, 0.04);
}

.feature-item:nth-child(2)::before {
    background: linear-gradient(90deg, #FF9EF0, transparent);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-item:hover .feature-icon {
    transform: scale(1.2) translateY(-4px);
}

.feature-item h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* --- DOWNLOADS SECTION --- */
.downloads-section {
    margin-bottom: 100px;
}

.downloads-section h3 {
    text-align: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.download-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.95rem;
    margin-bottom: 50px;
}

.content-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* --- DOWNLOAD CARDS --- */
.download-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(30px);
    padding: 44px 32px 36px;
    border-radius: 24px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 30%;
    right: 30%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #12C9FF, transparent);
    opacity: 0;
    transition: all 0.5s ease;
}

.download-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(18, 201, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(18, 201, 255, 0.08);
    border-color: rgba(18, 201, 255, 0.3);
}

.download-card:hover::before {
    opacity: 1;
    left: 10%;
    right: 10%;
}

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

/* Platform-specific hover colors */
#windows:hover {
    border-color: rgba(0, 145, 255, 0.4);
}
#windows:hover::before {
    background: linear-gradient(90deg, transparent, #0091ff, transparent);
}
#windows:hover::after {
    background: radial-gradient(circle at 50% 0%, rgba(0, 145, 255, 0.1) 0%, transparent 60%);
}

#linux:hover::after {
    background: radial-gradient(circle at 50% 0%, rgba(18, 201, 255, 0.1) 0%, transparent 60%);
}

#android:hover {
    border-color: rgba(47, 158, 0, 0.4);
}
#android:hover::before {
    background: linear-gradient(90deg, transparent, #2f9e00, transparent);
}
#android:hover::after {
    background: radial-gradient(circle at 50% 0%, rgba(47, 158, 0, 0.1) 0%, transparent 60%);
}

.os-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: block;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.download-card:hover .os-icon {
    transform: scale(1.15) translateY(-6px);
}

.download-card h4 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.download-card .os-version {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.download-card .file-size {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.85rem;
    margin-bottom: 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

/* --- DOWNLOAD BUTTON --- */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #12C9FF;
    color: #000000;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 20px rgba(18, 201, 255, 0.3);
    margin-top: auto;
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #12C9FF, #0FB5E8);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
    z-index: -1;
}

.download-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 35px rgba(18, 201, 255, 0.45);
    color: #FFFFFF;
}

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

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

.download-btn.coming-soon {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-btn.coming-soon::before {
    display: none;
}

.download-btn.coming-soon:hover {
    transform: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.35);
}

.download-btn span {
    display: inline-flex;
    align-items: center;
}

/* --- INFO / INSTRUCTIONS SECTION --- */
.info-section {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 60px 50px;
    border-radius: 24px;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(18, 201, 255, 0.3), transparent);
}

.info-section h3 {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-section h3::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #12C9FF, #FF9EF0);
    margin: 14px auto 24px;
    border-radius: 3px;
}

.info-section > p {
    margin: 0 auto 40px;
    text-align: center;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.instruction-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 32px 24px 28px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
    position: relative;
    counter-increment: step;
}

.instruction-item::before {
    content: counter(step);
    position: absolute;
    top: -14px;
    left: 24px;
    width: 28px;
    height: 28px;
    background: #12C9FF;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    box-shadow: 0 4px 15px rgba(18, 201, 255, 0.35);
}

.instruction-item:hover {
    border-color: rgba(18, 201, 255, 0.2);
    background: rgba(18, 201, 255, 0.04);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.instruction-item strong {
    color: #FFFFFF;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.instruction-item code {
    background: rgba(18, 201, 255, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    color: #12C9FF;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(18, 201, 255, 0.15);
    display: inline-block;
    margin-top: 4px;
}

/* --- SCROLLBAR --- */
.content::-webkit-scrollbar {
    width: 6px;
}

.content::-webkit-scrollbar-track {
    background: transparent;
}

.content::-webkit-scrollbar-thumb {
    background: rgba(18, 201, 255, 0.3);
    border-radius: 10px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: rgba(18, 201, 255, 0.5);
}

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

.header-section {
    animation: fadeInUp 0.8s ease-out;
}

.features-section {
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.downloads-section {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.info-section {
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.feature-item {
    animation: fadeInUp 0.6s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.4s; }
.feature-item:nth-child(4) { animation-delay: 0.5s; }

.download-card {
    animation: fadeInUp 0.6s ease-out both;
}

.download-card:nth-child(1) { animation-delay: 0.35s; }
.download-card:nth-child(2) { animation-delay: 0.45s; }
.download-card:nth-child(3) { animation-delay: 0.55s; }

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .content-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content {
        padding: 60px 28px;
    }

    .header-section h1 {
        font-size: 2.4rem;
    }

    .header-section .subtitle {
        font-size: 1.1rem;
    }

    .content-links {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .info-section {
        padding: 40px 28px;
    }

    .info-section > p {
        margin: 0 auto 30px;
    }

    .downloads-section h3,
    .features-section h3,
    .info-section h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 40px 20px;
    }

    .header-section {
        margin-bottom: 50px;
    }

    .header-section h1 {
        font-size: 1.9rem;
    }

    .header-section h1 img {
        height: 32px;
    }

    .header-section .subtitle {
        font-size: 1rem;
    }

    .header-section .description {
        font-size: 0.9rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 28px 24px 24px;
    }

    .download-card {
        padding: 32px 24px 28px;
        min-height: auto;
    }

    .download-card h4 {
        font-size: 1.4rem;
    }

    .info-section {
        padding: 32px 20px;
    }
}
