/* --- Platforms Section --- */
.section-platforms {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-body) 0%, var(--bg-light) 100%);
}

/* Background Accents */
.platform-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* Platform Content Grid */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Left Side: Mockups */
.platform-visuals {
    position: relative;
    height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-desktop {
    position: absolute;
    width: 90%;
    max-width: 500px;
    z-index: 1;
    transform: perspective(1000px) rotateY(-5deg) translateX(-20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s ease;
}

.mockup-desktop img {
    width: 100%;
    display: block;
    height: auto;
}

.mockup-mobile {
    position: absolute;
    width: 120px;
    bottom: -20px;
    right: 10%;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) translateZ(50px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    border: 4px solid #334155;
    background: #0f172a;
    overflow: hidden;
    transition: transform 0.5s ease;
}

@media (min-width: 1024px) {
    .mockup-mobile {
        right: 0;
        bottom: 20px;
    }
}

.mockup-mobile img {
    width: 100%;
    display: block;
    height: auto;
}

.platform-visuals:hover .mockup-desktop {
    transform: perspective(1000px) rotateY(0deg) translateX(0);
}

.platform-visuals:hover .mockup-mobile {
    transform: perspective(1000px) rotateY(0deg) translateZ(0) scale(1.05);
}

/* Right Side: Features */
.platform-info {
    text-align: right;
    /* RTL Default */
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

[data-theme="dark"] .platform-card {
    border-color: rgba(255, 255, 255, 0.05);
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.platform-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.platform-details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* OS Badges */
.os-badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.os-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background: var(--bg-light);
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.os-badge i {
    font-size: 0.85rem;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .section-platforms {
        padding: 4rem 0;
    }

    .platform-visuals {
        height: 300px;
        margin-bottom: 2rem;
    }

    .mockup-desktop {
        width: 100%;
        max-width: none;
        transform: none;
    }

    .mockup-mobile {
        right: -10px;
        bottom: -30px;
        width: 100px;
        transform: rotate(-5deg);
    }

    .platform-info {
        text-align: center;
    }

    .platform-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .os-badges {
        justify-content: center;
    }
}